-
-
Notifications
You must be signed in to change notification settings - Fork 99
Use Rsdoctor in CI. #1090
Copy link
Copy link
Open
Milestone
Description
We have already implemented the brief mode, but it is still not very convenient for use in CI. To achieve this goal, Rsdoctor will continue to address the related issues.
Motivation
Although the brief mode provides a concise summary of build results, its integration into modern CI/CD pipelines is not yet intuitive or automated. In a typical workflow, developers and reviewers need quick feedback on build quality and bundle changes, especially in pull requests. Improving Rsdoctor's CI/CD support will help teams:
- Detect performance regressions early.
- Visualize bundle differences between branches or commits.
- Share and track reports more conveniently.
- Facilitate automated quality gates in CI.
Goals
- Enable uploading and sharing of analysis reports via Rsdoctor's official website.
- Automate generation and transfer of report data in CI/CD workflows.
- Provide GitHub Actions for seamless Rsdoctor integration and diff reporting in pull requests.
- Show build info and rule scan alerts directly in CI.
- Visualize bundle diffs in CI/CD to help reviewers understand the impact of changes.
Next todo in CI/CD
1. Support uploading JSON reports to the Rsdoctor official website and displaying the reports
- Support uploading Rsdoctor analysis reports (in JSON format) generated in CI/CD to the official website, generating independent and shareable links for team members to view and discuss.
2. Facilitate the generation of transferable and uploadable report data
- Provide an API to export analysis results in standard JSON format, making it easy to store, transfer, and upload reports during the CI process.
- Related discussions/issues:
3. Develop GitHub Actions to leverage Rsdoctor's diff capabilities in GitHub CI
- Provide an official GitHub Action to automatically run Rsdoctor during PR/CI, generate reports, and upload them to the official website.
- Support bundle diff comparison between the main branch, specified commits, or custom bases, comparing bundle size and rule scan differences.
- Automatically comment in PRs to display the key diff results and report access links.
- Related discussions/issues:
3.1 Display current build information in CI
- Display the analysis summary and rule scan alerts of the current build in CI logs and PR pages.
- For example: bundle size, number of chunks, triggered rules, etc.
- Provide brief information or screenshots for overall and bundle pages, supporting one-click access to detailed reports.
3.2 Display Bundle Diff in CI (v 1.3)
- Automatically display the bundle diff results between the current build and the baseline (such as the main branch) in CI and PR comments.
- Support visualization of diff results.
- If the bundle size change exceeds the threshold, automatically highlight or add a warning, with support for custom quality gates.
Task List
V 1.3
- Support uploading JSON reports to the Rsdoctor official website and displaying the reports
- Facilitate the generation of transferable and uploadable report data
- Display Bundle Diff in CI
Open Questions
- Will custom report fields and display content be supported to meet the needs of different teams?
- How will report upload permissions and data security be ensured?
Tracking Issues & Discussions
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels
Type
Projects
Status
In Progress
