Skip to content

test(host): assert the settings URL and cache behaviour the shell actually implements - #175

Draft
BigTava wants to merge 3 commits into
mainfrom
tiago-fix-host-settings
Draft

test(host): assert the settings URL and cache behaviour the shell actually implements#175
BigTava wants to merge 3 commits into
mainfrom
tiago-fix-host-settings

Conversation

@BigTava

@BigTava BigTava commented Aug 18, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Fix the five failing tests in host-settings.spec.ts, which asserted the opposite of behaviour the shell deliberately implements. All 28 now pass, up from 23.
  • Two expected chainBackend=smoldot-direct and skipWorkerCache=0 to stay in the address bar, but both are default values and packages/config/src/url-settings.ts strips default-valued axes so a clean URL means every axis is at its default. Neighbouring tests already assert that stripping, so the suite contradicted itself.
  • The other three expected the cached CID to survive turning the dotNS cache off, but changing any cache axis calls wipeOriginState and deletes all IndexedDB, so the entry is destroyed rather than ignored. Each story's real claim, that the name is looked up again, was already passing on the line above.
  • Rename "backend" to "network transport" across the test titles and add TRANSPORT_LABELS so looped titles read "smoldot per app", "shared smoldot" and "trusted provider" instead of stored values. Every story now starts with the user, including the 12 in navigation.spec.ts that previously opened with "when I open". No production identifier changed.
  • Add docs/functional-test-analysis.md, covering why the Functional job was red between 2026-08-04 and 2026-08-14, why nothing in this repo caused it, and a phased plan for making the next failure debuggable. host-settings.spec.ts is excluded from CI, which is why its five failures went unnoticed.

@github-actions

github-actions Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

Bundle Size Report

Chunks over 500 KB:

