Skip to content

fall back to source build when the e2e daily is stale or unresolvable - #18040

Merged
kevinushey merged 1 commit into
mainfrom
bugfix/e2e-daily-staleness-fallback
Jun 22, 2026
Merged

kevinushey merged 1 commit into
mainfrom
bugfix/e2e-daily-staleness-fallback

Conversation

@kevinushey

Copy link
Copy Markdown
Collaborator

Problem

The PR-triggered Desktop e2e workflow tests a test-only PR against the latest daily installer instead of running a ~60 min source build. Two issues surfaced from PR #18039's CI failure:

  1. macOS resolve used a stale manifest key. It read .products.electron.platforms["mac-arm64"] (falling back to ["mac"]), but the daily now ships a single universal .dmg keyed macos. Both old keys are gone, so every test-only PR failed at resolve with an empty url/filename/sha256 ("manifest is missing expected fields"). Windows was unaffected -- it reads platforms.windows, which still exists.

  2. A valid daily can still be the wrong binary. The latest daily may be built from a commit that predates the branch's merge-base (e.g. after merging main in), so the suite could run new test code against a binary missing the behavior it assumes.

Change

Move the daily-vs-source decision into the early detect-changes job, decided per platform (the manifest can carry a different commit per platform). A daily is used only when all hold:

  1. No compiled-binary source changed (existing check).
  2. The manifest resolves a usable installer for that platform (link + filename + sha256 + commit all present).
  3. git merge-base --is-ancestor <merge-base> <daily commit> -- the daily already contains everything the branch is based on.

Any miss -- source changed, manifest unreachable/malformed/missing-fields, or a stale daily -- falls back to a source build, so a broken or stale daily can never silently run the suite against the wrong binary. Also fixes the macOS resolve key (macos, with the old keys kept as fallbacks) so the daily path's own re-resolve succeeds.

Verification

Tested the decide logic against the live manifest under Actions' bash -eo pipefail:

  • old merge-base contained in daily -> use daily
  • merge-base newer than daily -> source build
  • source changed -> source build
  • empty / malformed / missing-fields manifest -> source build (step does not abort)

Notes

  • CI/tooling only; no user-facing change, so no NEWS.md entry.
  • Developer/infra change; no associated issue.

The PR-triggered Desktop e2e workflow tests a test-only PR against the
latest daily installer instead of a ~60 min source build. Two problems:

- The macOS resolve step read the manifest keys mac-arm64/mac, but the
  daily now ships a single universal .dmg keyed macos, so every test-only
  PR failed at resolve with an empty url/filename/sha256.
- Even with a valid manifest, the daily can predate the branch's
  merge-base (e.g. after merging main in), so the suite could run the new
  test code against a binary missing the behavior it assumes.

Move the decision into detect-changes, per platform: use a daily only
when no compiled-binary source changed, the manifest resolves a usable
installer (link+filename+sha256+commit), and the daily's commit already
contains the branch's merge-base. Any miss (broken/unreachable/malformed
manifest, or a stale daily) falls back to a source build.
@kevinushey kevinushey added this to the 2026.07 (Pacific Dogwood) milestone Jun 22, 2026
@kevinushey
kevinushey requested a review from gtritchie June 22, 2026 19:55
@github-actions

Copy link
Copy Markdown

🍎 macOS Desktop E2E · ARM64

✅ All tests passed!

████████████████████ 100% pass rate

✅ Passed ❌ Failed ⚠️ Skipped 🔁 Flaky
402 0 18 0
📥 Download Playwright report

⬇️ playwright-report.zip — extract and open index.html

Includes screenshots, traces, and step-by-step details for every test. Expires in 15 days.


2 shards · macos-26 ARM64 · commit 00860aa5e1f223a47b56a0e47fc1aa7b199e81cc · Run #140

@gtritchie gtritchie left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@github-actions

Copy link
Copy Markdown

🪟 Windows Desktop E2E · Server 2025 x64

✅ All tests passed!

████████████████████ 100% pass rate

✅ Passed ❌ Failed ⚠️ Skipped 🔁 Flaky
406 0 15 1
📥 Download Playwright report

⬇️ playwright-report.zip — extract and open index.html

Includes screenshots, traces, and step-by-step details for every test. Expires in 15 days.


2 shards · Windows Server 2025 x64 · commit 00860aa5e1f223a47b56a0e47fc1aa7b199e81cc · Run #140

@kevinushey
kevinushey merged commit a063930 into main Jun 22, 2026
15 checks passed
@kevinushey
kevinushey deleted the bugfix/e2e-daily-staleness-fallback branch June 22, 2026 21:49
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.

2 participants