Skip to content

test: route reader visual smoke through lab scenario - #1048

Merged
Sinity merged 1 commit into
masterfrom
feature/test/reader-visual-lab-scenario
May 15, 2026
Merged

Sinity merged 1 commit into
masterfrom
feature/test/reader-visual-lab-scenario

Conversation

@Sinity

@Sinity Sinity commented May 15, 2026

Copy link
Copy Markdown
Owner

Summary\n\nRoute the reader visual/DOM smoke lane through the verification-lab operator surface so agents and operators can invoke it as a named scenario instead of remembering the raw pytest path.\n\n## Problem\n\n#1047 added fast reader DOM evidence, but the durable operator command was still pytest -q tests/visual. That left the lane outside devtools lab-scenario list, outside JSON report output, and easy to miss when following the MK3 execution plan.\n\n## Solution\n\n- Add reader-visual-smoke to devtools lab-scenario discovery.\n- Dispatch devtools lab-scenario run reader-visual-smoke to pytest -q tests/visual.\n- Emit JSON and optional report-file output for the lane.\n- Cover scenario discovery and dispatch in devtools unit tests.\n- Document the operator-facing command in the visual evidence docs and execution log.\n\nRef #865\n\n## Verification\n\n- ruff format --check devtools/lab_scenario.py tests/unit/devtools/test_lab_list_subcommands.py tests/unit/devtools/test_lab_surface.py → 3 files already formatted\n- ruff check devtools/lab_scenario.py tests/unit/devtools/test_lab_list_subcommands.py tests/unit/devtools/test_lab_surface.py → All checks passed\n- mypy devtools/lab_scenario.py tests/unit/devtools/test_lab_list_subcommands.py tests/unit/devtools/test_lab_surface.py → Success\n- pytest -q tests/unit/devtools/test_lab_list_subcommands.py tests/unit/devtools/test_lab_surface.py -k lab_scenario → 6 passed\n- devtools lab-scenario run reader-visual-smoke --json → 4 passed\n- devtools verify --quick → exit_code 0\n- devtools verify --affected --skip-slow → exit_code 0

Problem: the new reader visual/DOM evidence lane existed only as a raw pytest invocation, so agents and operators had to remember a separate command outside the verification-lab surface.\n\nWhat changed: add reader-visual-smoke to devtools lab-scenario listing and dispatch, write optional JSON report output, document the command, and cover the list/dispatch behavior with unit tests.\n\nVerification:\n- ruff format --check devtools/lab_scenario.py tests/unit/devtools/test_lab_list_subcommands.py tests/unit/devtools/test_lab_surface.py\n- ruff check devtools/lab_scenario.py tests/unit/devtools/test_lab_list_subcommands.py tests/unit/devtools/test_lab_surface.py\n- mypy devtools/lab_scenario.py tests/unit/devtools/test_lab_list_subcommands.py tests/unit/devtools/test_lab_surface.py\n- pytest -q tests/unit/devtools/test_lab_list_subcommands.py tests/unit/devtools/test_lab_surface.py -k lab_scenario\n- devtools lab-scenario run reader-visual-smoke --json\n- devtools verify --quick\n- devtools verify --affected --skip-slow\n\nRef #865
@coderabbitai

coderabbitai Bot commented May 15, 2026

Copy link
Copy Markdown

Warning

Rate limit exceeded

@Sinity has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 47 minutes and 10 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro

Run ID: 4379df5e-bf9d-4430-a1de-be39a449426c

📥 Commits

Reviewing files that changed from the base of the PR and between 7b850cf and a89660e.

📒 Files selected for processing (5)
  • devtools/lab_scenario.py
  • docs/plans/mk3-execution-log.md
  • docs/visual-evidence.md
  • tests/unit/devtools/test_lab_list_subcommands.py
  • tests/unit/devtools/test_lab_surface.py
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/test/reader-visual-lab-scenario

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@Sinity
Sinity merged commit 972cf56 into master May 15, 2026
4 checks passed
@Sinity
Sinity deleted the feature/test/reader-visual-lab-scenario branch May 15, 2026 13:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant