test: convert TestStages.run_stage_diff_test()
to pytest
#861
test.yml
on: push
Assembler test (legacy)
12m 0s
Matrix: Unittest
Annotations
3 errors and 9 warnings
Unittest (parallel, py312)
Command failed: /usr/bin/docker run --net=host --privileged --rm --volume=/:/osb/host --volume=/home/runner/work/osbuild/osbuild:/osb/workdir --volume=/lib/modules/:/lib/modules/ --volume=/var/run/docker.sock:/var/run/docker.sock ghcr.io/osbuild/osbuild-ci:latest-202409171558 /bin/bash -o errexit -c # Hacky replacement of container storage driver:
# The default overlayfs doesn't work in the runner, so let's change
# it to vfs for the local storage skopeo stage test.
sed -i 's/overlay/vfs/g' /usr/share/containers/storage.conf # default system config
sed -i 's/overlay/vfs/g' /etc/containers/storage.conf || true # potential overrides
if [ "parallel" == "parallel" ]; then
# 4 is a bit arbitrary
TEST_WORKERS="-n 4"
TEST_CATEGORY="test_stages.py"
else
# test_assemblers.py is run below
TEST_CATEGORY="not test_stages.py and not test_assemblers.py"
# DNF python package can't be installed using pip in the tox environment.
# We need to use the version from the system to test things.
# Since we are running tests on Fedora, enable site packages only
# for Python version which is available on Fedora.
# See also: https://github.com/osbuild/containers/pull/79
if [ "py312" == "$(cat /osb/libdnf-python-version)" ]; then
TOX_ARGS="-x testenv.sitepackages=True"
fi
fi
OSBUILD_TEST_STORE="/var/tmp/osbuild-test-store" \
tox -e "py312" $TOX_ARGS -- -rs $TEST_WORKERS -k "$TEST_CATEGORY"
|
Unittest (parallel, py36)
Command failed: /usr/bin/docker run --net=host --privileged --rm --volume=/:/osb/host --volume=/home/runner/work/osbuild/osbuild:/osb/workdir --volume=/lib/modules/:/lib/modules/ --volume=/var/run/docker.sock:/var/run/docker.sock ghcr.io/osbuild/osbuild-ci:latest-202409171558 /bin/bash -o errexit -c # Hacky replacement of container storage driver:
# The default overlayfs doesn't work in the runner, so let's change
# it to vfs for the local storage skopeo stage test.
sed -i 's/overlay/vfs/g' /usr/share/containers/storage.conf # default system config
sed -i 's/overlay/vfs/g' /etc/containers/storage.conf || true # potential overrides
if [ "parallel" == "parallel" ]; then
# 4 is a bit arbitrary
TEST_WORKERS="-n 4"
TEST_CATEGORY="test_stages.py"
else
# test_assemblers.py is run below
TEST_CATEGORY="not test_stages.py and not test_assemblers.py"
# DNF python package can't be installed using pip in the tox environment.
# We need to use the version from the system to test things.
# Since we are running tests on Fedora, enable site packages only
# for Python version which is available on Fedora.
# See also: https://github.com/osbuild/containers/pull/79
if [ "py36" == "$(cat /osb/libdnf-python-version)" ]; then
TOX_ARGS="-x testenv.sitepackages=True"
fi
fi
OSBUILD_TEST_STORE="/var/tmp/osbuild-test-store" \
tox -e "py36" $TOX_ARGS -- -rs $TEST_WORKERS -k "$TEST_CATEGORY"
|
Unittest (parallel, py39)
Command failed: /usr/bin/docker run --net=host --privileged --rm --volume=/:/osb/host --volume=/home/runner/work/osbuild/osbuild:/osb/workdir --volume=/lib/modules/:/lib/modules/ --volume=/var/run/docker.sock:/var/run/docker.sock ghcr.io/osbuild/osbuild-ci:latest-202409171558 /bin/bash -o errexit -c # Hacky replacement of container storage driver:
# The default overlayfs doesn't work in the runner, so let's change
# it to vfs for the local storage skopeo stage test.
sed -i 's/overlay/vfs/g' /usr/share/containers/storage.conf # default system config
sed -i 's/overlay/vfs/g' /etc/containers/storage.conf || true # potential overrides
if [ "parallel" == "parallel" ]; then
# 4 is a bit arbitrary
TEST_WORKERS="-n 4"
TEST_CATEGORY="test_stages.py"
else
# test_assemblers.py is run below
TEST_CATEGORY="not test_stages.py and not test_assemblers.py"
# DNF python package can't be installed using pip in the tox environment.
# We need to use the version from the system to test things.
# Since we are running tests on Fedora, enable site packages only
# for Python version which is available on Fedora.
# See also: https://github.com/osbuild/containers/pull/79
if [ "py39" == "$(cat /osb/libdnf-python-version)" ]; then
TOX_ARGS="-x testenv.sitepackages=True"
fi
fi
OSBUILD_TEST_STORE="/var/tmp/osbuild-test-store" \
tox -e "py39" $TOX_ARGS -- -rs $TEST_WORKERS -k "$TEST_CATEGORY"
|
Assembler test (legacy)
The following actions use a deprecated Node.js version and will be forced to run on node20: osbuild/containers/src/actions/privdocker@552e30cf1b4ed19c6ddaa57f96c342b3dff4227b. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Unittest (normal, py39)
The following actions use a deprecated Node.js version and will be forced to run on node20: osbuild/containers/src/actions/privdocker@552e30cf1b4ed19c6ddaa57f96c342b3dff4227b. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Unittest (normal, py312)
The following actions use a deprecated Node.js version and will be forced to run on node20: osbuild/containers/src/actions/privdocker@552e30cf1b4ed19c6ddaa57f96c342b3dff4227b. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Unittest (normal, py36)
The following actions use a deprecated Node.js version and will be forced to run on node20: osbuild/containers/src/actions/privdocker@552e30cf1b4ed19c6ddaa57f96c342b3dff4227b. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Unittest (parallel, py312)
The following actions use a deprecated Node.js version and will be forced to run on node20: osbuild/containers/src/actions/privdocker@552e30cf1b4ed19c6ddaa57f96c342b3dff4227b. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Unittest (parallel, py312)
You are running out of disk space. The runner will stop working when the machine runs out of disk space. Free space left: 52 MB
|
Unittest (parallel, py36)
The following actions use a deprecated Node.js version and will be forced to run on node20: osbuild/containers/src/actions/privdocker@552e30cf1b4ed19c6ddaa57f96c342b3dff4227b. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|
Unittest (parallel, py36)
You are running out of disk space. The runner will stop working when the machine runs out of disk space. Free space left: 3 MB
|
Unittest (parallel, py39)
The following actions use a deprecated Node.js version and will be forced to run on node20: osbuild/containers/src/actions/privdocker@552e30cf1b4ed19c6ddaa57f96c342b3dff4227b. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/
|