Skip to content

fix(generate): disable pyflakes in actionlint test for hermeticity - #341

Merged
joshua-temple merged 1 commit into
mainfrom
fix/normalize-workflow-path-flake
Jun 24, 2026
Merged

joshua-temple merged 1 commit into
mainfrom
fix/normalize-workflow-path-flake

Conversation

@joshua-temple

Copy link
Copy Markdown
Collaborator

Problem

TestNormalizeWorkflowPath_ActionlintClean left actionlint's -pyflakes at its default (enabled). In sandboxes where pyflakes is on PATH, actionlint picked it up and emitted extra findings, flipping the test pass/fail on ambient tooling. A pure environment-dependency flake.

Fix

Pass -pyflakes= (mirroring the existing -shellcheck=) plus -no-color for stable output. The native structural and reference-validity checks are unchanged; the assertion is not weakened. go test -run TestNormalizeWorkflowPath -count=5 passes (35/35). Closes #337.

TestNormalizeWorkflowPath_ActionlintClean left actionlint's -pyflakes at its default (enabled), so in sandboxes where pyflakes is on PATH it emitted extra findings and flipped the test pass/fail on ambient tooling. Pass -pyflakes= (mirroring the existing -shellcheck=) plus -no-color; the native structural and reference checks are unchanged. Closes #337.

Signed-off-by: Joshua Temple <joshua.temple@stablekernel.com>
@joshua-temple
joshua-temple merged commit 7f2cbee into main Jun 24, 2026
13 checks passed
@joshua-temple
joshua-temple deleted the fix/normalize-workflow-path-flake branch June 24, 2026 22:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

flake(test): stabilize TestNormalizeWorkflowPath_ActionlintClean in sandboxes

1 participant