From 343359ca91369b35805ccf85a45442a1a1f5934a Mon Sep 17 00:00:00 2001 From: Fernandez Ludovic Date: Sat, 24 Feb 2024 20:20:13 +0100 Subject: [PATCH] chore: add load-generator --- .github/workflows/tests.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 12db3963..6bbfc75d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -52,6 +52,22 @@ jobs: - name: go install goveralls run: go install github.com/mattn/goveralls@latest + # Clone Boulder because the go.mod contains `exclude` directives, + # and so the load-generator cannot be installed with a simple `go install` + - name: Checkout Boulder repository (load-generator) + uses: actions/checkout@v4 + + with: + repository: letsencrypt/boulder + path: boulder + ref: release-2024-02-20 + + - name: install load-generator + run: | + cd $GITHUB_WORKSPACE/boulder/test/load-generator + go install + cd - + - name: go install run: go install -v -race ./... @@ -69,3 +85,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