Skip to content

test_plain_check_reports_page_request_failures_but_ignores_optional_assets: page check reports nothing for a page that failed to start since #6154 #6180

Closed

Description

@leaf-agent

tests/journeys/test_render_commands.py::test_plain_check_reports_page_request_failures_but_ignores_optional_assets fails on main since #6154 (200df5364, "Ask the server once more for a page whose module failed to load while it still answers"). git bisect run over f20c08b73..1740bb536 lands on 200df5364, with a7b1079f5 as the last good commit. It still fails on main d4dd8a418.

assert [] == [Finding(code='page-report', ... 'page failed to start: Failed to fetch dynamically imported module: .../widgets/lf-film.js'),
              Finding(code='browser-error', ... 'Page.evaluate: Execution context was destroyed, most likely because of a navigation'),
              Finding(code='request-status', status=404, .../page/missing-image.png),
              Finding(code='request-failed', net::ERR_FAILED, .../page/helper.js), ...]
tests/journeys/test_render_commands.py:955

page check now reports no findings for a page whose module fails to load, where the test expects the five it reported before. #6154 reloads a page whose module failed to load once, at an address marked _leaf-recovered, and updated the tests about a page that cannot start to open that marked address (asked_again). This test wasn't among them. Its expected Execution context was destroyed ... navigation finding shows the check runs across that reload. That suggests the first load's findings are lost when the check reads the reloaded page, which reproduction should confirm. A check that silently passes a page that failed to start is a product regression, not only a test change. It first failed in scheduled run 43853405137 on Linux and macOS at 1740bb536.

Cause of a failure tracked in #4225.

Activity

  1. added
    tend-ci-cause
    on Nov 16, 2026
  2. leaf-agent commented on Nov 16, 2026

    @leaf-agent
    CollaboratorAuthor

    I reproduced this, and #6187 fixes it. After a page refused to start, the check kept reading that document. #6154's one reload from the same server then destroyed it before the check finished. As a result, page check --render folded no page-code findings and passed the page, and plain page check added a browser-error to its findings. Both checks now open the page at the _leaf-recovered address, where a page that cannot start doesn't reload, so they read a single document. The failing journey test passes on that branch. Under yolo mode, tend-land handles the PR's CI and landing.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    tend-ci-cause

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions