Skip to content

Share Console Logs browser test setup - #5435

Merged
freeqaz-openai merged 1 commit into
mainfrom
quality/simplify-console-log-read-cases
Nov 11, 2026
Merged

freeqaz-openai merged 1 commit into
mainfrom
quality/simplify-console-log-read-cases

Conversation

@freeqaz-openai

@freeqaz-openai freeqaz-openai commented Nov 11, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Share the output locator, revision log path, and clock-controlled Follow setup across the existing Console Logs browser cases. Give the malformed-page helper a type for the three fields these tests deliberately corrupt. The cases keep their separate cursor, retry, access-revocation, and Download checks.

Verification

  • The owning tests/browser/console-agent-logs.test.ts file passed all 83 cases on base b30d3def and candidate e83f150a, with identical ordered results, zero skips, and successful browser and loopback cleanup. Both local runs used sandboxed Chrome and fixture-specific HTTPS trust.
  • Workspace validation, TypeScript, ESLint, formatting, and CI test selection passed locally.
  • Hosted Console Browser passed all 845 cases on tested merge f94d11d4. The owning Console Logs file matched all 83 local results in order, with zero skips and successful file and lane cleanup. Hosted job

@clawsweeper

clawsweeper Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@freeqaz-openai
freeqaz-openai marked this pull request as ready for review November 11, 2026 08:30
@freeqaz-openai
freeqaz-openai requested a review from a team as a code owner November 11, 2026 08:30
@clawsweeper clawsweeper Bot added P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Nov 11, 2026
@clawsweeper

clawsweeper Bot commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge.

What this changes

This PR shares Console Logs browser locators, revision paths, and clock setup while narrowing the malformed-page helper’s TypeScript type.

Example: Follow receives its first line after an empty tail.

  • Before: The browser case repeats page creation, fetch tracking, clock installation, and Logs login.
  • After: The case uses openLogsWithClock and retains its output and failed-refresh assertions.

Review scores

Measure Result What it means
Overall readiness 🦐 gold shrimp (3/6) The patch is narrowly scoped and preserves assertions; available validation is browser-harness evidence rather than separate shipped-entry-point proof.
Proof confidence 🦐 gold shrimp (3/6) This collaborator-authored test-only refactor changes no shipped behavior; browser validation is supporting evidence, with production Console and controller code exercised against an in-memory Compute Driver.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Product

Kind: Test only · Worth it: Yes
Reason: The collaborator-authored direction removes repeated setup while keeping distinct regression checks readable and independent.

Merge readiness

✅ Ready for maintainer review

This PR is a focused, behavior-preserving test cleanup with no actionable defects found; collaborator authorship and repository policy also require keeping it open.

Priority: P3
Reviewed head: e83f150af73d8d3a0cd5789e2891e550be084d4a

Before merge

None.

Findings

None.

Agent review details

How this fits together

The browser suite drives the production Console and controller with real IAM and cursor handling, using an in-memory Compute Driver to supply log records and failures.

flowchart LR
  A[Browser scenarios] --> B[Shared test setup]
  B --> C[Console Logs UI]
  C --> D[Controller and IAM]
  D --> E[Compute fixture]
  E --> C
Loading

Technical review

Best possible solution:

Retain the focused shared setup with each existing scenario’s independent assertions.

Do we have a high-confidence way to reproduce the issue?

There is no reported product defect to reproduce; source comparison shows equivalent setup, and GitHub confirms the owning browser job succeeded.

Is this the best way to solve the issue?

The extraction stays private to the existing suite and preserves setup order; the older retained-view helper has additional behavior unsuitable for these Follow cases.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning medium; reviewed against 6b4e85174966.

Provenance checked

  • Malformed-page setup and corruption typing keeps the original intent (14b0a9e: Preserve visible output and Follow cursors after malformed responses, then recover on a valid retry.)
  • Clock-controlled Follow setup keeps the original intent (46f6f41: Protect idle polls from rewriting rows and ensure the first followed output replaces the empty-tail status.)
  • Source-switch locator and revision path keeps the original intent (bfd1576: Clear the previous source’s retry message and timer while the newly selected source loads.)
  • Pending-download output locator keeps the original intent (15f2ad3: Prevent a status refresh from enabling a second download while the first remains pending.)
  • Retained-output scenario locators keeps the original intent (81b712f: Keep same-selection output during failed refreshes while clearing output immediately when its selection changes.)

Testing

Proof path: in-process harness.

Security

None.

Evidence

What I checked:

Preflight source

Source unknown. Source comparison at the observed PR snapshot only. Completion is self-reported; body, policy, tests, execution, and report bytes are not verified.

Review metrics

Metric Value Why it matters
Change scope Production +0/-0; tests +42/-24 Growth is limited to shared setup and stronger test typing, with existing behavioral checks preserved.

Labels

Label changes:

  • add P3: This is low-risk test maintenance without a user-facing behavior change.
  • add rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦞 diamond lobster.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Label justifications:

  • P3: This is low-risk test maintenance without a user-facing behavior change.
  • rating: 🦐 gold shrimp: Overall readiness is 🦐 gold shrimp; proof is 🦐 gold shrimp and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR.

Rating scale

6/6 🦀 challenger crab · 5/6 🦞 diamond lobster · 4/6 🐚 platinum hermit · 3/6 🦐 gold shrimp · 2/6 🦪 silver shellfish · 1/6 🧂 unranked krab. Overall follows the weaker of proof and patch quality; ✨ marks media proof (a screenshot, video, or linked artifact) that directly shows the changed behavior.

Workflow

ClawSweeper edits this one comment on every review. Comment @clawsweeper re-review for a fresh review only. Repair and merge execution lanes are retired.

Reviewed November 11, 2026, 3:43 AM ET / 08:43 UTC.

@freeqaz-openai
freeqaz-openai merged commit 49775d6 into main Nov 11, 2026
49 of 51 checks passed
@freeqaz-openai
freeqaz-openai deleted the quality/simplify-console-log-read-cases branch November 11, 2026 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

P3 Low-risk cleanup, docs, polish, ergonomics, or speculative feature. rating: 🦐 gold shrimp Decent PR readiness signal, but merge confidence is limited. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant