Skip to content

Allow producer config alterations on reload #4084

Allow producer config alterations on reload

Allow producer config alterations on reload #4084

Workflow file for this run

name: CI
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
pull_request:
branches: [ master ]
schedule:
- cron: '0 1 * * *'
permissions:
contents: read
jobs:
specs:
timeout-minutes: 15
runs-on: ubuntu-latest
needs: diffend
env:
BUNDLE_FORCE_RUBY_PLATFORM: ${{ matrix.force_ruby_platform }}
strategy:
fail-fast: false
matrix:
ruby:
- '3.5.0-preview1'
- '3.4'
- '3.3'
- '3.2'
force_ruby_platform:
- true
- false
include:
- ruby: '3.4'
coverage: 'true'
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
- name: Install package dependencies
run: "[ -e $APT_DEPS ] || sudo apt-get install -y --no-install-recommends $APT_DEPS"
- name: Remove platform-specific ffi entries for Ruby previews
if: contains(matrix.ruby, '3.5')
run: |
sed -i '/^\s*ffi (.*-.*)$/d' Gemfile.lock
- name: Set up Ruby
uses: ruby/setup-ruby@2a7b30092b0caf9c046252510f9273b4875f3db9 # v1.254.0
with:
ruby-version: ${{matrix.ruby}}
bundler-cache: true
bundler: 'latest'
self-hosted: false
- name: Run Kafka with Docker Compose
run: |
docker compose up -d || (sleep 5 && docker compose up -d)
- name: Wait for Kafka
run: sleep 15
- name: Install latest bundler
run: |
gem install bundler --no-document
gem update --system --no-document
bundle config set without 'tools benchmarks docs'
- name: Bundle install
run: |
bundle config set without development
bundle install --jobs 4 --retry 3
- name: Run all tests
env:
GITHUB_COVERAGE: ${{matrix.coverage}}
run: bundle exec rspec
- name: Run integration tests
run: ./bin/integrations
- name: Check Kafka logs for unexpected warnings
run: bin/verify_kafka_warnings
- name: Check test topics naming convention
run: bin/verify_topics_naming
diffend:
timeout-minutes: 5
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
- name: Set up Ruby
uses: ruby/setup-ruby@2a7b30092b0caf9c046252510f9273b4875f3db9 # v1.254.0
with:
ruby-version: 3.4
self-hosted: false
- name: Install latest bundler
run: gem install bundler --no-document
- name: Install Diffend plugin
run: bundle plugin install diffend
- name: Bundle Secure
run: bundle secure
coditsu:
timeout-minutes: 5
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
fetch-depth: 0
- name: Download Coditsu script
run: |
curl -sSL https://api.coditsu.io/run/ci -o coditsu_script.sh
chmod +x coditsu_script.sh
- name: Verify Coditsu script checksum
run: |
EXPECTED_SHA256="0aecc5aa010f53fca264548a41467a2b0a1208d750ce1da3e98a217304cacbbc"
ACTUAL_SHA256=$(sha256sum coditsu_script.sh | awk '{ print $1 }')
if [ "$ACTUAL_SHA256" != "$EXPECTED_SHA256" ]; then
echo "::error::Checksum verification failed. Expected $EXPECTED_SHA256 but got $ACTUAL_SHA256."
exit 1
fi
- name: Run Coditsu
run: ./coditsu_script.sh
ci-success:
name: CI Success
runs-on: ubuntu-latest
if: always()
needs:
- diffend
- coditsu
- specs
steps:
- name: Check all jobs passed
if: |
contains(needs.*.result, 'failure') ||
contains(needs.*.result, 'cancelled') ||
contains(needs.*.result, 'skipped')
run: exit 1
- run: echo "All CI checks passed!"