Skip to content

Commit 637321c

Browse files
author
saville
committed
Debug commit
1 parent b936491 commit 637321c

File tree

3 files changed

+20
-14
lines changed

3 files changed

+20
-14
lines changed

.github/workflows/build.yaml

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -18,25 +18,28 @@ jobs:
1818
matrix:
1919
python-version:
2020
- 3.8
21-
- 3.9
22-
- '3.10'
23-
- '3.11'
21+
# - 3.9
22+
# - '3.10'
23+
# - '3.11'
2424
steps:
2525
- uses: actions/checkout@v2
26-
- name: Set up Python ${{ matrix.python-version }}
27-
uses: actions/setup-python@v2
28-
with:
29-
python-version: ${{ matrix.python-version }}
30-
- name: Install dependencies
31-
run: |
32-
python -m pip install --upgrade pip
33-
pip install -r requirements.txt
34-
pip install -r test_requirements.txt
35-
- name: Pre-commit checks
36-
run: pre-commit run --all-files
26+
# - name: Set up Python ${{ matrix.python-version }}
27+
# uses: actions/setup-python@v2
28+
# with:
29+
# python-version: ${{ matrix.python-version }}
30+
# - name: Install dependencies
31+
# run: |
32+
# python -m pip install --upgrade pip
33+
# pip install -r requirements.txt
34+
# pip install -r test_requirements.txt
35+
# - name: Pre-commit checks
36+
# run: pre-commit run --all-files
3737
- name: Test with pytest
3838
# Create the ssh key file once for all testing
39+
#docker run -i -v /sys/fs/cgroup:/sys/fs/cgroup:rw --security-opt=seccomp=unconfined --tmpfs /run rockylinux:9.0 /usr/sbin/init
3940
run: |
41+
docker run -i --cgroupns host -v /sys/fs/cgroup/buildrunner.scope:/sys/fs/cgroup:rw --security-opt=seccomp=unconfined --tmpfs /run rockylinux:9.0 /usr/sbin/init
42+
exit 1
4043
ssh-keygen -t ecdsa -m PEM -N '' -f /tmp/buildrunner-test-id_rsa
4144
pytest -v -m "not serial" --numprocesses=auto --junitxml=test-reports/non-serial-test-results.xml
4245
pytest -v -m "serial" --junitxml=test-reports/serial-test-results.xml

buildrunner/docker/runner.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -184,6 +184,7 @@ def start(
184184
command = "/usr/sbin/init"
185185
if systemd_v248:
186186
tmpfs["/run"] = ""
187+
print(f"Using systemd, volumes: {volumes}, tmpfs: {tmpfs}")
187188

188189
if volumes:
189190
for key, value in volumes.items():

tests/test_buildrunner_files.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,8 @@ def _get_test_runs(
100100
) -> List[Tuple[str, str, Optional[List[str]], int]]:
101101
file_names = []
102102
for file_name in os.listdir(test_dir):
103+
if "systemd" not in file_name:
104+
continue
103105
if serial_tests:
104106
if file_name in serial_test_files:
105107
file_names.append(file_name)

0 commit comments

Comments
 (0)