fix: Update SonarQube integration in CI workflows to use pysonar
Some checks failed
LabFusion CI/CD Pipeline / service-adapters (push) Failing after 27s
Docker Build and Push / build-and-push (push) Failing after 41s
Integration Tests / integration-tests (push) Failing after 52s
Integration Tests / performance-tests (push) Has been skipped
LabFusion CI/CD Pipeline / api-gateway (push) Failing after 1m22s
Service Adapters (Python FastAPI) / test (3.1) (push) Failing after 13s
LabFusion CI/CD Pipeline / api-docs (push) Successful in 1m47s
Service Adapters (Python FastAPI) / test (3.11) (push) Failing after 25s
LabFusion CI/CD Pipeline / frontend (push) Failing after 1m52s
LabFusion CI/CD Pipeline / integration-tests (push) Has been skipped
Service Adapters (Python FastAPI) / test (3.12) (push) Failing after 28s
Service Adapters (Python FastAPI) / test (3.9) (push) Failing after 28s
Service Adapters (Python FastAPI) / build (push) Has been skipped
Some checks failed
LabFusion CI/CD Pipeline / service-adapters (push) Failing after 27s
Docker Build and Push / build-and-push (push) Failing after 41s
Integration Tests / integration-tests (push) Failing after 52s
Integration Tests / performance-tests (push) Has been skipped
LabFusion CI/CD Pipeline / api-gateway (push) Failing after 1m22s
Service Adapters (Python FastAPI) / test (3.1) (push) Failing after 13s
LabFusion CI/CD Pipeline / api-docs (push) Successful in 1m47s
Service Adapters (Python FastAPI) / test (3.11) (push) Failing after 25s
LabFusion CI/CD Pipeline / frontend (push) Failing after 1m52s
LabFusion CI/CD Pipeline / integration-tests (push) Has been skipped
Service Adapters (Python FastAPI) / test (3.12) (push) Failing after 28s
Service Adapters (Python FastAPI) / test (3.9) (push) Failing after 28s
Service Adapters (Python FastAPI) / build (push) Has been skipped
### Summary of Changes - Replaced `sonar-scanner` with `pysonar` for SonarQube analysis in CI workflows for Service Adapters. - Updated installation instructions and command parameters for consistency across workflows. ### Expected Results - Improved compatibility and maintainability of SonarQube integration in CI configurations.
This commit is contained in:
@@ -115,7 +115,7 @@ jobs:
|
|||||||
- name: Send results to SonarQube
|
- name: Send results to SonarQube
|
||||||
run: |
|
run: |
|
||||||
echo "Sending Service Adapters results to SonarQube..."
|
echo "Sending Service Adapters results to SonarQube..."
|
||||||
# Install SonarQube Scanner for Python
|
# Install pysonar for SonarQube analysis
|
||||||
pip install pysonar
|
pip install pysonar
|
||||||
|
|
||||||
# Run SonarQube analysis
|
# Run SonarQube analysis
|
||||||
@@ -123,7 +123,7 @@ jobs:
|
|||||||
--sonar-host-url=${{ secrets.SONAR_HOST_URL }} \
|
--sonar-host-url=${{ secrets.SONAR_HOST_URL }} \
|
||||||
--sonar-token=${{ secrets.SONAR_TOKEN }} \
|
--sonar-token=${{ secrets.SONAR_TOKEN }} \
|
||||||
--sonar-project-key=labfusion-service-adapters \
|
--sonar-project-key=labfusion-service-adapters \
|
||||||
--sonar-project-name='LabFusion Service Adapters'
|
--sonar-project-name="LabFusion Service Adapters"
|
||||||
|
|
||||||
- name: Build Docker image (test only)
|
- name: Build Docker image (test only)
|
||||||
run: docker build -t service-adapters:test .
|
run: docker build -t service-adapters:test .
|
||||||
|
|||||||
@@ -91,15 +91,15 @@ jobs:
|
|||||||
- name: Send results to SonarQube
|
- name: Send results to SonarQube
|
||||||
run: |
|
run: |
|
||||||
echo "Sending Service Adapters results to SonarQube..."
|
echo "Sending Service Adapters results to SonarQube..."
|
||||||
# Install SonarQube Scanner for Python
|
# Install pysonar for SonarQube analysis
|
||||||
pip install sonar-scanner
|
pip install pysonar
|
||||||
|
|
||||||
# Run SonarQube analysis
|
# Run SonarQube analysis
|
||||||
sonar-scanner \
|
pysonar \
|
||||||
-Dsonar.host.url=${{ secrets.SONAR_HOST_URL }} \
|
--sonar-host-url=${{ secrets.SONAR_HOST_URL }} \
|
||||||
-Dsonar.login=${{ secrets.SONAR_TOKEN }} \
|
--sonar-token=${{ secrets.SONAR_TOKEN }} \
|
||||||
-Dsonar.projectKey=labfusion-service-adapters \
|
--sonar-project-key=labfusion-service-adapters \
|
||||||
-Dsonar.projectName=LabFusion Service Adapters
|
--sonar-project-name="LabFusion Service Adapters"
|
||||||
|
|
||||||
|
|
||||||
- name: Test results summary
|
- name: Test results summary
|
||||||
|
|||||||
@@ -30,4 +30,4 @@ bandit==1.7.5
|
|||||||
safety==2.3.5
|
safety==2.3.5
|
||||||
|
|
||||||
# SonarQube Integration
|
# SonarQube Integration
|
||||||
sonar-scanner==4.8.0.2856
|
pysonar==1.2.0.2419
|
||||||
Reference in New Issue
Block a user