Skip to content

chore(ci): Remove deprecated Sonar scan action - #1092

Merged
DiamondJoseph merged 3 commits into
mainfrom
action-refresh
Jun 30, 2025
Merged

DiamondJoseph merged 3 commits into
mainfrom
action-refresh

Conversation

@DiamondJoseph

@DiamondJoseph DiamondJoseph commented Jun 30, 2025 •

Copy link
Copy Markdown
Contributor

Github actions currently warn that the action we are using is deprecated in favour of a "drop-in" replacement. However, the code scanning is not currently being analysed, or its results being used.

@DiamondJoseph
DiamondJoseph requested a review from a team as a code owner June 30, 2025 10:36
@codecov

codecov Bot commented Jun 30, 2025 •

Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 94.44%. Comparing base (3f6fd8c) to head (9747c64).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1092   +/-   ##
=======================================
  Coverage   94.44%   94.44%           
=======================================
  Files          41       41           
  Lines        2537     2537           
=======================================
  Hits         2396     2396           
  Misses        141      141           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@tpoliaw

tpoliaw commented Jun 30, 2025

Copy link
Copy Markdown
Contributor

Unable to resolve action sonarsource/[email protected], unable to find version 5.2.0

I don't think it liked being dropped

Comment thread .github/workflows/sonarcloud.yml Resolved
@DiamondJoseph

Copy link
Copy Markdown
Contributor Author

Unable to resolve action sonarsource/[email protected], unable to find version 5.2.0

I don't think it liked being dropped

🦾 🤖 💢

@DiamondJoseph

Copy link
Copy Markdown
Contributor Author

https://sonarcloud.io/organizations/swift-testing/projects

According to this, the blueapi codequality is being checked under the SWiFT testing namespace, hasn't actually been analysed in 8 months and requires that an org owner binds the project to the namespace, so an alternative is to remove this temporarily until we know what binding requires (:money_with_wings: ?). We're already running the Github CodeQL action, and Sonarqube when it was last run found only 10 issues of ~45 minutes of technical debt.

Of those: 3 are shadowings of the builtin print inside our formatting methods; 2 are methods that are too complex to be easily read :display_compact, run_task; 2 are [now incorrect] exports in __all__ dunders that are not imported to the __init__ file; one is that /worker/state is defined multiple times in rest.py; one is that the status passed into _wait_for_reload is not used before being re-assigned [which is no longer true]; and finally a TODO intask_worker.

I propose making issues to simplify the display_compact and run_task methods which can sit on the back burner until we have time, and for now disabling this action. Thoughts @tpoliaw, @ZohebShaikh?

@ZohebShaikh

ZohebShaikh commented Jun 30, 2025 •

Copy link
Copy Markdown
Contributor

I think creating issues for the appropriate code quality is good, I have not see any use of this action as nothing is openly reported and The code quality issues that you are talking about are issues that you need to find by going through the logs of that action which is not desirable.
So removing this action will have no impact in my opinion.

@tpoliaw

tpoliaw commented Jun 30, 2025

Copy link
Copy Markdown
Contributor

I agree with Zoheb, I didn't know we had sonarqube set up so can't see that we'd miss it.

@tpoliaw tpoliaw 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.

Approved on the assumption the PR title will be updated to match the change

@DiamondJoseph DiamondJoseph changed the title chore(ci): Replace deprecated Sonar scan action chore(ci): Remove deprecated Sonar scan action Jun 30, 2025
@DiamondJoseph
DiamondJoseph merged commit 4f2b413 into main Jun 30, 2025
@DiamondJoseph
DiamondJoseph deleted the action-refresh branch June 30, 2025 14:15
DiamondJoseph added a commit that referenced this pull request Aug 11, 2025
Removes configuration for sonar scanning action that was left by #1092
And tidies the pre-commit action to allow the catalog-info to be checked
for validity in the CI
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.

3 participants