Skip to content

Commit

Permalink
.github: remove arm vet
Browse files Browse the repository at this point in the history
Slow (7min+) and obviously not completely comprehensive (see #286).
In the long term, everybody will just be using 1.19 atomics.
  • Loading branch information
twmb committed Jan 3, 2023
1 parent d0c42ad commit b055499
Showing 1 changed file with 0 additions and 85 deletions.
85 changes: 0 additions & 85 deletions .github/workflows/lint-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,88 +27,3 @@ jobs:
- uses: golangci/golangci-lint-action@v3
with:
version: latest

vet-arm:
if: github.repository == 'twmb/franz-go'
needs: golangci
runs-on: ubuntu-latest
name: "vet on arm"
steps:
- uses: actions/checkout@v3
with:
path: "repo"
- uses: uraimo/run-on-arch-action@v2
with:
arch: armv6
distro: bullseye
run: |
echo "updating"
apt-get -qq -y update
echo "installing wget"
apt-get -qq -y install wget
echo "downloading go"
wget --quiet https://go.dev/dl/go1.19.2.linux-armv6l.tar.gz
tar xzf go1.19.2.linux-armv6l.tar.gz
mkdir bins
export PATH=$(pwd)/go/bin:$(pwd)/bins:$PATH
export GOBIN=$(pwd)/bins
export CGO_ENABLED=0
cd repo
echo "go vet ./..."
go vet ./...
echo "installing staticcheck"
go install honnef.co/go/tools/cmd/staticcheck@latest
echo "staticcheck ./..."
staticcheck -checks 'all,-ST1003,-SA1012,-ST1016,-SA1019,-SA2001' ./... # actually contains atomicalign check
integration-test-kafka:
if: github.repository == 'twmb/franz-go'
needs: golangci
runs-on: ubuntu-latest
name: "integration test kafka"
container: golang:1.19.2
services:
kafka:
image: bitnami/kafka:latest
ports:
- 9092:9092
env:
KAFKA_ENABLE_KRAFT: yes
KAFKA_CFG_PROCESS_ROLES: controller,broker
KAFKA_CFG_CONTROLLER_LISTENER_NAMES: CONTROLLER
KAFKA_CFG_LISTENERS: PLAINTEXT://:9092,CONTROLLER://:9093
KAFKA_CFG_LISTENER_SECURITY_PROTOCOL_MAP: CONTROLLER:PLAINTEXT,PLAINTEXT:PLAINTEXT
KAFKA_CFG_CONTROLLER_QUORUM_VOTERS: 1@127.0.0.1:9093
# Set this to "PLAINTEXT://127.0.0.1:9092" if you want to run this container on localhost via Docker
KAFKA_CFG_ADVERTISED_LISTENERS: PLAINTEXT://kafka:9092
KAFKA_CFG_BROKER_ID: 1
ALLOW_PLAINTEXT_LISTENER: yes
KAFKA_KRAFT_CLUSTER_ID: XkpGZQ27R3eTl3OdTm2LYA # 16 byte base64-encoded UUID
steps:
- uses: actions/checkout@v3
- run: go test ./...
env:
KGO_TEST_RF: 1
KGO_SEEDS: kafka:9092
KGO_TEST_UNSAFE: true
KGO_TEST_STABLE_FETCH: true

integration-test-redpanda:
if: github.repository == 'twmb/franz-go'
needs: golangci
runs-on: ubuntu-latest
name: "integration test redpanda"
container: golang:1.19.2
services:
redpanda:
image: vectorized/redpanda-nightly:latest
ports:
- 9092:9092
env:
REDPANDA_ADVERTISE_KAFKA_ADDRESS: redpanda:9092
steps:
- uses: actions/checkout@v3
- run: go test ./...
env:
KGO_TEST_RF: 1
KGO_SEEDS: redpanda:9092

0 comments on commit b055499

Please sign in to comment.