From 59a133715a9f9c48a26a35e1dcb47de921fc920c Mon Sep 17 00:00:00 2001 From: Mostyn Bramley-Moore Date: Fri, 5 Jan 2024 00:05:52 +0100 Subject: [PATCH] Add an --idle_timeout test This is expected to fail, until #727 lands. --- .github/workflows/idle_timer.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/idle_timer.yml diff --git a/.github/workflows/idle_timer.yml b/.github/workflows/idle_timer.yml new file mode 100644 index 000000000..49aa65c9a --- /dev/null +++ b/.github/workflows/idle_timer.yml @@ -0,0 +1,22 @@ +name: idle-timer +on: + push: + tags: + - v* + branches: + - master + pull_request: +jobs: + idletimer: + name: idle-timer + runs-on: ubuntu-latest + timeout-minutes: 5 + steps: + - uses: actions/setup-go@v3 + with: + go-version: '1.21.5' + - uses: actions/checkout@v3 + - name: build bazel-remote + run: ./linux-build.sh + - name: run with idle-timeout 1m + run: for i in {1..20}; do sleep 1 ; curl --head --fail http://127.0.0.1:8080/cas/e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855 ; done & ./bazel-remote --dir DATA --max_size 1 --idle_timeout 20s