Repository navigation
ci: Twinova's triggers for CI and Mutation - #22
Merged
Merged
Conversation
A push to master that changed only *_tests.rs or *.test.ts files started
the whole mutation run (cargo mutants and Stryker) although no mutated
file had changed: 3.6.0 did, for one more unit in a test loop. The paths
filter now excludes them with "!" patterns after the positive ones, the
order GitHub's workflow syntax requires ("Including and excluding paths";
docs/**/*.md matches docs/README.md, so **/ also matches no directory).
Checked by applying the documented rules to git ls-files: all 22 test
files are out, every source file stays in; the PR #21 diff still starts
the run, a tests-only diff does not. Not measured on GitHub: the next
push to master is the first real evaluation of the filter.
Trade-off: a test edit that stops catching a mutant is now reported by
the weekly run (or the next push to the code), not by its own push.
Tests inside a source file (mod tests) still start the run.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_013Rdii2xv4WTmCWzFBdAPnv
….lock The push filter now matches chetto1983/Twinova's mutation.yml, as the user chose after comparing the two: - Test files are back in, undoing 12565b9: a test edit can stop catching a mutant, and the push that makes it should report it, not the weekly run. - src-tauri/Cargo.toml and Cargo.lock start the run too: dependencies and build profiles change the code the tests run (Twinova's PR #29 touched only Cargo.toml); until now such a change waited for the weekly run. Checked by applying GitHub's documented paths rules to sample diffs: a Cargo.lock bump and a tests-only change start the run, a change to tauri.conf.json alone does not. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Rdii2xv4WTmCWzFBdAPnv
The scheme of chetto1983/Twinova and chetto1983/Aura ci.yml, ported on the user's request: - paths "**", "!**.md", "!docs/**" on push and pull_request, shared with a YAML anchor (supported by Actions: workflow syntax, "YAML anchors and aliases"). Nothing CI runs reads a Markdown file or docs/ (grep, 2026-11-11: Prettier ignores both; docs/screenshots feeds only the site, pages.yml), so a change made only of them starts no run. - push only on master: a working branch is checked by its pull_request run, so one SHA no longer runs twice (PR #21 ran CI for its push and for its pull request). - bundle only on push: the MSI was the longest job of master run 42981578708 (4 min 52 s), and on a pull request the E2E already builds and drives the app on both platforms. CLAUDE.md's push discipline now says a working branch needs an open PR to be checked, as Twinova's does. Not measured on GitHub yet: the pull_request run of this change is the first evaluation of the new triggers. If a check were ever made required by branch protection, a prose-only PR would wait on it (checks of a workflow skipped by paths stay pending, per the docs). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_013Rdii2xv4WTmCWzFBdAPnv
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
What & why
This aligns the CI and Mutation triggers with
chetto1983/Twinova(the Aura scheme). It answers the question of why the checks ran on a release whose Rust changes were limited to tests and the version bump.CI (
.github/workflows/ci.yml)pathsfilter is"**","!**.md","!docs/**"on both push and pull_request, shared through a YAML anchor (&code-paths). Nothing CI runs reads a Markdown file ordocs/: grep on 2026-11-11 found that Prettier ignores both, anddocs/screenshotsis read only by the site (pages.yml). A change made only of prose therefore starts no run.master. A working branch is checked by its pull_request run, so one SHA no longer runs twice (PR feat(slave): accept unit ids up to 255; release 3.6.0 #21 ran CI for its push and again for its pull request).bundleruns only on push. The MSI was the longest job of master run 42981578708 (4 min 52 s), and on a pull request the E2E already builds and drives the app on both platforms.CLAUDE.md(GIT PUSH DISCIPLINE): a working branch needs an open PR to be checked, as in Twinova.Mutation (
.github/workflows/mutation.yml)12565b9excluded them;e14e96breverts that, because the force push that would have dropped it was blocked.src-tauri/Cargo.tomlandCargo.locknow start the run too: dependencies and build profiles change the code the tests run.Type
Checklist
npm run check && npm run lint && npm run format:check && npm testpass: N/A, no app code changed; Prettier is green on the workflows and onCLAUDE.mdcargo fmt --check && cargo clippy --all-targets -- -D warnings && cargo testpass: N/A, no Rust changednpm run file-size)npm run e2e): N/ACHANGELOG.mdupdated if behaviour or interfaces changed: no app behaviour changed;CLAUDE.mdupdatedNotes for reviewers
github/docssource, "Including and excluding paths", "Filter pattern cheat sheet") to sample diffs:Cargo.lockbump and on a tests-only change, but not ontauri.conf.jsonalone.pathsleaves its checks pending (per the docs).Generated by Claude Code