Skip to content

fix: sync watermark, stacked-PR CI, prepare-time bundle, App-ID fallback, tmux detach - #1792

Merged
c-vigo merged 17 commits into
devfrom
bugfix/1757-scaffold-workflow-fixes
Sep 30, 2026
Merged

c-vigo merged 17 commits into
devfrom
bugfix/1757-scaffold-workflow-fixes

Conversation

@c-vigo

@c-vigo c-vigo commented Sep 30, 2026

Copy link
Copy Markdown
Contributor

Description

Five triaged fixes in one PR, plus the publish-lanes ADR status change. Each issue has its own failing-test commit followed by its fix commit, so review can go commit by commit.

Issue What changes
#1757 sync-issues.yml no longer saves the incremental watermark after a failed push
#1759 ci.yml/codeql.yml run on PRs to any base; codeql.yml gets a concurrency group
#1745 The release train rebuilds a committed bundle at prepare time, so it no longer deadlocks on its own Dist Check
#1366 devkit-upgrade.yml drops the numeric DEVKIT_UPGRADE_APP_ID fallback
#1753 vigos.multiplexer: detach-on-destroy no-detached
#1769 docs/rfcs/ADR-publish-lanes.md status proposed → accepted (#1785 merged)

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

#1757, sync watermark. In both copies of sync-issues.yml (scaffold and devkit's own), Save sync state changes from if: always() to steps.sync.outcome == 'success' && steps.commit.outcome != 'failure'.

  • A failed push keeps the old cutoff, so the next run retries the same delta.
  • A skipped commit (nothing changed) still saves.
  • The 14-day look-back on a cache miss already covers the endless-rebuild loop that always() was added to break.

#1759, stacked PRs.

  • pull_request.branches is now '**' in both copies of ci.yml and codeql.yml.
  • codeql.yml gets concurrency: codeql-${{ github.workflow }}-${{ github.ref }}, with cancel-in-progress: ${{ github.event_name != 'push' }} so post-merge analysis on main still reports every merge.
  • The trunk render's - dev filter deletion and the trigger-header prose rewrites for these two files are gone. They were dead code once the filter no longer lists dev.

#1745, Dist Check deadlock (the issue's option (a)).

  • The detect-and-build logic moves out of release-core.yml into a new managed composite action, .github/actions/build-bundle. It outputs has_bundle and dist_paths and keeps the release-core finalize commits the whole dist/ (force-includes gitignored tsc emit), re-tracking dist/src + *.tsbuildinfo every release #1159 non-ignored-files rule.
  • prepare-release.yml calls it before the CHANGELOG freeze, and the rebuilt dist/ rides the freeze commit. The release PR therefore opens with a fresh bundle.
  • release-core.yml calls the same action at finalize. The rebuild is idempotent, and the tag stays authoritative.
  • Rollback still reverts only CHANGELOG.md; a fresher bundle on the integration branch is harmless.
  • The action is added to the release feature group, so a release-less repo does not receive it.

#1366, App-ID fallback.

  • devkit-upgrade.yml reads only DEVKIT_UPGRADE_APP_CLIENT_ID. The fallback expression, the legacy branch of the preflight check and the deprecation warning are gone.
  • docs/runbooks/devkit-upgrade-app.md is updated to match.
  • The issue's preconditions were checked live on 2026-09-30:
    • The Client-ID secret exists in vig-os (selected repos), exo-pet (all private repos) and exoma-ch (all repos).
    • Every vig-os repo that can read the legacy secret can also read the Client-ID secret.
    • exo-pet already has no legacy secret.
  • Commit type is feat, not feat!: by the issue's own reasoning, the set of consumers this breaks is empty.

#1753, multiplexer. detach-on-destroy off → no-detached, with the comment updated.

Changelog Entry

Removed

  • Numeric DEVKIT_UPGRADE_APP_ID fallback in devkit-upgrade.yml
    (#1366)

Fixed

  • Sync watermark advanced past a failed push (#1757)
  • Stacked PRs ran no CI or CodeQL (#1759)
  • Release train deadlocked on its own Dist Check (#1745)
  • vigos.multiplexer re-attached a window to an on-screen session (#1753)

(The sub-bullets are in CHANGELOG.md.)

Testing

  • Tests pass locally (just test)
  • Manual testing performed (describe below)

Manual Testing Details

  • uv run pytest --ignore=tests/test_image.py --ignore=tests/test_integration.py: 2343 passed, 1 skipped. The image and integration tests are excluded because they run against the local :dev image, which lags behind the branch.
  • bats -j $(nproc) on every tests/bats/*.bats file except worktree.bats: 617/617 ok. worktree.bats is excluded because it is not safe to run in parallel and deletes sibling worktrees when run locally.
  • prek run --all-files: green.
  • New or updated tests:
    • tests/test_workflow_sync_watermark.py
    • tests/test_ci_concurrency.py (any-base filter and CodeQL concurrency)
    • tests/test_release_prepare_bundle.py
    • tests/test_release_core.py
    • tests/test_workflow_devkit_upgrade.py
    • tests/test_flake_checks.py (multiplexer)
    • init-workspace.bats: the bundle build now lives in the action, and the release group prunes it
  • [BUG] Release train deadlocks on its own Dist Check: the bundle rebuild is final-only and downstream of the candidate's check gate #1745 can only be proven live on a consumer train with a stale bundle, which means the next sync-issues-action release.

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

  • [CHORE] Drop the numeric App-ID fallback and retire *_APP_ID org secrets #1366's last step, deleting the numeric org secrets (DEVKIT_UPGRADE_APP_ID, COMMIT_APP_ID, possibly RELEASE_APP_ID), happens in org-config after consumers adopt this release.
  • Separate gap, not changed here: vig-os/revkit carries devkit-upgrade.yml, but no App secret is scoped to it, so its weekly upgrade cannot mint a token. It needs adding to org-config.

Refs: #1757, #1759, #1745, #1366, #1753, #1769

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