Skip to content

fix(tests): harden journeys against container network changes - #1690

Merged
BenjaminMichaelis merged 1 commit into
mainfrom
bmichaelis-journey-network-change-flake
Nov 18, 2026
Merged

BenjaminMichaelis merged 1 commit into
mainfrom
bmichaelis-journey-network-change-flake

Conversation

@BenjaminMichaelis

Copy link
Copy Markdown
Member

Why

Main's failed Ubuntu run dropped same-origin scripts with net::ERR_NETWORK_CHANGED. Without hcaptcha-form.js, login posted without a captcha token and the journeys timed out waiting for #logout. The same failure occurred before the Aspire package update in #1688.

Approach

  • Move the second-AppHost smoke test into its own ParallelGroup, isolating its container-network creation and teardown from browser journeys without serializing the journeys themselves.
  • Allow journey navigation up to three attempts when same-origin resources fail at the network level. Log retries and report accumulated failures when recovery is exhausted. Intentional ERR_ABORTED cancellations are excluded; HTTP errors are not grounds for retrying.

The second AppHost is a likely trigger, not a proven explanation for every CI occurrence. Isolation applies within this test assembly. Bounded reloads address transient failures, not continuous network churn.

Local evidence

  • All 28 AppHost tests passed with no skips on Windows with Linux containers. TRX timestamps show the second AppHost starting after every journey finished.
  • Linux Chromium in Podman: no-churn baseline had 0/10 broken loads. Bursty container-network changes caused 3/20 broken loads without retries and 0/20 with retries. Continuous churn still exhausted retries in 15/15 loads.
  • Temporary fault injection reproduced the captcha rejection without recovery and authenticated successfully with recovery. Persistent script failures produced bounded diagnostics. The recovery probe's request-count assertion failed (3 requests rather than 2), despite successful login; the temporary probes were removed.

The real Linux CI suite still needs to confirm the improvement; the Windows test run does not reproduce Chromium's Linux network-change behavior.

References

@BenjaminMichaelis
BenjaminMichaelis merged commit 520dd41 into main Nov 18, 2026
28 of 29 checks passed
@BenjaminMichaelis
BenjaminMichaelis deleted the bmichaelis-journey-network-change-flake branch November 18, 2026 20:19
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