Refactor the METplus SonarQube workflow with a custom action #2544
Labels
component: code optimization
Code optimization issue
priority: low
Low Priority
reporting: DTC AF METplus
Air Force METplus Project
requestor: USAF
United States Air Force
type: enhancement
Improve something that it is currently doing
Milestone
Describe the Enhancement
During the METplus 6.0.0 beta4 development cycle, a SonarQube scanning workflow (
.github/workflows/sonarqube.yml
) was added to the METplus repositories. While the MET logic is complex and requires running the SonarQube build wrapper in a Docker container, the logic for the Python-based METplus repositories is straight-forward. As of beta4, the same set of 5 workflow steps (checkout, branch name, configure, run scan, check quality gate) is repeated in the METplus, METplotpy, METcalcpy, and METdataio repositories. Note that the SonarQube workflow has not yet been added to METviewer, and the logic for doing so has not yet beed defined.This issue is define a custom action in a new
dtcenter/metplus-action-sonarqube
repository. That action should perform the 5 steps defined above: checkout, branch name, configure, run scan, check quality gateThen update the existing
sonarqube.xml
workflows to call that custom action instead. This should provide a more maintainable solution.Time Estimate
2 days.
Sub-Issues
Consider breaking the enhancement down into sub-issues.
Relevant Deadlines
List relevant project deadlines here or state NONE.
Funding Source
METplus Air Force key (2771024)
Define the Metadata
Assignee
Labels
Projects and Milestone
Define Related Issue(s)
Consider the impact to the other METplus components.
None needed at this time. Plan to define the task in this one issue and then link PR's for the other repos to this issue.
Enhancement Checklist
See the METplus Workflow for details.
Branch name:
feature_<Issue Number>_<Description>
Pull request:
feature <Issue Number> <Description>
Select: Reviewer(s) and Development issues
Select: Repository level development cycle Project for the next official release
Select: Milestone as the next official version
The text was updated successfully, but these errors were encountered: