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

Create stronger type to expression compilation tracker internal policy #72673

Merged
merged 8 commits into from
Mar 23, 2024

Conversation

CyrusNajmabadi
Copy link
Member

Extracted from #72494.

Allows us to express succintly teh behavior we want in the compilation tracker around running SGs or generating skeleton references.

@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner March 22, 2024 18:06
@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Mar 22, 2024
@CyrusNajmabadi CyrusNajmabadi requested a review from ToddGrun March 22, 2024 18:06
/// Skeleton references should only be created for a compilation if no existing skeleton exists for their
/// project from some point in the past.
/// </summary>
CreateIfAbsent,
Copy link
Member Author

Choose a reason for hiding this comment

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

Note: this state will be used in teh followup PR.

{
Contract.ThrowIfNull(finalCompilationWithGeneratedDocuments);

// As a policy, all partial-state projects are said to have incomplete references, since the
// state has no guarantees.
this.CompilationWithoutGeneratedDocuments = compilationWithoutGeneratedDocuments;
HasSuccessfullyLoaded = hasSuccessfullyLoaded && !isFrozen;
Copy link
Contributor

Choose a reason for hiding this comment

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

&& !isFrozen;

Just wanted to make sure this was intentional

Copy link
Member Author

Choose a reason for hiding this comment

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

yes it was. deciding to freeze things doesn't have any impact on our determination if things successfully loaded or not.

Copy link
Contributor

@ToddGrun ToddGrun left a comment

Choose a reason for hiding this comment

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

:shipit:

@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner March 22, 2024 20:22
@CyrusNajmabadi CyrusNajmabadi disabled auto-merge March 22, 2024 21:45
@CyrusNajmabadi
Copy link
Member Author

/azp run Roslyn-CI

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@CyrusNajmabadi CyrusNajmabadi merged commit 24b3749 into dotnet:main Mar 23, 2024
27 checks passed
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Mar 23, 2024
@CyrusNajmabadi CyrusNajmabadi deleted the creationPolicy branch March 23, 2024 00:24
@RikkiGibson RikkiGibson modified the milestones: Next, 17.10 P3 Mar 25, 2024
@CyrusNajmabadi
Copy link
Member Author

@jasonmalinowski For review when you get back.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants