You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add target to ApiCompat.proj that determines when the baseline shrinks #28571
Right now, unless a dev manually updates the baseline files for APICompat, we have no way of knowing if a check that's currently in the baseline has stopped triggering. We get an error when new checks pop up, so we'll know if the baseline grows, but nothing happens when old checks disappear, so we don't know if the baseline shrinks.
We could try writing to the baseline during every build, in addition to throwing an error if we trigger checks that weren't previously in the baseline.
Generically, I believe that is by-design. The baseline files often are shared per framework and may contain entries only needed for one of many frameworks. This could be changed but would be a feature in APICompat in dotnet/arcade.
That said, you could hack something together that captures the output of the tool when run and compares that to the checked in baseline. Here's some psuedo code:
Closing as I recently leveraged the ApiCompat's ValidateBaseline switch in ApiCompat.proj. That said, it's disabled right now because of a temporary issue tracked in #68730.
Activity
ericstj commentedon Jan 31, 2019
Generically, I believe that is by-design. The baseline files often are shared per framework and may contain entries only needed for one of many frameworks. This could be changed but would be a feature in APICompat in dotnet/arcade.
That said, you could hack something together that captures the output of the tool when run and compares that to the checked in baseline. Here's some psuedo code:
ViktorHofer commentedon May 6, 2022
Closing as I recently leveraged the ApiCompat's
ValidateBaselineswitch in ApiCompat.proj. That said, it's disabled right now because of a temporary issue tracked in #68730.