From 84c728fdc547836f99f76eac3439efde6714cae6 Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Fri, 13 Oct 2023 15:12:16 +0200 Subject: [PATCH] runner capacity must be at least two jobs otherwise the cascading pr job will never run and the original pr will stay stuck until it timesout --- .forgejo/workflows/integration.yml | 4 ++-- README.md | 2 +- tests/runner-config.yaml | 29 +++++++++++++++++++++++++++++ 3 files changed, 32 insertions(+), 3 deletions(-) create mode 100644 tests/runner-config.yaml diff --git a/.forgejo/workflows/integration.yml b/.forgejo/workflows/integration.yml index 0e82d9e..e2036e7 100644 --- a/.forgejo/workflows/integration.yml +++ b/.forgejo/workflows/integration.yml @@ -19,5 +19,5 @@ jobs: - name: tests run: | - test/run.sh --debug --host_port ${{ steps.forgejo.outputs.host-port }} --url ${{ steps.forgejo.outputs.url }} --token ${{ steps.forgejo.outputs.token }} - + FORGEJO_RUNNER_CONFIG=$(pwd)/tests/runner-config.yaml forgejo-runner.sh reload + tests/run.sh --debug --host_port ${{ steps.forgejo.outputs.host-port }} --url ${{ steps.forgejo.outputs.url }} --token ${{ steps.forgejo.outputs.token }} diff --git a/README.md b/README.md index b66c9db..610e6a1 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ forgejo-curl.sh logout forgejo-runner.sh teardown forgejo.sh teardown forgejo.sh setup root admin1234 codeberg.org/forgejo/forgejo 1.21 -forgejo-runner.sh setup +FORGEJO_RUNNER_CONFIG=$(pwd)/tests/runner-config.yaml forgejo-runner.sh setup url=http://$(cat forgejo-ip):3000 firefox $url tests/run.sh --debug diff --git a/tests/runner-config.yaml b/tests/runner-config.yaml new file mode 100644 index 0000000..45c12d4 --- /dev/null +++ b/tests/runner-config.yaml @@ -0,0 +1,29 @@ +log: + level: debug + +runner: + file: .runner + capacity: 4 + env_file: .env + timeout: 3h + insecure: false + fetch_timeout: 5s + fetch_interval: 2s + labels: [] + +cache: + enabled: false + dir: "" + host: "" + port: 0 + +container: + network: "bridge" + privileged: false + options: + workdir_parent: + valid_volumes: [] + docker_host: "" + +host: + workdir_parent: