Skip to content

chore: promote dev to master — nightly fixes (#376) - #379

Merged
AminDhouib merged 6 commits into
masterfrom
dev
Sep 9, 2026
Merged

AminDhouib merged 6 commits into
masterfrom
dev

Conversation

@AminDhouib

Copy link
Copy Markdown
Member

Summary

  • Promotes fix(ci): make nightly green — four independent causes behind #376 #378 (four independent nightly causes: PostHog Query API result cache in the landing ingestion poll, resume-harness ports inside the ephemeral range, 5 s vitest timeout on the live one-drive suite, libheif-js 1.23.2 over the smoke opt-in budget) and chore: sync dev with master (CI artifact storage) #377 (dev synced with master) to master.
  • Proof: a manual workflow_dispatch of nightly.yml on dev (run 34346667864) is green on all eight jobs, including the landing feedback and package smoke jobs that had been red every night since 2026-08-02.
  • No package source changes, so no changeset and no release.

Refs #376 — closes once the first scheduled nightly on master is green.

Test Plan

  • nightly.yml on dev: all 8 jobs green (run 34346667864)
  • Status Check + E2E Status Check green on this PR

The package-smoke consumer installs fresh from core's `libheif-js: ^1.19.8`
with no lockfile - deliberately, so it resolves the way a real consumer would.
libheif-js 1.23.2 published 2026-09-05T19:18Z and grew the opt-in HEIC
emscripten bundle from 1,459 kB to 1939.4 KiB, so the very next nightly
(2026-09-06) went red on a budget no repo change had touched, and every
nightly since has died the same way:

  Error: Consumer JS asset libheif-bundle-DeNY_ZvL.js is 1939.4 KiB, above 1600.0 KiB

The same job gates PRs through e2e.yml. No PR ran between the upstream publish
and 2026-09-09, which is the only reason PRs still looked green; today's run
fails on this job and nothing else.

This ceiling guards the OPT-IN chunk, which is upstream WASM we neither author
nor can shrink. Core's mandatory path keeps its own tighter guards
(consumerEntryChunkBudget, .size-limit.json), so re-basing here does not weaken
them. Vite's chunkSizeWarningLimit moves in step.
Identical failure on the 2026-08-26, 09-02, 09-04, 09-05 and 09-06 nightlies -
the same single test every time, with the other 24 assertions green:

  FAIL tests/integration/drive-clients-live.integration.test.ts
       > drive-clients live - one-drive
       > a client can download each fixture and the bytes are byte-exact ...
  Error: Test timed out in 5000ms.

Every test in this file is network-bound against a production cloud API, and
the download case costs a folder listing plus a redirect-followed fetch and a
full stream drain per fixture. Vitest's 5 s default is a unit-test budget that
nobody chose for this suite, so the gate was reporting the clock rather than
the code.

What the suite actually gates is byte-integrity - sha256 against the committed
fixture - and never latency, so a 30 s ceiling loses nothing: a provider that
is down, or a token that is broken, still goes RED. hookTimeout moves with it
because beforeAll's OAuth mint is the same kind of round trip.

vi.setConfig applies file-wide and keeps the diff at 13 lines; restructuring
the describe call to take a timeout argument would have re-indented the whole
suite body for no additional guarantee. Verified rather than assumed: a
throwaway spec sleeping 7 s passes under vi.setConfig({ testTimeout: 20_000 })
where the 5 s default fails it.
The 2026-09-06 nightly's Full E2E job died here:

  Error: listen EADDRINUSE: address already in use :::53062
  Error: presign harness never bound http://localhost:53062 - is @useupup/server built?

Linux draws ephemeral source ports from 32768-60999, so 53061 and 53062 - the
fixed LISTEN ports the two real-MinIO resume specs own - sit inside the window
the kernel hands out for the runner's own outbound connections. Losing that
race costs the whole job: the child dies immediately and the harness poll then
burns its full 60 s against a port nothing is bound to.

Moved to 31061 and 31062, below the range, and recorded the rule on
startPresignHarness so the next spec that needs a harness picks a safe port
instead of the next number up.

The rest of the 5306x family is deliberately untouched: :53060 is the
cross-framework gate's harness and sits inside the OAuth clients' registered
redirect range (53050-53060), so it is pinned by external registration, not by
convention.
… poll

The nightly "AI thumbs events landed" case failed 8 of the last 9 nights
with a 90 s poll timeout, while PostHog's own `created_at` shows both
`ai_response_rated` and `ai_response_feedback_comment` ingested 1-2 s
after capture on every one of those nights (run ids e2e:1788769131541-…,
e2e:1788594082953-…, e2e:1788509140023-…, …). The data was there for the
whole poll; the poll never saw it.

Cause: the Query API's default execution mode ("blocking") serves a cached
result whenever one exists for identical query text and is not yet stale,
and every iteration of `expect.poll` sends byte-identical text. A first
poll that lands before the events are queryable caches an empty result and
the remaining 90 s replay that cache. The support case right before it
passes because its events are already minutes old by the time it polls.

Send `refresh: 'force_blocking'` so every poll recalculates, and log a
transient non-OK status so a future timeout is never a silent mystery.
fix(ci): make nightly green — four independent causes behind #376
chore: sync dev with master (CI artifact storage)
@codesandbox

codesandbox Bot commented Sep 9, 2026

Copy link
Copy Markdown

Review or Edit in CodeSandbox

Open the branch in Web EditorVS CodeInsiders

Open Preview

@AminDhouib
AminDhouib merged commit 3d02031 into master Sep 9, 2026
22 checks passed
AminDhouib added a commit that referenced this pull request Sep 9, 2026
chore: sync dev with master after the #379 promotion
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