[go: up one dir, main page]

Page MenuHomePhabricator

Push notifications CI is failing on the SonarScanner execution step
Closed, ResolvedPublic

Description

INFO: Scanner configuration file: /opt/sonar-scanner/conf/sonar-scanner.properties
INFO: Project root configuration file: /srv/service/sonar-project.properties
INFO: SonarScanner 4.6.0.2311
INFO: Java 17.0.9 Debian (64-bit)
INFO: Linux 5.10.0-30-amd64 amd64
INFO: User cache: /cache/sonar/cache
INFO: Scanner configuration file: /opt/sonar-scanner/conf/sonar-scanner.properties
INFO: Project root configuration file: /srv/service/sonar-project.properties
INFO: Analyzing on SonarCloud
INFO: Default locale: "en", source code encoding: "UTF-8" (analysis is platform dependent)
INFO: Load global settings
INFO: Load global settings (done) | time=293ms
INFO: Server id: 1BD809FA-AWHW8ct9-T_TB3XqouNu
INFO: Loading required plugins
INFO: Load plugins index
INFO: Load plugins index (done) | time=188ms
INFO: Load/download plugins
INFO: Load/download plugins (done) | time=663ms
INFO: Load project settings for component key: 'mediawiki-services-push-notifications'
INFO: Process project properties
INFO: Project key: mediawiki-services-push-notifications
INFO: Base dir: /srv/service
INFO: Working dir: /srv/service/.scannerwork
INFO: Load project branches
INFO: Load project branches (done) | time=144ms
INFO: Check ALM binding of project 'mediawiki-services-push-notifications'
INFO: Detected project binding: NONEXISTENT
INFO: Check ALM binding of project 'mediawiki-services-push-notifications' (done) | time=137ms
INFO: Load project pull requests
INFO: Load project pull requests (done) | time=144ms
INFO: Load branch configuration
INFO: ------------------------------------------------------------------------
INFO: EXECUTION FAILURE
INFO: ------------------------------------------------------------------------
INFO: Total time: 4.893s
INFO: Final Memory: 25M/160M
INFO: ------------------------------------------------------------------------
ERROR: Error during SonarScanner execution
ERROR: Could not find a default branch for project with key 'mediawiki-services-push-notifications'. Make sure project exists.
ERROR: 
ERROR: Re-run SonarScanner using the -X switch to enable full debug logging.

This failure was introduced after this patch:
https://gerrit.wikimedia.org/r/c/mediawiki/services/push-notifications/+/1037480

Event Timeline

Given there were zero patches for a few years maybe the problem is that there might be a missing/stale API key that needs to be replaced.

pwangai changed the task status from Open to In Progress.Jul 15 2024, 10:45 AM
pwangai claimed this task.

Projects that had been dormant for a couple of years were pruned from Sonarcloud and this was among the affected ones. I have recreated the project with the same key. In case of further issues with the repository please feel free to re-open the task.