fix(ci): Go toolchain steps skip even when .go files are changed #358
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
thwap/steeper#358
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Bug
The "skip Go tooling when no .go files changed" optimization (issue #334) has a false-negative: Go steps are skipped even on PRs that do modify
.gofiles.Evidence
PR #355 modifies
.gofiles, but its action run 142 skippedgo vet,go test, andgolangci-lintentirely.Cause
Likely one of:
changed-filesstep doesn't match the actual file paths (e.g.,**/*.govs repo layout, orgo.mod/go.sumexcluded)changed-filesaction compares against wrong base ref (e.g., comparing PR head against itself instead of target branch)any_changedisfalsewhen it should betrueFix
.forgejo/workflows/changed-filesaction output directly with a debug stepVerification
.gofile — Go steps should run.mdfile — Go steps should skipactions run skip go tests even if go files have changedto fix(ci): Go toolchain steps skip even when .go files are changedIssue not resolved.
this step, somehow was in success state. That definitely, should not be.