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

feat: support uploading runtime trace files to slack #23

Merged
merged 1 commit into from
Feb 27, 2025

Conversation

deepak1556
Copy link
Contributor

This extends our existing infra to record runtime traces to actually upload the trace file to the message thread. This will help diagnose issues like microsoft/vscode#241640 (comment) and other runtime specific issues arising from the perf infra.

Following changes are made,

  1. Default trace categories are updated to capture the relevant metrics that impact startup
  2. When --runtime-trace option is used, the trace file from the run that has bestDuration in the current session will get uploaded to the slack message thread.

Here is it in action,

Screenshot 2025-02-26 at 18 33 32

TODO before deploying

  • The upload call requires the file:write scope on the PerfBot App, need admin on VS Code repo to update and reinstall the application.
  • Have --runtime-trace specified when using this module from the perf bot.

@deepak1556 deepak1556 added this to the March 2025 milestone Feb 26, 2025
@deepak1556 deepak1556 requested a review from bpasero February 26, 2025 09:36
@deepak1556 deepak1556 self-assigned this Feb 26, 2025
Copy link
Member

@bpasero bpasero 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 idea!

@deepak1556 deepak1556 merged commit bba1d8a into main Feb 27, 2025
2 checks passed
@deepak1556 deepak1556 deleted the robo/support_uploading_runtime_trace branch February 27, 2025 12:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants