Repository navigation
fall back to source build when the e2e daily is stale or unresolvable - #18040
Merged
Merged
Conversation
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.
🍎 macOS Desktop E2E · ARM64✅ All tests passed!
📥 Download Playwright report⬇️ playwright-report.zip — extract and open
2 shards · macos-26 ARM64 · commit |
🪟 Windows Desktop E2E · Server 2025 x64✅ All tests passed!
📥 Download Playwright report⬇️ playwright-report.zip — extract and open
2 shards · Windows Server 2025 x64 · commit |
4 tasks
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
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:
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.dmgkeyedmacos. Both old keys are gone, so every test-only PR failed at resolve with an emptyurl/filename/sha256("manifest is missing expected fields"). Windows was unaffected -- it readsplatforms.windows, which still exists.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
mainin), 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-changesjob, decided per platform (the manifest can carry a different commit per platform). A daily is used only when all hold:link+filename+sha256+commitall present).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
decidelogic against the live manifest under Actions'bash -eo pipefail:Notes