Skip to content

ci: Twinova's triggers for CI and Mutation - #22

Merged
chetto1983 merged 3 commits into
masterfrom
claude/nifty-euler-ir1k3d
Nov 11, 2026
Merged

chetto1983 merged 3 commits into
masterfrom
claude/nifty-euler-ir1k3d

Conversation

@chetto1983

Copy link
Copy Markdown
Owner

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)

  • The paths filter is "**", "!**.md", "!docs/**" on both push and pull_request, shared through a YAML anchor (&code-paths). Nothing CI runs reads a Markdown file or docs/: grep on 2026-11-11 found that Prettier ignores both, and docs/screenshots is read only by the site (pages.yml). A change made only of prose therefore starts no run.
  • Pushes run only on 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).
  • bundle runs 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)

  • Test files stay in the filter, as in Twinova: a test edit can stop catching a mutant. 12565b9 excluded them; e14e96b reverts that, because the force push that would have dropped it was blocked.
  • src-tauri/Cargo.toml and Cargo.lock now start the run too: dependencies and build profiles change the code the tests run.

Type

  • feat: new capability
  • fix: bug fix
  • refactor / perf
  • docs
  • test
  • chore / ci / build

Checklist

  • npm run check && npm run lint && npm run format:check && npm test pass: N/A, no app code changed; Prettier is green on the workflows and on CLAUDE.md
  • cargo fmt --check && cargo clippy --all-targets -- -D warnings && cargo test pass: N/A, no Rust changed
  • Coverage ≥ 85% (Rust and frontend), no test skipped to hide a failure: N/A
  • No file exceeds 600 LOC (npm run file-size)
  • Protocol changes checked end to end against pymodbus (npm run e2e): N/A
  • Spec / CHANGELOG.md updated if behaviour or interfaces changed: no app behaviour changed; CLAUDE.md updated
  • UI changes use the Aura tokens only: N/A

Notes for reviewers

  • I checked the filters by applying the rules in GitHub's docs (github/docs source, "Including and excluding paths", "Filter pattern cheat sheet") to sample diffs:
  • This PR's own pull_request run is the first real check of the new triggers on GitHub.
  • If a CI check is ever made required by branch protection, a prose-only PR would wait on it forever: a workflow skipped by paths leaves its checks pending (per the docs).

Generated by Claude Code

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
@coderabbitai

coderabbitai Bot commented Nov 11, 2026

Copy link
Copy Markdown

Important

  • Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 085d97b3-5e08-4141-af4f-66fb51a10520
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@chetto1983
chetto1983 merged commit 55499f3 into master Nov 11, 2026
11 checks passed
@chetto1983
chetto1983 deleted the claude/nifty-euler-ir1k3d branch November 11, 2026 08:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants