Skip to content

Commit

Permalink
Debug commit
Browse files Browse the repository at this point in the history
  • Loading branch information
saville committed Nov 12, 2024
1 parent b936491 commit 637321c
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 14 deletions.
31 changes: 17 additions & 14 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,25 +18,28 @@ jobs:
matrix:
python-version:
- 3.8
- 3.9
- '3.10'
- '3.11'
# - 3.9
# - '3.10'
# - '3.11'
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r test_requirements.txt
- name: Pre-commit checks
run: pre-commit run --all-files
# - name: Set up Python ${{ matrix.python-version }}
# uses: actions/setup-python@v2
# with:
# python-version: ${{ matrix.python-version }}
# - name: Install dependencies
# run: |
# python -m pip install --upgrade pip
# pip install -r requirements.txt
# pip install -r test_requirements.txt
# - name: Pre-commit checks
# run: pre-commit run --all-files
- name: Test with pytest
# Create the ssh key file once for all testing
#docker run -i -v /sys/fs/cgroup:/sys/fs/cgroup:rw --security-opt=seccomp=unconfined --tmpfs /run rockylinux:9.0 /usr/sbin/init
run: |
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
exit 1
ssh-keygen -t ecdsa -m PEM -N '' -f /tmp/buildrunner-test-id_rsa
pytest -v -m "not serial" --numprocesses=auto --junitxml=test-reports/non-serial-test-results.xml
pytest -v -m "serial" --junitxml=test-reports/serial-test-results.xml
Expand Down
1 change: 1 addition & 0 deletions buildrunner/docker/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,7 @@ def start(
command = "/usr/sbin/init"
if systemd_v248:
tmpfs["/run"] = ""
print(f"Using systemd, volumes: {volumes}, tmpfs: {tmpfs}")

if volumes:
for key, value in volumes.items():
Expand Down
2 changes: 2 additions & 0 deletions tests/test_buildrunner_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,8 @@ def _get_test_runs(
) -> List[Tuple[str, str, Optional[List[str]], int]]:
file_names = []
for file_name in os.listdir(test_dir):
if "systemd" not in file_name:
continue
if serial_tests:
if file_name in serial_test_files:
file_names.append(file_name)
Expand Down

0 comments on commit 637321c

Please sign in to comment.