Skip to content

CI: keep flaky-pass reports and measured e2e samples - #346

Merged
SSFSKIM merged 1 commit into
masterfrom
e2e-evidence-uploads
Oct 29, 2026
Merged

SSFSKIM merged 1 commit into
masterfrom
e2e-evidence-uploads

Conversation

@SSFSKIM

@SSFSKIM SSFSKIM commented Oct 29, 2026 •

Copy link
Copy Markdown
Owner

Green e2e jobs keep the evidence that a retry or a measured window needs, without uploading every green job's HTML report.

Why

A flaky pass previously kept neither its Playwright report nor the first attempt's attachments. A green measured group also discarded its per-sample JSON, so its window could not be re-judged under another load rule. Runs 40852439950 and 40859186626 lost those samples.

What changes

  • gate-run exposes flaky=true when its own command log contains a flaky: line, with ANSI colors stripped. The result comes from this command, not a marker left in runner temp. Its exit status, summary and the separate flaky annotation are unchanged.
  • The e2e command has a step id; the existing e2e-<slug> upload also runs on that step's flaky output. It still includes playwright-report/, test-results/ and apps/desk-web/test-results/.
  • Measured groups separately upload test-results/**/*.json as measured-e2e-<slug> on every outcome, including cancellation when the runner can still run cleanup steps. A red measured job can produce both artifacts without a name collision.
  • Both uploads require this job's own successful checkout, preventing stale evidence from a refused job on a persistent Mac workspace. Retention remains seven days. e2e-vm inherits the same steps.

What a flaky pass keeps, and what it still lacks

A browser-free Playwright 1.63.0 probe, using this tree's config and retry setting, failed once with a diagnostic JSON attachment and then passed. It exited zero, emitted flaky=true, and retained both attempt directories, the failed attempt's attachment and error-context.md, and the HTML report. No preserveOutput change is needed.

This preserves what the harness already captures, not evidence it never recorded. The shared Electron launch fixture has no general screenshot, main-process stdout/stderr attachment or explicit tracing capture; Playwright's browser use.trace setting does not capture _electron launches. Specs that write screenshots/attachments under the uploaded directories keep them; spec-specific diagnostics in test errors/output also remain in the report. There is no blanket main-process stderr or Electron trace guarantee. Adding that would broaden this upload fix into capture policy, so the harness is unchanged.

Checks

  • RED: the new gate-run test observed no flaky=true; the workflow test found no measured upload.
  • GREEN: node --test .github/scripts/gate-plan.test.mjs scripts/ci-gate-flaky.test.mjs: 94/94. The workflow tests exercise both jobs' upload conditions across checkout outcomes, pass/fail, explicit evidence, flaky output and measured status; the existing build/settle step pins follow the new id.
  • Static through a master worktree's launcher on a9ae93b: run 40866605469, green (plan and static passed; all unrequested gates skipped).
  • No measured mini run was requested; it remains reserved for scheduled measured series. No full local suite or Mac configuration changes.

Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)

Sminos-Session: CI-opt#a45b97a3 (doperpowers on macbook)
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 29, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-29T11:39:31.202787Z a9ae93b PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@SSFSKIM
SSFSKIM merged commit c849196 into master Oct 29, 2026
SSFSKIM added a commit that referenced this pull request Oct 29, 2026
…job's evidence and a measured group keeps its samples

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
SSFSKIM added a commit that referenced this pull request Oct 29, 2026
…9-remote

One conflict, in src/main/index.ts's import block: O8 M4a's page-fixture import beside remote lane A's; both kept.

Sminos-Session: GUI AI agent workspace charter#37052769 (MAWS on macbook)
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.

1 participant