Skip to content

Move downloading of data dependencies - #3617

Merged
peterebden merged 11 commits into
thought-machine:masterfrom
peterebden:peter/rex-downloads
Oct 1, 2026
Merged

peterebden merged 11 commits into
thought-machine:masterfrom
peterebden:peter/rex-downloads

Conversation

@peterebden

@peterebden peterebden commented Sep 21, 2026 •

Copy link
Copy Markdown
Collaborator

This happens too early now in remote.go. Move it out of Build() so that function just builds and doesn't download (handling a TODO in there) and trigger the downloads externally. This actually simplifies quite a bit since we have the same "walk all inputs" in DownloadInputsIfNeeded and we don't need to repeat that. Also fixed a couple of cases where some things weren't getting downloaded under remote execution.

Added a test case for rex_test since that wasn't covering this super well. It's a bit fiddly though since it's quite timing-oriented.

Comment thread src/remote/remote_test.go Outdated
c.state.Graph.AddTarget(outDirTarget)
_, err := c.Build(outDirTarget)
require.NoError(t, err)
// Build no longer downloads anything itself; src/build does that once any post-build

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
// Build no longer downloads anything itself; src/build does that once any post-build
// Build does not download anything itself; src/build does that once any post-build

@peterebden
peterebden merged commit 4797c09 into thought-machine:master Oct 1, 2026
16 checks passed
@peterebden
peterebden deleted the peter/rex-downloads branch October 1, 2026 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants