Commit Graph

23830 Commits

Author SHA1 Message Date
openshift-merge-bot[bot] 993ecd5a05
Merge pull request #24261 from mheon/update_contributing
Thorough overhaul of CONTRIBUTING doc.
2024-10-17 11:03:36 +00:00
openshift-merge-bot[bot] 7d5377bb2e
Merge pull request #24238 from edsantiago/pasta-bytecheck
pasta udp tests: new bytecheck helper
2024-10-17 09:19:05 +00:00
Ed Santiago fe96c843bf APIv2 test fix: image history
I'm assuming this was buildah#5595: the COMMENT field moved around.
Deal with it, and add a few more checks while we're at it.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-10-16 10:15:19 -06:00
Ed Santiago 67e39c1ec5 pasta udp tests: new bytecheck helper
...for debugging #24147, because "md5sum mismatch" is not
the best way to troubleshoot bytestream differences.

socat is run on the container, so this requires building a
new testimage (20241011). Bump to new CI VMs[1] which include it.

 [1] https://github.com/containers/automation_images/pull/389

Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-10-16 10:15:19 -06:00
openshift-merge-bot[bot] b65f3b19a5
Merge pull request #24295 from lsm5/rpm-spec-cleanup
[skip-ci] RPM: remove dup Provides
2024-10-16 14:27:59 +00:00
openshift-merge-bot[bot] ac5cbcb031
Merge pull request #24294 from containers/renovate/setuptools-75.x
Update dependency setuptools to ~=75.2.0
2024-10-16 14:11:23 +00:00
Lokesh Mandvekar cf124ee1bb
[skip-ci] RPM: remove dup Provides
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2024-10-16 19:37:13 +05:30
renovate[bot] 927cb7624c
Update dependency setuptools to ~=75.2.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-16 13:48:10 +00:00
openshift-merge-bot[bot] 12c03ed6fe
Merge pull request #24291 from edsantiago/bats-safer-mypod
System tests: safer pause-image creation
2024-10-16 13:46:31 +00:00
Ed Santiago 1ddb15c81f System tests: safer pause-image creation
The current mypod hack breaks down when running individual tests:

    $ hack/bats 010   <<< barfs because it does not want pause-image!

Reason: Bats does not provide any official way to tell if tests
are being run in parallel.

Workaround: use an undocumented way.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-10-16 06:02:23 -06:00
openshift-merge-bot[bot] 27d73b0cd0
Merge pull request #24289 from ThaddeusTreloar/fix/hyperv-powershell-path-sanitise
Added escaping to invoked powershell command for hyperv stubber.
2024-10-16 10:26:21 +00:00
openshift-merge-bot[bot] d7e0933030
Merge pull request #24288 from containers/renovate/github.com-opencontainers-selinux-1.x
Update module github.com/opencontainers/selinux to v1.11.1
2024-10-16 08:42:32 +00:00
openshift-merge-bot[bot] bd1abf05bb
Merge pull request #24284 from zackattackz/slices-clone
use slices.Clone instead of assignment
2024-10-16 07:14:34 +00:00
renovate[bot] 40d4f7240b
Update module github.com/opencontainers/selinux to v1.11.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-16 02:44:20 +00:00
ThaddeusTreloar 1227f19393 Added escaping to invoked powershell command for hyperv stubber.
Signed-off-by: ThaddeusTreloar <thaddeus.treloar@protonmail.com>
2024-10-16 13:16:39 +11:00
openshift-merge-bot[bot] a2eb5429b3
Merge pull request #24264 from edsantiago/try-try-again
CI: fix changing-rootFsSize flake
2024-10-15 22:05:42 +00:00
openshift-merge-bot[bot] d5be88e0c2
Merge pull request #24228 from giuseppe/do-not-lower-rlimits
podman: do not set rlimits to the default value
2024-10-15 22:02:52 +00:00
openshift-merge-bot[bot] a38eaa5b31
Merge pull request #24240 from zackattackz/scp-opts
scp: add option types
2024-10-15 21:54:38 +00:00
Zachary Hanham b7b2ef48e8 use slices.Clone instead of assignment
Fixes #24267

This commit replaces a potentially unsafe slice-assignment with a call to `slices.Clone`.

This could prevent a bug where `saveCommand` and `loadCommand` could end up sharing an underlying array if `parentFlags` has a cap > it's len.

