Skip to content

Conversation

@ryanclark
Copy link
Member

@ryanclark ryanclark commented Jun 26, 2025

This adds webasset bundle analysis, taking --stats path/to/before.json,path/to/after.json and analysing the results into a comment that is either created or edited.

The stats JSON files are generated by a Vite plugin that will live in the teleport and access-graph codebases (I can't think of an easy way to share it for now)

image image

@ryanclark ryanclark requested a review from a team as a code owner June 26, 2025 13:20
@ryanclark ryanclark requested a review from Copilot June 26, 2025 13:20
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds a new workflow command to analyze web asset bundle statistics. Key changes include:

  • Introducing a new "webassets" command in main.go with associated flag parsing.
  • Implementing several modules in the bot/internal/webassets package to load, compare, and render bundle statistics as formatted GitHub comments.
  • Updating GitHub client integrations and bot reconciliation logic to support comment creation and editing based on web asset analysis.

Reviewed Changes

Copilot reviewed 17 out of 17 changed files in this pull request and generated 2 comments.

File Description
bot/main.go Added new "webassets" workflow branch and flag
bot/internal/webassets/*.go & *_test.go New modules for table building, stats loading, comparison, and analysis
bot/internal/github/github.go Added EditComment API method
bot/internal/bot/*.go, webassets_test.go, bot_test.go Updated bot logic for reconciling and updating GitHub comments

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