← Back to Pull requests

test(topology): settle geometry requests before the telemetry-refetch check #5129

Open
unknown opened this pull request with 650 lines diff across 8 files
View on GitHub
unknown unknown commented on Oct 04, 2026 01:30 UTC
Author

Intent

Fix two races in //elixir/web-ng/assets:million_world_browser_test (god_view_million_browser.cjs) that intermittently fail BazelCI: (1) take the telemetry-refetch baseline only after geometry tile requests stop arriving (three quiet 250 ms windows, bounded 10 s) so in-flight tile loads are not charged to overlays.poll(); (2) optional-chain deck.props.layers[0]?.isLoaded so the settle predicate retries instead of throwing. Contract unchanged: a telemetry poll fetches no geometry. Test-only change; evidence is BazelCI failures 'telemetry must not refetch geometry 206 !== 203' (invocation fff1295b) and 'Cannot read properties of undefined (reading isLoaded)' (invocation 6c2ffbb5). Do not run Bazel or browsers locally; PR BazelCI runs this target. PR title 'test(topology): settle geometry requests before the telemetry-refetch check'; body ends with: 🤖 Generated with Claude Code

What Changed


  • Optional-chained the settle predicate to renderer.deck.props.layers[0]?.isLoaded === true so a missing first deck layer retries instead of throwing out of the wait.

  • Added a bounded geometry-quiescence wait (three quiet 250 ms windows, up to 40 tries) before taking the telemetry-refetch request baseline, so in-flight tile loads are not counted against overlays.poll().
  • 🤖 Generated with Claude Code

    Risk Assessment

    ✅ Low: Test-only change that keeps the telemetry-no-geometry contract intact while making the settle predicate retry instead of throw and baselining only after 750ms of geometry quiet bounded at 10s.

    Testing

    Verified the diff statically: optional-chained settle predicate and bounded three-quiet-window baseline. Did not run Bazel or browsers locally as the intent forbids it and assigns this target to PR BazelCI, so no scenario was driven live.

  • Live validation: ⚠️ inconclusive - 0 of 2 scenarios driven live against the product
  • | Scenario | Result | Live | Evidence |
    | --- | --- | --- | --- |
    | Telemetry poll fetches no geometry after settled baseline | ⏸️ untested | no | Live drive requires //elixir/web-ng/assets:million_world_browser_test via Bazel + Playwright Chromium. User intent explicitly forbids running Bazel or browsers locally and assigns this target to PR Ba… |
    | Settle wait retries instead of throwing when deck layer is absent | ⏸️ untested | no | Live drive needs the real god-view page with deck.gl in a browser (invocation 6c2ffbb5 context). Intent forbids local browser runs; only a stub simulation of layers[0]?.isLoaded === true was execute… |

    <details>
    <summary>Evidence: static syntax and logic simulation</summary>

    baseline: test -f .bazelrc.remote => present
    node --check elixir/web-ng/assets/god_view_million_browser.cjs => OK
    predicate simulation:
      old layers[0].isLoaded on [] throws: true
      new layers[0]?.isLoaded === true on [] returns false (wait retries, no throw)
      new on [{isLoaded:true}] returns true
      new on [{isLoaded:false}] returns false
    quiet-window loop simulation:
      immediate quiet => terminates after 3 windows
      never-settling => bounded at 40 tries (10s at 250ms), then assertion reports
    Bazel/browsers NOT run locally per user intent; PR BazelCI owns //elixir/web-ng/assets:million_world_browser_test.
    

    </details>
  • Outcome: ⚠️ 1 warning across 1 run (3m59s)
  • Pipeline

    Updates from git push no-mistakes

    <!-- no-mistakes-pipeline-attestation:v1 {"head_sha":"7790ed673b39761c83ede044482cff4a5ab1d76f","steps":[{"step":"intent","status":"completed"},{"step":"rebase","status":"completed"},{"step":"review","status":"completed"},{"step":"test","status":"completed"},{"step":"document","status":"completed"},{"step":"lint","status":"completed"},{"step":"gate.lint.test-registration","status":"completed"},{"step":"gate.lint.elixir-quality","status":"completed"},{"step":"push","status":"completed"},{"step":"pr","status":"running"},{"step":"ci","status":"pending"}],"live_validation":{"verdict":"inconclusive","live":0,"total":2}} -->

    <details>
    <summary>✅ intent - passed</summary>

    ✅ No issues found.
    </details>

    <details>
    <summary>✅ Rebase - passed</summary>

    ✅ No issues found.
    </details>

    <details>
    <summary>✅ Review - passed</summary>

    ✅ No issues found.
    </details>

    <details>
    <summary>⚠️ Test - 1 warning</summary>

  • ⚠️ live validation verdict: inconclusive (0 of 2 scenarios were driven live against the product); untested: Telemetry poll fetches no geometry after settled baseline, Settle wait retries instead of throwing when deck layer is absent

  • Live validation: ⚠️ inconclusive - 0 of 2 scenarios driven live against the product
  • | Scenario | Result | Live | Evidence |
    | --- | --- | --- | --- |
    | Telemetry poll fetches no geometry after settled baseline | ⏸️ untested | no | Live drive requires //elixir/web-ng/assets:million_world_browser_test via Bazel + Playwright Chromium. User intent explicitly forbids running Bazel or browsers locally and assigns this target to PR Ba… |
    | Settle wait retries instead of throwing when deck layer is absent | ⏸️ untested | no | Live drive needs the real god-view page with deck.gl in a browser (invocation 6c2ffbb5 context). Intent forbids local browser runs; only a stub simulation of layers[0]?.isLoaded === true was execute… |

  • test -f .bazelrc.remote

  • <code>test -f .bazelrc.remote (baseline, present)</code>

  • <code>node --check elixir/web-ng/assets/god_view_million_browser.cjs (syntax OK)</code>

  • <code>node -e predicate/quiet-loop simulation (optional-chain no longer throws; quiet loop terminates in 3 windows when settled and is bounded at 40x250ms when never settling)</code>

  • </details>

    <details>
    <summary>✅ Document - passed</summary>

    ✅ No issues found.
    </details>

    <details>
    <summary>✅ Lint - passed</summary>

    ✅ No issues found.
    </details>

    <details>
    <summary>✅ gate.lint.test-registration - passed</summary>

    ✅ No issues found.
    </details>

    <details>
    <summary>✅ gate.lint.elixir-quality - passed</summary>

    ✅ No issues found.
    </details>

    <details>
    <summary>✅ Push - passed</summary>

    ✅ No issues found.
    </details>

    Diff: 650 lines (+487 / -163) across 8 files Reviewer: copilot-pull-request-reviewer[bot] Review duration: 0m
    All Vouch review confidence checks passed
    Residual risk 0.51 = Change Risk (0.57) × (1 − Review Confidence (0.10)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.57 · 650 lines diff across 8 files
    0.57
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.02 · 1 substantive comment(s)
    0.02
    Model 3 · Review Timing & Attention
    Session adequacy: 3% · Reviewer familiarity: 35%
    10%
    Bedrock Claude 3 · Risk Narration
    (disconnected)
    Groq
    Groq Risk Narration
    AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
    Model 1 · Change Risk Attribution
    SHAP Weights
    Diff Size diff_size
    0.388
    Shallow Review Depth shallow_review_depth
    0.344
    Ai Authored ai_authored
    0.050
    Real PR Conversation Timeline
    1 comments
    "Review active on #5129"
    general weight: 0.35
    Assignees
    Unassigned
    Labels
    risk: medium confidence: 10.1% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 57% (MEDIUM) · Higher = larger blast radius
    57%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 10.1% · Lower = rushed or shallow review
    10.1%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 51.3% · Moderate risk
    51.3%