fix(fvt): versioned cfg for invalid topic producer #1057
Workflow file for this run
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
name: FVT | |
on: | |
merge_group: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- "**" | |
jobs: | |
fvt: | |
name: Test with Kafka ${{ matrix.kafka-version }} | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
go-version: [1.21.x] | |
kafka-version: [3.3.2, 3.4.1, 3.5.1] | |
env: | |
DEBUG: true | |
GOFLAGS: -trimpath | |
KAFKA_VERSION: ${{ matrix.kafka-version }} | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Docker | |
uses: docker/setup-buildx-action@v2 | |
id: buildx | |
- name: Build FVT Docker Image | |
uses: docker/bake-action@master | |
with: | |
builder: ${{ steps.buildx.outputs.name }} | |
files: docker-compose.yml | |
load: true | |
set: | | |
*.cache-from=type=gha,scope=${{ github.workflow }} | |
*.cache-to=type=gha,scope=${{ github.workflow }},mode=max | |
- name: Setup Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version: ${{ matrix.go-version }} | |
- name: Setup Docker Compose | |
run: | | |
curl -sSL "https://github.com/docker/compose/releases/download/v2.20.3/docker-compose-$(uname -s)-$(uname -m)" -o /tmp/docker-compose | |
sudo install -m755 /tmp/docker-compose "$(dirname $(which docker-compose))" | |
docker version --format 'Docker Engine version v{{.Server.Version}}' | |
docker-compose version | |
- name: Test (Functional) | |
run: | | |
nohup sudo tcpdump -i any -w "fvt-kafka-${{ matrix.kafka-version }}.pcap" portrange 29091-29095 >/dev/null 2>&1 & | |
echo $! >tcpdump.pid | |
make test_functional | |
- name: Stop tcpdump | |
if: always() | |
run: | | |
if [ -f "tcpdump.pid" ]; then sudo kill "$(cat tcpdump.pid)" || true; fi | |
if [ -f "fvt-kafka-${{ matrix.kafka-version }}.pcap" ]; then sudo chmod a+r "fvt-kafka-${{ matrix.kafka-version }}.pcap"; fi | |
- name: Upload pcap file | |
if: always() | |
uses: actions/upload-artifact@v3 | |
with: | |
name: fvt-kafka-${{ matrix.kafka-version }}.pcap | |
path: fvt-kafka-${{ matrix.kafka-version }}.pcap | |
retention-days: 5 | |
if-no-files-found: ignore |