Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NO-JIRA: chore(tests) Update readme for tests execution + some test fixes for linux env #863

Merged
merged 2 commits into from
Jan 24, 2025

Conversation

jstourac
Copy link
Member

@jstourac jstourac commented Jan 24, 2025

Small changes for the tests execution readme and some fixes for tests execution on a Linux machine.

This is waiting once

is merged first.

Description

@jiridanek says: The "random" uid changes are because rootless podman can only handle UIDs from $0$ to $2^{16} - 1$ inside the container. There's a trick in podman that maps the in-container UIDs to host system's UIDs, and there is only so much UIDs that can be mapped.

How Has This Been Tested?

  • poetry run pytest
  • DOCKER_HOST=unix:///run/user/$UID/podman/podman.sock TESTCONTAINERS_DOCKER_SOCKET_OVERRIDE=/run/user/$UID/podman/podman.sock poetry run pytest tests/containers --image quay.io/opendatahub/workbench-images@sha256:e98d19df346e7abb1fa3053f6d41f0d1fa9bab39e49b4cb90b510ca33452c2e4

Merge criteria:

  • The commits are squashed in a cohesive manner and have meaningful messages.
  • Testing instructions have been added in the PR body (for PRs involving changes that are not immediately obvious).
  • The developer has manually tested the changes and verified that the changes work

@openshift-ci openshift-ci bot added size/m and removed size/m labels Jan 24, 2025
@jstourac jstourac changed the title Update readme for tests execution + some test fixes for linux env NO-JIRA: chore(tests) Update readme for tests execution + some test fixes for linux env Jan 24, 2025
@openshift-ci openshift-ci bot added size/m and removed size/m labels Jan 24, 2025
@openshift-ci openshift-ci bot added size/m and removed size/m labels Jan 24, 2025
@jiridanek
Copy link
Member

/cc @atheo89 @dibryant
can you please check the readme instructions make sense to you, and work on your machines?

@openshift-ci openshift-ci bot requested review from atheo89 and dibryant January 24, 2025 10:29
@jstourac jstourac marked this pull request as ready for review January 24, 2025 10:29
@openshift-ci openshift-ci bot requested a review from daniellutz January 24, 2025 10:29
@openshift-ci openshift-ci bot added size/m and removed size/m labels Jan 24, 2025
@jstourac
Copy link
Member Author

/override ci/prow/images

Copy link
Contributor

openshift-ci bot commented Jan 24, 2025

@jstourac: Overrode contexts on behalf of jstourac: ci/prow/images

In response to this:

/override ci/prow/images

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@openshift-ci openshift-ci bot added size/m and removed size/m labels Jan 24, 2025
Added some more steps to configure the environment to make tests work on
local machine.
There is necessary to use "z" option when mounting files into the
container otherwise SELinux will not allow container to read the mounted
file.

Also, I've adjusted the UIDs used in the tests so that they are lower
than 65k because otherwise it's not possible to run these with a
root-less podman/docker.
@jstourac
Copy link
Member Author

/override ci/prow/images

Copy link
Contributor

openshift-ci bot commented Jan 24, 2025

@jstourac: Overrode contexts on behalf of jstourac: ci/prow/images

In response to this:

/override ci/prow/images

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@atheo89
Copy link
Member

atheo89 commented Jan 24, 2025

/cc @atheo89 @dibryant
can you please check the readme instructions make sense to you, and work on your machines?

Everything looks good on my end, adding logs in case of comparison.
FedoraOS

/lgtm

$ poetry env use $(which python3.12)
Creating virtualenv notebooks-5gmz3gS1-py3.12 in /home/atheodor/.cache/pypoetry/virtualenvs
Using virtualenv: /home/atheodor/.cache/pypoetry/virtualenvs/notebooks-5gmz3gS1-py3.12
$ poetry config virtualenvs.in-project true
$ poetry env info

