-
Notifications
You must be signed in to change notification settings - Fork 71
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-ISSUE: chore(tests/containers): fix fake fips tests for macOS rootless podman machine #891
NO-ISSUE: chore(tests/containers): fix fake fips tests for macOS rootless podman machine #891
Conversation
…less podman machine ``` base_image_test.py:146: in test_oc_command_runs_fake_fips assert ecode == 0, output.decode() E AssertionError: assertion failed [!result.is_error]: Unable to open /proc/sys/vm/mmap_min_addr E (VMAllocationTracker.cpp:317 init) E E assert 137 == 0 ``` ``` lima cat /proc/sys/vm/mmap_min_addr 65536 ``` ``` podman machine ssh cat /proc/sys/vm/mmap_min_addr 65536 ``` ``` podman run --entrypoint /bin/bash --rm -it ghcr.io/jiridanek/notebooks/workbench-images:base-ubi9-python-3.11-jd_ubi_base_1e8dd3140d980ff573d56d3ae746959f31825d8a WARNING: image platform (linux/amd64) does not match the expected platform (linux/arm64) bash-5.1$ cat /proc/sys/vm/mmap_min_addr 65536 ```
00bb2aa
to
4da2441
Compare
Hey Jiri - that "How this was tested section":
what is that? how can somebody else run it? |
Tested myself locally with the following command:
The results are:
Seems like nothing truly break for non-macOS users. /lgtm |
that's how it was tested
if they install pycharm, they can right-click and pycharm will run the test exactly this way otherwise, -k and --image with poetry run pytest, as usual, ofc |
/override ci/prow/images |
@jiridanek: Overrode contexts on behalf of jiridanek: ci/prow/images In response to this:
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. |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jiridanek 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 |
This is to fix this problem I have on macOS with rootless podman machine
Normally, there is
/proc/sys/vm/mmap_min_addr
filebut in the tests when mounting iinto /proc/sys, we end up making /proc/sys/vm inaccessible. The broad mount is required for GitHub Actions on Ubuntu.
Description
Solution is conditional, to mount differently on ubuntu and in a different way elsewhere. Checking whether /proc/sys/crypto is present on macOS is harder (podman machine) so assume on macOS ppl are using Fedora in podman machine so it works.
How Has This Been Tested?
Merge criteria: