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

Perform AOT check on repository #2598

Merged
merged 5 commits into from
May 17, 2024
Merged

Perform AOT check on repository #2598

merged 5 commits into from
May 17, 2024

Conversation

SaurabhMSFT
Copy link
Collaborator

@SaurabhMSFT SaurabhMSFT commented May 15, 2024

Perform AOT check on repository

Summary of the changes
Added a script and yml file to perform AOT check on repository for every pull request. This script will notify us if a non AOT compatible change is added to the repo.

@SaurabhMSFT SaurabhMSFT requested a review from eerhardt May 16, 2024 15:51
@SaurabhMSFT SaurabhMSFT marked this pull request as ready for review May 16, 2024 15:59
@SaurabhMSFT SaurabhMSFT requested a review from a team as a code owner May 16, 2024 15:59

strategy:
matrix:
language: [ 'csharp' ]
Copy link
Contributor

Choose a reason for hiding this comment

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

what's this for? Is it used?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This was copied from another yml file and was unused. I have removed it.

- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 2
Copy link
Contributor

Choose a reason for hiding this comment

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

Why 2?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I have changed the fetch depth to 1 so it fetches the top commit only.


on:
push:
branches: [ "dev", "dev6x" ]
Copy link
Contributor

Choose a reason for hiding this comment

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

Is the script going to be checked into dev6x? I didn't think that version was AOT compatible. I think we did all the work in v7.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Yes, that's correct, good point @eerhardt

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I have removed the dev6x branch.

Comment on lines 53 to 57





Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Done

Write-Host $publishOutput
}

#$runtime = if ($IsWindows) { "win-x64" } elseif ($IsMacOS) { "macos-x64"} else {"linux-x64"}
Copy link
Contributor

Choose a reason for hiding this comment

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

Can we keep the script able to run on all 3 OSes? That way devs can run the script locally without having to move to a specific OS.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I have restored the checks.

Copy link
Contributor

@eerhardt eerhardt left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks!

We can also delete https://github.com/AzureAD/azure-activedirectory-identitymodel-extensions-for-dotnet/tree/dev/test/Microsoft.IdentityModel.AotCompatibility.Tests now since this replaces those tests. We can do that in this PR or in a follow up.

@SaurabhMSFT SaurabhMSFT merged commit ad64ace into dev May 17, 2024
6 checks passed
@eerhardt eerhardt deleted the saugautam/aot branch May 17, 2024 14:57
@kellyyangsong kellyyangsong added this to the 7.6.0 milestone Jun 10, 2024
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.

5 participants