Virtualenv
Python:         3.12.8
Implementation: CPython
Path:           /home/atheodor/.cache/pypoetry/virtualenvs/notebooks-5gmz3gS1-py3.12
Executable:     /home/atheodor/.cache/pypoetry/virtualenvs/notebooks-5gmz3gS1-py3.12/bin/python
Valid:          True

Base
Platform:   linux
OS:         posix
Python:     3.12.8
Path:       /usr
Executable: /usr/bin/python3.12
$ poetry install --sync
The `--sync` option is deprecated and slated for removal in the next minor release after June 2025, use the `poetry sync` command instead.
Installing dependencies from lock file

Package operations: 19 installs, 0 updates, 0 removals

  - Installing certifi (2024.12.14)
  - Installing charset-normalizer (3.4.1)
  - Installing idna (3.10)
  - Installing urllib3 (2.3.0)
  - Installing attrs (24.3.0)
  - Installing iniconfig (2.0.0)
  - Installing packaging (24.2)
  - Installing pluggy (1.5.0)
  - Installing requests (2.32.3)
  - Installing allure-python-commons (2.13.5)
  - Installing docker (7.1.0)
  - Installing pytest (8.3.4)
  - Installing python-dotenv (1.0.1)
  - Installing typing-extensions (4.12.2)
  - Installing wrapt (1.17.2)
  - Installing allure-pytest (2.13.5)
  - Installing pyfakefs (5.7.4)
  - Installing pytest-subtests (0.12.1)
  - Installing testcontainers (4.9.1)

$ poetry run pytest
============================================================================================= test session starts ==============================================================================================
platform linux -- Python 3.12.8, pytest-8.3.4, pluggy-1.5.0
rootdir: /home/atheodor/Downloads/notebooks-readme
configfile: pytest.ini
plugins: allure-pytest-2.13.5, subtests-0.12.1, pyfakefs-5.7.4
collected 15 items                                                                                                                                                                                             

ci/cached-builds/make_test.py::TestMakeTest::test_make_commands_codeserver ::group::pod and statefulset info
::endgroup::
::group::kubernetes namespace events
::endgroup::
::group::previous pod logs
::endgroup::
::group::current pod logs
::endgroup::
[INFO] Finished testing codeserver-ubi9-python-3.11
PASSED
ci/cached-builds/make_test.py::TestMakeTest::test_make_commands_cuda_rstudio ::group::pod and statefulset info
::endgroup::
::group::kubernetes namespace events
::endgroup::
::group::previous pod logs
::endgroup::
::group::current pod logs
::endgroup::
[INFO] Finished testing cuda-rstudio-c9s-python-3.11
PASSED
ci/cached-builds/make_test.py::TestMakeTest::test_make_commands_jupyter ::group::pod and statefulset info
::endgroup::
::group::kubernetes namespace events
::endgroup::
::group::previous pod logs
::endgroup::
::group::current pod logs
::endgroup::
[INFO] Finished testing jupyter-minimal-ubi9-python-3.11
PASSED
ci/cached-builds/make_test.py::TestMakeTest::test_make_commands_jupyter_rocm ::group::pod and statefulset info
::endgroup::
::group::kubernetes namespace events
::endgroup::
::group::previous pod logs
::endgroup::
::group::current pod logs
::endgroup::
[INFO] Finished testing rocm-jupyter-tensorflow-ubi9-python-3.11
PASSED
ci/cached-builds/make_test.py::TestMakeTest::test_make_commands_rocm_runtime ::group::pod and statefulset info
::endgroup::
::group::kubernetes namespace events
::endgroup::
::group::previous pod logs
::endgroup::
::group::current pod logs
::endgroup::
[INFO] Finished testing rocm-runtime-pytorch-ubi9-python-3.11
PASSED
ci/cached-builds/make_test.py::TestMakeTest::test_make_commands_rstudio ::group::pod and statefulset info
::endgroup::
::group::kubernetes namespace events
::endgroup::
::group::previous pod logs
::endgroup::
::group::current pod logs
::endgroup::
[INFO] Finished testing rstudio-c9s-python-3.11
PASSED
ci/cached-builds/make_test.py::TestMakeTest::test_make_commands_runtime ::group::pod and statefulset info
::endgroup::
::group::kubernetes namespace events
::endgroup::
::group::previous pod logs
::endgroup::
::group::current pod logs
::endgroup::
[INFO] Finished testing runtime-datascience-ubi9-python-3.11
PASSED
tests/containers/base_image_test.py::TestBaseImage::test_oc_command_runs[image0] SKIPPED (got empty parameter set ['image'], function test_oc_command_runs at /home/atheodor/Downloads/notebooks-rea...)
tests/containers/base_image_test.py::TestBaseImage::test_oc_command_runs_fake_fips[image0] SKIPPED (got empty parameter set ['image'], function test_oc_command_runs_fake_fips at /home/atheodor/Dow...)
tests/containers/workbenches/workbench_image_test.py::TestWorkbenchImage::test_image_entrypoint_starts[image0-sysctls0] SKIPPED (got empty parameter set ['image'], function test_image_entrypoint_s...)
tests/containers/workbenches/workbench_image_test.py::TestWorkbenchImage::test_image_entrypoint_starts[image0-sysctls1] SKIPPED (got empty parameter set ['image'], function test_image_entrypoint_s...)
tests/test_main.py::test_image_pipfiles /home/atheodor/Downloads/notebooks-readme/base/c9s-python-3.11/Pipfile
[checking Pipfile] (pipfile=PosixPath('/home/atheodor/Downloads/notebooks-readme/base/c9s-python-3.11/Pipfile')) SUBPASS/home/atheodor/Downloads/notebooks-readme/base/ubi9-python-3.11/Pipfile

tests/test_main.py::test_image_pipfiles [checking Pipfile] (pipfile=PosixPath('/home/atheodor/Downloads/notebooks-readme/base/ubi9-python-3.11/Pipfile')) SUBPASS/home/atheodor/Downloads/notebooks-readme/codeserver/ubi9-python-3.11/Pipfile

tests/test_main.py::test_image_pipfiles [checking Pipfile] (pipfile=PosixPath('/home/atheodor/Downloads/notebooks-readme/codeserver/ubi9-python-3.11/Pipfile')) SUBPASS/home/atheodor/Downloads/notebooks-readme/jupyter/datascience/ubi9-python-3.11/Pipfile

tests/test_main.py::test_image_pipfiles [checking Pipfile] (pipfile=PosixPath('/home/atheodor/Downloads/notebooks-readme/jupyter/datascience/ubi9-python-3.11/Pipfile')) SUBPASS/home/atheodor/Downloads/notebooks-readme/jupyter/minimal/ubi9-python-3.11/Pipfile

tests/test_main.py::test_image_pipfiles [checking Pipfile] (pipfile=PosixPath('/home/atheodor/Downloads/notebooks-readme/jupyter/minimal/ubi9-python-3.11/Pipfile')) SUBPASS/home/atheodor/Downloads/notebooks-readme/jupyter/pytorch/ubi9-python-3.11/Pipfile

tests/test_main.py::test_image_pipfiles [checking Pipfile] (pipfile=PosixPath('/home/atheodor/Downloads/notebooks-readme/jupyter/pytorch/ubi9-python-3.11/Pipfile')) SUBPASS/home/atheodor/Downloads/notebooks-readme/jupyter/rocm/pytorch/ubi9-python-3.11/Pipfile

tests/test_main.py::test_image_pipfiles [checking Pipfile] (pipfile=PosixPath('/home/atheodor/Downloads/notebooks-readme/jupyter/rocm/pytorch/ubi9-python-3.11/Pipfile')) SUBPASS/home/atheodor/Downloads/notebooks-readme/jupyter/rocm/tensorflow/ubi9-python-3.11/Pipfile

