-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use github actions instead of circleci
The admin tests were also disabled because the kafkacat shell command was returning the empty string and causing tests to fail. The admin functionality is not publicly facing yet and the kafkacat dep should be removed from the tests anyhow. Existing consumer tests were also updated to print stdout/stderr for debugging. Signed-off-by: Sahil Kang <[email protected]>
- Loading branch information
Showing
6 changed files
with
35 additions
and
27 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
pull_request: | ||
branches: [ master ] | ||
|
||
jobs: | ||
test: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout | ||
uses: actions/checkout@v4 | ||
- name: docker compose | ||
run: | | ||
docker compose -f ./test/docker-compose.test.yml \ | ||
up --build --abort-on-container-exit test |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
Copyright (C) 2018-2020 Sahil Kang <[email protected]> | ||
Copyright 2022-2023 Google LLC | ||
Copyright 2022-2024 Google LLC | ||
|
||
All parts of cl-rdkafka are licensed under the GNU GPLv3 as detailed below. | ||
|
||
|
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
;;; Copyright (C) 2018-2020 Sahil Kang <[email protected]> | ||
;;; Copyright 2024 Google LLC | ||
;;; | ||
;;; This file is part of cl-rdkafka. | ||
;;; | ||
|
@@ -92,6 +93,8 @@ | |
((:file "consumer") | ||
(:file "producer") | ||
(:file "produce-consume") | ||
;; TODO Re-enable admin tests after kafkacat/sed dep is removed. | ||
#+nil | ||
(:file "admin") | ||
(:file "headers") | ||
(:file "transactions"))))) |
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 |
---|---|---|
@@ -1,5 +1,5 @@ | ||
;;; Copyright (C) 2018-2020 Sahil Kang <[email protected]> | ||
;;; Copyright 2022 Google LLC | ||
;;; Copyright 2022, 2024 Google LLC | ||
;;; | ||
;;; This file is part of cl-rdkafka. | ||
;;; | ||
|
@@ -55,7 +55,9 @@ | |
(reduce (lambda (agg s) (format nil "~A|~A" agg s)) expected) | ||
*bootstrap-servers* | ||
topic) | ||
:force-shell t) | ||
:force-shell t | ||
:output t | ||
:error-output :output) | ||
(sleep 2) | ||
|
||
(kf:subscribe consumer (list topic)) | ||
|
@@ -80,7 +82,9 @@ | |
(reduce (lambda (agg s) (format nil "~A|~A" agg s)) expected) | ||
*bootstrap-servers* | ||
topic) | ||
:force-shell t) | ||
:force-shell t | ||
:output t | ||
:error-output :output) | ||
(sleep 2) | ||
(kf:subscribe consumer topic) | ||
(sleep 5) | ||
|
@@ -125,7 +129,9 @@ | |
(format nil "echo -n 'Live|Laugh|Hack' | kafkacat -P -D '|' -b '~A' -t '~A'" | ||
*bootstrap-servers* | ||
topic) | ||
:force-shell t) | ||
:force-shell t | ||
:output t | ||
:error-output :output) | ||
(sleep 2) | ||
|
||
(kf:subscribe consumer (list topic)) | ||
|
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
;;; Copyright (C) 2018-2020 Sahil Kang <[email protected]> | ||
;;; Copyright 2024 Google LLC | ||
;;; | ||
;;; This file is part of cl-rdkafka. | ||
;;; | ||
|
@@ -113,7 +114,9 @@ | |
(reduce (lambda (agg s) (format nil "~A|~A" agg s)) messages) | ||
bootstrap-servers | ||
topic) | ||
:force-shell t)) | ||
:force-shell t | ||
:output t | ||
:error-output :output)) | ||
|
||
|
||
(test consumer | ||
|