Skip to content

ci(#6672): run the assess clean-install check on a PR only when packaging can change - #6673

Merged
squid-shepherd[bot] merged 2 commits into
mainfrom
ci/assess-install-targeted
Oct 25, 2026
Merged

squid-shepherd[bot] merged 2 commits into
mainfrom
ci/assess-install-targeted

Conversation

@squid-protocol

Copy link
Copy Markdown
Owner

Closes #6672.

Why

Ports Compile (ports-compile.yml, not a required check) runs scripts/check_assess_install.py (#4726) on every PR it starts. The script builds the wheel, installs it into a fresh venv with no network, and runs the installed gitgalaxy assess on a planted estate and the six burned estates. Measured 2026-10-25:

  • ~3.1 of the job's ~7.9 min (median of 60 successful PR runs; 39%).
  • Never failed in ~420 completed runs since it landed (2026-10-22). All 7 Ports Compile failures in that window were in "Equivalence ports carry the generator's facades".
  • publish-assess-check.yml runs only after a release is on PyPI, so it isn't a per-merge backstop. Main's post-merge dispatch and the nightly are.

What only this step catches is a packaging break: a module or data file the wheel doesn't ship, a broken entry point, a missing extra.

Change

tests/tools/assess_install_plan.py (stdlib) plans the step from the PR's changed files and their API status. It runs when a change can break the install:

Change Runs the check
pyproject.toml, MANIFEST.in, the script, the planner, the workflow, tests/cobol_mainframe/corpora.json yes
the assess command: gitgalaxy/cli.py, gitgalaxy/tools/readiness/** yes
any file added / removed / renamed / copied under gitgalaxy/ (Markdown excepted) yes
a modified non-Python file under gitgalaxy/ that a [tool.setuptools.package-data] glob ships yes
a modified .py under gitgalaxy/, unshipped data (language_addition_costs.jsonl), Markdown, anything outside gitgalaxy/ no

Push, dispatch and nightly runs always run it. Fail open: an unreadable or short PR file list, or a planner that crashes, runs it. The job gains pull-requests: read to read the file list.

Measured effect

I replayed the last 80 merged PRs (from each squash commit's --name-status). Ports Compile started on 31; the check would now run on 4: #6630, #6635 and #6641 added modules, and #6621 changed pyproject.toml. That's ~3.1 slot-minutes saved on each of the other 27, about 84 per 80 PRs.

Verification

  • 26 new tests cover each row of the table, the event and fail-open paths, the CLI output, the workflow wiring, and that every package-data glob still matches real files. 339 workflow-lint tests pass (workflow inputs, post-merge dispatch filter parsing, ci_retry, draft gate, engine reach, tested-tree, install pins, main-watch). The ruff audit shows no new findings, and format is clean.
  • This PR changes the workflow and the planner, both on the run-always list, so its own Ports Compile run plans run=true and runs the check. The skip path is covered by the unit tests and the replay, not by this PR's CI.

Sibling PRs

#6669 and #6671 are other CI changes from the same review. They touch different files, so there are no conflicts with this one.

🤖 Generated with Claude Code

…ging can change

The step (scripts/check_assess_install.py, #4726) was ~3.1 of Ports Compile's ~7.9 min and never failed in ~420
runs; what only it catches is a packaging break. tests/tools/assess_install_plan.py plans it from the PR's files
and their status: packaging or the check itself, the assess command, a file added / removed / renamed under
gitgalaxy/, or a modified data file a package-data glob ships. Replay of the last 80 merged PRs: 4 of the 31
that ran Ports Compile (3 added modules, 1 pyproject.toml). Main dispatch and the nightly always run it; an
unreadable or short file list, or a failed plan, runs it.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

🐦‍⬛ Muninn Security Scan

✅ No security issues found.

🐦‍⬛ Powered by Muninn · Skald Lab

@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 25, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd

Copy link
Copy Markdown
Contributor

This PR conflicts with main, so no checks ran. Merge origin/main into it and regenerate generated files with their tools (never hand-merge them), then push.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 25, 2026 21:20
@squid-shepherd squid-shepherd Bot added the shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md label Oct 25, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd squid-shepherd Bot removed the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 25, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

CI shepherd: the head of this PR (76205ab) is not the one a maintainer labelled shepherd:merge on (new commits, or never approved), so the label was removed and nothing merges unreviewed code. Re-add the label when the new head is ready (shepherd:reapprove marks this PR until then).

@squid-shepherd
squid-shepherd Bot disabled auto-merge October 25, 2026 23:31
@squid-shepherd squid-shepherd Bot added shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md and removed shepherd:needs-fix Bot: a real failure on this head; see the digest comment. Guide: docs/ci.md labels Oct 25, 2026
@squid-protocol squid-protocol added the shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md label Oct 25, 2026
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

@squid-shepherd
squid-shepherd Bot enabled auto-merge (squash) October 25, 2026 23:40
@squid-shepherd squid-shepherd Bot removed the shepherd:reapprove Bot: new commits dropped shepherd:merge; re-add it to merge this head. Guide: docs/ci.md label Oct 25, 2026
@squid-shepherd
squid-shepherd Bot merged commit 6474173 into main Oct 25, 2026
44 checks passed
@squid-shepherd
squid-shepherd Bot deleted the ci/assess-install-targeted branch October 25, 2026 23:45
@squid-shepherd

Copy link
Copy Markdown
Contributor

No description provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

shepherd:merge Maintainer: merge when green (auto-merge, squash). Guide: docs/ci.md

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Ports Compile: run the assess clean-install check on a PR only when packaging can change

1 participant