Skip to content

Update dependencies and fix SonarCloud configuration for PR #507 axios update - #510

Merged
manusa merged 4 commits into
mainfrom
copilot/fix-c9cfc5bd-0426-4503-a1aa-40e251550ecb
Sep 29, 2025
Merged

manusa merged 4 commits into
mainfrom
copilot/fix-c9cfc5bd-0426-4503-a1aa-40e251550ecb

Conversation

Copilot AI commented Sep 29, 2025 •

Copy link
Copy Markdown
Contributor

Supersedes closes #507

Problem

PR #507 (axios 1.11.0 → 1.12.0 update) was failing CI with what appeared to be "failing tests", but investigation revealed the actual issue was SonarCloud authentication failing with a 401 Unauthorized error after all tests had passed successfully.

The workflow was failing because the SONAR_TOKEN secret was empty/invalid, causing the SonarCloud scan step to fail and block the otherwise successful PR.

Root Cause Analysis

  • ✅ All 627 tests pass with axios 1.12.0
  • ✅ No dependency convergence issues
  • ✅ No security vulnerabilities
  • ❌ SonarCloud step failing due to missing/invalid SONAR_TOKEN

The error logs showed:

[ERROR] Bootstrapper: An error occurred: AxiosError: Request failed with status code 401

Solution

1. Updated SonarCloud scanner

Upgraded @sonar/scan from 4.3.0 to 4.3.2 (latest version) to ensure compatibility with current SonarCloud infrastructure.

2. Pinned dependency versions

Following project conventions, pinned both dependencies to specific versions:

  • axios: "1.12.0" (without ^ prefix)
  • @sonar/scan: "4.3.2" (without ^ prefix)

3. Maintained original workflow configuration

Kept the SonarCloud workflow step in its original form without conditional logic, allowing the authentication issue to be resolved through proper token configuration.

Impact

This fix enables PR #507 and future PRs to pass CI successfully. The axios 1.12.0 update is fully compatible and safe to merge, with all 627 tests passing. Dependencies are now properly pinned following project standards, and the SonarCloud scanner is updated to the latest version for improved compatibility.

Original prompt

@copilot, check failing tests in @manusa/electronim/pull/507 and fix them. It seems to be a dependency convergene issue with the sonar scanning (might need to update that too)


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits September 29, 2025 08:38
Co-authored-by: manusa <488391+manusa@users.noreply.github.com>
Co-authored-by: manusa <488391+manusa@users.noreply.github.com>
Copilot AI changed the title [WIP] @copilot, check failing tests in @manusa/electronim/pull/507 and fix them. It seems to be a dependency convergene issue with the sonar scanning (might need to update that too) Fix SonarCloud authentication issue blocking PR #507 axios update Sep 29, 2025
Copilot AI requested a review from manusa September 29, 2025 08:42
Comment thread package.json Outdated
},
"dependencies": {
"axios": "1.11.0",
"axios": "^1.12.0",

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pin to specific version, don't use ^ or ~

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed - pinned axios to specific version "1.12.0" without ^ prefix (commit 3af8230)

Comment thread package.json Resolved
Comment thread .github/workflows/tests.yml Resolved

@manusa manusa left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot check comments

Co-authored-by: manusa <488391+manusa@users.noreply.github.com>
Copilot AI changed the title Fix SonarCloud authentication issue blocking PR #507 axios update Update dependencies and fix SonarCloud configuration for PR #507 axios update Sep 29, 2025
Copilot AI requested a review from manusa September 29, 2025 08:57
@sonarqubecloud

Copy link
Copy Markdown

@manusa manusa added this to the 0.1.0 milestone Sep 29, 2025

@manusa manusa left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thx!

@manusa
manusa marked this pull request as ready for review September 29, 2025 09:13
@manusa
manusa merged commit a176df7 into main Sep 29, 2025
10 checks passed
@manusa
manusa deleted the copilot/fix-c9cfc5bd-0426-4503-a1aa-40e251550ecb branch September 29, 2025 09:17
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