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

Remove ServiceToTest, CodeCheck run on service only #30754

Merged
merged 1 commit into from
Sep 20, 2022

Conversation

sima-zhu
Copy link
Contributor

@sima-zhu sima-zhu commented Aug 26, 2022

Resolve Azure/azure-sdk-tools#3999
The PR is to speed up Analyze job for .NET core pipeline.
Before it takes more than an hour to get it done.

After the changes


Our scope changes to run target service only in core pipeline for CodeCheck.ps1. Add code check in aggregate-report pipeline for awareness.
The following 2 scenarios can be covered from autogen pipeline. (For any possible flaws are supposed to address in autogen pipeine)
(Quote from Wes)

  1. The code generator changed. If it updates code then it will trigger the individual pipelines for the service directory which will catch any issues where the service team might have manually changed something.
  2. If the service team manually changed the generated code it will trigger the code check in their pipeline and will catch that scenario

Note: Also make some changes to test splitting to make it robust.
Testing pipeline: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=1856319&view=logs&j=d41e9505-d81b-5b3c-5b50-be71bc9b0ccb&t=7061cab9-8edd-561e-5078-022c316ef413

@sima-zhu sima-zhu changed the title test on code checks [Testing]test on code checks Aug 26, 2022
@check-enforcer
Copy link

check-enforcer bot commented Sep 8, 2022

This pull request is protected by Check Enforcer.
For more information about how to run a pipeline against this pull request, see this.

@sima-zhu sima-zhu changed the title [Testing]test on code checks [Testing]Split the packages on code generation. Sep 12, 2022
@sima-zhu sima-zhu force-pushed the codecheck_improve branch 7 times, most recently from fb71b4a to c5848e4 Compare September 12, 2022 21:54
@sima-zhu sima-zhu changed the title [Testing]Split the packages on code generation. Split the packages on code generation. Sep 12, 2022
eng/pipelines/templates/jobs/ci.yml Outdated Show resolved Hide resolved
eng/pipelines/templates/jobs/code.gen.yml Outdated Show resolved Hide resolved
@sima-zhu sima-zhu marked this pull request as ready for review September 12, 2022 22:01
@sima-zhu sima-zhu changed the title Split the packages on code generation. Remove ServiceToTest, CodeCheck run on service only Sep 16, 2022
Copy link
Member

@weshaggard weshaggard left a comment

Choose a reason for hiding this comment

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

Please remove the aggregate-reports change but otherwise looks good.

@sima-zhu sima-zhu force-pushed the codecheck_improve branch 2 times, most recently from ed1a612 to a165c61 Compare September 19, 2022 22:41
@sima-zhu sima-zhu enabled auto-merge (squash) September 19, 2022 22:42
@sima-zhu
Copy link
Contributor Author

/check-enforcer override

@sima-zhu sima-zhu merged commit ce14aed into Azure:main Sep 20, 2022
@sima-zhu sima-zhu deleted the codecheck_improve branch September 20, 2022 18:47
sofiar-msft pushed a commit to sofiar-msft/azure-sdk-for-net that referenced this pull request Dec 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.

Improve the performance of CodeCheck.ps1 for .NET
4 participants