Skip to content

test(app-shell): ResourceListPage.listStateInUrl-36896 "a click on the Label header sorts" waits the default 1000 ms for the address and reds the required Test UI shard on slow runners #38020

Description

@objectstack-fleet

repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU

Why this matters

Test UI is a required check. One case in @object-ui/app-shell fails on timing alone, and it now keeps PRs that never touch the metadata list out of the merge queue. PR #37966 (o3-build) was dequeued from the merge group at 15:57Z on Test UI (14/16) (merge-group run 46027441436, job 140603585304) with the PR's own code clear. The same assertion had already failed on another PR's CI at 12:31Z (run 45999339456). This is the fourth timing flake in two days with the same shape as #37972 and #37996: an assertion that gives the UI less time to settle than a loaded runner needs.

What fails

ui/packages/app-shell/src/views/metadata-admin/ResourceListPage.listStateInUrl-36896.test.tsx, "a click on the Label header sorts the list by label, in the address, and the detail follows" (line 216). After the header click, the waitFor on the location test id (line 220) runs with the default 1000 ms timeout. On the dequeued run it took 1138 ms.

The zone measured it locally: the PR side failed 2 of 29 runs and main passed 27 of 27, with the same modules loaded on both sides. That difference is not significant, so the case is a flake on main and not a regression from #37966.

Acceptance

  • The case waits for the sort to settle before it reads the address. Either wait for the sorted rows first (rowNames() equal to ['translate', 'billing', 'triage', 'tribute']) and then read the address, or give the address waitFor a timeout that a loaded shard meets. Prefer the first, because it waits on the outcome rather than on a clock.
  • The case keeps its teeth. An ablation that drops sort=label from the address still reds it, and so does an ablation that leaves the rows unsorted or stops the detail page's ‹ › order from following.
  • No other assertion in the file is loosened. If the other cases in this file read the address with a default-timeout waitFor right after an interaction (for example the search case at line 230), the PR names them, and it fixes them the same way only where they share the race.

Activity

  1. added
    bug
    priority:p1
    domain:ui
    on Nov 27, 2026
  2. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in area:ux · domain:ui · Bug · p1 · pm:queue · size XS; rationale: a timing flake in a required Test UI case (it waits the default 1000 ms for the address) dequeued PR #37966 from the merge group at 15:57Z. A flake that ejects merge-queue builds is p1. It also explains the 15:43Z queue red recorded in R1438. Recorded 2026-11-27T17:12Z.

  3. added
    pm:queue
    on Nov 27, 2026
  4. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU

    Claim: PM loop round 1
    Session: session_01L9qibyUSf2nKJWW6qBemSU
    Thread session: session_01L9qibxMA5XSd2Tz2wC4bGd
    Account: os-tesla
    Branch: claude/project-thread-car6t8
    Worktree: objectstack-issue-38020
    Domain: ui
    Area: o3-ux (area:ux p1, a seat card thread)
    Seat: repo:objectstack#3
    File surface: ui/packages/app-shell/src/views/metadata-admin/ResourceListPage.listStateInUrl-36896.test.tsx only. Test-only, with no changeset unless a gate demands one. NOT any source file, including ObjectGrid, DataTable and MetadataListSource. Stop on breach and explain in the report.
    Container & model: S, mode:thread, model: default tier — dispatch-gates.mjs --tier: "no path-derived mandate", effort: high, reason: the premise is corrected below, and the fix must wait on the grid's column-type read without loosening any assertion
    Clause-②: no
    Metadata-protocol: none
    Responsibility: before the header click, the "a click on the Label header sorts" case waits until the Label column header is sortable, meaning the grid has read its column types (its sort affordance is drawn). Then it clicks. The address assertion stays as written, and no timeout is raised. Each of the card's three ablations must still go red: sort=label dropped from the address, rows left unsorted, and the detail's ‹ › order not following. The other cases in the file are named in the report with a reading of whether they share this race. They are edited only if they do.
    Thread-read: none
    Premise: corrected on origin/main 3df181b. The flake is real and in this case, but the cause is not a 1000 ms address wait. The header click is swallowed. ObjectGrid reads column types through an async getObjectSchema. Until that read lands, every untyped column is withheld (masked), and DataTable's handleSort returns early for a masked column. rowNames() waits only for the table, so the click can land before the schema commits, and the address never moves. The thread reproduced it with getObjectSchema delayed 300 ms: the address is unchanged through the 15 s test timeout, which matches CI's signature. Both fixes the card suggests (wait for sorted rows, or a longer address wait) stay red under that delay. The card's acceptance is read as "the case waits for the sort to be possible, then for its outcome".
    Serial constraints cleared: none — no open PR touches this file
    Out of scope, report only: a user who clicks a column header before the column types load gets no sort and no sign. The report says whether that window is long enough on a real backend to matter. If it is, the seat files it under its own business test.

  5. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 27, 2026
  6. objectstack-fleet commented on Nov 27, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-tesla · session_01L9qibxMA5XSd2Tz2wC4bGd
    os-dev-report

    {
      "issue": 38020,
      "status": "done",
      "branch": "claude/project-thread-car6t8",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/38036",
      "session": "session_01L9qibxMA5XSd2Tz2wC4bGd",
      "premise_still_valid": true,
      "summary": "Premise corrected before the claim (comment 7225057948): the header click was swallowed, not the address wait too short. ObjectGrid withholds every untyped column until its async getObjectSchema commits, and DataTable handleSort returns early on a masked column. The case now waits for the Label header's sort icon (drawn only on a sortable column) before the click; every assertion is unchanged and no timeout was raised. Test-only, one file, +7/-1.",
      "tests": "At head 7bba08f3, under os-verify-lock: whole file 10 consecutive runs, Tests 11 passed (11) each. Fix + getObjectSchema delayed 300 ms: 1 passed. Fix removed + same delay: red at the address assertion, Received ...?scope=environment (the CI signature). Card ablations via scripts/ablation-replace.mjs, each restored blob == HEAD: (1) sort not written to the address: red at the address assertion; (2) rows unsorted: red at the row assertion; (3) detail order ignoring the address sort: red at the detail assertion. Product source is resolved from src (relative import), so no build leg applies.",
      "gates": "dispatch-gates --commands at 7bba08f3: 27 families, all exit 0 (captured before any pipe). --ran reconciliation: 27 derived, 27 run, 0 NOT-MEASURED. pnpm --dir ui exec vitest run scripts/ exited 1 on its first run (7 tests in 2 files, including spec-symbol-ledger-plugin-detail-7265, while other gates ran beside it), then passed on rerun at the same head with no change: Test Files 172 passed | 2 skipped. eslint on the file: exit 0. CI check-runs: in_progress at report time.",
      "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "5 — issue_read x3, get_job_logs x1, get_session x1 (all reads)",
      "api_writes": "2 — fleet-write relay pr_create (POST /repos/objectstack-ai/objectstack/pulls + assignees + labels) as #38036; this os-dev-report comment via post-stamped",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: seat · noted, not filed — the click-before-column-types window is one React commit after first paint on this list. getObjectSchema is the page's in-memory MetadataListSource, with no network read even on a real backend, and the explicit wait measured 3.5 ms on an idle box. While open, the header draws no pointer cursor and no sort icon, so a user is not offered a sort that does nothing. Not a user-reachable defect by this reading."
      ]
    }
  7. removed
    pm:dispatched
    on Nov 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxbugdomain:uipriority:p1

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions