-
Notifications
You must be signed in to change notification settings - Fork 13
[feature not yet live] - docs(flaky-tests): add Uploads page #589
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
Draft
samgutentag
wants to merge
3
commits into
main
Choose a base branch
from
sam-gutentag/flaky-tests-filtered-uploads-page
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+62
−0
Draft
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,61 @@ | ||
| --- | ||
| description: >- | ||
| Browse, filter, and analyze your CI test upload history using charts and | ||
| an interactive table. | ||
| --- | ||
|
|
||
| # Uploads | ||
|
|
||
| The Uploads page gives you a historical view of every test run uploaded to Trunk Flaky Tests. It lets you quickly spot upload problems, filter down to specific branches or pull requests, and understand pass/fail trends over time. | ||
|
|
||
| ## Overview | ||
|
|
||
| <figure><picture><source srcset="../.gitbook/assets/uploads-page-dark.png" media="(prefers-color-scheme: dark)"><img src="../.gitbook/assets/uploads-page-light.png" alt="Uploads page showing a stacked bar chart and filtered results table"></picture><figcaption><p>The Uploads page with chart, filter bar, and results table.</p></figcaption></figure> | ||
|
|
||
| The page has three main sections: | ||
|
|
||
| - **Stacked bar chart** — Shows Pass, Fail, and Other upload bins by day. Click a bar or drag across a range to filter the table to that date window. | ||
|
samgutentag marked this conversation as resolved.
|
||
| - **Filter bar** — Narrow results by upload status, job conclusion, PR number, commit SHA, branch, or author. Multiple values can be entered for each filter. | ||
|
samgutentag marked this conversation as resolved.
|
||
| - **Results table** — Paginated list of uploads with customizable columns. All filter, column, and chart range state is saved in the URL so you can share or bookmark a specific view. | ||
|
|
||
| ## Filtering Uploads | ||
|
|
||
| The filter bar runs across the top of the results table. Each filter accepts multiple values. | ||
|
|
||
| | Filter | What it matches | | ||
| |---|---| | ||
| | **Status** | Upload processing status (e.g., Done, Processing, Failed) | | ||
|
samgutentag marked this conversation as resolved.
|
||
| | **Conclusion** | Job-level conclusion from CI (e.g., success, failure, cancelled) | | ||
|
samgutentag marked this conversation as resolved.
|
||
| | **PR number** | The pull request number associated with the upload | | ||
| | **SHA** | The commit SHA of the uploaded run | | ||
| | **Branch** | The branch name the upload was made from | | ||
| | **Author** | The committer who triggered the upload | | ||
|
samgutentag marked this conversation as resolved.
|
||
|
|
||
| To apply filters, select a filter chip, type one or more values, and click **Apply**. To reset all active filters and any chart range selection, click **Clear all filters**. | ||
|
|
||
| ### Filtering by date range | ||
|
|
||
| Click any bar in the chart to filter the table to that single day. Click and drag across multiple bars to select a date range. The table updates immediately to show only uploads that fall within that window. Click the chart again outside a selection to clear the range. | ||
|
samgutentag marked this conversation as resolved.
|
||
|
|
||
| ## Results Table | ||
|
|
||
| The table shows individual upload records. The visible columns can be customized using the column customizer (the gear icon at the top right of the table). Your column preferences are saved in the URL along with your other filter state. | ||
|
|
||
| A refresh button in the table header shows a badge count of new uploads that arrived since you last loaded the page. Click it to pull in the latest records without losing your current filter state. | ||
|
|
||
| ## Reading Upload Statuses | ||
|
|
||
| | Status | Meaning | | ||
| |---|---| | ||
| | **Done** | Upload processed and test results are available | | ||
| | **Processing** | Upload is queued or actively being processed | | ||
| | **Done (empty)** | Upload completed but contained no test cases or test files | | ||
| | **Failed** | Upload could not be processed | | ||
|
|
||
| Uploads marked **Done (empty)** are stored as complete uploads with zero tests and zero files. They count toward upload history but do not contribute to flaky test detection. | ||
|
|
||
| ## Next Steps | ||
|
samgutentag marked this conversation as resolved.
|
||
|
|
||
| - [Trunk Analytics CLI](uploader.md) — Learn how to configure your CI jobs to send uploads. | ||
| - [Dashboard](dashboard.md) — View aggregate flaky test health for your repo. | ||
| - [Managing detected flaky tests](managing-detected-flaky-tests.md) — Act on tests flagged by Trunk. | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.