Skip to content

Resolve e2e daily builds per branch, not via /rstudio/latest - #18500

Merged
gtritchie merged 2 commits into
mainfrom
bugfix/18498-daily-manifest-per-branch
Aug 10, 2026
Merged

gtritchie merged 2 commits into
mainfrom
bugfix/18498-daily-manifest-per-branch

Conversation

@gtritchie

Copy link
Copy Markdown
Member

Problem

The e2e workflows installed the build named by
dailies.rstudio.com/rstudio/latest/index.json while running the tests from the
checked-out branch. Those are two different branches whenever the alias lags a
rollover, and its index.json does lag: after the 2026.08 branch cut, the
/rstudio/latest/ page served Autumn Hawkbit (2026.09) while
/rstudio/latest/index.json still named a Yellow Yarrow (2026.08) build.

CI reads the JSON. So the scheduled rotation installed a 2026.08 binary and ran
main's tests against it, and every test covering behavior added after the cut
failed on every platform with nothing wrong in either the test or the product.
Both #18454 and #18470 landed that way: 8 of the 9 tests #18454 added failed,
and the only one that passed was the one asserting behavior that predates it.

Change

  • New .github/actions/os-resolve-daily-manifest derives the manifest URL from
    version/RELEASE, turning it into the "flower" path segment the same way
    docker/jenkins/publish-build.sh does when it writes the manifest. Reader and
    writer stay in step, and a manifest named after its own branch cannot be
    mis-pointed by an alias.
  • The nine workflows that read /rstudio/latest/index.json now consume that
    output.
  • The action validates the derived segment, so a malformed version/RELEASE
    fails instead of resolving to some other object on the dailies host.
  • The scheduled workflow's resolve job gains a checkout, since it cannot read
    version/RELEASE otherwise.
  • A missing platform key now fails with the branch and key named, and says that
    a source build is how to test a branch without a daily.
  • The PR workflow's paths filter picks up the new action and version/RELEASE,
    so a change to the resolver, or to the input that selects which branch's daily
    it resolves, triggers the workflow that exercises it.

The action computes a URL and makes no network request, so it is safe in the
jobs that end up using an override installer URL instead of a manifest.

Verification

  • actionlint over all nine workflows reports the same 17 pre-existing
    shellcheck items as main, and no new ones. shellcheck is clean on the
    action's script.
  • The slug derivation resolves Autumn Hawkbit and Yellow Yarrow correctly,
    with and without a trailing newline, and rejects ../../evil, foo/bar, an
    empty file, -leading-dash, and Autumn Hawkbit?x=1.
  • Both resolved manifest URLs return HTTP 200 with the expected branch.
  • Every daily_platform_key in .github/e2e-linux/*.json, plus macos and
    server noble-amd64, resolves in the per-branch manifest.

No NEWS.md entry: this is CI wiring with no user-facing change.

Addresses #18498.

The e2e workflows installed the build named by
dailies.rstudio.com/rstudio/latest/index.json while running the tests from
the checked-out branch. Those are two different branches whenever the alias
lags a rollover, and its index.json does lag: after the 2026.08 branch cut
the /rstudio/latest/ page served Autumn Hawkbit (2026.09) while
/rstudio/latest/index.json still named a Yellow Yarrow (2026.08) build. CI
reads the JSON, so the scheduled rotation installed a 2026.08 binary and ran
main's tests against it. Every test covering behavior added after the cut
failed on every platform, with nothing wrong in either the test or the
product -- #18454 and #18470 both landed that way.

Resolve the manifest from version/RELEASE instead. The new
os-resolve-daily-manifest action turns it into the "flower" path segment the
same way docker/jenkins/publish-build.sh does when it writes the manifest, so
the reader and the writer stay in step, and a manifest named after its own
branch cannot be mis-pointed by an alias. It computes a URL and makes no
network request, so it is safe in the jobs that end up using an override URL
instead.

A missing platform key now fails with the branch and key named, and says a
source build is the way to test a branch with no daily. Autumn Hawkbit has no
Windows build yet, so the Windows engines take that path until one is
published; installing a 2026.08 .exe was never a valid substitute.

Addresses #18498
The pull_request paths filter lists every composite action these workflows
use, but the new os-resolve-daily-manifest was missing, so a PR touching only
the resolver would not run the workflow that exercises it.

version/RELEASE joins it for the same reason one step further out: it selects
which branch's daily each platform resolves, so a change there changes the
binary under test. A flower with no daily yet falls through decide() to a
source build, so such a PR proves the transition works instead of leaving it
to the next cron rotation.

Addresses #18498
@gtritchie gtritchie added this to the 2026.09 (Autumn Hawkbit) milestone Aug 10, 2026
@gtritchie
gtritchie requested a review from ronblum August 10, 2026 20:14
@github-actions

Copy link
Copy Markdown

RStudio E2E - all platforms

11 test(s) failed

###################- 99% pass rate

Passed Failed Skipped Flaky
2020 11 375 5
Platform ✅ Passed ❌ Failed ⚠️ Skipped 🔁 Flaky
✅ auth-teardown 2 0 8 0
✅ desktop-linux 502 0 90 1
✅ desktop-macos 497 0 95 2
❌ desktop-windows 508 11 79 1
✅ server-linux 489 0 95 1
✅ setup 22 0 8 0
View / download the full report

View report online -- opens in the browser, no download needed. Available for 14 days.

Download playwright-report.zip -- extract and open index.html

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


All platforms - commit 36b043c4e76d385bcf3472950741869ea4bf39a4 - Run #504

@gtritchie
gtritchie merged commit 51d8f9a into main Aug 10, 2026
26 of 27 checks passed
@gtritchie
gtritchie deleted the bugfix/18498-daily-manifest-per-branch branch August 10, 2026 21:47
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