Skip to content

Conversation

@gugavaro
Copy link
Contributor

We currently use api-versions.xml based out of platform-tools\api directory, however it seems this file is not the latest one and also does not contain the ApiLevelSince attribute.
We are now favoring the api-versions.xml out of platforms\android-$(AndroidApiLevel)\data and in case this file does not exist we fall back for the previous location.
On those changes also updating Microsoft.DotNet.ApiCompat to the latest version
Making some small changes on CheckApiCompatibility to better retry and output logs
Updating all acceptable-breakages files

@gugavaro gugavaro requested a review from jonpryor as a code owner January 28, 2020 21:48
@gugavaro gugavaro force-pushed the gugavaro_sdkdirectory branch from 6710960 to a391bda Compare January 28, 2020 21:49
<PackageReference Include="Microsoft.DotNet.ApiCompat" Version="5.0.0-beta.19606.1" IncludeAssets="none" />
<PackageReference Include="Microsoft.DotNet.GenAPI" Version="5.0.0-beta.19606.1" />
<PackageReference Include="Microsoft.DotNet.ApiCompat" Version="5.0.0-beta.20078.1" IncludeAssets="none" />
<PackageReference Include="Microsoft.DotNet.GenAPI" Version="5.0.0-beta.20078.1" />
Copy link
Contributor

Choose a reason for hiding this comment

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

Any specific reason why to bump the version?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I talked to Santi the person responsible and he said they are making some perf improvements, so I decide to bump the version.

@gugavaro gugavaro requested a review from jonpryor January 29, 2020 14:30
}

using (var genApiProcess = new Process ()) {
for (int i = 0; i < 3; i++) {
Copy link
Contributor

Choose a reason for hiding this comment

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

PR #4174 added support to re-execute Microsoft.DotNet.ApiCompat.exe if/when mono crashes. What are these more recent changes for? I don't see a rationale for these changes within the PR message.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I wanted to created a new Process object to re-try instead of using the one already created. For some reason I was getting some odd behavior when re-running the process from the same Process object after the crash. When I was reading online, the recommendation was to dispose the object and use a new one.

@gugavaro gugavaro requested a review from jonpryor January 29, 2020 18:29
@jonpryor jonpryor merged commit 4cd2060 into master Jan 29, 2020
@gugavaro gugavaro deleted the gugavaro_sdkdirectory branch January 29, 2020 18:50
@github-actions github-actions bot locked and limited conversation to collaborators Jan 28, 2024
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.

4 participants