Commit Graph

27540 Commits

Author SHA1 Message Date
Matt Heon
eae28afcd3 Add new subprojects
As part of our move into the podman-container-tools org and our
migration to GH Actions CI, we moved several additional
repositories into the Podman Container Tools CNCF project. These
include container-libs (core libraries used by Podman and CRI-O),
podman-machine-os (builds OS images used by `podman machine`),
and automation (tools and scripts for maintaining our CI). All
of these went through the subproject process documented in our
governance and are now subprojects, so let's get them listed in
the governance.

Signed-off-by: Matt Heon <mheon@redhat.com>
2026-06-16 10:03:02 -04:00
Paul Holzinger
5cc79ac325 Merge pull request #28941 from ricardobranco777/wait
test/system: Fix "command not found" with wait builtin
2026-06-16 11:16:22 +02:00
Ricardo Branco
2d1868ff60 test/system: Fix "command not found" with wait builtin
Only on Fedora there's a /bin/wait shell script that calls Bash's
builtin(1).  This is not the case of openSUSE Tumbleweed with the same
Bash version and Debian 13.  Otherwise we get errors from bats like:

BW01: `run`'s command `wait 872594` exited with code 127, indicating
'Command not found'. Use run's return code checks, e.g. `run -127`,
to fix this message.

Replace `run wait` with `wait || true` like it's done in other tests.

Signed-off-by: Ricardo Branco <rbranco@suse.de>
2026-06-16 10:39:16 +02:00
Paul Holzinger
2249aac26c Merge pull request #28929 from podman-container-tools/renovate/pytest-9.x
Update dependency pytest to v9.1.0
2026-06-16 09:43:38 +02:00
Paul Holzinger
bd3acd11c7 Merge pull request #28934 from Luap99/e2e-tmp
test/e2e: split cli tmpdir from per test tempdir
2026-06-16 09:33:51 +02:00
Brent Baude
0cba15e256 Merge pull request #28910 from Honny1/fix-hang
Fix client hangs on stale SSH connections
2026-06-15 13:01:31 -05:00
Paul Holzinger
6fd70daaf5 Merge pull request #28922 from podmanbot/bump-main-6.1.0-dev
Bump main to v6.1.0-dev
2026-06-15 17:35:32 +02:00
Paul Holzinger
776bcd74c2 Revert "test/e2e: build in subdirectory"
This reverts commit 79e7b0f6fd.

With the proper tmpdir split we no longer need this.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-06-15 17:31:51 +02:00
Paul Holzinger
6e20527004 test/e2e: split cli tmpdir from per test tempdir
Right now the tmpdir for the test and cli are are the same and worse the
root/runroot directories are subdirectories of the tmpdir so tests can
create conflicting files.

Also for rootless remote builds this cuases problems for all tests which
uses the main tmpdir as context dir as they then try to copy the storage
files with different uids which will fail. Commit 79e7b0f6fd tried to
work around it but it is not enough as much more tests use this pattern.

So to fix this once and for all properly separate them. And then fixup a
few test cases that depended on the wrong value and make them use the
proper root value directly.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-06-15 17:31:51 +02:00
Danish Prakash
c89c571efd Merge pull request #28928 from priyanshsao/fix-typo
fix: correct misspelled comment in container_inspect.go
2026-06-15 20:24:21 +05:30
Paul Holzinger
80f2f3d861 Merge pull request #28933 from podman-container-tools/renovate/github.com-onsi-gomega-1.x
Update module github.com/onsi/gomega to v1.42.0
2026-06-15 16:14:34 +02:00
Miloslav Trmač
8a8c1b3cd1 Merge pull request #28909 from Honny1/fix-lint
Replace deprecated `strings.Title` and fix staticcheck warnings
2026-06-15 15:57:26 +02:00
renovate[bot]
47a8803dd7 Update module github.com/onsi/gomega to v1.42.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-06-14 20:48:59 +00:00
renovate[bot]
817c05240c Update dependency pytest to v9.1.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-06-13 21:35:08 +00:00
Priyansh Sao
58d7314ee2 fix: correct misspelled comment in container_inspect.go
This replaces the misspelled word in comments "Exosed" with the correct spelling "Exposed" in the file container_inspect.go.

Fixes: #28927

