From 74b8bebbe8c76471c6c22ca7bf94a20896014bdf Mon Sep 17 00:00:00 2001 From: Earl Warren Date: Mon, 1 Dec 2025 15:25:21 +0000 Subject: [PATCH] actions: parallel LXC jobs (#1149) This is not guaranteed to fail if parallel jobs is broken, but it is likely to. That could create transient errors detecting race conditions similar to https://code.forgejo.org/forgejo/lxc-helpers/issues/50. Reviewed-on: https://code.forgejo.org/forgejo/end-to-end/pulls/1149 Reviewed-by: Mathieu Fenniak Co-authored-by: Earl Warren Co-committed-by: Earl Warren --- actions/example-lxc/.forgejo/workflows/test.yml | 10 +++++++++- actions/example-lxc/runner-config.yaml | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/actions/example-lxc/.forgejo/workflows/test.yml b/actions/example-lxc/.forgejo/workflows/test.yml index 5e466e72..e7aa3fd9 100644 --- a/actions/example-lxc/.forgejo/workflows/test.yml +++ b/actions/example-lxc/.forgejo/workflows/test.yml @@ -1,8 +1,16 @@ on: [push] jobs: - build: + job1: runs-on: lxc steps: - uses: https://data.forgejo.org/actions/checkout@v4 - run: systemctl --no-pager list-units + job2: + runs-on: lxc + steps: + - run: echo OK2 + job3: + runs-on: lxc + steps: + - run: echo OK3 diff --git a/actions/example-lxc/runner-config.yaml b/actions/example-lxc/runner-config.yaml index 6698ed20..617b3920 100644 --- a/actions/example-lxc/runner-config.yaml +++ b/actions/example-lxc/runner-config.yaml @@ -11,7 +11,7 @@ runner: insecure: false fetch_timeout: 5s fetch_interval: 2s - labels: ["lxc:lxc://debian:bookworm:docker"] + labels: ["lxc:lxc://debian:bookworm"] cache: enabled: false