tests/test_main.py::test_image_pipfiles [checking Pipfile] (pipfile=PosixPath('/home/atheodor/Downloads/notebooks-readme/jupyter/rocm/tensorflow/ubi9-python-3.11/Pipfile')) SUBPASS/home/atheodor/Downloads/notebooks-readme/jupyter/tensorflow/ubi9-python-3.11/Pipfile

tests/test_main.py::test_image_pipfiles [checking Pipfile] (pipfile=PosixPath('/home/atheodor/Downloads/notebooks-readme/jupyter/tensorflow/ubi9-python-3.11/Pipfile')) SUBPASS/home/atheodor/Downloads/notebooks-readme/jupyter/trustyai/ubi9-python-3.11/Pipfile

tests/test_main.py::test_image_pipfiles [checking Pipfile] (pipfile=PosixPath('/home/atheodor/Downloads/notebooks-readme/jupyter/trustyai/ubi9-python-3.11/Pipfile')) SUBPASS/home/atheodor/Downloads/notebooks-readme/runtimes/datascience/ubi9-python-3.11/Pipfile

tests/test_main.py::test_image_pipfiles [checking Pipfile] (pipfile=PosixPath('/home/atheodor/Downloads/notebooks-readme/runtimes/datascience/ubi9-python-3.11/Pipfile')) SUBPASS/home/atheodor/Downloads/notebooks-readme/runtimes/minimal/ubi9-python-3.11/Pipfile

tests/test_main.py::test_image_pipfiles [checking Pipfile] (pipfile=PosixPath('/home/atheodor/Downloads/notebooks-readme/runtimes/minimal/ubi9-python-3.11/Pipfile')) SUBPASS/home/atheodor/Downloads/notebooks-readme/runtimes/pytorch/ubi9-python-3.11/Pipfile

tests/test_main.py::test_image_pipfiles [checking Pipfile] (pipfile=PosixPath('/home/atheodor/Downloads/notebooks-readme/runtimes/pytorch/ubi9-python-3.11/Pipfile')) SUBPASS/home/atheodor/Downloads/notebooks-readme/runtimes/rocm-pytorch/ubi9-python-3.11/Pipfile

tests/test_main.py::test_image_pipfiles [checking Pipfile] (pipfile=PosixPath('/home/atheodor/Downloads/notebooks-readme/runtimes/rocm-pytorch/ubi9-python-3.11/Pipfile')) SUBPASS/home/atheodor/Downloads/notebooks-readme/runtimes/rocm-tensorflow/ubi9-python-3.11/Pipfile

tests/test_main.py::test_image_pipfiles [checking Pipfile] (pipfile=PosixPath('/home/atheodor/Downloads/notebooks-readme/runtimes/rocm-tensorflow/ubi9-python-3.11/Pipfile')) SUBPASS/home/atheodor/Downloads/notebooks-readme/runtimes/tensorflow/ubi9-python-3.11/Pipfile

tests/test_main.py::test_image_pipfiles [checking Pipfile] (pipfile=PosixPath('/home/atheodor/Downloads/notebooks-readme/runtimes/tensorflow/ubi9-python-3.11/Pipfile')) SUBPASS
tests/test_main.py::test_image_pipfiles PASSED
tests/test_main.py::test_files_that_should_be_same_are_same [Checking ROCm de-vendor script] SUBPASS
tests/test_main.py::test_files_that_should_be_same_are_same PASSED
tests/test_main.py::test_make_building_only_specified_images INFO:root:Running make in --just-print mode for target(s) ['rocm-jupyter-tensorflow-ubi9-python-3.11'] with env {'BUILD_DEPENDENT_IMAGES': 'no'}

