-
Notifications
You must be signed in to change notification settings - Fork 871
[COR-4] Cleanup generate_config #22079
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR refactors the test configuration system by removing the dynamic job generation mechanism (add-yaml) and replacing it with an explicit kafka-driver-tests job definition. The changes simplify the configuration by eliminating magic job creation and moving Kafka-specific setup from the test definition file into the base CircleCI config.
Key changes:
- Removed
add-yamldynamic job generation logic fromgenerate_config.py - Added explicit
kafka-driver-testsjob inbase_config.ymlwith Kafka containers - Updated test definitions to reference the new job directly and use environment variables
Reviewed Changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| tests/kafka-test-definitions.yml | Removed add-yaml section and inline Kafka container definitions; updated to reference kafka-driver-tests job and use environment variables for hosts |
| .circleci/generate_config.py | Removed all add-yaml parsing and dynamic job generation logic; simplified function signatures by removing yaml_struct parameter |
| .circleci/base_config.yml | Added explicit kafka-driver-tests job with Kafka containers; extracted run-test command and refactored run-linux-tests to use it |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Scope & Purpose
Previously we had a special
add-yamlattribute in thetests/kafka-test-definitions.ymland the generate_config would create a new job based on it. This PR instead adds an explicitkafka-driver-testswith all the containers and has the test-definition refer to that job. This way we avoid the whole magic of creating new jobs with some local yaml snippets.Note
Replaces add-yaml job derivation with explicit driver/kafka test jobs, refactors CircleCI config and generator, and updates test definitions accordingly.
.shared-test-job-parameters,clone-driver-repo, andrun-testfor reuse.run-driver-testsjob to clone/init driver repos and run suites.kafka-driver-testsjob including Kafka brokers and schema registry containers plus readiness wait.run-linux-teststo use shared parameters.kafkaHostList; introducedocker_imagein shared params.add-yamlhandling and related plumbing.jobfield (defaultrun-linux-tests).read_yaml_suite,read_yaml_multi_bucket_suite,read_definitions) and pass optionalinit_command.tests/arangojs.yml,tests/go.yml,tests/java.yml,tests/spark-datasource.yml: setjob: run-driver-tests.tests/kafka.yml: switch tojob: kafka-driver-tests; remove previousadd-yamlblock; use env vars${KAFKA_HOST_LIST}and${KAFKA_SCHEMA_HOST}in args.Written by Cursor Bugbot for commit 90ae1b9. This will update automatically on new commits. Configure here.