8000 ci(inkless:system-tests): run the upstream Kafka system tests in sharded jobs [KC-856] by giuseppelillo · Pull Request #914 · aiven/inkless · GitHub
[go: up one dir, main page]

Skip to content

ci(inkless:system-tests): run the upstream Kafka system tests in sharded jobs [KC-856] - #914

Draft
giuseppelillo wants to merge 1 commit into
mainfrom
glillo/kc-856-release-tests-90b8ca
Draft

giuseppelillo wants to merge 1 commit into
mainfrom
glillo/kc-856-release-tests-90b8ca

Conversation

@giuseppelillo
@giuseppelillo giuseppelillo commented Nov 30, 2026 •
Copy link
Copy Markdown
Contributor

The upstream Apache Kafka system tests don't run in any workflow. The Inkless fork carries far more custom changes than a normal Kafka release branch, so nothing checks that the classic path of the fork still behaves like upstream.

This adds the Inkless Upstream System Tests workflow. The suite under tests/kafkatest/tests/ (everything except inkless/) has 1076 tests, which is too large for one job and the 360-minute runner limit. .github/scripts/upstream-system-test-shards.py splits it into 16 shards of whole test files. Each shard runs as its own job with its own ducker cluster, sized to the shard's largest @cluster(num_nodes=N).

  • The workflow runs on Fridays at 22:00 UTC and on dispatch.
  • Dispatch inputs: ref (a release branch such as inkless-4.1), shards (a comma-separated list), and max-parallel (set it to 1 to run shards in series).
  • The Prepare shards job runs --check, which fails if an upstream test file is in no shard or in two. An upstream sync that adds a test file therefore fails the workflow until someone assigns the file.
  • Shards pass whole files because ducker-ak test strips the quotes from parametrized targets such as file.py::Class.test@{...}.
  • Postgres and MinIO aren't started. The upstream tests use classic topics.

Testing

  • --check passes, and --matrix emits 16 entries.
  • ducktape --collect-only on each shard's files finds the tests of every shard. The declared node count of every shard matches the collected @cluster requirement plus the driver.
  • Three files (client/compression_test.py, core/get_offset_shell_test.py, core/produce_bench_test.py) are skipped when ducktape collects the whole directory. Collecting by file finds their tests, which is why the shards list files.
  • I ran the tools shard locally with the workflow's ducker-ak test command: 11 of 12 tests pass. ReplicaVerificationToolTest.test_replica_lags fails every time (4 runs, the last on main at 124717430b) with Timed out waiting to reach non-zero number of replica lags. The test file has no Inkless changes. I haven't run it against unmodified upstream, so I don't know yet whether the fork causes it.
  • Earlier I ran ReplicationTest.test_replication_with_broker_failure (hard_bounce, KRaft) locally, and it passes.
  • make vale reports no alerts.
  • The workflow hasn't run on GitHub, because a workflow_dispatch run needs the file on the default branch. The first dispatch after merge shows how long each shard takes and whether the 13-node core-scale shard fits in the runner's memory.

🤖 Generated with Claude Code

…ded jobs [KC-856]

Add the Inkless Upstream System Tests workflow. It runs the Apache Kafka ducktape
suite under tests/kafkatest/tests/ (everything except inkless/) against the fork.

The suite has 1076 tests, which is too large for one job. A shard script splits it
into 16 shards of whole test files. Each shard runs as its own job with its own
ducker cluster. The workflow runs on Fridays at 22:00 UTC and on dispatch, which
takes a ref, a shard list, and a maximum parallelism.

Assisted-by: Claude Sonnet 5.5
@giuseppelillo
giuseppelillo force-pushed the glillo/kc-856-release-tests-90b8ca branch from 530c8fd to be4ff3c Compare December 3, 2026 13:54
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

0