Skip to content

Commit b56a52b

Browse files
committed
[test] runc fs2 tests under machine.slice
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
1 parent 1652210 commit b56a52b

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/test.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,11 @@ jobs:
130130
sudo chmod a+X $HOME # for Ubuntu 22.04 and later
131131
132132
- name: integration test (fs driver)
133-
run: sudo -E PATH="$PATH" script -e -c 'make local${{ matrix.rootless }}integration'
133+
# GHA CI itself is run under system.slice, so runc fs2 driver creates containers under it
134+
# (e.g. /system.slice/test_busybox, see cgroups/fs2/defaultpath.go), when unexpectedly
135+
# something moves these to /system.slice/hosted-compute-agent.service). To work around
136+
# this, let's run under machine.slice.
137+
run: sudo -E PATH="$PATH" systemd-run --scope --slice=machine-runc.slice --unit=test script -e -c 'make local${{ matrix.rootless }}integration'
134138

135139
- name: integration test (systemd driver)
136140
run: |

0 commit comments

Comments
 (0)