Browse Source

Update kafka-tests.yml

pull/7231/head
chrislu 2 months ago
parent
commit
515a03a377
  1. 24
      .github/workflows/kafka-tests.yml

24
.github/workflows/kafka-tests.yml

@ -227,7 +227,7 @@ jobs:
container-id: [protocol-1] container-id: [protocol-1]
container: container:
image: golang:1.24-alpine image: golang:1.24-alpine
options: --cpus 1.0 --memory 1g --tmpfs /tmp --hostname kafka-protocol-${{ matrix.container-id }}
options: --cpus 1.0 --memory 1g --tmpfs /tmp:exec --hostname kafka-protocol-${{ matrix.container-id }}
env: env:
GOMAXPROCS: 1 GOMAXPROCS: 1
CGO_ENABLED: 0 CGO_ENABLED: 0
@ -243,6 +243,16 @@ jobs:
- name: Check out code - name: Check out code
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Setup Protocol Container Environment
run: |
apk add --no-cache git procps
# Ensure proper permissions for test execution
chmod -R 755 /tmp || true
export TMPDIR=/tmp
export GOCACHE=/tmp/go-cache
mkdir -p $GOCACHE
chmod 755 $GOCACHE
- name: Get dependencies - name: Get dependencies
run: | run: |
cd test/kafka cd test/kafka
@ -251,9 +261,13 @@ jobs:
- name: Test Metadata API Versions - name: Test Metadata API Versions
run: | run: |
cd test/kafka cd test/kafka
export TMPDIR=/tmp
export GOCACHE=/tmp/go-cache
go test -v -run "^TestMetadata" -timeout 10s go test -v -run "^TestMetadata" -timeout 10s
env: env:
GOMAXPROCS: 1 GOMAXPROCS: 1
TMPDIR: /tmp
GOCACHE: /tmp/go-cache
- name: Cleanup Between Tests - name: Cleanup Between Tests
run: | run: |
@ -264,9 +278,13 @@ jobs:
- name: Test Produce API Versions - name: Test Produce API Versions
run: | run: |
cd test/kafka cd test/kafka
export TMPDIR=/tmp
export GOCACHE=/tmp/go-cache
go test -v -run "^TestProduce" -timeout 10s go test -v -run "^TestProduce" -timeout 10s
env: env:
GOMAXPROCS: 1 GOMAXPROCS: 1
TMPDIR: /tmp
GOCACHE: /tmp/go-cache
- name: Cleanup Between Tests - name: Cleanup Between Tests
run: | run: |
@ -277,6 +295,10 @@ jobs:
- name: Test ApiVersions Compatibility - name: Test ApiVersions Compatibility
run: | run: |
cd test/kafka cd test/kafka
export TMPDIR=/tmp
export GOCACHE=/tmp/go-cache
go test -v -run "^TestApiVersions" -timeout 10s go test -v -run "^TestApiVersions" -timeout 10s
env: env:
GOMAXPROCS: 1 GOMAXPROCS: 1
TMPDIR: /tmp
GOCACHE: /tmp/go-cache
Loading…
Cancel
Save