Skip to content

fix(upgrade): close the adoption issue a no-diff run created - #1350

Merged
c-vigo merged 2 commits into
devfrom
bugfix/1347-close-stranded-adoption-issue
Aug 7, 2026
Merged

c-vigo merged 2 commits into
devfrom
bugfix/1347-close-stranded-adoption-issue

Conversation

@c-vigo

@c-vigo c-vigo commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Summary

A workflow_dispatch of the scaffolded devkit-upgrade.yml against an
already-current consumer stranded the adoption issue it had just opened: the
issue is necessarily created before install.sh --force runs (the branch
name embeds its number, the in-shell commit needs the Refs: line), so a
zero-diff run correctly skipped publish + PR and exited green — with an open
issue no PR would ever close.

Live occurrence: exo-pet/exo-fleet#270, run 30986580730.

Change

  • Find or create the adoption issue now exposes a created step output
    (true on the create branch, false on the reuse branch).
  • A new final step, gated on proceed == 'true' && changed != 'true':
    • created this run → gh issue close with a "no diff at <version>"
      comment and --reason "not planned";
    • reused (mid-train rc1 → rc2 → final, where an interim bump can
      legitimately be a no-op) → comment only, issue left open.

The created output is routed through env: like every other value the
workflow's run: blocks consume (zizmor template-injection rule).

Testing

  • New test_no_diff_dispatch_cleans_up_the_issue_it_created in
    tests/test_workflow_devkit_upgrade.py (RED → GREEN, committed separately).
  • uv run pytest tests/test_workflow_devkit_upgrade.py tests/test_scaffold_drift.py tests/test_scaffold_lint.py — 68 passed.
  • just precommit (full suite, all files) green locally, incl. actionlint and
    yamllint on the changed template.

Closes #1347

@c-vigo
c-vigo merged commit fb7af79 into dev Aug 7, 2026
13 checks passed
@c-vigo
c-vigo deleted the bugfix/1347-close-stranded-adoption-issue branch August 7, 2026 08:46
c-vigo added a commit that referenced this pull request Aug 7, 2026
Resolves the CHANGELOG conflict created when #1347 (PR #1350) landed on dev:
both entries belong side by side in the Unreleased Fixed section.

Refs: #1348
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