Skip to content

ci: run script tests only when release scripts change - #96

Merged
bitdan merged 1 commit into
masterfrom
ci/scripts-path-filter
Nov 25, 2026
Merged

bitdan merged 1 commit into
masterfrom
ci/scripts-path-filter

Conversation

@bitdan

@bitdan bitdan commented Nov 25, 2026

Copy link
Copy Markdown
Owner

What changed

  • New scripts.yml: the Script checks and tests job (Windows, npm test) moves out of ci.yml and runs only when these change: scripts/*.mjs, scripts/ci/translation-engine.json, tools/**, package.json, package-lock.json, Cargo.lock, or the workflow itself.
    • tools/** and Cargo.lock are in the list because the release-signing test calls cargo run -p snap-release-sign.
  • ci.yml
    • node scripts/check-architecture.mjs (snap-core boundary + embedded resources) now runs first in the native job, on Linux only. It reads Rust sources and needs no compile.
    • paths-ignore adds scripts/*.mjs, package.json and package-lock.json, so script-only changes skip the three-platform Rust build. Those changes are covered by scripts.yml, whose npm test also runs the architecture check.

Why

Pure Rust PRs no longer spin up a Windows runner for script tests. Script-only PRs no longer compile Rust on three platforms.

Notes for reviewers

  • Tag builds are unchanged: release.yml still runs the full npm test.
  • master has no required status checks, so a workflow skipped by path filters does not block merging.
  • The chore(release): skip condition is kept as-is in the new workflow.
  • Verified locally: check-architecture passes, npm test passes 30/30, and both workflows parse. Because this PR touches ci.yml and scripts.yml, both workflows run on it.

🤖 Generated with Claude Code

Move the Node script tests out of ci.yml into scripts.yml, triggered only by
scripts/*.mjs, tools/**, package manifests, Cargo.lock and the engine tag file,
so pure Rust changes no longer start the Windows script job.

The snap-core boundary and embedded-resource check reads Rust sources, so it
now runs once in the Linux native job. Script-only changes skip the
three-platform Rust build in ci.yml.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@bitdan
bitdan merged commit 1695972 into master Nov 25, 2026
4 checks passed
@bitdan
bitdan deleted the ci/scripts-path-filter branch November 25, 2026 03:25
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.

1 participant