[diffusion] CI: guard E2E/loading latency with runner-aware baselines (#39206)

Co-authored-by: Mick Qian <mickqian@users.noreply.github.com>
This commit is contained in:
Mick
2026-09-21 08:43:22 +08:00
committed by GitHub
co-authored by Mick Qian
parent 3a0324fb9b
commit 501b7851e4
36 changed files with 1974 additions and 138 deletions
@@ -50,8 +50,14 @@ runs:
// Skip the jobs-failed check when the PR carries the bypass-fastfail label.
// Lint check above still runs.
let labels = [];
if (context.payload.pull_request?.labels) {
labels = context.payload.pull_request.labels.map(l => l.name);
if (context.payload.pull_request?.number) {
// reruns retain the original event payload, including stale labels
const { data: pr } = await github.rest.pulls.get({
owner: context.repo.owner,
repo: context.repo.repo,
pull_number: context.payload.pull_request.number,
});
labels = pr.labels.map(l => l.name);
} else {
const { data: prs } = await github.rest.repos.listPullRequestsAssociatedWithCommit({
owner: context.repo.owner,