From 8763cf00061e6f31179ff701718379a2dafb2ffe Mon Sep 17 00:00:00 2001 From: Fernandez Ludovic Date: Sat, 24 Feb 2024 20:04:08 +0100 Subject: [PATCH] chore: add load-generator --- .github/workflows/release.yml | 55 +++++++++++++++++++++++++++++++++++ .github/workflows/tests.yml | 9 ++++++ 2 files changed, 64 insertions(+) create mode 100644 .github/workflows/release.yml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 00000000..cdbf17ac --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,55 @@ +name: "Release a tag" +on: + push: + tags: + - v* + +jobs: + release: + name: Release Process + runs-on: ubuntu-latest + env: + GO_VERSION: oldstable + CGO_ENABLED: 0 + + steps: + + # https://github.com/marketplace/actions/checkout + - name: Check out code + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + # https://github.com/marketplace/actions/setup-go-environment + - name: Set up Go ${{ env.GO_VERSION }} + uses: actions/setup-go@v5 + with: + go-version: ${{ env.GO_VERSION }} + + - name: dockerhub-login + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKER_USER }} + password: ${{ secrets.DOCKER_PASS }} + + - name: ghcr-login + uses: docker/login-action@v3 + with: + registry: ghcr.io + username: ${{ secrets.GHCR_USERNAME }} + password: ${{ secrets.GHCR_TOKEN }} + +# - name: Set up QEMU +# uses: docker/setup-qemu-action@v2 +# +# - name: Set up Docker Buildx +# uses: docker/setup-buildx-action@v2 + + # https://goreleaser.com/ci/actions/ +# - name: Run GoReleaser +# uses: goreleaser/goreleaser-action@v2 +# with: +# version: latest +# args: release --rm-dist +# env: +# GITHUB_TOKEN: ${{ secrets.GH_TOKEN_REPO }} diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index c8febb4e..2b425631 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -52,6 +52,9 @@ jobs: - name: go install goveralls run: go install github.com/mattn/goveralls@latest + - name: go install load-generator + run: go install github.com/letsencrypt/boulder/test/load-generator@latest + - name: go install run: go install -v -race ./... @@ -69,3 +72,9 @@ jobs: # Perform a test issuance with chisel2.py - name: chisel run: REQUESTS_CA_BUNDLE=./test/certs/pebble.minica.pem python ./test/chisel2.py example.letsencrypt.org elpmaxe.letsencrypt.org + + # Run the load-generator briefly - note, because Pebble isn't using the + # load-generator's mock DNS server none of the issuances will succeed. This + # step is performed just to shake out data races with concurrent requests. + - name: load-generator + run: load-generator -config ./test/config/load-generator-config.json > /dev/null