Skip to content

Isolate store presentation tests from native HTTPS workers - #211

Merged
ymote merged 1 commit into
mainfrom
fix/offline-store-ui-tests
Oct 11, 2026
Merged

ymote merged 1 commit into
mainfrom
fix/offline-store-ui-tests

Conversation

@ymote

@ymote ymote commented Oct 11, 2026

Copy link
Copy Markdown
Collaborator

The App Hub presentation test manually supplies an SVG download response, but it also starts a real request to https://example.com/icon.svg. On Linux this creates detached native HTTP/OpenSSL workers that can still run while the test process exits.

Use a recording network backend scoped to this test's Cx. Preserve the simulated response and rendering assertions, and additionally check the request ID, exact URL, GET method, 1 MiB response limit, completed request removal and absence of a second download when the image is cached. No production code changes and no tests skipped.

This removes a concrete test-isolation defect discovered while investigating the post-merge Linux failure of run 38118564980: all 48 tests printed PASS before the process exited with SIGSEGV. The exact SIGSEGV cause is not proven without a native backtrace. This PR does not claim to fix every Makepad/OpenSSL shutdown race.

Validation on macOS Apple silicon, plain pinned Makepad d653bc4493619ab979ccff165cf48c0c63b77d19:

  • cargo test --locked --release -p octosense-app-hub-app --no-default-features --lib: 48 passed, no failures/skips, successful process exit.
  • The affected test passed 50/50 fresh-process repetitions, including successful process exit.
  • git diff --check passed.

Linux and Windows acceptance remains the PR's native-tools CI; local repetitions above were on macOS.

@ymote
ymote merged commit 3863591 into main Oct 11, 2026
3 checks passed
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