Signed-off-by: Zachary Hanham <z.hanham00@gmail.com>
2024-10-15 14:14:46 -04:00
openshift-merge-bot[bot] f668fd9f8d
Merge pull request #24279 from edsantiago/dedup-cirrus
Housekeeping: remove duplicates from success_task
2024-10-15 17:19:40 +00:00
openshift-merge-bot[bot] 40dae5edd3
Merge pull request #24242 from rhatdan/krunkit
Mention containers.conf settings for podman machine commands
2024-10-15 17:03:10 +00:00
Ed Santiago b3302e8e18 Housekeeping: remove duplicates from success_task
Accidentally introduced in #21639.

Thanks to Paul for the Python code to prevent this from
happening again.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-10-15 10:09:15 -06:00
Matt Heon 1bf37eecf3 Thorough overhaul of CONTRIBUTING doc.
The doc has been reorganized and reordered. New sections have
been added as necessary to cover things not covered by the old
guide. Some sections were expanded (e.g. detailing differences
between E2E and System tests). Some sections that we did not
actually follow were removed.

Fixes https://issues.redhat.com/browse/RUN-2281

Signed-off-by: Matt Heon <mheon@redhat.com>
2024-10-15 11:22:52 -04:00
openshift-merge-bot[bot] cc215483be
Merge pull request #24270 from inknos/update-ci-vm-images-f40f39d13
Test new VM build
2024-10-15 14:01:42 +00:00
openshift-merge-bot[bot] 1dcb4c58c2
Merge pull request #24274 from Luap99/fix-signal-exit
test/e2e: fix default signal exit code test
2024-10-15 13:47:53 +00:00
Paul Holzinger b0f2ebbe9d
test/e2e: fix default signal exit code test
By default golang programs exit 2 on special exit signals that can be
cought and produce a stack trace. However this is behavior that can be
modfied via GOTRACEBACK=crash[1], in that case it does not exit(2) but
rather sends itself SIGABRT to the parent sees the signal exit and out
test sees that es exit code 134, 128 + 6 (SIGABRT), like most shells do.

As it turns out GOTRACEBACK=crash is the default mode on all fedora and
RHEL rpm builds as they patch the build with a special
"rpm_crashtraceback" go build tag.

While that change is old and existing for a very long time it was never
caught until commit 5e240ab1f5, which switched the old ExitWithError()
check that accepted anything > 0, to just accept 2. And as CI only test
upstream builds that are build without rpm_crashtraceback we did not
catch in CI either. Only once a user actually used distro build against
the source e2e test it failed.

I like to highlight that running distro builds against upstream e2e
tests is not something we really support or plan to support but given
this is a easy fix I decided to just fix it here as any user with
GOTRACEBACK=crash set would face the same issue.

While I touch this test remove the unnecessary RestoreArtifact() call
which is not needed at all as we do nothing with the image and just
slows the test down for now reason.

[1] https://pkg.go.dev/runtime#section-sourcefiles

Fixes #24213

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-10-15 15:17:50 +02:00
Nicola Sella dc55b59987 Test new VM build
https://github.com/containers/automation_images/pull/376

Signed-off-by: Nicola Sella <nsella@redhat.com>
2024-10-15 13:26:30 +02:00
Ed Santiago 1b57dcab61 CI: fix changing-rootFsSize flake
(Second try). Use an airgapped image in the inspect-data tests.

Fixes: #23756

Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-10-15 05:14:49 -06:00
Zachary Hanham feb46513f0 scp: add option types
Prior to this commit, many scp functions existed without option structs, which would make extending functionality (adding new options) impossible without breaking changes, or without adding redundant wrapper functions.

This commit adds in new option types for various scp related functions, and changes those functions' signatures to use the new options.

This commit also modifies the `ImageEngine.Scp()` function's interface to use the new opts.

The commit also renames the existing `ImageScpOptions` entity type to `ScpTransferImageOptions`. This is because the previous `ImageScpOptions` was inaccurate, as it is not the actual options for `ImageEngine.Scp()`. `ImageEngine.Scp()` should instead receive `ImageScpOptions`.

This commit should not change any behavior, however it will break the existing functions' signatures.

Signed-off-by: Zachary Hanham <z.hanham00@gmail.com>
2024-10-14 21:46:55 -04:00
openshift-merge-bot[bot] 3fbae8e28e
Merge pull request #24259 from emakrushin/containers
Unlock mutex before returning from function
2024-10-14 21:09:26 +00:00
openshift-merge-bot[bot] 11ab0b7246
Merge pull request #24120 from Luap99/cirrus-build-speed
cirrus: use fastvm for builds
2024-10-14 16:04:12 +00:00
Егор Макрушин 06b470d79b Unlock mutex before returning from function
mapMutex is initialized in the ContainerRm function and cannot be released from outside,
thus unlock mutex before returning from function.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Signed-off-by: Егор Макрушин <emakrushin@astralinux.ru>
2024-10-14 18:22:42 +03:00
Matt Heon 7ea6120794 Note in the README that we are moving to timed releases
I'll also throw this on Podman.io and maybe write a short blog
about it there.

Signed-off-by: Matt Heon <mheon@redhat.com>
2024-10-14 18:22:42 +03:00
openshift-merge-bot[bot] 92666f2d70
Merge pull request #24257 from ericcurtin/CheckProcessRunning-debug
Make error messages more descriptive
2024-10-14 15:14:46 +00:00
Paul Holzinger 5d10e6e16b
cirrus: let tar extract figure out the compression
tar should be smart enough to check the magic byte and use the correct
decompression algo based on that so there is no need to spell it out
explictly.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-10-14 17:08:34 +02:00
Eric Curtin 94dcf76eb2 Make error messages more descriptive
Recently was trying to start podman machine with krunkit and got:

Error: krunkit exited unexpectedly with exit code 1

which isn't very descriptive. Although this doesn't solve the
issue, it increases the debugability of this error.

Signed-off-by: Eric Curtin <ecurtin@redhat.com>
2024-10-14 13:59:38 +01:00
Daniel J Walsh 3a4c4468f2
Mention containers.conf settings for podman machine commands
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-10-14 08:17:47 -04:00
openshift-merge-bot[bot] 0894cec14d
Merge pull request #24253 from lsm5/packit-centos-re-enable
[skip-ci] Packit: re-enable CentOS Stream 10/Fedora ELN tasks
2024-10-14 10:55:54 +00:00
Lokesh Mandvekar 7dc58c105b
[skip-ci] Packit: re-enable CentOS Stream 10/Fedora ELN teasks"
We now have golang 1.23.1 in CentOS Stream 10 and ELN.

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2024-10-14 14:48:32 +05:30
Giuseppe Scrivano 3d57560a21
cmd: use logrus to print error
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2024-10-11 23:24:37 +02:00
Giuseppe Scrivano 71d5ee0e04
podman: do not set rlimits to the default value
since the effect would be to lower the rlimits when their definition
is higher than the default value.

The test doesn't fail on the previous version, unless the system is
configured with a nofile ulimit higher than the default value.

Closes: https://bugzilla.redhat.com/show_bug.cgi?id=2317721

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2024-10-11 23:04:27 +02:00
Giuseppe Scrivano 5ebba75dbd
spec: always specify default rlimits
the previous implementation was expecting the rlimits to be set for the
entire process and clamping the values only when running as rootless.

Change the implementation to always specify the expected values in the
OCI spec file and do the clamping only when running as rootless and
using the default values.

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2024-10-11 23:04:27 +02:00
Giuseppe Scrivano 8896ace2a4
vendor: update containers/common
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2024-10-11 23:04:26 +02:00
openshift-merge-bot[bot] 2aacd4e212
Merge pull request #24236 from Luap99/nftables-stable
Revert "CI: test nftables driver on fedora"
2024-10-11 15:17:51 +00:00
openshift-merge-bot[bot] 74c85ac2da
Merge pull request #24232 from mheon/releases_are_quarterly
Note in the README that we are moving to timed releases
2024-10-11 14:33:50 +00:00
Matt Heon 92a188ea38 Note in the README that we are moving to timed releases
I'll also throw this on Podman.io and maybe write a short blog
about it there.

Signed-off-by: Matt Heon <mheon@redhat.com>
2024-10-11 08:00:39 -04:00
Paul Holzinger 7f836df303
Revert "CI: test nftables driver on fedora"
This reverts commit 43f6173cc6.

The netavark version with nftables default is in f41 and rawhide
already so this is no longer needed. While we do not yet test f41 in CI
we have rawhide which is good enough until we update.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-10-11 13:13:53 +02:00
openshift-merge-bot[bot] f311979ec0
Merge pull request #23409 from arixmkii/unix-api-socket
Implement publishing API UNIX socket on Windows platforms
2024-10-11 10:23:14 +00:00
Paul Holzinger 9e35fead03
cirrus: use zstd over bzip2 for repo archive
The repo tar process took over 1:20 min, with zstd it takes less than
10s so we safe over a minute by doing this.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-10-11 11:25:34 +02:00
Paul Holzinger 6e69978d2e
cirrus: use shared repo_prep/repo_artifacts scripts
The script for aarch is exactly the same so there doesn't seem to be a
reason to duplciate it.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-10-11 11:25:33 +02:00