Repository navigation
ci(#6672): run the assess clean-install check on a PR only when packaging can change - #6673
Merged
Merged
Conversation
…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]>
Contributor
Contributor
|
No description provided. |
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. |
Contributor
|
No description provided. |
Signed-off-by: Joe Esquibel <[email protected]>
Contributor
|
CI shepherd: the head of this PR (76205ab) is not the one a maintainer labelled |
Contributor
|
No description provided. |
Contributor
|
No description provided. |
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.
Closes #6672.
Why
Ports Compile (
ports-compile.yml, not a required check) runsscripts/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 installedgitgalaxy assesson a planted estate and the six burned estates. Measured 2026-10-25:publish-assess-check.ymlruns 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 APIstatus. It runs when a change can break the install:pyproject.toml,MANIFEST.in, the script, the planner, the workflow,tests/cobol_mainframe/corpora.jsongitgalaxy/cli.py,gitgalaxy/tools/readiness/**gitgalaxy/(Markdown excepted)gitgalaxy/that a[tool.setuptools.package-data]glob ships.pyundergitgalaxy/, unshipped data (language_addition_costs.jsonl), Markdown, anything outsidegitgalaxy/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: readto 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 changedpyproject.toml. That's ~3.1 slot-minutes saved on each of the other 27, about 84 per 80 PRs.Verification
package-dataglob 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.run=trueand 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