-
Notifications
You must be signed in to change notification settings - Fork 27
ci: download latest leanSpec fixture release instead of generating fixtures #385
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 5 commits
a9b2c31
829eb96
1dfbde4
4d2470e
6b883fe
91290e8
a5cb66b
a996469
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,13 +24,28 @@ docker-build: ## 🐳 Build the Docker image | |
| -t ghcr.io/lambdaclass/ethlambda:$(DOCKER_TAG) . | ||
| @echo | ||
|
|
||
| LEAN_SPEC_FIXTURES_URL ?= https://github.com/leanEthereum/leanSpec/releases/latest/download/fixtures-prod-scheme.tar.gz | ||
| LEAN_SPEC_FIXTURES_SHA_URL ?= $(LEAN_SPEC_FIXTURES_URL).sha256 | ||
| # 2026-05-17 | ||
| LEAN_SPEC_COMMIT_HASH:=f12000bd68a9640cffdfbd9a07503c9112d32bee | ||
|
|
||
| leanSpec: | ||
| git clone https://github.com/leanEthereum/leanSpec.git --single-branch | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Prompt To Fix With AIThis is a comment left during a code review.
Path: Makefile
Line: 30-31
Comment:
**`leanSpec` target is now dead code**
`leanSpec/fixtures` was updated to no longer depend on the `leanSpec` prerequisite, so the `leanSpec` clone target is never invoked by any downstream rule. The `git checkout` line was also dropped in this PR, leaving the target in a half-refactored state (it clones but doesn't pin a revision). If nothing depends on it, consider removing it to avoid confusion.
How can I resolve this? If you propose a fix, please make it concise.
MegaRedHand marked this conversation as resolved.
Outdated
|
||
| cd leanSpec && git checkout $(LEAN_SPEC_COMMIT_HASH) | ||
|
|
||
| leanSpec/fixtures: | ||
| tmpdir=$$(mktemp -d); \ | ||
| trap 'rm -rf "$$tmpdir"' EXIT; \ | ||
| curl -L -f -o "$$tmpdir/fixtures-prod-scheme.tar.gz" "$(LEAN_SPEC_FIXTURES_URL)"; \ | ||
| curl -L -f -o "$$tmpdir/fixtures-prod-scheme.tar.gz.sha256" "$(LEAN_SPEC_FIXTURES_SHA_URL)"; \ | ||
| expected=$$(cut -d' ' -f1 "$$tmpdir/fixtures-prod-scheme.tar.gz.sha256"); \ | ||
| actual=$$(sha256sum "$$tmpdir/fixtures-prod-scheme.tar.gz" | awk '{print $$1}'); \ | ||
| if [ "$$expected" != "$$actual" ]; then \ | ||
| echo "SHA256 mismatch: expected $$expected, got $$actual" >&2; \ | ||
| exit 1; \ | ||
| fi; \ | ||
| rm -rf leanSpec/fixtures; \ | ||
| mkdir -p leanSpec/fixtures; \ | ||
| tar -xzf "$$tmpdir/fixtures-prod-scheme.tar.gz" -C leanSpec/fixtures --strip-components=1 | ||
| # Pre-download the prod keys ourselves before `fill`. The pinned leanSpec | ||
| # commit predates leanSpec PR #745, whose `download_keys` reads the still-open | ||
| # (unflushed) download tempfile, intermittently truncating the gzip tail and | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.