Skip to content

fix: CI smoke matrix routing - #1284

Merged
ndizazzo merged 1 commit into
mainfrom
codex/fix-ci-smoke-matrix-routing
Aug 13, 2026
Merged

fix: CI smoke matrix routing#1284
ndizazzo merged 1 commit into
mainfrom
codex/fix-ci-smoke-matrix-routing

Conversation

@ndizazzo

@ndizazzo ndizazzo commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator

Summary by CodeRabbit

  • Bug Fixes

    • Improved product smoke-test workflow selection to reliably identify requested checks from formatted configuration data.
    • Prevented incorrect job matching that could cause smoke checks to run or be skipped unexpectedly.
    • Improved cleanup during model connection retries, maintaining existing retry and cancellation behavior.
  • Tests

    • Added coverage confirming each expected smoke check is detected correctly and outdated matching behavior is rejected.
    • Added validation for reliable retry cleanup and abort handling.

@coderabbitai

coderabbitai Bot commented Aug 13, 2026

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 97ebef84-9bf7-444e-9899-96eb29d73133

📥 Commits

Reviewing files that changed from the base of the PR and between 883901a and ed9bc0c.

📒 Files selected for processing (1)
  • crates/mesh-llm-ui/src/features/chat/api/mesh-connection.ts

📝 Walkthrough

Walkthrough

Product smoke jobs now parse inputs.smoke_matrix as JSON and select entries by id. Tests cover all six IDs. Model route retry cleanup now uses scoped constants and unconditional cleanup.

Changes

Product smoke matrix selection

Layer / File(s) Summary
Parse smoke matrix IDs
.github/workflows/ci-product-smoke-slice.yml
All six product smoke jobs use parsed matrix entries to match their expected smoke IDs.
Validate matrix selection
scripts/tests/test_ci_lane_workflows.py
Tests verify ID-based selection for all six jobs and reject direct matrix lookup.

Model route retry cleanup

Layer / File(s) Summary
Scope retry cleanup bindings
crates/mesh-llm-ui/src/features/chat/api/mesh-connection.ts
Retry cleanup uses const bindings and unconditionally clears the timer and abort listener.

Estimated code review effort: 2 (Simple) | ~10 minutes

Mergeability Score: 🔵 Low · up to ed9bc

This PR changes CI smoke-matrix routing, but its regression test does not prove that each smoke ID remains attached to the intended job, so an incorrect routing change could pass CI while exercising the wrong coverage. The PR is mergeable with explicit owner awareness or follow-up to strengthen that assertion.

Possibly related PRs

Suggested reviewers: michaelneale, i386

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the primary change: fixing CI smoke matrix routing.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch codex/fix-ci-smoke-matrix-routing

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.

@coderabbitai coderabbitai 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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@scripts/tests/test_ci_lane_workflows.py`:
- Around line 204-220: Update
test_product_smoke_jobs_parse_formatted_matrix_json to verify each smoke ID
within its intended job block in ci-product-smoke-slice.yml, rather than
searching the entire workflow text. Parse or scope the workflow so the expected
job-to-ID mapping is enforced, while retaining the negative assertion that
rejects the obsolete direct inputs.smoke_matrix lookup.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: b7433e2f-3492-4670-8c6b-84af03304b1d

📥 Commits

Reviewing files that changed from the base of the PR and between 767edfb and 883901a.

📒 Files selected for processing (2)
  • .github/workflows/ci-product-smoke-slice.yml
  • scripts/tests/test_ci_lane_workflows.py

Comment on lines +204 to +220
def test_product_smoke_jobs_parse_formatted_matrix_json(self) -> None:
workflow = self.workflow("ci-product-smoke-slice.yml")
for smoke_id in (
"core",
"core-cuda",
"two-node-client",
"two-node-split",
"metal-model-load",
"model-download",
):
with self.subTest(smoke_id=smoke_id):
self.assertIn(
f"contains(fromJson(inputs.smoke_matrix).*.id, '{smoke_id}')",
workflow,
)
self.assertNotIn("contains(inputs.smoke_matrix,", workflow)

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.

🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win

Assert each smoke ID on its intended job.

The test checks each expression anywhere in ci-product-smoke-slice.yml. It can pass when two IDs are attached to the wrong jobs. Scope each assertion to the matching job block, or parse the workflow and assert the job-to-ID mapping. Keep the negative assertion for the obsolete direct lookup.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@scripts/tests/test_ci_lane_workflows.py` around lines 204 - 220, Update
test_product_smoke_jobs_parse_formatted_matrix_json to verify each smoke ID
within its intended job block in ci-product-smoke-slice.yml, rather than
searching the entire workflow text. Parse or scope the workflow so the expected
job-to-ID mapping is enforced, while retaining the negative assertion that
rejects the obsolete direct inputs.smoke_matrix lookup.

@github-actions
github-actions Bot requested a review from michaelneale August 13, 2026 02:56
@ndizazzo ndizazzo changed the title Fix CI smoke matrix routing fix: CI smoke matrix routing Aug 13, 2026
@ndizazzo
ndizazzo force-pushed the codex/fix-ci-smoke-matrix-routing branch from 883901a to ed9bc0c Compare August 13, 2026 03:15
@ndizazzo
ndizazzo merged commit f3b6c89 into main Aug 13, 2026
6 of 9 checks passed
@ndizazzo
ndizazzo deleted the codex/fix-ci-smoke-matrix-routing branch August 13, 2026 03:51
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