Skip to content

Fix to Classify stderr warning messages as warnings instead of errors in annotations#1335

Open
lmvysakh wants to merge 1 commit into
actions:mainfrom
lmvysakh:annotation_code_fix
Open

Fix to Classify stderr warning messages as warnings instead of errors in annotations#1335
lmvysakh wants to merge 1 commit into
actions:mainfrom
lmvysakh:annotation_code_fix

Conversation

@lmvysakh

Copy link
Copy Markdown

Description:
Code fix to properly address errors and warnings.

  • Stderr from the installation script is unconditionally logged via core.error(), causing red annotations even for informational warnings. This adds a check to route known warning prefixes through core.warning() instead. All other stderr and the exec flow remain unchanged.

Copilot AI review requested due to automatic review settings July 13, 2026 06:20
@lmvysakh lmvysakh requested a review from a team as a code owner July 13, 2026 06:20

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

Routes known stderr warning output from the Python installation scripts to GitHub Actions “warning” annotations (yellow) instead of “error” annotations (red), improving signal quality while keeping the exec flow unchanged.

Changes:

  • Classify stderr messages starting with WARNING: as core.warning(...) instead of core.error(...).
  • Keep all other stderr output logged as errors.
  • Update the compiled dist/setup/index.js output to match the source change.

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/install-python.ts Adds warning-prefix detection for stderr output and routes it through core.warning.
dist/setup/index.js Rebuild output reflecting the same stderr classification logic.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread src/install-python.ts
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.

5 participants