Skip to content

Flaky: test_api_examples[webkit-shiny/api-examples/todo_list/app-core.py] — resource 404 in console #2431

Description

@schloerke

Occurrence

Error

E           AssertionError: In app shiny/api-examples/todo_list/app-core.py had JavaScript console errors!
E           Failed to load resource: the server responded with a status of 404 (Not Found)

tests/playwright/examples/example_apps.py:258: AssertionError
========= 1 failed, 96 passed, 4 skipped, 3 rerun in 110.79s (0:01:50) =========

The assertion is the console_errors check in example_apps.py:258. Note the 3 rerun — the in-job pytest-rerunfailures retries were exhausted, so this reproduced several times within the one job before surfacing.

Why this looks like a flake

  • Passed on restart. gh run rerun 31414916798 --failed came back fully green (173 passed, 2 skipped, 0 failed) with no code change in between.
  • The failure is a static resource 404 in the browser console, not an app-level Python error, and the commit under test changed only docstrings.
  • The immediately preceding head on the same branch was fully green at 173 passed.

Notes

The console message does not identify which resource 404'd, which is the main obstacle to diagnosing this. If it recurs, capturing the failing request URL (e.g. logging console_errors alongside the page's failed network requests in example_apps.py) would make the next occurrence actionable — a webkit-only asset race on app startup is the leading guess.

Metadata

Metadata

Assignees

Labels

ai-generated-issueIndicates that the issue body was generated by automation.flaky testA test that failed in CI but passed on rerun; tracked for recurrence

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions