-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Incorporate kafka tests into github work flow (#6)
1. Incorporate kafka tests into github workflow 2. Updated tests to assert that worker exits without error 3. Updated busy loop pause to respect context cancellation 4. Updated virtual partition write to respect context cancellation 5. Added debug logs for reader/processor exit 6. Removed dependency on github.com/errors package (no need for stack trace info) 7. Added go report card 8. Corrected spelling mistakes 9. Updated coverage.sh script to echo each line 10. Updated compose.yml (renamed from docker-compose) to use kafka+zookeeper instead of KRAFT implementation (in local usage) 11. Updated dependencies (confluent-kafka-go/otel)
- Loading branch information
1 parent
68f29be
commit a16d04c
Showing
19 changed files
with
452 additions
and
316 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,7 +32,15 @@ jobs: | |
run: | | ||
go mod download | ||
- name: Run Kafka KRaft Broker | ||
uses: spicyparrot/[email protected] | ||
with: | ||
kafka-version: "3.7.0" | ||
kafka-topics: "example,1" | ||
|
||
- name: Test | ||
env: | ||
KAFKA_BOOTSTRAP_SERVER: ${{ env.kafka_runner_address }}:9092 | ||
run: make cover | ||
|
||
- name: Upload coverage reports to Codecov | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
services: | ||
zookeeper: | ||
image: confluentinc/cp-zookeeper:latest | ||
container_name: zkafka-zookeeper | ||
environment: | ||
ZOOKEEPER_CLIENT_PORT: 2181 | ||
ZOOKEEPER_TICK_TIME: 2000 | ||
ports: | ||
- "22181:2181" | ||
kafka: | ||
image: confluentinc/cp-kafka:latest | ||
container_name: zkafka-broker | ||
depends_on: | ||
- zookeeper | ||
ports: | ||
- "29092:29092" | ||
- "9092:9092" | ||
environment: | ||
KAFKA_BROKER_ID: 1 | ||
KAFKA_ZOOKEEPER_CONNECT: zookeeper:2181 | ||
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092,PLAINTEXT_HOST://localhost:29092 | ||
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT | ||
KAFKA_INTER_BROKER_LISTENER_NAME: PLAINTEXT | ||
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.