Repository navigation
fix: reconcile upgrade hook runners and migration guidance - #2023
Merged
Merged
Conversation
gerchowl
force-pushed
the
bugfix/1955-upgrade-hook-migration-followups
branch
from
November 4, 2026 04:40
fa8e0e1 to
99e95b8
Compare
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.
Description
Hosted-only consumers now fold stock seeded hook runners without repeated pending notices. Quoted stock values fold, reusable-workflow calls need no runner migration, and custom runners remain preserved with review advice.
Type of Change
feat-- New featurefix-- Bug fixdocs-- Documentation onlychore-- Maintenance task (deps, config, etc.)refactor-- Code restructuring (no behavior change)test-- Adding or updating testsci-- CI/CD pipeline changesbuild-- Build system or dependency changesrevert-- Reverts a previous commitstyle-- Code style (formatting, whitespace)Modifiers
!) -- This change breaks backward compatibilityChanges Made
Default unset SMALL safely under
set -u; retain the legacy variable only while jobs still rely on it.Keep the seed changelog unchanged; retain the devkit changelog and devcontainer mirror.
Keep the legacy-variable guard when SMALL is missing or invalid; preserve local-install behavior.
Normalise scalar quoting and recognise job-level reusable workflow calls.
Avoid asking consumers to set an already valid SMALL variable.
Restore the precise pre-commit drift and reconciliation headings.
Clarify migration precedence, foreign-run tombstones and downstream release wording.
Changelog Entry
Fixed
preserve custom runners with review advice, and restore precise retired-hook instructions.
Testing
Manual Testing Details
Additional RED:
uv run --with pytest-xdist pytest tests/test_seeded_hook_runner_migration.py -k 'small_unset or valid_small_and_custom or step_uses' -n 4 --basetemp=$HOME/.cache/devkit-pytest/1955-r2-red— 2 failed, 1 passed; exit 1. Tests committed before implementation.M3b: remove only the job-property indentation check on
uses:;uv run pytest tests/test_seeded_hook_runner_migration.py -k step_uses --basetemp=$HOME/.cache/devkit-pytest/1955-r2-m3b— 1 failed; exit 1. Source restored immediately.Final GREEN:
uv run --with pytest-xdist pytest tests/test_seeded_hook_runner_migration.py tests/test_workflow_devkit_upgrade.py -n 4 --basetemp=$HOME/.cache/devkit-pytest/1955-r2-green— 72 passed; exit 0.RED:
uv run --with pytest-xdist pytest tests/test_seeded_hook_runner_migration.py -k "hosted_only or quoted_stock or reusable_workflow or valid_small or retired_precommit" -n 4 --basetemp=$HOME/.cache/devkit-pytest/1955-red— 8 failed, exit 1. Failing tests committed first.GREEN:
uv run --with pytest-xdist pytest tests/test_seeded_hook_runner_migration.py tests/test_workflow_devkit_upgrade.py -n 4 --basetemp=$HOME/.cache/devkit-pytest/1955-final— 70 passed, exit 0.Real scaffold execution verifies file contents and migration messages; existing tests cover historical stock values, local context, custom jobs, byte preservation and both PR-body builders.
Commit hooks run inside
nix develop. CI covers the remaining suites.Checklist
docs/templates/, then runjust docs)CHANGELOG.mdin the[Unreleased]section (and pasted the entry above)Additional Notes
Documentation corrections are non-executable; behavior fixes have failing regression evidence. No merge or workflow dispatch.
Refs: #1955