Signed-off-by: Priyansh Sao <saopriyansh06@gmail.com>
2026-06-13 07:15:17 +00:00
mheon
3f71cc5b0d Bump main to v6.1.0-dev
Signed-off-by: mheon <7735048+mheon@users.noreply.github.com>
2026-06-12 19:40:59 +00:00
Jan Rodák
f1d0ded43c Convert if/else to switch for transport name comparison
Signed-off-by: Jan Rodák <hony.com@seznam.cz>
2026-06-12 10:12:49 +02:00
Jan Rodák
454a1dea45 Replace deprecated PatternMatcher.Matches with MatchesResult
Signed-off-by: Jan Rodák <hony.com@seznam.cz>
2026-06-12 10:12:49 +02:00
Jan Rodák
b294a92a25 Add reasons to all staticcheck suppressions
Signed-off-by: Jan Rodák <hony.com@seznam.cz>
2026-06-12 10:12:40 +02:00
Jan Rodák
d222b0ae07 Fix staticcheck SA4023 warnings in call.go and sign.go
Signed-off-by: Jan Rodák <hony.com@seznam.cz>
2026-06-12 09:53:20 +02:00
Jan Rodák
fc433a9b27 Replace deprecated strings.Title with manual capitalization
Signed-off-by: Jan Rodák <hony.com@seznam.cz>
2026-06-12 09:53:19 +02:00
Matt Heon
e2a4453cbd Merge pull request #28899 from Luap99/rpm
rpm: require specific containers-common with new config files
2026-06-11 11:08:46 -04:00
Jan Rodák
ae825f6234 Fix client hangs on stale SSH connections
Wrap ssh.DialNet in a goroutine so it respects context cancellation,
skip retries on context/timeout errors, and invalidate the cached
connection on failure.

Fixes: https://github.com/containers/podman/issues/28453

Signed-off-by: Jan Rodák <hony.com@seznam.cz>
2026-06-11 16:10:25 +02:00
Jan Rodák
303d6c0d84 Vendor container-libs@main
Signed-off-by: Jan Rodák <hony.com@seznam.cz>
2026-06-11 16:10:22 +02:00
Matt Heon
735d0b0093 Merge pull request #28903 from Luap99/fix-chrootarchive-remote
fix podman-remote save -f oci-dir/docker-dir
2026-06-11 09:58:56 -04:00
Jan Rodák
bd5e4c1bf8 Merge pull request #28228 from matejvasek/fix-push-err-msg
fix: compat API image push err meg propagation
2026-06-11 15:19:19 +02:00
Matt Heon
641ba7e46b Merge pull request #28790 from containers/renovate/github.com-mdlayher-vsock-1.x
Update module github.com/mdlayher/vsock to v1.3.0
2026-06-11 07:11:38 -04:00
Matej Vašek
7607c3ec82 fix: style
Signed-off-by: Matej Vašek <matejvasek@gmail.com>
2026-06-11 12:56:31 +02:00
Matej Vašek
db70e73056 fix: compat API image push err meg propagation
When returning error http code (e.g. 4xx, 5xx) the body needs to contain
a JSON that has a key "message" in it,
we must not use jsonmessage.JSONMessage.

The JSON of shape jsonmessage.JSONMessage is used only when client
already received 200.

Signed-off-by: Matej Vašek <matejvasek@gmail.com>
2026-06-11 12:56:29 +02:00
Mario Loriedo
d1f0833c5f Merge pull request #28895 from ashley-cui/nightly
Release CI: Migrate to re-usable build action
2026-06-11 11:48:25 +02:00
Jan Rodák
7fe6abf197 Merge pull request #28879 from jiwahn/fix-event-attributes-labels
events: include labels in pod and volume attributes Fixes: #26480
2026-06-11 10:27:38 +02:00
Paul Holzinger
20397b288e Merge pull request #28905 from podman-container-tools/renovate/golang.org-x-net-0.x
Update module golang.org/x/net to v0.56.0
2026-06-11 09:22:00 +02:00
Danish Prakash
337f104a30 Merge pull request #28822 from Honny1/host-vs-name
Document container name vs hostname and network DNS
2026-06-11 10:19:16 +05:30
Paul Holzinger
79e7b0f6fd test/e2e: build in subdirectory
So when running remote and rootless tests the buildImage() thing has one
big problem because it used the main test tmpdir as context.

