Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Generate pom file for aggregate code coverage #29035

Merged
merged 20 commits into from
Jun 7, 2022

Conversation

srnagar
Copy link
Member

@srnagar srnagar commented May 24, 2022

No description provided.

@srnagar
Copy link
Member Author

srnagar commented May 24, 2022

/azp run java - core - ci

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@srnagar
Copy link
Member Author

srnagar commented May 24, 2022

/azp run java - core - ci

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@srnagar
Copy link
Member Author

srnagar commented May 24, 2022

/azp run java - core - ci

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@srnagar
Copy link
Member Author

srnagar commented May 25, 2022

/azp run java - resourcemanager - ci

@azure-pipelines
Copy link

Azure Pipelines could not run because the pipeline triggers exclude this branch/path.

@srnagar
Copy link
Member Author

srnagar commented May 25, 2022

/azp run java - resourcemanagerhybrid - ci

@azure-pipelines
Copy link

Azure Pipelines could not run because the pipeline triggers exclude this branch/path.

@srnagar
Copy link
Member Author

srnagar commented May 25, 2022

/azp run java - spring - ci

@azure-pipelines
Copy link

Azure Pipelines could not run because the pipeline triggers exclude this branch/path.

@srnagar
Copy link
Member Author

srnagar commented May 25, 2022

/azp run java - aggregate-reports

@azure-pipelines
Copy link

Azure Pipelines failed to run 1 pipeline(s).

@srnagar srnagar marked this pull request as ready for review May 26, 2022 19:05
@srnagar srnagar requested a review from JimSuplizio June 1, 2022 19:14
Copy link
Member

@JimSuplizio JimSuplizio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@srnagar, I'm happy to see that you'd refactored some of the common elements into the pom_helper.py. Overall I'm good with the changes but there are a couple of minor things

  1. You're going to want to add the generated pom file to the .gitignore file.
  2. Shouldn't we be cleaning up the root pom.xml file and the service directory pom.xml files as part of this?

You're going to want to update your sources. My PR changed generate_from_source_pom.py and was merged this morning.

displayName: 'Generate pom for aggregate code coverage report'
inputs:
scriptPath: 'eng/scripts/generate_aggregate_coverage_pom.py'
arguments: '--groups com.azure'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is the aggregate report, then shouldn't we be looking at all track 2 groups which would also include com.azure.resourcemanager and com.azure.spring?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, they will be added to this report as well when the jacoco issues are resolved for mgmt and spring libraries.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a comment into the yml about this and create bugs to track the jacoco issues for spring and management otherwise it'll never get done.

@srnagar
Copy link
Member Author

srnagar commented Jun 7, 2022

You're going to want to add the generated pom file to the .gitignore file.

Done

Shouldn't we be cleaning up the root pom.xml file and the service directory pom.xml files as part of this?

Once we have a few successful runs with the aggregate pom generation, I'll create a follow-up PR to clean up the root pom.

You're going to want to update your sources. My #29151 changed generate_from_source_pom.py and was merged this morning.

Done

@srnagar srnagar requested a review from JimSuplizio June 7, 2022 08:16
Copy link
Member

@JimSuplizio JimSuplizio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm fine with the changes. I did have a couple of minor questions and requests for follow up work items concerning the spring and resource manager to fix their jacoco and get their groupIds added to the command line.

displayName: 'Generate pom for aggregate code coverage report'
inputs:
scriptPath: 'eng/scripts/generate_aggregate_coverage_pom.py'
arguments: '--groups com.azure'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a comment into the yml about this and create bugs to track the jacoco issues for spring and management otherwise it'll never get done.

mavenOptions: '$(MemoryOptions) $(LoggingOptions)'
javaHomeOption: 'JDKVersion'
jdkVersionOption: $(JavaBuildVersion)
jdkArchitectureOption: 'x64'
publishJUnitResults: false
goals: 'verify jacoco:report-aggregate'
goals: 'jacoco:report-aggregate'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm just curious, why was the verify target removed here?

@srnagar srnagar enabled auto-merge (squash) June 7, 2022 17:55
@srnagar srnagar merged commit b59779c into Azure:main Jun 7, 2022
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