File Raw Brotli Gzip
host/assets/paseo.smol-DboPaEh1.json 1.84 MB 941.7 KB 1019.4 KB
host/assets/paseo-people-next.smol.json 3.36 MB 1.68 MB 1.82 MB
host/assets/previewnet.smol.json 547.1 KB 92.2 KB 101.2 KB
host/assets/smoldot.js 3.05 MB 2.27 MB (+198 B) 2.28 MB
host/assets/smoldot_worker.js 3.02 MB 2.26 MB 2.27 MB
host/assets/wasm/web/truapi_server_bg.wasm 7.06 MB 5.25 MB 5.52 MB
Total 19.88 MB (+6.3 KB) 12.80 MB (+1.8 KB) (-36%) 13.35 MB (+1.7 KB)
All files
File Raw Brotli Gzip
host/.well-known/apple-app-site-association 1.0 KB 1.0 KB 1.0 KB
host/.well-known/assetlinks.json 2.1 KB 343 B 427 B
host/assets/bridge.js 69.4 KB 19.0 KB (-28 B) 21.9 KB (+6 B)
host/assets/browser.js 22.9 KB 7.6 KB (+7 B) 8.6 KB
host/assets/client.js 100.1 KB 29.4 KB (-112 B) 32.4 KB
host/assets/dist.js 39.0 KB 12.9 KB (-9 B) 14.6 KB (-1 B)
host/assets/dotli-debug-bus.js 710 B 710 B 710 B
host/assets/get-sync-provider.js 2.8 KB 1.1 KB (-1 B) 1.2 KB
host/assets/hex.js 154 B 154 B 154 B
host/assets/index.css 48.0 KB 7.6 KB 8.5 KB
host/assets/index.js 202.2 KB 50.8 KB (+105 B) 60.6 KB (+6 B)
host/assets/manifest.js 22.6 KB 7.2 KB (+3 B) 8.0 KB
host/assets/panel.js 76.2 KB 20.6 KB (+2 B) 23.2 KB (+3 B)
host/assets/paseo.smol-DboPaEh1.json 1.84 MB 941.7 KB 1019.4 KB
host/assets/paseo-people-next.smol.json 3.36 MB 1.68 MB 1.82 MB
host/assets/paseo.smol.json 23.4 KB 5.4 KB 6.2 KB
host/assets/previewnet.smol.json 547.1 KB 92.2 KB 101.2 KB
host/assets/resolve.js 156 B 156 B 156 B
host/assets/rpc-resolve.js 2.5 KB 1.0 KB (-13 B) 1.2 KB (-1 B)
host/assets/smoldot.js 3.05 MB 2.27 MB (+198 B) 2.28 MB
host/assets/smoldot_worker.js 3.02 MB 2.26 MB 2.27 MB
host/assets/spans.js 2.6 KB 1.1 KB 1.3 KB
host/assets/src.js 1.8 KB 846 B (-8 B) 944 B (-2 B)
host/assets/styles.css 15.3 KB 3.3 KB 3.8 KB
host/assets/wasm/web/README.md 11.9 KB 11.9 KB 11.9 KB
host/assets/wasm/web/package.json 371 B 371 B 371 B
host/assets/wasm/web/truapi_server.d.ts 8.1 KB 8.1 KB 8.1 KB
host/assets/wasm/web/truapi_server.js 38.2 KB 6.6 KB 7.6 KB
host/assets/wasm/web/truapi_server_bg.wasm 7.06 MB 5.25 MB 5.52 MB
host/assets/wasm/web/truapi_server_bg.wasm.d.ts 3.0 KB 3.0 KB 3.0 KB
host/assets/web.js 13.3 KB 3.6 KB (-2 B) 4.0 KB
host/assets/worker-runtime.js 6.4 KB (+6.3 KB) 1.7 KB (+1.5 KB) 1.8 KB (+1.7 KB)
host/assets/worker-runtime.js 106 B 106 B 106 B
host/assets/ws.js 23.1 KB 7.5 KB (+16 B) 8.2 KB
host/dotli.png 11.5 KB 11.5 KB 11.5 KB
host/favicon.svg 1.8 KB 1.8 KB 1.8 KB
host/host-sw.js 2.7 KB 1.1 KB (-10 B) 1.2 KB (+2 B)
host/icon-192.png 12.5 KB 12.5 KB 12.5 KB
host/icon-512.png 42.8 KB 42.8 KB 42.8 KB
host/index.html 24.4 KB 4.7 KB (-3 B) 5.8 KB (-3 B)
host/manifest.webmanifest 441 B 441 B 441 B
host/workbox.js 14.8 KB 4.6 KB 5.1 KB
sandbox/app-sw.js 9.7 KB 3.2 KB (+13 B) 3.6 KB
sandbox/assets/bitswap-bridge.js 840 B 840 B 840 B
sandbox/assets/fetch.js 3.4 KB 1.2 KB 1.4 KB (-1 B)
sandbox/assets/index.css 48.0 KB 7.6 KB 8.5 KB
sandbox/assets/index.js 120.4 KB 34.3 KB (+90 B) 40.4 KB (-1 B)
sandbox/favicon.svg 1.8 KB 1.8 KB 1.8 KB
sandbox/index.html 1.7 KB 578 B (-1 B) 784 B (-1 B)
Total 19.88 MB (+6.3 KB) 12.80 MB (+1.8 KB) (-36%) 13.35 MB (+1.7 KB)

Commit: ee2264a

@github-actions

Copy link
Copy Markdown
Contributor

⚡ Performance Report

⚠️ No baseline found on main. This PR's results are recorded but cannot be compared.
Merge to main to establish a baseline.

@github-actions

github-actions Bot commented Aug 18, 2026

Copy link
Copy Markdown
Contributor

E2E Product suite failed on 08fe16bc9c9e8c0e5ed54fd8901da92542e3f934 — 38 passed, 7 failed, 17 skipped.

Failed tests:

  • Get Product Account
  • Product Signer
  • Product Account Alias
  • All Allowances
  • As a product user, I can navigate within the current product
  • Query Balance
  • Sign Raw Message

Logs: https://github.com/paritytech/dotli-community/actions/runs/32150054869
Artifacts: e2e-product-results (uploaded above) — open the failed test's trace.zip with npx playwright show-trace.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant