Skip to content

Make setup action reference tests deterministic - #72155

Merged
pelikhan merged 1 commit into
mainfrom
pelikhan-friendly-memory
Oct 26, 2026
Merged

pelikhan merged 1 commit into
mainfrom
pelikhan-friendly-memory

Conversation

@pelikhan

Copy link
Copy Markdown
Collaborator

Summary

CI and CGO tests started failing once v1.0.0 became a real, resolvable tag. The tests assumed resolution would fail or that release-mode setup references would remain tag-based.

  • Seed the resolver cache with a fixed SHA to verify successful SHA pinning without a live GitHub lookup.
  • Use the existing failing resolver stub to cover tag-based fallback explicitly.
  • Assert that release-mode workflows use the cached SHA-pinned remote action while still omitting local action checkout steps.

Production behavior is unchanged. The separate latest-release alignment failure remains: github/gh-aw reports v0.93.5, while github/gh-aw-actions reports v1.0.0. This PR does not weaken that guard or modify release state.

Validation

  • make build
  • make fmt
  • go test ./pkg/workflow -run '^TestResolveSetupActionReference' -count=1
  • go test -tags=integration ./pkg/workflow -run '^TestLocalActionPermissions' -count=1
  • make agent-report-progress (impacted Go tests, change-scoped lint, and workflow lock-file drift checks)
Seed the successful SHA resolution path and use an explicit failing resolver for fallback coverage. Check the release-mode workflow against a cached SHA pin instead of assuming v1.0.0 cannot resolve.

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@pelikhan
pelikhan marked this pull request as ready for review October 26, 2026 18:21
Copilot AI max review requested due to automatic review settings October 26, 2026 18:22
@pelikhan
pelikhan merged commit 99a4039 into main Oct 26, 2026
71 of 81 checks passed
@pelikhan
pelikhan deleted the pelikhan-friendly-memory branch October 26, 2026 18:22
@github-actions

github-actions Bot commented Oct 26, 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 🏗️ · opus55 · ~12 AIC · ⌖ ~38 AIC · ◇ ~3 AIC · ⊞ 1.9K · ◷

🏗️ ADR gate enforced by Design Decision Gate 🏗️

@github-actions

github-actions Bot commented Oct 26, 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 Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

✅ Test Quality Sentinel completed test quality analysis.

Caution

agentic threat detected
Threat detection flagged this output in warn mode. Manual review is REQUIRED before any follow-up automation.

Details

Potential security threats were detected in the agent output.

Review the workflow run logs for details.

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 · haiku45 · ~20 AIC · ⌖ ~14 AIC · ◇ ~3 AIC · ⊞ 8.8K · ◷

🧪 Test quality analysis by Test Quality Sentinel

@github-actions

github-actions Bot commented Oct 26, 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 · gpt56 · ~5 AIC · ⌖ ~6 AIC · ⊞ 14.8K · ◷

Generated by Ponytail Reviewer for #72155

@github-actions

github-actions Bot commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

🧠 Matt Pocock Skills Reviewer has completed the skills-based review. ✅

🧠 Reviewed using Matt Pocock's skills by Matt Pocock Skills Reviewer

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.

🟢 Approval recommended

The focused test-only changes preserve success, fallback, and checkout coverage with no unresolved blocking issues.

No open issues 🎉

What changed in this PR

Makes setup action reference tests deterministic by removing assumptions about whether v1.0.0 resolves on GitHub. Production behavior is unchanged.

Changes:

  • Seed resolver caches with a fixed SHA to verify successful SHA pinning.
  • Use the failing resolver stub for explicit tag-fallback coverage while preserving release-mode checks that local action checkouts are omitted.
File Description
pkg/​workflow/​local_action_permissions_test.go Assert a cached SHA-pinned remote setup reference in release mode.
pkg/​workflow/​action_reference_test.go Separate deterministic SHA-resolution success and tag-fallback cases.

Review effort: Max

@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v1.0.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

2 participants