Skip to content

Cover action-pin fallbacks in no-emit and dry-run compilation - #74892

Merged
pelikhan merged 3 commits into
mainfrom
copilot/fix-gh-aw-workflows-compilation
Nov 4, 2026
Merged

pelikhan merged 3 commits into
mainfrom
copilot/fix-gh-aw-workflows-compilation

Conversation

Copilot AI commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

v0.93.5 rejected compiler-generated action tag fallbacks with CTR-002 errors, blocking existing workflows and the documented triage example when SHA resolution failed. The production fix is already present; this change extends its regression coverage.

  • Compilation modes: Cover no-emit and dry-run compilation in both action and release modes.
  • Expected behavior: Assert generated fallbacks remain warnings and no-emit compilation writes no lock file.

Copilot AI linked an issue Nov 4, 2026 that may be closed by this pull request
Copilot AI and others added 2 commits November 4, 2026 15:55
…tion

Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix compilation issues with gh aw workflows in v0.93.5 Cover action-pin fallbacks in no-emit and dry-run compilation Nov 4, 2026
Copilot AI requested a review from pelikhan November 4, 2026 16:18
@pelikhan
pelikhan marked this pull request as ready for review November 4, 2026 16:36
Copilot AI auto review requested due to automatic review settings November 4, 2026 16:36
@pelikhan
pelikhan merged commit c0d9bde into main Nov 4, 2026
37 checks passed
@pelikhan
pelikhan deleted the copilot/fix-gh-aw-workflows-compilation branch November 4, 2026 16:36
@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

✅ Design Decision Gate 🏗️ completed the design decision gate check. See the comment below for the result and any generated ADR draft.

Design Decision Gate 🏗️

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated from Design Decision Gate 🏗️ · routed: gpt56 max · ~1 AIC · ⌖ ~2 AIC · ⊞ 7.7K · ◷

🏗️ ADR gate enforced by Design Decision Gate 🏗️

@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

✅ Ponytail Reviewer completed successfully!

Ponytail Reviewer

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated from Ponytail Reviewer · routed: gpt56 max · ~3 AIC · ⌖ ~1 AIC · ⊞ 118 · ◷

Generated by Ponytail Reviewer for #74892

@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

✅ PR Code Quality Reviewer completed the code quality review.

🔎 Code quality review by PR Code Quality Reviewer

@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

🧠 Matt Pocock Skills Reviewer is reviewing this pull request using Matt Pocock's engineering skills...

@github-actions

github-actions Bot commented Nov 4, 2026 •

Copy link
Copy Markdown
Contributor

✅ Test Quality Sentinel completed test quality analysis.

Test Quality Sentinel

Outcome: reported_no_action

The agent completed and reported no action. A no-op output alone does not verify that all required work was completed or that publication was possible.

Agent messages are omitted from this comment. The category uses structured run status, not interpretation of agent prose.

Generated from Test Quality Sentinel · routed: gpt56 max · ~1 AIC · ⌖ ~1 AIC · ⊞ 6.3K · ◷

🧪 Test quality analysis by Test Quality Sentinel

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟡 Changes recommended

The test leaves noEmit enabled and relies on a cumulative warning count, so it does not independently verify dry-run compilation or the warning produced by each case.

2 open issues
What changed in this PR

This PR expands regression coverage for compiler-generated action-pin fallbacks in no-emit and dry-run compilation, while refreshing generated workflow lock files.

Changes:

  • Extends fallback coverage across action/release modes and no-emit/dry-run scenarios.
  • Verifies unresolved generated references remain warnings and no-emit compilation does not write lock files.
  • Updates pinned astral-sh/setup-uv references from v10.3.2 to v10.3.3.

Review findings:

  • Moderate, 3 votes: The dry-run case is only exercised with noEmit=true, so dry-run-only compilation is not covered; separate cases and conditional lock-file assertions are needed.
  • Moderate, 4 votes: The cumulative warning count can make the assertions pass without validating warnings from the current compilation; reset the count or assert that it increases per case.
File Description
pkg/​workflow/​compiler_lint_test.go Adds regression coverage for generated action fallback behavior.
.github/​workflows/​weekly-issue-summary.lock.yml Updates the pinned setup-uv action to v10.3.3.
.github/​workflows/​stale-repo-identifier.lock.yml Updates the pinned setup-uv action to v10.3.3.
.github/​workflows/​python-data-charts.lock.yml Updates the pinned setup-uv action to v10.3.3.
.github/​workflows/​prompt-clustering-analysis.lock.yml Updates the pinned setup-uv action to v10.3.3.
.github/​workflows/​portfolio-analyst.lock.yml Updates the pinned setup-uv action to v10.3.3.
.github/​workflows/​org-health-report.lock.yml Updates the pinned setup-uv action to v10.3.3.
.github/​workflows/​github-mcp-structural-analysis.lock.yml Updates the pinned setup-uv action to v10.3.3.
.github/​workflows/​detection-analysis-report.lock.yml Updates the pinned setup-uv action to v10.3.3.
.github/​workflows/​daily-spending-forecast.lock.yml Updates the pinned setup-uv action to v10.3.3.
.github/​workflows/​daily-security-observability.lock.yml Updates the pinned setup-uv action to v10.3.3.
.github/​workflows/​daily-repo-chronicle.lock.yml Updates the pinned setup-uv action to v10.3.3.
.github/​workflows/​daily-performance-summary.lock.yml Updates the pinned setup-uv action to v10.3.3.
.github/​workflows/​daily-news.lock.yml Updates the pinned setup-uv action to v10.3.3.
.github/​workflows/​daily-issues-report.lock.yml Updates the pinned setup-uv action to v10.3.3.
.github/​workflows/​daily-experiment-report.lock.yml Updates the pinned setup-uv action to v10.3.3.
.github/​workflows/​daily-code-metrics.lock.yml Updates the pinned setup-uv action to v10.3.3.
.github/​workflows/​daily-agentrx-trace-optimizer.lock.yml Updates the pinned setup-uv action to v10.3.3.
.github/​workflows/​copilot-session-insights.lock.yml Updates the pinned setup-uv action to v10.3.3.
.github/​workflows/​copilot-pr-nlp-analysis.lock.yml Updates the pinned setup-uv action to v10.3.3.
.github/​workflows/​audit-workflows.lock.yml Updates the pinned setup-uv action to v10.3.3.
.github/​workflows/​api-consumption-report.lock.yml Updates the pinned setup-uv action to v10.3.3.

Review effort: Lite (auto)

Comment on lines +440 to +441
require.NoError(t, compiler.CompileWorkflow(path), "no-emit and dry-run compilation must preserve generated references")
require.Positive(t, compiler.GetWarningCount(), "generated fallbacks must still produce warnings")
Comment on lines +437 to +444
compiler.SetNoEmit(true)
for _, dryRun := range []bool{false, true} {
compiler.SetDryRun(dryRun)
require.NoError(t, compiler.CompileWorkflow(path), "no-emit and dry-run compilation must preserve generated references")
require.Positive(t, compiler.GetWarningCount(), "generated fallbacks must still produce warnings")
_, err := os.Stat(lockPath)
require.True(t, os.IsNotExist(err), "no-emit compilation must not write a lock file")
}
@github-actions

github-actions Bot commented Nov 4, 2026

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v1.2.0

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.

Cannot compile gh aw workflows with v0.93.5

3 participants