-
Notifications
You must be signed in to change notification settings - Fork 26
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
base: main
Are you sure you want to change the base?
Changes from 1 commit
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,15 +24,23 @@ docker-build: ## 🐳 Build the Docker image | |
| -t ghcr.io/lambdaclass/ethlambda:$(DOCKER_TAG) . | ||
| @echo | ||
|
|
||
| # 2026-04-29 | ||
| LEAN_SPEC_COMMIT_HASH:=18fe71fee49f8865a5c8a4cb8b1787b0cbc9e25b | ||
| 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 | ||
|
|
||
| leanSpec: | ||
| git clone https://github.com/leanEthereum/leanSpec.git --single-branch | ||
|
Comment on lines
30
to
31
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. |
||
| cd leanSpec && git checkout $(LEAN_SPEC_COMMIT_HASH) | ||
|
|
||
| leanSpec/fixtures: leanSpec | ||
| cd leanSpec && uv run fill --fork devnet -n auto --scheme=prod -o fixtures | ||
| 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}'); \ | ||
| [ "$$expected" = "$$actual" ]; \ | ||
| rm -rf leanSpec/fixtures; \ | ||
| mkdir -p leanSpec/fixtures; \ | ||
| tar -xzf "$$tmpdir/fixtures-prod-scheme.tar.gz" -C leanSpec/fixtures --strip-components=1 | ||
|
dicethedev marked this conversation as resolved.
Outdated
|
||
|
|
||
| lean-quickstart: | ||
| git clone https://github.com/blockblaz/lean-quickstart.git --depth 1 --single-branch | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.