diff options
author | bst-marge-bot <marge-bot@buildstream.build> | 2020-04-04 13:50:20 +0000 |
---|---|---|
committer | bst-marge-bot <marge-bot@buildstream.build> | 2020-04-04 13:50:20 +0000 |
commit | 0c21df1ea72e9509d7ed035752f125ebb0228e56 (patch) | |
tree | 2e126ba460206717c3e5a320c257f0606d1708d0 | |
parent | 8ffc2226426775da5852835fea66a71aba725e09 (diff) | |
parent | 60bff41572c67ffebb248532ac9b22cf74173727 (diff) | |
download | buildstream-0c21df1ea72e9509d7ed035752f125ebb0228e56.tar.gz |
Merge branch 'juerg/buildbox' into 'master'
Update BuildBox components to 0.0.7
See merge request BuildStream/buildstream!1852
-rw-r--r-- | .gitlab-ci.yml | 10 | ||||
-rw-r--r-- | tests/integration/build-uid.py | 20 | ||||
-rw-r--r-- | tests/integration/script.py | 4 |
3 files changed, 21 insertions, 13 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index b6dd45ed9..c4df898a4 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -24,7 +24,7 @@ variables: # Our own variables # Version of the docker images we should use for all the images. # This is taken from buildstream/buildstream-docker-images - DOCKER_IMAGE_VERSION: master-114538533 + DOCKER_IMAGE_VERSION: master-132813612 PYTEST_ADDOPTS: "--color=yes" INTEGRATION_CACHE: "${CI_PROJECT_DIR}/cache/integration-cache" PYTEST_ARGS: "--color=yes --integration -n 2" @@ -297,8 +297,8 @@ tests-wsl-master: - PATH=/root/.local/bin:$PATH tox --version script: # Install static buildbox binaries - - wget https://buildbox-casd-binaries.nyc3.cdn.digitaloceanspaces.com/buildbox-x86_64-linux-20200203-48361da7.tar.xz - - tar -C /root/.local/bin -xf buildbox-x86_64-linux-20200203-48361da7.tar.xz + - wget https://buildbox-casd-binaries.nyc3.cdn.digitaloceanspaces.com/buildbox-x86_64-linux-0.0.7-253cb8d6.tar.xz + - tar -C /root/.local/bin -xf buildbox-x86_64-linux-0.0.7-253cb8d6.tar.xz - PATH=/root/.local/bin:$PATH ${TEST_COMMAND} only: @@ -317,8 +317,8 @@ tests-wsl-non-master: - PATH=/root/.local/bin:$PATH tox --version script: # Install static buildbox binaries - - wget https://buildbox-casd-binaries.nyc3.cdn.digitaloceanspaces.com/buildbox-x86_64-linux-20200203-48361da7.tar.xz - - tar -C /root/.local/bin -xf buildbox-x86_64-linux-20200203-48361da7.tar.xz + - wget https://buildbox-casd-binaries.nyc3.cdn.digitaloceanspaces.com/buildbox-x86_64-linux-0.0.7-253cb8d6.tar.xz + - tar -C /root/.local/bin -xf buildbox-x86_64-linux-0.0.7-253cb8d6.tar.xz - PATH=/root/.local/bin:$PATH ${TEST_COMMAND} when: manual diff --git a/tests/integration/build-uid.py b/tests/integration/build-uid.py index 2fc78d263..a0cc20d3e 100644 --- a/tests/integration/build-uid.py +++ b/tests/integration/build-uid.py @@ -5,7 +5,7 @@ import os import pytest from buildstream.testing import cli_integration as cli # pylint: disable=unused-import -from buildstream.testing._utils.site import HAVE_SANDBOX, IS_LINUX +from buildstream.testing._utils.site import HAVE_SANDBOX, BUILDBOX_RUN pytestmark = pytest.mark.integration @@ -13,7 +13,11 @@ pytestmark = pytest.mark.integration DATA_DIR = os.path.join(os.path.dirname(os.path.realpath(__file__)), "project") -@pytest.mark.skipif(not IS_LINUX or HAVE_SANDBOX != "bwrap", reason="Only available on linux with bubblewrap") +@pytest.mark.skipif(not HAVE_SANDBOX, reason="Only available with a functioning sandbox") +@pytest.mark.xfail( + HAVE_SANDBOX == "buildbox-run" and BUILDBOX_RUN == "buildbox-run-userchroot", + reason="Custom UID/GID not supported by userchroot", +) @pytest.mark.datafiles(DATA_DIR) def test_build_uid_overridden(cli, datafiles): project = str(datafiles) @@ -25,7 +29,11 @@ def test_build_uid_overridden(cli, datafiles): assert result.exit_code == 0 -@pytest.mark.skipif(not IS_LINUX or HAVE_SANDBOX != "bwrap", reason="Only available on linux with bubbelwrap") +@pytest.mark.skipif(not HAVE_SANDBOX, reason="Only available with a functioning sandbox") +@pytest.mark.xfail( + HAVE_SANDBOX == "buildbox-run" and BUILDBOX_RUN == "buildbox-run-userchroot", + reason="Custom UID/GID not supported by userchroot", +) @pytest.mark.datafiles(DATA_DIR) def test_build_uid_in_project(cli, datafiles): project = str(datafiles) @@ -37,8 +45,12 @@ def test_build_uid_in_project(cli, datafiles): assert result.exit_code == 0 +@pytest.mark.skipif(not HAVE_SANDBOX, reason="Only available with a functioning sandbox") @pytest.mark.datafiles(DATA_DIR) -@pytest.mark.skipif(HAVE_SANDBOX != "bwrap", reason="Only available with a functioning sandbox") +@pytest.mark.xfail( + HAVE_SANDBOX == "buildbox-run" and BUILDBOX_RUN == "buildbox-run-userchroot", + reason="Custom UID/GID not supported by userchroot", +) def test_build_uid_default(cli, datafiles): project = str(datafiles) element_name = "build-uid/build-uid-default.bst" diff --git a/tests/integration/script.py b/tests/integration/script.py index a03824ecd..35a3fddaf 100644 --- a/tests/integration/script.py +++ b/tests/integration/script.py @@ -95,10 +95,6 @@ def test_script_root(cli, datafiles): @pytest.mark.datafiles(DATA_DIR) @pytest.mark.skipif(not HAVE_SANDBOX, reason="Only available with a functioning sandbox") -@pytest.mark.xfail( - HAVE_SANDBOX == "buildbox-run" and BUILDBOX_RUN != "buildbox-run-userchroot", - reason="Read-only root directory not supported by buildbox-run", -) def test_script_no_root(cli, datafiles): project = str(datafiles) element_path = os.path.join(project, "elements") |