Repository navigation
Several cleanups in CoreCLR YAML scripts - #236
Conversation
1) Stop transporting the test subtree as it shouldn't be actually necessary.
| - checkout: self | ||
| clean: true | ||
| fetchDepth: 5 | ||
| fetchDepth: 1 |
There was a problem hiding this comment.
The AzDO recommendation is to not use one here is it can cause some subtle race conditions.
There was a problem hiding this comment.
I was originally under the impressions as this no longer applies to us with the git bundle solution but I think you're right there's theoretically still some small time window between the moment when AzDO determines the commit ID and the actual launch of the checkout job. I'll revert this part of the change, thanks for pointing that out!
| # by switching over to using reference assembly. | ||
| ${{ if ne(parameters.stagedBuild, true) }}: | ||
| dependsOn: ${{ format('build_{0}{1}_{2}_{3}', parameters.osGroup, parameters.osSubgroup, parameters.archType, parameters.buildConfig) }} | ||
| dependsOn: ${{ format('coreclr_product_build_{0}{1}_{2}_{3}', parameters.osGroup, parameters.osSubgroup, parameters.archType, parameters.buildConfig) }} |
There was a problem hiding this comment.
Why do we have this approach where we re-generate the name on every dependsOn vs. saving the name into a variable?
There was a problem hiding this comment.
The problem is that, according to my knowledge, variables are expanded too late - these parameters are needed too early as they are used to construct the dependency graph.
There was a problem hiding this comment.
That's correct. Variables are expanded at runtime vs dependsOn are expanded at compile time. I tried this and didn't succeed.
Stop transporting the test subtree as it shouldn't be actually
necessary.
Clarify build phase names to cater for the combined repo.
Unify naming style for managed and native test artifacts.
Unify some build script executions for Windows / Unix.
Reduce fetchDepth to 1 as it shouldn't be needed with the bundles.