Skip to content

Following up on API baseline check and documentation - #30221

Merged
JunTaoLuo merged 18 commits into
mainfrom
johluo/baseline-docs-scripts
Feb 25, 2021
Merged

JunTaoLuo merged 18 commits into
mainfrom
johluo/baseline-docs-scripts

Conversation

@JunTaoLuo

Copy link
Copy Markdown
Contributor

Following up on feedback for #28253.

@JunTaoLuo
JunTaoLuo requested review from a team as code owners February 16, 2021 20:04
@JunTaoLuo
JunTaoLuo force-pushed the johluo/baseline-docs-scripts branch from 64dcb23 to a2f5107 Compare February 16, 2021 20:09
@JunTaoLuo JunTaoLuo added the area-infrastructure Includes: MSBuild projects/targets, build scripts, CI, Installers and shared framework label Feb 16, 2021
Comment thread src/Caching/SqlServer/src/PublicAPI.Shipped.txt Outdated
@JunTaoLuo

Copy link
Copy Markdown
Contributor Author

ping @dougbu @wtgodbe

Comment thread docs/APIBaselines.md Outdated

@wtgodbe wtgodbe left a comment

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.

LGTM other than the nit

@dougbu dougbu left a comment

Copy link
Copy Markdown
Contributor

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

Comment thread docs/APIBaselines.md Outdated

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

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

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

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

@dougbu dougbu Feb 18, 2021 •

Copy link
Copy Markdown
Contributor

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.)

Comment thread eng/scripts/CodeCheck.ps1 Outdated
Comment thread .azure/pipelines/ci.yml Outdated
Comment thread docs/APIBaselines.md Outdated
Comment thread eng/scripts/CodeCheck.ps1 Outdated
Comment thread eng/scripts/CodeCheck.ps1 Outdated
John Luo and others added 5 commits February 17, 2021 20:57

@dougbu dougbu left a comment

Copy link
Copy Markdown
Contributor

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

Comment thread docs/APIBaselines.md
Comment thread docs/APIBaselines.md
Comment thread eng/scripts/CodeCheck.ps1 Outdated
Comment thread eng/scripts/CodeCheck.ps1 Outdated
@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.

4 participants