Commit e701f226 authored by Jimmy Lai's avatar Jimmy Lai

feat(ci): improve test failure comment formatting and UX

- Add test categorization by type (e2e/integration/dev/prod), bundler (turbopack/rspack/webpack), platform (linux/windows)
- Add staleness indicator when new tests are running
- Track tests that passed on retry (likely flaky)
- Detect tests failing across multiple open PRs
- Improve reproduction commands with grouping by test type
- Add summary table with commit/run info and re-run link
- Add footer with links to testing docs
parent d4c73df3
...@@ -7,6 +7,10 @@ inputs: ...@@ -7,6 +7,10 @@ inputs:
default: ${{ github.token }} default: ${{ github.token }}
description: 'GitHub token used to create the test report comment. If not specified, the default GitHub actions token will be used' description: 'GitHub token used to create the test report comment. If not specified, the default GitHub actions token will be used'
mode:
default: 'report'
description: 'Action mode: "report" (default) to post test results, "mark-stale" to mark existing comments as outdated'
diff_base: diff_base:
default: 'main' default: 'main'
description: "The base of the test results to compare against. If not specified, will try to compare with latest main branch's test results." description: "The base of the test results to compare against. If not specified, will try to compare with latest main branch's test results."
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -38,6 +38,23 @@ on: ...@@ -38,6 +38,23 @@ on:
default: 2 default: 2
jobs: jobs:
# Mark existing test comments as stale immediately when tests start
mark-test-results-stale:
name: Mark test results as stale
runs-on: ubuntu-latest
if: github.event_name == 'pull_request'
permissions:
pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Mark existing comments as stale
uses: ./.github/actions/next-integration-stat
with:
token: ${{ secrets.GITHUB_TOKEN }}
mode: mark-stale
# First, build Next.js to execute across tests. # First, build Next.js to execute across tests.
build-next: build-next:
name: build-next name: build-next
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment