Skip to content

ci: recompile workflows and fix compiler/test regressions#32274

Merged
pelikhan merged 1 commit into
mainfrom
copilot/build-recompile-workflows
May 15, 2026
Merged

ci: recompile workflows and fix compiler/test regressions#32274
pelikhan merged 1 commit into
mainfrom
copilot/build-recompile-workflows

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 15, 2026

Recompiles linter-miner.lock.yml against the current compiler and bumps several infrastructure versions. Also fixes two bugs and updates golden files to match the new output.

Changes

Compiler fix — custom job run: step expression sanitization

  • extractPinnedJobSteps in compiler_jobs.go was not calling sanitizeRunStepExpressions before YAML-serializing pinned steps, causing expressions like ${{ needs.producer.outputs.value }} to pass through raw in custom job run: steps. Now sanitized and warnings logged.

Recompiled workflow (linter-miner.lock.yml)

  • gh-aw-mcpg: v0.3.6v0.3.9
  • gh-aw-firewall sidecar images: 0.25.410.25.46
  • GH_AW_INFO_VERSION / AGENT_VERSION: 1.0.401.0.43; dropped GH_AW_INFO_CLI_VERSION
  • setup action: github/gh-aw-actions/setup@v0.72.1 → inline ./actions/setup (now checked out via sparse checkout, removes external setup action pin)
  • check_version_updates step removed (no longer emitted by compiler)
  • AWF config: enableTokenSteering: true added to apiProxy
  • Context env vars: flat GH_AW_GITHUB_EVENT_* vars replaced with hashed GH_AW_EXPR_* vars supporting aw_context dispatch payload fallback for issue/PR/discussion/comment routing

Golden file updates

  • Regenerated basic-copilot, smoke-copilot, playwright-cli-mode, and with-imports golden fixtures to reflect mcpg v0.3.9 and enableTokenSteering in the AWF config blob

Minor cleanup

  • mcp_logs_upload_test.go: simplified strings.Index(...) == -1 to !strings.Contains(...) (linter)
  • update_pull_request.cjs: fixed JSDoc cast parenthesization for unknown type narrowing (TS error)

- Fix stringscut lint: simplify strings.Index to strings.Contains in mcp_logs_upload_test.go
- Fix TypeScript type error in update_pull_request.cjs (JSDoc cast parentheses)
- Fix compiler regression: sanitize run: expressions in custom job steps via extractPinnedJobSteps
- Update wasm golden files for mcpg v0.3.6→v0.3.9 and enableTokenSteering changes
- Auto-format create_pull_request.cjs via prettier
- Update linter-miner.lock.yml (pre-existing recompile diff)

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title ci: fix linting, test failures, and update golden files ci: recompile workflows and fix compiler/test regressions May 15, 2026
Copilot AI requested a review from pelikhan May 15, 2026 03:38
@pelikhan pelikhan marked this pull request as ready for review May 15, 2026 03:52
Copilot AI review requested due to automatic review settings May 15, 2026 03:52
@pelikhan pelikhan merged commit e8a4698 into main May 15, 2026
@pelikhan pelikhan deleted the copilot/build-recompile-workflows branch May 15, 2026 03:52
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR recompiles the linter-miner workflow against newer infrastructure and updates compiler/runtime fixtures, while also adjusting a run-step sanitization path and small JS/test cleanups.

Changes:

  • Updates generated workflow and golden fixtures for newer mcpg/AWF/Copilot infrastructure output.
  • Adds run-step expression sanitization for pinned custom job steps.
  • Applies minor JS formatting/type-check and Go test cleanup changes.
Show a summary per file
File Description
.github/workflows/linter-miner.lock.yml Regenerated workflow with updated setup flow, versions, env expressions, AWF config, and runtime behavior.
pkg/workflow/compiler_jobs.go Adds sanitization before serializing pinned custom job steps.
pkg/workflow/mcp_logs_upload_test.go Simplifies string existence check.
actions/setup/js/update_pull_request.cjs Adjusts JSDoc cast formatting and return formatting.
actions/setup/js/create_pull_request.cjs Reformats a warning string expression.
pkg/workflow/testdata/TestWasmGolden_CompileFixtures/basic-copilot.golden Updates golden output for mcpg version and AWF token steering config.
pkg/workflow/testdata/TestWasmGolden_CompileFixtures/smoke-copilot.golden Updates golden output for mcpg version and AWF token steering config.
pkg/workflow/testdata/TestWasmGolden_CompileFixtures/playwright-cli-mode.golden Updates golden output for mcpg version and AWF token steering config.
pkg/workflow/testdata/TestWasmGolden_CompileFixtures/with-imports.golden Updates golden output for mcpg version and AWF token steering config.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 9/9 changed files
  • Comments generated: 2

Comment on lines +989 to +993
sanitizedMap, warnings, _ := sanitizeRunStepExpressions(finalStepMap)
for _, w := range warnings {
compilerJobsLog.Printf("sanitized run: expression in job '%s' step: %s", jobName, w)
}
stepYAML, err := ConvertStepToYAML(sanitizedMap)
let status;
if (typeof error === "object" && error !== null && "status" in error) {
status = /** @type {{status?: number}} */ (error).status;
status = /** @type {{status?: number}} */ error.status;
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.

3 participants