------------------------------------------------------------------------------------------------ live log call -------------------------------------------------------------------------------------------------
2025-01-24 13:04:43 INFO Running make in --just-print mode for target(s) ['rocm-jupyter-tensorflow-ubi9-python-3.11'] with env {'BUILD_DEPENDENT_IMAGES': 'no'}
+ which podman
+ pwd
+ go build -C scripts/buildinputs -o /home/atheodor/Downloads/notebooks-readme/bin/buildinputs ./...
go: downloading go1.22.0 (linux/amd64)
go: downloading github.com/opencontainers/go-digest v1.0.0
go: downloading github.com/moby/buildkit v0.18.1
go: downloading github.com/containerd/platforms v0.2.1
go: downloading github.com/opencontainers/image-spec v1.1.0
go: downloading github.com/containerd/log v0.1.0
go: downloading golang.org/x/sys v0.26.0
go: downloading github.com/sirupsen/logrus v1.9.3
go: downloading github.com/distribution/reference v0.6.0
go: downloading google.golang.org/protobuf v1.35.1
go: downloading github.com/docker/go-connections v0.5.0
go: downloading github.com/planetscale/vtprotobuf v0.6.1-0.20240319094008-0393e58bdf10
go: downloading github.com/moby/docker-image-spec v1.3.1
go: downloading github.com/moby/sys/signal v0.7.1
go: downloading github.com/moby/patternmatcher v0.6.0
go: downloading github.com/containerd/containerd v1.7.24
go: downloading github.com/agext/levenshtein v1.2.3
go: downloading github.com/docker/go-units v0.5.0
go: downloading github.com/moby/locker v1.0.1
go: downloading github.com/tonistiigi/go-csvvalue v0.0.0-20240710180619-ddb21b71c0b4
go: downloading github.com/containerd/errdefs v0.3.0
go: downloading github.com/google/shlex v0.0.0-20191202100458-e7afc7fbc510
go: downloading github.com/containerd/typeurl/v2 v2.2.3
go: downloading github.com/tonistiigi/fsutil v0.0.0-20241121093142-31cf1f437184
go: downloading github.com/in-toto/in-toto-golang v0.5.0
go: downloading google.golang.org/grpc v1.66.3
go: downloading github.com/hashicorp/go-multierror v1.1.1
go: downloading go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc v0.46.1
go: downloading go.opentelemetry.io/contrib/instrumentation/net/http/httptrace/otelhttptrace v0.46.1
go: downloading go.opentelemetry.io/contrib/instrumentation/net/http/otelhttp v0.53.0
go: downloading go.opentelemetry.io/otel v1.28.0
go: downloading go.opentelemetry.io/otel/sdk v1.28.0
go: downloading go.opentelemetry.io/otel/trace v1.28.0
go: downloading golang.org/x/crypto v0.27.0
go: downloading google.golang.org/genproto/googleapis/rpc v0.0.0-20240701130421-f6361c86f094
go: downloading github.com/hashicorp/errwrap v1.1.0
go: downloading go.opentelemetry.io/otel/metric v1.28.0
go: downloading github.com/secure-systems-lab/go-securesystemslib v0.4.0
go: downloading github.com/shibumi/go-pathspec v1.3.0
go: downloading github.com/felixge/httpsnoop v1.0.4
go: downloading golang.org/x/net v0.29.0
go: downloading github.com/containerd/ttrpc v1.2.5
go: downloading github.com/klauspost/compress v1.17.11
go: downloading github.com/go-logr/stdr v1.2.2
go: downloading github.com/google/uuid v1.6.0
go: downloading golang.org/x/text v0.18.0
+ date +%Y%m%d
+ date +%Y%m%d
+ date +%Y%m%d
DEBUG:root:Building a Go helper for Dockerfile dependency analysis...
DEBUG:root:
DEBUG:root:go build -C "scripts/buildinputs" -o "/home/atheodor/Downloads/notebooks-readme/bin/buildinputs" ./...
DEBUG:root:#*# Image build directory: <base/ubi9-python-3.11> #(MACHINE-PARSED LINE)#*#...
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:#*# Image build directory: <rocm/ubi9-python-3.11> #(MACHINE-PARSED LINE)#*#...
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:#*# Image build directory: <jupyter/minimal/ubi9-python-3.11> #(MACHINE-PARSED LINE)#*#...
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:#*# Image build directory: <jupyter/datascience/ubi9-python-3.11> #(MACHINE-PARSED LINE)#*#...
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:#*# Image build directory: <jupyter/rocm/tensorflow/ubi9-python-3.11> #(MACHINE-PARSED LINE)#*#...
DEBUG:root:# Building quay.io/opendatahub/workbench-images:rocm-jupyter-tensorflow-ubi9-python-3.11-2024b_20250124 image...
DEBUG:root:# Pushing quay.io/opendatahub/workbench-images:rocm-jupyter-tensorflow-ubi9-python-3.11-2024b_20250124 image...
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:/home/atheodor/Downloads/notebooks-readme/scripts/sandbox.py --dockerfile 'jupyter/rocm/tensorflow/ubi9-python-3.11/Dockerfile' -- podman build --no-cache --tag quay.io/opendatahub/workbench-images:rocm-jupyter-tensorflow-ubi9-python-3.11-2024b_20250124 --file 'jupyter/rocm/tensorflow/ubi9-python-3.11/Dockerfile' --build-arg BASE_IMAGE=quay.io/opendatahub/workbench-images:rocm-jupyter-datascience-ubi9-python-3.11-2024b_20250124 {}\;
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:podman push quay.io/opendatahub/workbench-images:rocm-jupyter-tensorflow-ubi9-python-3.11-2024b_20250124
DEBUG:root:
DEBUG:root:
[Running goals] (goals=['rocm-jupyter-tensorflow-ubi9-python-3.11']) SUBPASSINFO:root:Running make in --just-print mode for target(s) ['rocm-jupyter-tensorflow-ubi9-python-3.11', 'base-ubi9-python-3.11'] with env {'BUILD_DEPENDENT_IMAGES': 'no'}
---------------------------------------------------------------------------------------------- live log logreport ----------------------------------------------------------------------------------------------
2025-01-24 13:05:19 INFO Running make in --just-print mode for target(s) ['rocm-jupyter-tensorflow-ubi9-python-3.11', 'base-ubi9-python-3.11'] with env {'BUILD_DEPENDENT_IMAGES': 'no'}
+ which podman
+ pwd
Makefile:125: warning: undefined variable '3'
+ date +%Y%m%d
+ date +%Y%m%d
+ date +%Y%m%d
+ date +%Y%m%d
+ date +%Y%m%d
DEBUG:root:#*# Image build directory: <base/ubi9-python-3.11> #(MACHINE-PARSED LINE)#*#...
DEBUG:root:# Building quay.io/opendatahub/workbench-images:base-ubi9-python-3.11-2024b_20250124 image...
DEBUG:root:# Pushing quay.io/opendatahub/workbench-images:base-ubi9-python-3.11-2024b_20250124 image...
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:/home/atheodor/Downloads/notebooks-readme/scripts/sandbox.py --dockerfile 'base/ubi9-python-3.11/Dockerfile' -- podman build --no-cache --tag quay.io/opendatahub/workbench-images:base-ubi9-python-3.11-2024b_20250124 --file 'base/ubi9-python-3.11/Dockerfile'  {}\;
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:podman push quay.io/opendatahub/workbench-images:base-ubi9-python-3.11-2024b_20250124
DEBUG:root:
DEBUG:root:
DEBUG:root:#*# Image build directory: <rocm/ubi9-python-3.11> #(MACHINE-PARSED LINE)#*#...
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:#*# Image build directory: <jupyter/minimal/ubi9-python-3.11> #(MACHINE-PARSED LINE)#*#...
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:#*# Image build directory: <jupyter/datascience/ubi9-python-3.11> #(MACHINE-PARSED LINE)#*#...
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:#*# Image build directory: <jupyter/rocm/tensorflow/ubi9-python-3.11> #(MACHINE-PARSED LINE)#*#...
DEBUG:root:# Building quay.io/opendatahub/workbench-images:rocm-jupyter-tensorflow-ubi9-python-3.11-2024b_20250124 image...
DEBUG:root:# Pushing quay.io/opendatahub/workbench-images:rocm-jupyter-tensorflow-ubi9-python-3.11-2024b_20250124 image...
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:/home/atheodor/Downloads/notebooks-readme/scripts/sandbox.py --dockerfile 'jupyter/rocm/tensorflow/ubi9-python-3.11/Dockerfile' -- podman build --no-cache --tag quay.io/opendatahub/workbench-images:rocm-jupyter-tensorflow-ubi9-python-3.11-2024b_20250124 --file 'jupyter/rocm/tensorflow/ubi9-python-3.11/Dockerfile' --build-arg BASE_IMAGE=quay.io/opendatahub/workbench-images:rocm-jupyter-datascience-ubi9-python-3.11-2024b_20250124 {}\;
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:podman push quay.io/opendatahub/workbench-images:rocm-jupyter-tensorflow-ubi9-python-3.11-2024b_20250124
DEBUG:root:
DEBUG:root:
DEBUG:root:gmake: Nothing to be done for 'base-ubi9-python-3.11'.

