loopx icon indicating copy to clipboard operation
loopx copied to clipboard

CI: Release Artifacts browser smoke fails with "The source badge does not repeat the visible Goal title"

Open hhyykk opened this issue 1 month ago • 3 comments

Failing job

Workflow "Release Artifacts" (.github/workflows/release-artifacts.yml), job build, step "Exercise the installed page in a real browser" fails.

Failing run on PR #7386 (head 423ebb27bd64c13d991eaf8195d39d7be9f90445): https://github.com/loopx-project/loopx/actions/runs/40307999141

  • build job: https://github.com/loopx-project/loopx/actions/runs/40307999141/job/121521803224

Error

Exact assertion text:

AssertionError [ERR_ASSERTION]: The source badge does not repeat the visible Goal title

The step runs npm run smoke:personal-workspace-packaged, which chains to smoke:chat-model-menu. That runs apps/presentation/dashboard/smoke/chat-model-menu-smoke.mjs (built with vite SSR). The assertion's actual value is a context-help element whose trigger has aria-label="Historical run · 只读", and the check is doesNotMatch against /Historical run/.

Same assertion text in other failing build jobs:

  • Run 40309846734 (head 415eaa0d44630fd6cda85121a155bcdcedb20c3a): https://github.com/loopx-project/loopx/actions/runs/40309846734 (build job https://github.com/loopx-project/loopx/actions/runs/40309846734/job/121527985227)
  • Run 40297894021 (head ed2f5c9b19f2a260616b83104a681faefa826764): https://github.com/loopx-project/loopx/actions/runs/40297894021 (build job https://github.com/loopx-project/loopx/actions/runs/40297894021/job/121488330192)
  • Run 40291344970 (head 2694ff6091f1749323ebda50e410cf8db1622680): https://github.com/loopx-project/loopx/actions/runs/40291344970 (build job https://github.com/loopx-project/loopx/actions/runs/40291344970/job/121466891305)

These three heads do not contain commit 423ebb27bd64c13d991eaf8195d39d7be9f90445.

Main branch

The workflow triggers on pull_request, release and workflow_dispatch only. No Release Artifacts run exists on main. The five most recent runs of this workflow (all PR heads) are:

  • 40313320762, failure: https://github.com/loopx-project/loopx/actions/runs/40313320762
  • 40313161226, failure: https://github.com/loopx-project/loopx/actions/runs/40313161226
  • 40312657968, cancelled: https://github.com/loopx-project/loopx/actions/runs/40312657968
  • 40312041520, failure: https://github.com/loopx-project/loopx/actions/runs/40312041520
  • 40310381832, failure: https://github.com/loopx-project/loopx/actions/runs/40310381832

Commit context

Commit 4b392c8328b7ba4451baefbd7812dcd3dcc580db ("fix(workspace): preserve original Goal source identity and recovery (#6928)"), committed 2026-10-20T08:19:40Z. It is an ancestor of the failing PR heads checked, including 423ebb27. The cause of the failure is not established by these logs, and no passing Release Artifacts run was found to bracket the first failure.

Required status checks

Repository ruleset "protect main" (id 18121976) requires Sign-off and merge-gate (integration 15368). The build job of Release Artifacts is not a required check.

Owners

Mentions: @huangruiteng @maxliux5 @songoow. .github/CODEOWNERS on main has /apps/presentation/dashboard/ @huangruiteng @maxliux5 @songoow @loopx-agent, which matches apps/presentation/dashboard/smoke/chat-model-menu-smoke.mjs. No later rule overrides it for that path.

hhyykk avatar Oct 26 '26 11:10 hhyykk

Verified resolved on current main: the Release Artifacts workflow completed success on 2026-11-08 (run on 24ca29f4e; the only non-green runs afterward were cancelled supersessions), which exercises the exact build job 'Exercise the installed page in a real browser' step and its source-badge assertions this report flagged from 2026-10-26. The later #8032 hang was tracked and fixed separately (f04ec308f). Looks closeable — leaving that to a maintainer.

LIHUA919 avatar Nov 10 '26 05:11 LIHUA919

TL;DR: Still no recurrence of this report's source-badge assertion — re-checked after the 11-16 merges and again on 2026-11-19 UTC. Failures have since shifted to a prepare gate that skips the browser exercise; it also corrects our 2026-11-10 comment.

At check time (2026-11-17 12:44 UTC; merges #8853/#8854/#8860, last 11-16 13:47 UTC): the 47 failures then showed no badge assertion; the window now counts 48 (43905362341 late). Latest then: 44080770888, green. build is gated on three partitioned browser jobs (workflow unchanged since 11-10). 45 of 47: the same browser (3/3) timeout (locator.waitFor: Timeout 30000ms exceeded) across 32 branches. Other 2: unrelated one-offs.

As of 2026-11-19 17:12 UTC: 337 runs since check time — 203 failed, 112 green. 198 at the prepare gate (Runtime default contract is unqualified for public adoption; browser skipped), 2 shard failures (1 timeout, 1 assertion; last 2026-11-18) [corrected 11-19 UTC], 3 cancelled mid-run. Latest completed: 44571998913, failure. Badge assertion: 0 hits in 10 recent failed logs — all prepare-gate: masked, not disproven.

Correction — our 2026-11-10 comment said "the only non-green runs afterward were cancelled supersessions". Wrong: 52 failures completed before it, after 11-08's green run. The shard-timeout follow-up goes to #8032 (open; our 2026-11-08 "Verified resolved" needs re-checking — timeouts resumed 2026-11-08 [corrected 11-19 UTC]), not a separate report.

Verification:

gh api --paginate "repos/loopx-project/loopx/actions/workflows/329313040/runs?per_page=100&created=>2026-11-17T12:44:11Z"
# 337 runs: 203 failure / 112 success / 22 cancelled; per-failure shape via runs/<id>/jobs
gh run view <id> -R loopx-project/loopx --log-failed | grep -icE "source badge|does not repeat the visible"
# 0 hits in 10 recent failures; pulled 2026-11-19T17:12:56Z
gh api repos/loopx-project/loopx/issues/8032   # open, 1 comment (ours, 2026-11-08)

AronSwan avatar Nov 19 '26 19:11 AronSwan

TL;DR: The source-badge assertion is fixed on the current main tip and the Release Artifacts workflow is green again — the exact failing script passes locally on main, and today's green CI runs exercise it in all three partitioned browser jobs. No recurrence of the badge assertion since the 2026-10-26 fix. Maintainers may close.

Evidence (main @ dc90f1f4c467214fa5660191529c81ac0e05fdea, checked 2026-11-22):

  • Fix: #7380 (commit 0cb32b00c9f, merged 2026-10-26T14:14Z, ~3h after this report) — when the Goal title already names the read-only source, the ContextHelp accessible name now names its purpose instead of repeating <source> · read-only, and the smoke assertion is scoped to the badge's persistent label with the on-demand popover stripped (channel-header.tsx, chat-model-menu-smoke.mjs). The fix is intact at the current tip and is an ancestor of it. Sibling report #7378 (same assertion, chat-bundle-browser lane) was closed completed on the same fix.
  • Local rerun on a clean checkout of the main tip: npm ci --ignore-scripts then npm run -s smoke:chat-model-menu exits 0 — "Chat model/header/composer: bilingual model, defaults and accessible refresh assertions passed (SSR only)".
  • CI: of the 15 most recent Release Artifacts runs (through 2026-11-22T16:55Z), 12 completed success, 2 cancelled (supersessions), 1 queued. Green run 45045941984 (PR head f94703ec5a, 2026-11-22T16:49Z) ran the packaged browser smoke in all three partitioned browser (1-3/3) jobs that now gate build, and each shard's log shows smoke:chat-model-menu passing. The prepare-gate skips that masked the browser exercise in the 11-19 window no longer dominate.
  • Follow-up from the same lane: the hang family tracked in #8032 was fixed by f04ec308f and #8032 is closed completed (2026-11-21).

Verification-method note: the original "Exercise the installed page in a real browser" step moved from the build job into the partitioned browser jobs (#8443), so the step shape differs from the 10-26 report, but the exact assertion is still exercised and green on current heads.

Leaving the close to a maintainer.

LIHUA919 avatar Nov 22 '26 18:11 LIHUA919