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

Fail CI build if APICompat baseline files would change#1185

Merged
wtgodbe merged 2 commits intodotnet:masterfrom
wtgodbe:APICompatError
May 14, 2019
Merged

Fail CI build if APICompat baseline files would change#1185
wtgodbe merged 2 commits intodotnet:masterfrom
wtgodbe:APICompatError

Conversation

@wtgodbe
Copy link
Copy Markdown
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

Comment thread azure-pipelines.yml Outdated
/p:DotNetSymbolServerTokenMsdl=$(microsoft-symbol-server-pat)
/p:DotNetSymbolServerTokenSymWeb=$(symweb-symbol-server-pat)
/p:OfficialBuildId=$(BUILD.BUILDNUMBER)
/p:BaselineAllAPICompatError=false
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
Member

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
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