Repository navigation
Conversation
mayawang
approved these changes
Oct 27, 2026
mayawang
left a comment
Collaborator
There was a problem hiding this comment.
Thanks @rakyll, nice speedup. Workflow looks good: read-only permissions, pinned actions, and the PR-scoped cache keeps fork runs from writing to what others restore. Approving. One heads-up: the cache key uses go list -m github.com/agent-substrate/substrate, and #517 renames the module to go.ate.dev/substrate. After that the key comes back empty and runs quietly fall back to building from source, so whichever lands second should update the path.
siyuanfoundation
approved these changes
Oct 27, 2026
Member
Author
|
I'll wait for #517 to be merged! |
Collaborator
Every E2E run compiled Substrate's images from source, even though PRs and pushes always test the same Substrate version from go.mod. Add an optional SUBSTRATE_IMAGE_CACHE_DIR to hack/setup-e2e-kind.sh. When it is set, the script starts the kind-registry container with its storage on that directory. It publishes Substrate's release image set once, tagged with `git describe`, and then installs those pre-built images through ATE_IMAGE_REPO/ATE_IMAGE_TAG. The ateom-gvisor reference in the WorkerPool is pinned by digest instead of going through ko. If the Substrate checkout is too old to support `publish release-images` or has local changes, the script logs why and builds from source as before. In CI, the registry storage is restored from and saved to actions/cache, keyed on the Substrate version in go.mod. Before saving, the AX images are dropped and the registry is garbage-collected, so the cache holds only Substrate images. Nightly and custom substrate_ref runs still build from source.
Member
Author
|
Updated the import path to |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Every E2E run compiled Substrate's images from source, even though PRs and pushes always test the same Substrate version from go.mod. Add an optional SUBSTRATE_IMAGE_CACHE_DIR to hack/setup-e2e-kind.sh. When it is set, the script starts the kind-registry container with its storage on that directory. It publishes Substrate's release image set once, tagged with
git describe, and then installs those pre-built images through ATE_IMAGE_REPO/ATE_IMAGE_TAG. The ateom-gvisor reference in the WorkerPool is pinned by digest instead of going through ko. If the Substrate checkout is too old to supportpublish release-imagesor has local changes, the script logs why and builds from source as before.In CI, the registry storage is restored from and saved to actions/cache, keyed on the Substrate version in go.mod. Before saving, the AX images are dropped and the registry is garbage-collected, so the cache holds only Substrate images. Nightly and custom substrate_ref runs still build from source.