Skip to content
This repository has been archived by the owner on Sep 13, 2022. It is now read-only.

Fail CI build if APICompat baseline files would change #1185

Merged
merged 2 commits into from
May 14, 2019

Conversation

wtgodbe
Copy link
Member

@wtgodbe wtgodbe commented May 10, 2019

Currently, if a change in Arcade would cause changes in the APICompat baseline files, the baseline files are rewritten without throwing an error. If somebody makes such a change without checking in the changes to the APICompat baselines, the CI should fail. This change achieves that. Resolves #1184.

@ericstj @terrajobst PTAL

@@ -58,13 +58,15 @@ jobs:
/p:DotNetSymbolServerTokenMsdl=$(microsoft-symbol-server-pat)
/p:DotNetSymbolServerTokenSymWeb=$(symweb-symbol-server-pat)
/p:OfficialBuildId=$(BUILD.BUILDNUMBER)
/p:BaselineAllAPICompatError=false
Copy link
Member Author

Choose a reason for hiding this comment

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

@ericstj the -ci switch doesn't specifically set any msbuild properties, so I had to pass this in explicitly

Copy link
Member

Choose a reason for hiding this comment

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

Are you sure? We depend on properties elsewhere, let me dig something up.

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Ah, looks like you're right. I was only looking at what we pass in Build.ps1, but I missed https://github.com/dotnet/arcade/blob/f15f32d01fcf5d7f60f2246faf6db5b337e72f45/eng/common/tools.ps1#L510. Will update the PR.

@wtgodbe wtgodbe merged commit 5f041c2 into dotnet:master May 14, 2019
@karelz karelz added this to the .NET Standard 2.1 milestone Jul 17, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fail CI when APICompat Baseline files change
4 participants