However that dir also holds all the image layers with files that are
owned by other uids and because podman-remote does not use the userns it
cannot read some files and then fails when trying to tar up the context
dir.

To fix this use an extra sub directory. Now because some tests where
using the parent directory to supply context files just switch the
callers so they have full control still.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-06-10 20:26:11 +02:00
renovate[bot]
25cb9d7e4e Update module golang.org/x/net to v0.56.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-06-10 18:08:35 +00:00
Paul Holzinger
fd07b9c6ec fix podman-remote save -f oci-dir/docker-dir
With podman-remote we do not enter a our user namespace like we do with
local podman so we keep running with the real user id.

So if we then try to use chrootarchive as normal user it fails with:
creating mount namespace before pivot: operation not permitted

So simply revert back to the normal archive code.

Now the more interesting thing is we do have a test
"podman save to directory with oci format" but it never runs
rootless+remote in our CI system with our current matrix as we wanted to
reduce jobs.
So rethink the matrix and add one such job as this shows it is needed.

Fixes: 25aee24cbd ("use chrootarchive over plain archive package")

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-06-10 18:47:02 +02:00
Matt Heon
0454af479f Merge pull request #28900 from Luap99/lint
fix small lint error
2026-06-10 11:14:07 -04:00
Paul Holzinger
22e2f85311 fix small lint error
This was report on of of my PRs, I do not know why this fails there all
of the sudden, it seems golangci-lint has gotten flaky recently.

Locally the linter passes without this change just fine but in CI this
seems to fail:

Error: cmd/podman-testing/call.go:58:22: SA4023(related information): the lhs of the comparison is the 1st return value of this function call (staticcheck)
	reflectionClient := reflectionv1.NewServerReflectionClient(grpcClient)
	                    ^
Error: cmd/podman-testing/call.go:59:5: SA4023: this comparison is never true (staticcheck)
	if reflectionClient == nil {
	   ^

The lint seems right, NewServerReflectionClient never returns nil so
lets just fix it.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-06-10 15:05:24 +02:00
Paul Holzinger
e20616b48c rpm: require specific containers-common with new config files
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2026-06-10 14:40:29 +02:00
Paul Holzinger
cefaa0ee44 Merge pull request #28712 from elezar/info-cdi-devices
info: report configured and discovered CDI devices
2026-06-10 14:34:35 +02:00
renovate[bot]
0d5eb24c00 Update module github.com/mdlayher/vsock to v1.3.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2026-06-10 11:29:26 +00:00
Evan Lezar
dea67a3eba test/e2e: use Ginkgo Setenv in info tests
Signed-off-by: Evan Lezar <elezar@nvidia.com>
2026-06-10 12:21:27 +02:00
Jan Rodák
2aa54ee55f Document container name vs hostname and network DNS
Clarify that auto-generated names may use underscores, that DNS-enabled
networks resolve container names as given, and that container_name_as_hostname
changes the UTS hostname only.

Fixes: https://github.com/containers/podman/issues/28754

Signed-off-by: Jan Rodák <hony.com@seznam.cz>
2026-06-10 11:28:14 +02:00
Jan Rodák
86efefb654 Merge pull request #28894 from Luap99/pr-labels
.github/labeler: add CI label automatically
2026-06-10 09:53:32 +02:00
Jan Rodák
d55b0a0664 Merge pull request #28889 from Luap99/port-conflict
pkg/specgen: fix port conflict on host assignment
2026-06-10 09:44:50 +02:00
Jan Rodák
331946fd79 Merge pull request #28876 from solunolab/main
chore: fix some function names in comment
2026-06-10 07:30:30 +02:00
Paul Holzinger
82a460cca2 Merge pull request #28785 from kolyshkin/hack-shfmt
Use shfmt (for ./hack only)
2026-06-09 22:08:23 +02:00
Paul Holzinger
f25cd8267a Merge pull request #28896 from kolyshkin/go-criu
deps: bump go-criu to v8.2.0
2026-06-09 21:52:23 +02:00
Kir Kolyshkin
f5d8ea5f2b Makefile: add shfmt target to format ./hack/ only
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2026-06-09 11:55:16 -07:00
Kir Kolyshkin
bb3f0c9e56 hack: format with shfmt -w
Using shfmt v3.13.1

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2026-06-09 11:55:16 -07:00