Repository navigation
fix(ci): derive editor browser cache in a step instead of job-level env - #515
Merged
Merged
Conversation
runner.temp is not an available context in jobs.<job_id>.env; GitHub rejected the workflow before any job could be scheduled (runs 44228944733, 44231036412). A runner step now derives PLAYWRIGHT_BROWSERS_PATH from RUNNER_TEMP into GITHUB_ENV, preserving the owned carbonpanel-editor-browsers cache and no-UAC/no-global-install behavior. Adds a workflow-contract test and wires it into toolchain-policy CI.
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.
Problem
.github/workflows/editor-dialog.ymlsetPLAYWRIGHT_BROWSERS_PATH: ${{ runner.temp }}/...in the job-levelenvblock. Per the GitHub Actions context availability table,runneris not available atjobs.<job_id>.env(onlygithub, needs, strategy, matrix, vars, secrets, inputs). Main runs 44228944733 and 44231036412 both failed with "workflow file issue" before any job started.Reproduced locally with actionlint v1.7.7:
Fix
envblock. A first runner step now derives the owned cache fromRUNNER_TEMPand exports it to all subsequent steps viaGITHUB_ENV:echo "PLAYWRIGHT_BROWSERS_PATH=$RUNNER_TEMP/carbonpanel-editor-browsers" >> "$GITHUB_ENV"carbonpanel-editor-browsers, the no-global-install behavior, Windows no-UAC behavior, and does not touchPLAYWRIGHT_BROWSER_GC.scripts/workflow-contract.test.mjs: asserts norunner.context in any job-levelenvblock across all workflows, and that editor-dialog derives the path fromRUNNER_TEMPwith the owned cache name. Wired intotoolchain-policy.yml(already triggers on.github/workflows/**).Releaseknowledge concept with the durable context rule.Verification (head f610dba)
actionlint v1.7.7on both changed workflows: exit 0, no findings.bun test scripts/workflow-contract.test.mjs: 2 pass / 0 fail;node --testsame: 2 pass / 0 fail.Bun.YAML.parseon both workflows: parsed OK (editor-dialog,policyjobs present).go run ./cmd/knowledge-lint -root . -fixthen without-fix: exit 0, 60 concepts, indexes current, 38/38 queries. (Pre-existing unrelated WARN oninvariants/data-safetyreview date; not touched by this change.)release.yml(macos-15-intellabel).Do not merge — independent review and CI required. Please confirm the
editor-dialogjob actually schedules on this head (not just "no checks").