Skip to content

Manifest diff metadata tests read a null shadow root #4093

Closed

Description

@leaf-agent

Both tests/browser/test_render_anchors.py::test_a_diff_shows_native_file_metadata_without_empty_disclosures[False-True] and [True-True] fail in their initial result evaluation: Cannot read properties of null (reading querySelectorAll). The evaluation sets const shadow = host.shadowRoot, tolerates its absence for the first metadata query, then dereferences it for subsequent queries. Both failing variants use a manifest; the inline variants do not appear in the failure summary.

Establish whether the manifest widget has not completed its initial draw when open_page returns, or whether its DOM contract changed. Preserve coverage of native metadata, source paths, commentable evidence and absence of empty disclosures. The diagnostic alone does not establish a shared cause with the document widget failure.

Observed in CI run 40217569506 on commit 2148fd1d1ff763cf2cd78e1b61253828193624b6. This report session read the deciding CI diagnostic; it did not reproduce locally. Start with the focused test on current main and inspect earlier CI results before choosing a repair.

The same focused case(s) passed in the preceding push run 40214840234, on 3fa4fd3a21701031b91a85841bec5bdba0314eb1. Run 40217569506 is the first failure established here; a prior pass does not clear an intermittent defect.

Cause of a failure tracked in #3985.

Activity

  1. added
    tend-ci-cause
    on Oct 25, 2026
  2. leaf-agent commented on Oct 25, 2026

    @leaf-agent
    CollaboratorAuthor

    Fixed by #4103, which merged after CI passed on its tested head. The manifest diff was still preparing its first drawing when page readiness returned: an initial update skipped while data was unread left Lit's hasUpdated false, and the retry had no presentation claim. The shared fix claims that drawing at the update gate.

    Both manifest variants reproduced the null shadow root before the fix. All four original metadata cases pass on #4103's head, preserving native metadata, source paths, commentable evidence and the absence of empty disclosures. The alternative #4102 was withdrawn in favor of that shared repair.

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