-
Notifications
You must be signed in to change notification settings - Fork 10
ci: add weekly sharded cargo-mutants (22119) + in-diff PR advisory (follows #593) #609
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
Merged
reardencode
merged 12 commits into
reardencode:master
from
Hero-Gamer:add-nightly-mutants-job
Sep 20, 2026
Merged
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
86f65b3
fix(mutants): use --workspace, correct --in-diff file, 8 shards, docu…
Hero-Gamer d847a6a
ci: mutants primitives-only (292 mutants), fix pins, drop --skip core
Hero-Gamer 539e092
ci: mutants workspace 8 shards (22119) + in-diff advisory
Hero-Gamer 01d5d9e
ci: mutants add permissions: contents: read for CodeQL
Hero-Gamer 2d15e3a
test: kill 3 sigop mutants for truncated PUSHDATA, 2 equiv left at 41
Hero-Gamer 1e84c5b
fmt: remove extra blank line in sigop mutant test
Hero-Gamer 3921439
docs: add mutants baseline index - 304 consensus / 15 primitives (fro…
Hero-Gamer 2fc01f9
docs: add auto-generated consensus mutants index (304 grouped by file)
Hero-Gamer b3dbab7
docs(mutants): baseline - primitives 16m 4+8 + consensus 9h 304+38, l…
Hero-Gamer 1cb3e6e
docs(mutants): fix generated date to actual runs Sep 19 night -> Sep …
Hero-Gamer eea1824
ci: fix mutants weekly fail-fast false, move concurrency to pr job only
Hero-Gamer 55a1caf
fix: dedup .gitignore mutants.out
Hero-Gamer File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| name: mutants | ||
| on: | ||
| schedule: | ||
| - cron: "0 3 * * 0" | ||
| workflow_dispatch: | ||
| pull_request: | ||
| paths: | ||
| - "Cargo.toml" | ||
| - "Cargo.lock" | ||
| - "crates/**" | ||
| - ".github/workflows/mutants.yml" | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| mutants-pr: | ||
| if: github.event_name == 'pull_request' | ||
| concurrency: | ||
| group: mutants-pr-${{ github.ref }} | ||
| cancel-in-progress: true | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 30 | ||
| steps: | ||
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 | ||
| with: | ||
| persist-credentials: false | ||
| submodules: false | ||
| fetch-depth: 0 | ||
| - uses: dtolnay/rust-toolchain@a5f673d0ba8626c3977bb416a1612774bc82181b | ||
| - uses: taiki-e/install-action@9534c84618278caac52cb373bb164ed464dbd8af | ||
| with: | ||
| tool: cargo-mutants@27.1.0 | ||
| - run: git diff origin/${{ github.base_ref }}.. --unified=0 > git.diff | ||
| - run: cargo mutants --workspace --in-diff git.diff -j 2 | ||
| continue-on-error: true | ||
|
|
||
| mutants-weekly: | ||
| if: github.event_name != 'pull_request' | ||
| runs-on: ubuntu-latest | ||
| timeout-minutes: 360 | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| shard: [0, 1, 2, 3, 4, 5, 6, 7] | ||
| steps: | ||
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 | ||
| with: | ||
| persist-credentials: false | ||
| submodules: false | ||
| - uses: dtolnay/rust-toolchain@a5f673d0ba8626c3977bb416a1612774bc82181b | ||
| - uses: taiki-e/install-action@9534c84618278caac52cb373bb164ed464dbd8af | ||
| with: | ||
| tool: cargo-mutants@27.1.0 | ||
| - run: cargo mutants --workspace --shard ${{ matrix.shard }}/8 -j 2 | ||
| - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a | ||
| if: always() | ||
| with: | ||
| name: mutants-${{ matrix.shard }} | ||
| path: mutants.out | ||
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
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| # Mutants Baseline | ||
|
|
||
| > Generated: 2026-09-20 16:14 ET · Runner: M4 mini · consensus 2026-09-19 night → 2026-09-20 morning (9h, 2518 tested) · primitives 2026-09-20 ~15:00 ET (16m, 292 tested) | ||
|
|
||
| | Crate | Tested | Missed | Timeout | Details | | ||
| | :--- | ---: | ---: | ---: | :--- | | ||
| | `rbitcoin-primitives` | 292 | 4 | 8 | [./rbitcoin-primitives.md](./rbitcoin-primitives.md) | | ||
| | `rbitcoin-consensus` | 2518 | 304 | 38 | [./rbitcoin-consensus.md](./rbitcoin-consensus.md) | | ||
|
|
||
| ### Top files - consensus | ||
| - `block/mod.rs` 65 · `script/interpreter.rs` 57 · `silent_payments.rs` 50 · `confirm_run/write.rs` 23 · `confirm_run/pin.rs` 22 |
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.