Skip to content

fix: reconcile upgrade hook runners and migration guidance - #2023

Merged
gerchowl merged 4 commits into
devfrom
bugfix/1955-upgrade-hook-migration-followups
Nov 4, 2026
Merged

gerchowl merged 4 commits into
devfrom
bugfix/1955-upgrade-hook-migration-followups

Conversation

@gerchowl

@gerchowl gerchowl commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

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 feature
  • fix -- Bug fix
  • docs -- Documentation only
  • chore -- Maintenance task (deps, config, etc.)
  • refactor -- Code restructuring (no behavior change)
  • test -- Adding or updating tests
  • ci -- CI/CD pipeline changes
  • build -- Build system or dependency changes
  • revert -- Reverts a previous commit
  • style -- Code style (formatting, whitespace)

Modifiers

  • Breaking change (!) -- This change breaks backward compatibility

Changes 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

  • Upgrade hook runner migration follow-ups (#1955)
    • Fold hosted-only and quoted stock runners, skip reusable-workflow calls,
      preserve custom runners with review advice, and restore precise retired-hook instructions.
    • Clarify runner precedence and foreign-run tombstones in migration documentation.

Testing

  • Relevant tests pass locally (focused pytest suite)
  • Manual testing performed (describe below)

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

  • My code follows the project's style guidelines
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have updated the documentation accordingly (edit docs/templates/, then run just docs)
  • I have updated CHANGELOG.md in the [Unreleased] section (and pasted the entry above)
  • My changes generate no new warnings or errors
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published

Additional Notes

Documentation corrections are non-executable; behavior fixes have failing regression evidence. No merge or workflow dispatch.

Refs: #1955

@gerchowl
gerchowl force-pushed the bugfix/1955-upgrade-hook-migration-followups branch from fa8e0e1 to 99e95b8 Compare November 4, 2026 04:40
@gerchowl
gerchowl merged commit a6a700e into dev Nov 4, 2026
16 checks passed
@gerchowl
gerchowl deleted the bugfix/1955-upgrade-hook-migration-followups branch November 4, 2026 04:49
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