Skip to content

Feature/gradle implementation (#6)#310

Open
jimmyliang-gov wants to merge 20 commits into
ploigos:mainfrom
CMSgov:feature/merge-gradle-pr
Open

Feature/gradle implementation (#6)#310
jimmyliang-gov wants to merge 20 commits into
ploigos:mainfrom
CMSgov:feature/merge-gradle-pr

Conversation

@jimmyliang-gov
Copy link
Copy Markdown

Purpose

Implement step runners to implement the Gradle build tool. This is used for apps that are built and deployed with Gradle as opposed to Maven.

Breaking?

No
However - the Gradle image needs to be merged as well to have the Gradle PSR work.

Integration Testing

Built and deployed on a local devsecops Jenkins pipeline.

Jimmy Liang and others added 3 commits April 24, 2025 14:56
* Added gradle util class for grabbing project version from gradle groovy build files.

* Added generate-metadata for Gradle (groovy)

* Changed GradleGroovyParser method name in tests.

* work on gradle unit test step implemeter

* change tests to use a relevant  file

* Added Gradle unit test functionality and unit test

* Added functionalitly to Gradle unit test implementor.

* Added functionality to gradle unit test step Implementor

* Added functionality to gradle unit test implementor

* Added adiontal gradle unit test functionality.

* try app/build.gradle

* fix build-file ref

* try modifying init py

* add to init py v2

* try init py with src

* remove serc from gradle_test

* update comment

* update comment

* try adding to shared step implementors

* adding bulid-config

* fix defaults for gradle-console-plain

* remove extra comma

* try just console

* remove consle for now

* add console plain

* added debug statements to gradle unit test implementer

* modified gradle unit test config pull

* added additional debug messages for gradle unit test implemeter

* Removed debug statements. changed test-report-dir config

* Fixed bug with empty list showing warning in gralde unit test implemeter

* added template/skeleton for gradle-deploy

* adding the artifactoryPublish cmd

* more psuedo code for gradle_deploy

* add gradledeploy to init

* add grade deploy to init for push

* update file for gradle output

* fix typo on run gradle step

* fix typo in gradle step

* adding print ln for artifactory user

* fix typo

* fixtypo

* try printf again

* printf

* printf

* update gradle deploy

* update gradle.py and removing NonType test cases

* update gradlepy

* update gradlepy

* update gradlepy

* update gradlepy

* update gradledeploy

* update gradledeploy

* update gradledeploy

* update gradledeploy

* update gradledeploy

* update gradledeploy

* update gradledeploy

* update gradledeploy

* update gradle deploy

* update gradle deploy

* fix to to use the password from the properties file at run time.

* fixed a bug to call the read_and_replace_password

* bug fix

* bug fix for read_and_replace_password method

* update gradle deploy to test gradle propeties

* update gradle deploy

* update gradle deploy

* test gradle deploy

* test gradle.deploy and .env

* revert changes gradle.deploy

* update gradle deploy

* update gradle deploy

* update gradle.deploy

* update gradle.deploy

* print all files

* print files at Path

* using currentDIr to read graddle properties

* using momot svc account

* trying hpib token

* try build.gradle file

* try artifactory password again

* print current path files

* get app folder

* current path /app

* new way for app

* get build path

* try test build

* change to gradle build

* removing commented code

* Feature/gradle implementation (#3)

* feat: Gradle PSR support

---------

Co-authored-by: Christopher Mason <cmason@redhat.com>
Co-authored-by: Jimmy Liang <jimmy.liang_sc@sparksoftcorp.com>
Co-authored-by: MJDP <aleem.malik@sparksoftcorp.com>

* Feature/gradle implementation (#4)

* feat: Gradle PSR support

---------

Co-authored-by: Christopher Mason <cmason@redhat.com>
Co-authored-by: Nicholas Siviglia <nicholas.siviglia_sc@sparksoftcorp.com>
Co-authored-by: Jimmy Liang <jimmy.liang_sc@sparksoftcorp.com>
Co-authored-by: Jay Pithadia <jay.pithadia@sparksoftcorp.com>
Co-authored-by: Syed Ajaz Hussain <syedajaz.hussain@cms.hhs.gov>
Co-authored-by: MJDP <aleem.malik@sparksoftcorp.com>

* fix lint errors

* revert changes to test_sops file

* fix typo for StepResult

* fix indentation error in test_sops

* fix linting issues

* remove duplicate

* chore: Fixed linting issue to pass CI

* chore: fixed test cases for gradle

---------

Co-authored-by: Nicholas Siviglia <nicholas.siviglia_sc@sparksoftcorp.com>
Co-authored-by: Jay Pithadia <jay.pithadia@sparksoftcorp.com>
Co-authored-by: Syed Ajaz Hussain <syedajaz.hussain@cms.hhs.gov>
Co-authored-by: aleemmalik-gov <aleemmalikaws@gmail.com>
Co-authored-by: Christopher Mason <cmason@redhat.com>
Co-authored-by: MJDP <aleem.malik@sparksoftcorp.com>
@codecov
Copy link
Copy Markdown

codecov Bot commented Apr 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (75daf1d) to head (5d52a9c).

Additional details and impacted files
@@            Coverage Diff             @@
##              main      #310    +/-   ##
==========================================
  Coverage   100.00%   100.00%            
==========================================
  Files          106       113     +7     
  Lines         4318      4721   +403     
==========================================
+ Hits          4318      4721   +403     
Flag Coverage Δ
pytests 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.

@itewk itewk marked this pull request as draft April 25, 2025 12:31
@itewk
Copy link
Copy Markdown
Contributor

itewk commented Apr 25, 2025

@jimmyliang-gov let me know when you are ready for review and merge and I will do so.

@jimmyliang-gov jimmyliang-gov marked this pull request as ready for review May 15, 2025 21:44
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