tests/test_main.py::test_make_building_only_specified_images [Running goals] (goals=['rocm-jupyter-tensorflow-ubi9-python-3.11', 'base-ubi9-python-3.11']) SUBPASS
tests/test_main.py::test_make_building_only_specified_images PASSED
tests/test_main.py::test_make_disable_pushing INFO:root:Running make in --just-print mode for target(s) ['rocm-jupyter-tensorflow-ubi9-python-3.11'] with env {'PUSH_IMAGES': ''}

------------------------------------------------------------------------------------------------ live log call -------------------------------------------------------------------------------------------------
2025-01-24 13:05:19 INFO Running make in --just-print mode for target(s) ['rocm-jupyter-tensorflow-ubi9-python-3.11'] with env {'PUSH_IMAGES': ''}
+ which podman
+ pwd
Makefile:125: warning: undefined variable '3'
+ date +%Y%m%d
+ date +%Y%m%d
+ date +%Y%m%d
+ date +%Y%m%d
+ date +%Y%m%d
+ date +%Y%m%d
+ date +%Y%m%d
+ date +%Y%m%d
+ date +%Y%m%d
DEBUG:root:#*# Image build directory: <base/ubi9-python-3.11> #(MACHINE-PARSED LINE)#*#...
DEBUG:root:# Building quay.io/opendatahub/workbench-images:base-ubi9-python-3.11-2024b_20250124 image...
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:/home/atheodor/Downloads/notebooks-readme/scripts/sandbox.py --dockerfile 'base/ubi9-python-3.11/Dockerfile' -- podman build --no-cache --tag quay.io/opendatahub/workbench-images:base-ubi9-python-3.11-2024b_20250124 --file 'base/ubi9-python-3.11/Dockerfile'  {}\;
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:#*# Image build directory: <rocm/ubi9-python-3.11> #(MACHINE-PARSED LINE)#*#...
DEBUG:root:# Building quay.io/opendatahub/workbench-images:rocm-ubi9-python-3.11-2024b_20250124 image...
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:/home/atheodor/Downloads/notebooks-readme/scripts/sandbox.py --dockerfile 'rocm/ubi9-python-3.11/Dockerfile' -- podman build --no-cache --tag quay.io/opendatahub/workbench-images:rocm-ubi9-python-3.11-2024b_20250124 --file 'rocm/ubi9-python-3.11/Dockerfile' --build-arg BASE_IMAGE=quay.io/opendatahub/workbench-images:base-ubi9-python-3.11-2024b_20250124 {}\;
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:#*# Image build directory: <jupyter/minimal/ubi9-python-3.11> #(MACHINE-PARSED LINE)#*#...
DEBUG:root:# Building quay.io/opendatahub/workbench-images:rocm-jupyter-minimal-ubi9-python-3.11-2024b_20250124 image...
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:/home/atheodor/Downloads/notebooks-readme/scripts/sandbox.py --dockerfile 'jupyter/minimal/ubi9-python-3.11/Dockerfile' -- podman build --no-cache --tag quay.io/opendatahub/workbench-images:rocm-jupyter-minimal-ubi9-python-3.11-2024b_20250124 --file 'jupyter/minimal/ubi9-python-3.11/Dockerfile' --build-arg BASE_IMAGE=quay.io/opendatahub/workbench-images:rocm-ubi9-python-3.11-2024b_20250124 {}\;
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:#*# Image build directory: <jupyter/datascience/ubi9-python-3.11> #(MACHINE-PARSED LINE)#*#...
DEBUG:root:# Building quay.io/opendatahub/workbench-images:rocm-jupyter-datascience-ubi9-python-3.11-2024b_20250124 image...
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:/home/atheodor/Downloads/notebooks-readme/scripts/sandbox.py --dockerfile 'jupyter/datascience/ubi9-python-3.11/Dockerfile' -- podman build --no-cache --tag quay.io/opendatahub/workbench-images:rocm-jupyter-datascience-ubi9-python-3.11-2024b_20250124 --file 'jupyter/datascience/ubi9-python-3.11/Dockerfile' --build-arg BASE_IMAGE=quay.io/opendatahub/workbench-images:rocm-jupyter-minimal-ubi9-python-3.11-2024b_20250124 {}\;
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:#*# Image build directory: <jupyter/rocm/tensorflow/ubi9-python-3.11> #(MACHINE-PARSED LINE)#*#...
DEBUG:root:# Building quay.io/opendatahub/workbench-images:rocm-jupyter-tensorflow-ubi9-python-3.11-2024b_20250124 image...
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:
DEBUG:root:/home/atheodor/Downloads/notebooks-readme/scripts/sandbox.py --dockerfile 'jupyter/rocm/tensorflow/ubi9-python-3.11/Dockerfile' -- podman build --no-cache --tag quay.io/opendatahub/workbench-images:rocm-jupyter-tensorflow-ubi9-python-3.11-2024b_20250124 --file 'jupyter/rocm/tensorflow/ubi9-python-3.11/Dockerfile' --build-arg BASE_IMAGE=quay.io/opendatahub/workbench-images:rocm-jupyter-datascience-ubi9-python-3.11-2024b_20250124 {}\;
DEBUG:root:
DEBUG:root:
DEBUG:root:
PASSED

