Commit 9c092ca
committed
ci: enable Hub-Client E2E Tests workflow
The workflow had never actually run on a runner — every push to main
since it was added queued for the 24-hour GitHub Actions maximum and
was cancelled because `runs-on: ubuntu-latest-8x` isn't a runner label
this repo can request. Switching to `ubuntu-latest` unblocked
everything else; from there the workflow itself needed several layers
of fixes to actually pass:
- Runner label: ubuntu-latest-8x → ubuntu-latest.
- Build order: build the WASM module before the TypeScript packages,
since hub-client's vite build imports the WASM JS glue.
- WASM tooling: install wasm-bindgen-cli pinned to the version in
Cargo.lock, and add the rust-src component (required by
-Zbuild-std=std,panic_unwind in the wasm-quarto-hub-client crate's
.cargo/config.toml).
- Nightly pin: latest nightly rustc SIGSEGVs when compiling tokio for
wasm32-unknown-unknown under -Zbuild-std. Pin nightly-2026-05-07 via
the workflow's RUSTUP_TOOLCHAIN env var so rust-toolchain.toml stays
as floating "nightly" for local developers.
- dtolnay/rust-toolchain action: dated nightlies need @master with a
toolchain input, not @nightly-YYYY-MM-DD as a ref.
- TypeScript build scoping: only build ts-packages + hub-client. The
q2-demos workspaces fail their vite build (vite can't resolve an
absolute import in the wasm-bindgen output) and trace-viewer is out
of scope. Tracked as bd-1jnb.
- Pre-build the hub binary: globalSetup launches it with `cargo run
--bin hub` and waits 120s for "Hub server listening" — on a cold
runner the cargo compile exceeded that.
- Baseline-commit step: switch the broken `**` glob to `find ... -name
'*-snapshots' -exec git add -f {} +` (bash globstar isn't enabled by
default; visual specs sit directly under hub-client/e2e/, not one
directory deeper) and grant `contents: write` so the default
GITHUB_TOKEN can push the auto-generated baselines back to the
branch.
- Add a `pull_request` trigger with the same path filter as `push`,
so PRs that touch hub-client or the workflow file have to prove
themselves green before merging.1 parent 422c3c1 commit 9c092ca
1 file changed
Lines changed: 53 additions & 8 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
9 | 13 | | |
10 | 14 | | |
11 | 15 | | |
| |||
15 | 19 | | |
16 | 20 | | |
17 | 21 | | |
18 | | - | |
| 22 | + | |
19 | 23 | | |
20 | 24 | | |
21 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
22 | 37 | | |
23 | 38 | | |
24 | 39 | | |
| |||
34 | 49 | | |
35 | 50 | | |
36 | 51 | | |
37 | | - | |
| 52 | + | |
38 | 53 | | |
| 54 | + | |
39 | 55 | | |
| 56 | + | |
40 | 57 | | |
41 | 58 | | |
42 | 59 | | |
| |||
51 | 68 | | |
52 | 69 | | |
53 | 70 | | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
54 | 79 | | |
55 | 80 | | |
56 | 81 | | |
| |||
69 | 94 | | |
70 | 95 | | |
71 | 96 | | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
| 97 | + | |
| 98 | + | |
76 | 99 | | |
77 | 100 | | |
78 | 101 | | |
79 | 102 | | |
80 | 103 | | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
81 | 123 | | |
82 | 124 | | |
83 | 125 | | |
| |||
112 | 154 | | |
113 | 155 | | |
114 | 156 | | |
115 | | - | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
116 | 161 | | |
117 | 162 | | |
118 | 163 | | |
119 | 164 | | |
120 | 165 | | |
121 | | - | |
| 166 | + | |
122 | 167 | | |
123 | 168 | | |
124 | 169 | | |
| |||
0 commit comments