Sync only the declaring module before a run; skip git-ignored paths
`fluksio run` walked the working directory and imported every module in it, which ran a research repository's analysis scripts before the run was submitted. A flow's origin now records the file and module name that declared it, and run/sweep import just that, under the same name so the generated node bodies do not change. A flow with no record still walks, now skipping what .gitignore covers. Every code-defined flow reports `flow` changed once on its next sync, since the origin gained two fields. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QgG6TJw5qBZzaLghQSRVrq
This commit is contained in:
@@ -253,6 +253,12 @@ class FlowOrigin(BaseModel):
|
||||
#: a run stamped with a dirty commit names code that was never stored.
|
||||
commit: str = ""
|
||||
dirty: bool = False
|
||||
#: The file that declared the flow, relative to ``repo``, and the module
|
||||
#: name it was imported under. What ``fluksio run`` imports by default,
|
||||
#: instead of every script below the working directory — by that name, or
|
||||
#: the generated node bodies would change with how the flow was synced.
|
||||
declared_in: str = ""
|
||||
module: str = ""
|
||||
|
||||
|
||||
class FlowInput(BaseModel):
|
||||
|
||||
Reference in New Issue
Block a user