============================================================================== 11 passed, 4 skipped, 19 subtests passed in 36.68s ==============================================================================

@atheo89 atheo89 added the lgtm label Jan 24, 2025
@jiridanek
Copy link
Member

/lgtm
works on my macOS!

@jiridanek
Copy link
Member

This may go in later, or maybe never, but these two commands may be useful for macOS

If you messed with SELinux in your env before

podman machine ssh sudo setenforce Permissive

Check that the podman cli is fine with the socket you are using, it's better for diagnosing problems than just running testcontainers.

podman --url $DOCKER_HOST ps

@jstourac
Copy link
Member Author

/approve

Copy link
Contributor

openshift-ci bot commented Jan 24, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: jstourac

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@jstourac
Copy link
Member Author

This may go in later, or maybe never, but these two commands may be useful for macOS

If you messed with SELinux in your env before

podman machine ssh sudo setenforce Permissive

Check that the podman cli is fine with the socket you are using, it's better for diagnosing problems than just running testcontainers.

podman --url $DOCKER_HOST ps

I'll keep this up to you as a MacOS user. I'm gonna merge this one now. 🙂

Thank you all for your review!

@openshift-merge-bot openshift-merge-bot bot merged commit 5349835 into opendatahub-io:main Jan 24, 2025
7 checks passed
@jstourac jstourac deleted the readme branch January 24, 2025 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants