Skip to content

fix(tests): align quantum integration test with whitelisted autorun jobs#465

Merged
Bryan-Roe merged 3 commits into
mainfrom
cursor/repository-automation-2e9d
Jun 21, 2026
Merged

fix(tests): align quantum integration test with whitelisted autorun jobs#465
Bryan-Roe merged 3 commits into
mainfrom
cursor/repository-automation-2e9d

Conversation

@cursor

@cursor cursor Bot commented Jun 20, 2026

Copy link
Copy Markdown

Summary

Hourly repo health automation failed pre-commit because test_run_autorun_job_reads_status_for_list_and_dict_shapes used a non-whitelisted job name (another). The quantum integration bridge only accepts baseline, benchmark, nightly, and smoke.

Changes

  • Update the list/dict status-shape test to use the whitelisted smoke job name while still exercising _find_job_status normalization for both payload shapes.

Verification

  • pytest tests/test_quantum_integration.py — 2 passed
  • Full health cycle: PYTHON_BIN=.venv/bin/python .venv/bin/python scripts/repo_health_automation.py --once --repair-status --refresh-stale-status --run-agents --continue-on-fail
    • repair_data_out_status: PASS
    • pre_commit_check: PASS (2725 tests)
    • integration_contract_gate: PASS
    • run_repo_agents: PASS (status-freshness ok; docstring/marker warnings expected)
Open in Web View Automation 

Summary by Sourcery

Bug Fixes:

  • Update quantum integration autorun job status-shape test to use the whitelisted 'smoke' job name instead of a non-allowed job.

Note

Low Risk
Generated status JSON only; no runtime, auth, or business-logic code changes in the diff.

Overview
This diff only updates checked-in data_out status and CI artifact JSON—no source or test files appear in the patch.

It bumps timestamps and run IDs across orchestration outputs (autonomous_agent, autotrain, ci_orchestrator, evaluation_autorun, master_orchestrator, quantum_autorun, repo_health_automation) to reflect a run around 2026-06-20T19:02.

data_out/integration_smoke/status.json also changes the recorded chat_cli_local_once smoke step: longer duration and updated assistant text for the local fallback provider message.

data_out/repo_health_automation/status.json captures a successful health cycle (repair status, pre-commit with 2725 tests passed, integration contract gate, repo agents) with matching step timing tweaks.

Reviewed by Cursor Bugbot for commit fbc7374. Bugbot is set up for automated code reviews on this repo. Configure here.

The run_autorun_job bridge rejects non-whitelisted job names before
status lookup; align the list/dict status-shape test with allowed names.

Co-authored-by: Bryan
@github-actions github-actions Bot added the tests label Jun 20, 2026
Record passing repo health automation run (2725 tests, integration gate,
repo agents) with updated timestamps.

Co-authored-by: Bryan
@sourcery-ai

sourcery-ai Bot commented Jun 20, 2026

Copy link
Copy Markdown
Contributor
Reviewer's guide (collapsed on small PRs)

Reviewer's Guide

Align quantum integration autorun status-shape test with the whitelisted job names by switching from a generic job name to the allowed smoke job, and updating associated expectations and status fixtures.

File-Level Changes

Change Details Files
Update quantum integration autorun status-shape test to use the whitelisted smoke job name instead of another.
  • Change list-shaped jobs payload to use a single smoke job with preset heart and status completed.
  • Change dict-shaped jobs payload to use a smoke key and job entry with preset heart and status completed.
  • Invoke run_autorun_job with job name smoke and update assertions to expect smoke in job_name and status.name while still validating preset normalization.
tests/test_quantum_integration.py
Refresh repo health/status fixtures to reflect the passing health automation run after aligning the test with whitelisted autorun jobs.
  • Update autonomous_agent status JSON to reflect current status produced by the health automation.
  • Update autotrain, ci_orchestrator, evaluation_autorun, integration_smoke, master_orchestrator, quantum_autorun, and repo_health_automation status JSON fixtures to the latest outputs.
data_out/autonomous_agent/status.json
data_out/autotrain/status.json
data_out/ci_orchestrator/ci_results.json
data_out/evaluation_autorun/status.json
data_out/integration_smoke/status.json
data_out/master_orchestrator/status.json
data_out/quantum_autorun/status.json
data_out/repo_health_automation/status.json

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@github-actions

github-actions Bot commented Jun 20, 2026

Copy link
Copy Markdown

🟡 Coverage — 8c6113c

Metric Value
Total coverage 65.6%
▲ vs main +0.3%
Minimum threshold 60%

Updated on every push · 2026-06-21

@Bryan-Roe Bryan-Roe marked this pull request as ready for review June 21, 2026 06:41
@Bryan-Roe Bryan-Roe self-requested a review as a code owner June 21, 2026 06:41
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey - I've reviewed your changes and they look great!


Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment and I'll use the feedback to improve your reviews.

Signed-off-by: Bryan <74067792+Bryan-Roe@users.noreply.github.com>
@Bryan-Roe Bryan-Roe merged commit 00e927f into main Jun 21, 2026
22 of 38 checks passed
@Bryan-Roe Bryan-Roe deleted the cursor/repository-automation-2e9d branch June 21, 2026 06:44
@github-actions github-actions Bot removed the tests label Jun 21, 2026
@cursor

cursor Bot commented Jun 21, 2026

Copy link
Copy Markdown
Author

Bugbot couldn't run - usage limit reached

Bugbot is counted against Cursor usage for this user or team, and this run hit a usage or spend limit.

A user or team admin can review and increase usage limits in the Cursor dashboard.

(requestId: serverGenReqId_36ee82fc-c823-4b72-8ed1-af25f9931d20)

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.

2 participants