Skip to content

FEAT: Producer side rate limiting #500

FEAT: Producer side rate limiting

FEAT: Producer side rate limiting #500

Workflow file for this run

# To run the e2e tests.
# currently setup on dev branch.
name: E2E
on:
workflow_dispatch:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
permissions:
checks: write
pull-requests: write
steps:
- uses: actions/checkout@v3
- name: Set up JDK 21
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'temurin'
cache: 'gradle'
- name: Setup Gradle 8.x
uses: gradle/actions/setup-gradle@v4
with:
gradle-version: "8.10.2"
- name: Execute Gradle build
run: ./gradlew clean build copyDependencies :server:copyJacocoAgent -x test
- name: Prepare mount directory for Web container - to write code coverage file.
run: chmod a+w server/build/jacoco
- name: Build the Varadhi Docker image
run: docker build . --file setup/docker/Dockerfile --tag varadhi.docker.registry/varadhi:latest --build-arg ENV=test
- name: Setup the environment
run: docker compose --profile test -f setup/docker/compose.yml up -d --wait --wait-timeout 180
- name: Run the test
run: ./gradlew test testE2E
- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action/composite@v2
if: success()
with:
files: |
*/build/test-results/**/TEST*.xml
fail_on: 'test failures'
compare_to_earlier_commit: false
- name: Dump test execution logs
uses: jwalton/gh-docker-logs@v2
with:
images: 'varadhi.docker.registry/varadhi,apachepulsar/pulsar,zookeeper'
- name: Restart the server process to force the code coverage dump
run: docker exec server pkill java
- name: Generate Code Coverage report
run: ./gradlew jacocoTestReport
- name: Publish code coverage (uses CodeCov.io)
uses: codecov/codecov-action@v4
with:
files: |
*/build/reports/jacoco/test/jacocoTestReport.xml
- name: Tear down the docker containers
run: docker compose --profile test -f setup/docker/compose.yml down
- name: Tear down the data volumes
run: docker volume rm $(docker volume ls -q | egrep -E 'zk|pulsar')