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

Following up on API baseline check and documentation #30221

Merged
merged 18 commits into from
Feb 25, 2021

Conversation

JunTaoLuo
Copy link
Contributor

Following up on feedback for #28253.

@JunTaoLuo JunTaoLuo requested review from a team as code owners February 16, 2021 20:04
@JunTaoLuo JunTaoLuo added the area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework label Feb 16, 2021
@JunTaoLuo
Copy link
Contributor Author

ping @dougbu @wtgodbe

docs/APIBaselines.md Outdated Show resolved Hide resolved
Copy link
Member

@wtgodbe wtgodbe left a comment

Choose a reason for hiding this comment

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

LGTM other than the nit

Copy link
Member

@dougbu dougbu left a comment

Choose a reason for hiding this comment

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

Mostly recommendations and suggestions (with a few nits for you to decide on) but I'd like to look again


More information available in
- https://github.com/dotnet/roslyn-analyzers/blob/master/src/PublicApiAnalyzers/PublicApiAnalyzers.Help.md
- https://github.com/dotnet/roslyn-analyzers/blob/master/src/PublicApiAnalyzers/Microsoft.CodeAnalysis.PublicApiAnalyzers.md
Copy link
Member

Choose a reason for hiding this comment

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

Suggest adding a note to start at step (4) when making changes in projects with existing API baselines.

Copy link
Member

Choose a reason for hiding this comment

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

We probably need at least a note about the *REMOVED* prefix whether or not the fixer will handle that automatically. Doubt other syntax notes are interesting to most people.

Speaking of special cases 😺 @BrennanConroy did the fixer handle most / all of the PublicAPI.Unshipped.txt changes in #29219 without manual changes, aside from any [SuppressMessage(...)] attributes you needed❔

Copy link
Member

Choose a reason for hiding this comment

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

No, I gave up on the fixer and did it all manually

Copy link
Member

Choose a reason for hiding this comment

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

Wow, I remember the fixer doing a pretty good job even when fixing all instances of a problem in an entire (albeit filtered) solution. What went wrong e.g. is there an issue or three we should report in https://github.com/dotnet/roslyn-analyzers❔

Copy link
Member

Choose a reason for hiding this comment

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

It seemed inconsistent about which file it edited, so I couldn't just blindly accept whatever changes it wanted to make.

Copy link
Member

@dougbu dougbu Feb 18, 2021

Choose a reason for hiding this comment

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

Ah, for example does it edit PublicAPI.Shipped.txt files rather than add *REMOVED* lines in PublicAPI.Unshipped.txt❔

@sharwell and @mavasani is that a known issue❔ Could the fixer be fixed to always leave PublicAPI.Shipped.txt alone❔ (Well, except if you add a gesture for use after a release -- where the files should be merged.)

eng/scripts/CodeCheck.ps1 Outdated Show resolved Hide resolved
.azure/pipelines/ci.yml Outdated Show resolved Hide resolved
docs/APIBaselines.md Outdated Show resolved Hide resolved
eng/scripts/CodeCheck.ps1 Outdated Show resolved Hide resolved
eng/scripts/CodeCheck.ps1 Outdated Show resolved Hide resolved
John Luo and others added 5 commits February 17, 2021 20:57
Copy link
Member

@dougbu dougbu left a comment

Choose a reason for hiding this comment

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

Suggest small touch-ups but I don't need to review again

docs/APIBaselines.md Show resolved Hide resolved
docs/APIBaselines.md Show resolved Hide resolved
eng/scripts/CodeCheck.ps1 Outdated Show resolved Hide resolved
eng/scripts/CodeCheck.ps1 Outdated Show resolved Hide resolved
@JunTaoLuo JunTaoLuo merged commit dd126d4 into main Feb 25, 2021
@JunTaoLuo JunTaoLuo deleted the johluo/baseline-docs-scripts branch February 25, 2021 03:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants