Remove unneded feature flags in tests#4295
Conversation
f3cdc77 to
c0cf5b3
Compare
There was a problem hiding this comment.
Also one general note, isn't this pattern #[cfg_attr(not(feature = "some_feature"), ignore)] a bit convoluted?
I would do #[cfg(feature = "some_feature")] and get the same result - unless you really need the info about ignored test in cargo test output
e495d8f to
a1a6f70
Compare
c0cf5b3 to
374bd8c
Compare
4a0f5c7 to
96c30bb
Compare
| - name: Run snap E2E tests | ||
| run: cargo test --profile ci -p forge --test main snap_ | ||
|
|
||
| test-plugin-checks: |
There was a problem hiding this comment.
Since the plugin is already covered by the e2e tests and the test_for_multiple_scarb_versions flag appeared to be a redundant leftover, I merged the special condition tests into a single job.
We can think of moving it only to scheduled tests. But for example mayby it's good to know as fast as possible if the backward compatibility with snforge new is broken.
|
|
||
| #[test] | ||
| #[cfg_attr( | ||
| feature = "skip_test_for_only_latest_scarb", |
There was a problem hiding this comment.
Those tests pass without it. So imo there is no reason to keep it. If something brake in the future we can just simply add it back.
04be695 to
9acb1c2
Compare
9acb1c2 to
82adec9
Compare
82adec9 to
9450510
Compare
| echo "features=$FEATURES" >> "$GITHUB_OUTPUT" | ||
| - name: Build and archive tests | ||
| run: cargo nextest archive --cargo-profile ci -p forge --features "${{ steps.test_features.outputs.features }}" --archive-file 'nextest-archive-forge-native-${{ runner.os }}.tar.zst' | ||
| run: cargo nextest archive --cargo-profile ci -p forge --features "cairo-native" --archive-file 'nextest-archive-forge-native-${{ runner.os }}.tar.zst' |
There was a problem hiding this comment.
nit:
| run: cargo nextest archive --cargo-profile ci -p forge --features "cairo-native" --archive-file 'nextest-archive-forge-native-${{ runner.os }}.tar.zst' | |
| run: cargo nextest archive --cargo-profile ci -p forge --features cairo-native --archive-file 'nextest-archive-forge-native-${{ runner.os }}.tar.zst' |
Towards #4091
Introduced changes
e2eChecklist
CHANGELOG.md