Skip to content

NO-JIRA: tests(gha): fix podman.sock cleanup in system reset for build workflow #1121

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

Merged
merged 1 commit into from
May 20, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .github/workflows/build-notebooks-TEMPLATE.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,10 @@ jobs:
# remote (CONTAINER_HOST) podman does not do reset (and refuses --force option)
sudo /home/linuxbrew/.linuxbrew/opt/podman/bin/podman system reset --force

# https://github.com/containers/podman/pull/25504
# podman 5.5.0: The podman system reset command no longer removes the user's podman.sock API socket
sudo rm -rf /var/run/podman

# https://github.com/containers/podman/blob/main/docs/tutorials/socket_activation.md
# since `brew services start podman` is buggy, let's do our own brew-compatible service
# Regarding directory paths, see https://unix.stackexchange.com/questions/224992/where-do-i-put-my-systemd-unit-file
Expand All @@ -204,7 +208,12 @@ jobs:

- name: Show error logs (on failure)
if: ${{ failure() }}
run: journalctl -xe
run: |
set -Eeuxo pipefail

journalctl -xe
ls -AlF /var/run/podman/podman.sock || echo "Socket /var/run/podman/podman.sock not found"
sudo ss -xlpn | grep 'podman.sock' || echo "No active listener found for podman.sock via ss"

- name: Calculate image name and tag
id: calculated_vars
Expand Down
1 change: 1 addition & 0 deletions ci/cached-builds/podman.service
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# https://github.com/containers/podman/blob/main/contrib/systemd/system/podman.service.in
# https://docs.podman.io/en/latest/markdown/podman-system-service.1.html
# cat /usr/lib/systemd/system/podman.socket

Expand Down
1 change: 1 addition & 0 deletions ci/cached-builds/podman.socket
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# https://github.com/containers/podman/blob/main/contrib/systemd/system/podman.socket
# cat /usr/lib/systemd/system/podman.socket

[Unit]
Expand Down