fix: remove feature mod_builtin#2387
Conversation
764d94b to
901171a
Compare
|
84f5b1b to
2106d48
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2387 +/- ##
==========================================
+ Coverage 96.20% 96.21% +0.01%
==========================================
Files 107 107
Lines 37963 37925 -38
==========================================
- Hits 36522 36490 -32
+ Misses 1441 1435 -6 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
|
Benchmark Results for unmodified programs 🚀
|
noam-starkware
left a comment
There was a problem hiding this comment.
@noam-starkware made 3 comments.
Reviewable status: 0 of 9 files reviewed, 3 unresolved discussions (waiting on OmriEshhar1).
a discussion (no related file):
Can you delete the definition of the feature itself and not just its invocations? It's defined several times in multiple Cargo.toml files.
Once deleted, I think it would require some more changes (for example, the cairo1 makefile uses this feature flag for running targets, and I think that in rust.yml as well).
a discussion (no related file):
The cairo1-run/README.md and onboarding.md files mention mod_builtin feature. Should these refs be removed?
vm/src/vm/runners/cairo_runner.rs line 5884 at r1 (raw file):
]; // Match the all_cairo_stwo layout builtins (mod builtins excluded // unless the mod_builtin feature is enabled).
delete parentheses.
Code quote:
// Match the all_cairo_stwo layout builtins (mod builtins excluded
// unless the mod_builtin feature is enabled).2106d48 to
a274beb
Compare
OmriEshhar1
left a comment
There was a problem hiding this comment.
@OmriEshhar1 made 3 comments.
Reviewable status: 0 of 16 files reviewed, 3 unresolved discussions (waiting on noam-starkware and OmriEshhar1).
a discussion (no related file):
Previously, noam-starkware wrote…
The cairo1-run/README.md and onboarding.md files mention
mod_builtinfeature. Should these refs be removed?
Done.
a discussion (no related file):
Previously, noam-starkware wrote…
Can you delete the definition of the feature itself and not just its invocations? It's defined several times in multiple Cargo.toml files.
Once deleted, I think it would require some more changes (for example, the cairo1 makefile uses this feature flag for running targets, and I think that in rust.yml as well).
Done.
vm/src/vm/runners/cairo_runner.rs line 5884 at r1 (raw file):
Previously, noam-starkware wrote…
delete parentheses.
Done.
noam-starkware
left a comment
There was a problem hiding this comment.
@noam-starkware reviewed 16 files and all commit messages, made 1 comment, and resolved 1 discussion.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on OmriEshhar1).
a discussion (no related file):
Previously, OmriEshhar1 wrote…
Done.
One definition of the feature remains in vm/Cargo.toml.
Also, in the .github/workflows/rust.yml files you removed the feature definition but I think that the action itself still refers to it.
I asked Claude about it and this is the response I got:
What upload-coverage does:
It collects the lcov-*.info coverage files produced by the tests job (which runs 4×4=16 matrix combinations of 4 partitions × 4 special_features values), fetches them from
the GitHub Actions cache, and uploads them all to codecov.io in one shot.
The problem — there's a mismatch right now:
The tests job matrix (line 297) lists these special_features:
special_features: ["", "extensive_hints", "cairo-0-secp-hints", "cairo-0-data-availability-hints"]
But upload-coverage (lines 545–568) still tries to fetch 4 files for mod_builtin:
- name: Fetch results for tests with stdlib (w/mod_builtin; part. 1)
uses: actions/cache/restore@v3
with:
path: lcov-test#1-mod_builtin.info
key: codecov-cache-test#1-mod_builtin-${{ github.sha }}
fail-on-cache-miss: true # <-- this will FAIL
Since mod_builtin is no longer in the tests matrix, those cache entries will never be written, and fail-on-cache-miss: true means the upload-coverage job will hard-fail.
Additionally, cairo-0-data-availability-hints is in the tests matrix but has no corresponding fetch steps in upload-coverage, so its coverage would be silently dropped.
What needs to change:
Remove the 4 mod_builtin fetch steps (lines 545–568) and add 4 equivalent steps for cairo-0-data-availability-hints. The pattern is identical — just swap the feature name:
- name: Fetch results for tests with stdlib (w/cairo-0-data-availability-hints; part. 1)
uses: actions/cache/restore@v3
with:
path: lcov-test#1-cairo-0-data-availability-hints.info
key: codecov-cache-test#1-cairo-0-data-availability-hints-${{ github.sha }}
fail-on-cache-miss: true
# ... repeat for parts 2, 3, 4
a274beb to
32345a1
Compare
OmriEshhar1
left a comment
There was a problem hiding this comment.
@OmriEshhar1 made 1 comment.
Reviewable status: 15 of 17 files reviewed, 2 unresolved discussions (waiting on noam-starkware and OmriEshhar1).
a discussion (no related file):
Previously, noam-starkware wrote…
One definition of the feature remains in
vm/Cargo.toml.Also, in the
.github/workflows/rust.ymlfiles you removed the feature definition but I think that the action itself still refers to it.I asked Claude about it and this is the response I got:
What upload-coverage does: It collects the lcov-*.info coverage files produced by the tests job (which runs 4×4=16 matrix combinations of 4 partitions × 4 special_features values), fetches them from the GitHub Actions cache, and uploads them all to codecov.io in one shot. The problem — there's a mismatch right now: The tests job matrix (line 297) lists these special_features: special_features: ["", "extensive_hints", "cairo-0-secp-hints", "cairo-0-data-availability-hints"] But upload-coverage (lines 545–568) still tries to fetch 4 files for mod_builtin: - name: Fetch results for tests with stdlib (w/mod_builtin; part. 1) uses: actions/cache/restore@v3 with: path: lcov-test#1-mod_builtin.info key: codecov-cache-test#1-mod_builtin-${{ github.sha }} fail-on-cache-miss: true # <-- this will FAIL Since mod_builtin is no longer in the tests matrix, those cache entries will never be written, and fail-on-cache-miss: true means the upload-coverage job will hard-fail. Additionally, cairo-0-data-availability-hints is in the tests matrix but has no corresponding fetch steps in upload-coverage, so its coverage would be silently dropped. What needs to change: Remove the 4 mod_builtin fetch steps (lines 545–568) and add 4 equivalent steps for cairo-0-data-availability-hints. The pattern is identical — just swap the feature name: - name: Fetch results for tests with stdlib (w/cairo-0-data-availability-hints; part. 1) uses: actions/cache/restore@v3 with: path: lcov-test#1-cairo-0-data-availability-hints.info key: codecov-cache-test#1-cairo-0-data-availability-hints-${{ github.sha }} fail-on-cache-miss: true # ... repeat for parts 2, 3, 4
Done.
OmriEshhar1
left a comment
There was a problem hiding this comment.
@OmriEshhar1 reviewed 2 files and all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on noam-starkware).
8aff3c8 to
89b4c33
Compare
OmriEshhar1
left a comment
There was a problem hiding this comment.
@OmriEshhar1 partially reviewed 15 files.
Reviewable status: 13 of 32 files reviewed, 2 unresolved discussions (waiting on noam-starkware).
OmriEshhar1
left a comment
There was a problem hiding this comment.
@OmriEshhar1 reviewed 15 files.
Reviewable status: 28 of 32 files reviewed, 2 unresolved discussions (waiting on noam-starkware).
89b4c33 to
7e60269
Compare
OmriEshhar1
left a comment
There was a problem hiding this comment.
@OmriEshhar1 reviewed 16 files and all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on noam-starkware).
7e60269 to
d22415c
Compare
d22415c to
03af660
Compare
OmriEshhar1
left a comment
There was a problem hiding this comment.
@OmriEshhar1 reviewed all commit messages.
Reviewable status: all files reviewed, 2 unresolved discussions (waiting on noam-starkware).
noam-starkware
left a comment
There was a problem hiding this comment.
@noam-starkware reviewed 20 files and all commit messages, made 1 comment, and resolved 2 discussions.
Reviewable status:complete! all files reviewed, all discussions resolved (waiting on OmriEshhar1).
TITLE
Description
Description of the pull request changes and motivation.
Checklist
This change is