Skip to content

Restore errormessage CI coverage - #54355

Merged
pelikhan merged 8 commits into
mainfrom
copilot/fix-error-message-lint-status
Aug 20, 2026
Merged

Restore errormessage CI coverage#54355
pelikhan merged 8 commits into
mainfrom
copilot/fix-error-message-lint-status

Conversation

Copilot AI commented Aug 20, 2026

Copy link
Copy Markdown
Contributor

errormessage was registered and remediated, but its only dedicated CI workflow has been manually disabled since May. This left new Go error-message violations without a live CI signal.

  • Active CI coverage

    • Adds an errormessage changed-file gate to the active CGO workflow.
    • Uses PR base...HEAD diffs and push before/after tree diffs to scope checks to changed .go files.
  • Standalone workflow correctness

    • Updates error-message-lint.yml to explicitly run only the errormessage analyzer.
/tmp/gh-aw-linters -errormessage -errormessage.changed-files="$CHANGED_GO_FILES" ./...

Copilot AI and others added 7 commits August 20, 2026 21:26
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
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 CI gate status for error-message-lint Restore errormessage CI coverage Aug 20, 2026
Copilot AI requested a review from pelikhan August 20, 2026 21:35
@pelikhan
pelikhan marked this pull request as ready for review August 20, 2026 21:35
Copilot AI balanced review requested due to automatic review settings August 20, 2026 21:35
@pelikhan
pelikhan merged commit f2b47d4 into main Aug 20, 2026
@pelikhan
pelikhan deleted the copilot/fix-error-message-lint-status branch August 20, 2026 21:35

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.

Pull request overview

Restores active CI enforcement for the errormessage analyzer.

Changes:

  • Enables explicit errormessage analysis in the standalone workflow.
  • Adds changed-file linting for pull requests and pushes to CGO CI.
Show a summary per file
File Description
.github/workflows/error-message-lint.yml Explicitly enables the analyzer.
.github/workflows/cgo.yml Adds changed-file scope and lint gate.

Review details

  • Files reviewed: 2/2 changed files
  • Comments generated: 1
  • Review effort level: Balanced

Comment thread .github/workflows/cgo.yml
Comment on lines +1390 to +1398
elif [ "$EVENT_NAME" = "push" ] && [ -n "$BEFORE_SHA" ] && [ "$BEFORE_SHA" != "0000000000000000000000000000000000000000" ]; then
if git rev-parse --verify "$BEFORE_SHA^{commit}" >/dev/null 2>&1; then
# Push events compare the before and after commit trees directly;
# PR events use base...HEAD above to match GitHub's pull request diff.
files=$(git diff --name-only "$BEFORE_SHA" HEAD -- '*.go' | tr '\n' ',' | sed 's/,$//')
else
echo "Before SHA $BEFORE_SHA not found, skipping push diff"
fi
fi
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This pull request is included in a new release.

Release: v0.87.2

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.

errormessage: only CI gate (error-message-lint.yml) disabled since 2026-05-20, despite completed remediation effort

3 participants