Repository navigation
fix: bind the smoke listener deploy job to the commit-App environment - #1794
Merged
Merged
Conversation
4 tasks
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.
Summary
render_commit_app_environment()(assets/init-workspace.sh, #1710) binds afixed list of token-minting jobs to
DEVKIT_COMMIT_APP_ENVIRONMENT. Thesmoke-test listener
assets/smoke-test/.github/workflows/repository-dispatch.ymlwas not on that list, yet its
deployjob mints the commit App token(
secrets.COMMIT_APP_CLIENT_ID/secrets.COMMIT_APP_PRIVATE_KEY). Harmlesswhile org/repo copies of the
COMMIT_APP_*pair still exist, but thedocumented end state (
docs/MIGRATION.md, "move the secrets ... then removethe organization/repository copies") would have left the listener's
deploywith no credentials, failing the first step of the next release train's smoke
gate.
"repository-dispatch.yml:deploy"is added to the render list. The function'sexisting
[[ -f ]]/ job-presence guard means this is a no-op on everynon-
--smoke-testscaffold — the file only ships on the smoke-test overlay.Audit (acceptance criterion: no other unbound COMMIT_APP-minting job)
grep -rn "secrets\.COMMIT_APP_" assets/across every shipped workflow,mapped to the job that owns each
create-github-app-tokenstep:sync-issues.ymlsyncsync-main-to-dev.ymlsyncprepare-release.ymlprepare,rollbackprepare-hotfix.ymlprepare,rollbackrelease.ymlrollbackrelease-core.ymlfinalizepromote-release.ymlreset-sync-mirror(mirror-mode render)repository-dispatch.ymldeployrepository-dispatch.ymlhas several othercreate-github-app-tokensteps,but all of them mint
RELEASE_APP_*, notCOMMIT_APP_*— onlydeploywasin scope. No other shipped workflow mints
COMMIT_APP_*outside this list.Changes
assets/init-workspace.sh: add"repository-dispatch.yml:deploy"torender_commit_app_environment's pair list.tests/workflow_scaffold.py:scaffold()gains asmoke_testkwarg(
--smoke-test) so render tests can exercise the overlay.tests/test_commit_app_environment.py: two new tests —test_smoke_set_binds_the_listener_deploy_job(RED before the fix, GREENafter) and
test_smoke_unset_leaves_the_listener_unbound(byte-identicalwhen the knob is empty). The non-smoke-scaffold case is already covered by
tests/test_integration.py::TestSmokeRepo::test_default_init_does_not_deploy_repository_dispatch,so it isn't duplicated.
docs/MIGRATION.md: "Which jobs get the key" list now namesrepository-dispatch.yml(deploy), scoped to--smoke-testscaffolds.CHANGELOG.md(## Unreleased→### Fixed), mirrored toassets/workspace/.devcontainer/CHANGELOG.mdby thesync-manifestpre-commit hook.
Test evidence
uv run pytest tests/test_commit_app_environment.py -v— 50 passed(confirmed RED on the new test before the fix:
AssertionError, missing('repository-dispatch.yml', 'deploy')from the bound-jobs set).uv run pytest tests/test_vig_os_manifest.py -v— 31 passed.bats --filter "commit-App" tests/bats/init-workspace.bats— bothactionlint-over-rendered-workflow tests pass unchanged (they don't scaffold
with
--smoke-test, so the mirror-mode "9 token-minting job(s)" count isuntouched).
--force --smoke-testandDEVKIT_COMMIT_APP_ENVIRONMENT=commit-app;deploycarriesenvironment: 'commit-app'andactionlintpasses over the rendered tree.just precommit(prek run --all-files) — green, working tree cleanafterward.
Refs: #1793