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

SPMI: Include example diffs in markdown summary #82364

Merged
merged 12 commits into from
Feb 20, 2023

Conversation

jakobbotsch
Copy link
Member

This adds up to 3 improvement and 3 regression example diffs to the
markdown summary for each collection. The examples are picked to be the
highest percentage wise improvements and regressions with a limit on the
total size of the diff to avoid too much text in the diffs.

This adds up to 3 improvement and 3 regression example diffs to the
markdown summary for each collection. The examples are picked to be the
highest percentage wise improvements and regressions with a limit on the
total size of the diff to avoid too much text in the diffs.
@ghost ghost assigned jakobbotsch Feb 19, 2023
@jakobbotsch
Copy link
Member Author

Unfortunately AzDO does not render the diffs with syntax highlighting in the Extensions tab: https://dev.azure.com/dnceng-public/public/_build/results?buildId=177452&view=ms.vss-build-web.run-extensions-tab
We can color the added/removed lines manually with HTML but then the highlighting breaks for places that actually support highlighting ```diff (like GitHub).

@jakobbotsch
Copy link
Member Author

We can color the added/removed lines manually with HTML but then the highlighting breaks for places that actually support highlighting ```diff (like GitHub).

Doing this in superpmi_diffs_summarize.py was manageable and saves us from having to pass through some --ci flag to superpmi.py. This is the example of the diffs page. A screenshot:
image

PTAL @dotnet/jit-contrib

@BruceForstall BruceForstall self-requested a review February 20, 2023 05:27
Copy link
Member

@BruceForstall BruceForstall left a comment

Choose a reason for hiding this comment

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

Very cool! LGTM.

@jakobbotsch jakobbotsch merged commit 34add71 into dotnet:main Feb 20, 2023
@jakobbotsch jakobbotsch deleted the spmi-example-diffs branch February 20, 2023 20:58
@ghost ghost locked as resolved and limited conversation to collaborators Mar 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants