Skip to content

chore: Add logging for debug sonar scaner#1362

Open
Santos92 wants to merge 1 commit into
masterfrom
chore/debug-sonar-failure
Open

chore: Add logging for debug sonar scaner#1362
Santos92 wants to merge 1 commit into
masterfrom
chore/debug-sonar-failure

Conversation

@Santos92

@Santos92 Santos92 commented Jun 4, 2026

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI review requested due to automatic review settings June 4, 2026 13:08

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

This PR enhances the SonarCloud “create project” flow by emitting richer Axios failure diagnostics (HTTP status, request IDs, and response body) to make Sonar scanner failures easier to debug in GitHub Actions logs.

Changes:

  • Added a shared Axios error logger that prints status, request ID headers, and response body when available.
  • Logged and rethrew failures from the “project exists” check so callers receive the original Axios error.
  • Added a Vitest case asserting the new logging behavior for a failed project existence check; updated the bundled dist output accordingly.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated no comments.

File Description
sonar-scanner/src/create-project.js Adds Axios error-detail logging and uses it for project existence-check failures and project creation failures.
sonar-scanner/test/create-project.test.js Adds test coverage to verify detailed logging on project existence-check failure.
sonar-scanner/dist/index.cjs Updates bundled output to include the new logging helpers and behavior.

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

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.

2 participants