← Back to Pull requests

ci(inkless:system-tests): split the nightly ducktape suite into parallel shards [KC-838] #886

Closed
unknown closed this pull request without merging on Nov 20, 2026 13:10 UTC
View on GitHub
unknown unknown commented on Nov 19, 2026 17:50 UTC
Author

The nightly Inkless system tests ran in one job: one 11-node ducker cluster, one test at a time, under a 300-minute inner timeout and a 350-minute job timeout. The 2026-11-19 nightly spent 240.6 minutes in ducktape, so the classic-to-diskless switch tests that KC-838 adds had little room left. GitHub's 360-minute ceiling for hosted runners leaves no room to raise the timeouts.

The job is now a matrix of three shards. Each shard runs on its own runner, with its own ducker cluster, Postgres, and MinIO. The split follows the per-test times from that nightly:

| Shard | Ducktape target | Nightly time |
| ----- | --------------- | ------------ |
| switch-category-d | inkless_topic_switch_test.py::InklessClassicToDisklessSwitchTest.test_fault_between_seal_commit_and_phase_2 | 72.5 min |
| switch-other | inkless_topic_switch_test.py, excluding Category D | 88.2 min |
| other | tests/kafkatest/tests/inkless/, excluding inkless_topic_switch_test.py | 79.8 min |

The shards use ducktape --exclude, so together they always cover the whole directory. A new switch test lands in switch-other, and a new file lands in other, without a workflow change. Other behavior is unchanged:

  • Timeouts: each shard keeps the 300-minute inner timeout and the 350-minute job timeout. The workflow comment says to move tests or add a shard if a shard outgrows them.

  • Archive and cleanup: each shard keeps these steps and uploads its own inkless-system-tests-results-<shard> artifact.

  • Failure handling: fail-fast is off, so a failing shard doesn't cancel the others. If a target matches no tests, ducktape 0.13 exits 1 with "No tests to run!", and the shard fails.

  • Manual runs: the test-target input of workflow_dispatch is now optional. If it's empty, the full suite runs split. If it's set, the target runs as one custom job.
  • Testing

  • Run 44538947084 dispatched test-target=tests/kafkatest/tests/inkless/inkless_produce_consume_test.py, a file where ducktape finds no tests. It ran as one custom job, ducktape printed "No tests to run!", and the job failed.

  • Run 44540851724 dispatched the full suite with an empty target. It ran 50 tests across the shards, the same 50 as the 2026-11-19 nightly:

  • - switch-category-d: 12 passed, 69.7 minutes in ducktape.
    - other: 22 passed and 1 ignored, 81.3 minutes.
    - switch-other, attempt 1: 14 passed and 1 failed, 94.6 minutes. test_switch_succeeds_with_degraded_network failed because VerifiableConsumer reported "Consumed from an unexpected offset (4138, 2344)" for partition 28. That test passed in the 2026-11-19 nightly.
    - switch-other, attempt 2: 15 passed, 88.2 minutes.
  • Attempt 1 took 112 minutes from start to finish. The 2026-11-19 nightly took 267 minutes.

  • make vale reports no alerts on the new workflow comments.
  • 🤖 Generated with Claude Code

    Diff: 376 lines (+282 / -94) across 4 files Reviewer: gqmelo Review duration: 1160m
    All Vouch review confidence checks passed
    Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
    Model 1 · Change Risk (XGBoost)
    Score: 0.43 · 376 lines diff across 4 files
    0.43
    Model 2 · Review Depth (DistilBERT)
    Depth Score: 0.17 · 1 substantive comment(s)
    0.17
    Model 3 · Review Timing & Attention
    Session adequacy: 100% · Reviewer familiarity: 35%
    60%
    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.355
    Shallow Review Depth shallow_review_depth
    0.289
    Real PR Conversation Timeline
    1 comments
    "Review active on #886"
    general weight: 0.35
    Reviewers
    Assignees
    Unassigned
    Labels
    risk: low confidence: 60.5% 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: 42.9% (MEDIUM) · Higher = larger blast radius
    42.9%
    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: 60.5% · Lower = rushed or shallow review
    60.5%
    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: 16.9% · Safe to merge
    16.9%
    Repository