22496 Commits

Author SHA1 Message Date
4a11f1eeb4 Merge pull request #22648 from edsantiago/exitwitherror-p
ExitWithError() - rest of the p files
2024-05-09 12:04:37 +00:00
63ab9275b7 Merge pull request #22601 from xkr47/feat/quadlet-group-add
Quadlet/Container: Add GroupAdd option
2024-05-09 08:49:19 +00:00
9e43e586c9 ExitWithError() - rest of the p files
Followup to #22270: wherever possible/practical, extend command
error checks to include explicit exit status codes and error strings.

This commit handles all remaining test/e2e/p*_test.go

Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-05-08 15:57:47 -06:00
1ee9014d30 Merge pull request #22636 from jakecorrenti/krunkit-detection
machine: Add LibKrun provider detection
2024-05-08 21:42:57 +00:00
092d0402ad Merge pull request #22346 from edsantiago/exitwitherror-part2
ExitWithError() - continue tightening
2024-05-08 17:43:39 +00:00
d6b69e973c Merge pull request #22549 from cevich/f40_ci_vms
Update CI VMs to F40, F39, D13
2024-05-08 13:01:38 +00:00
6d1098f823 Quadlet/Container: Add GroupAdd option
Co-authored-by: Ygal Blum <ygal.blum@gmail.com>
Signed-off-by: Jonas Berlin <xkr47@outerspace.dyndns.org>
2024-05-08 16:00:28 +03:00
ee8ed8dd1f Merge pull request #22614 from Luap99/golangci-lint
[CI:DOCS] update golangci-lint to 1.58
2024-05-08 11:47:21 +00:00
db44d57b86 Merge pull request #22591 from Luap99/remove-toolbox-image
test/e2e: remove toolbox image
2024-05-08 11:41:52 +00:00
ffa1d2c8d8 Merge pull request #22622 from containers/renovate/google.golang.org-protobuf-1.x
fix(deps): update module google.golang.org/protobuf to v1.34.1
2024-05-08 11:19:51 +00:00
6bdebea8ae update golangci-lint to 1.58
disable linters:
- mnd (magic number checker): it seems to complain about almost
  anything, while there might be a few valid findings most of them are
  useless
- canonicalheader: HTTP header syntax, most of the header are given by
  docker and are stable so we cannot change them anyway
- execinquery: it has been deprecated

goerr113 was renamed to err113

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-05-08 12:55:23 +02:00
cdb354fc98 Merge pull request #22623 from cevich/cleanup_passthrough_envars
[CI:DOCS] Clarify passthrough_envars() comments
2024-05-08 09:05:07 +00:00
ee5153c545 machine: Add LibKrun provider detection
Adds provider detection for LibKrun in `pkg/provider/platform_darwin.go`.

Changes the macOS version check to 13 instead of 11, and now uses the `semver`
package to verify current version.

Signed-off-by: Jake Correnti <jakecorrenti+github@proton.me>
2024-05-07 21:16:46 -04:00
641cd7c5a2 ExitWithError() - continue tightening
Followup to #22270 : wherever possible/practical, extend command
error checks to include explicit exit status codes and error strings.

A small number of tests were broken, as in, not actually testing
what they claimed to be testing. I've done my best to fix those.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-05-07 18:57:43 -06:00
a63484058c Merge pull request #22629 from qianxi0410/ci
update and remove parameter settings in `.golangci.yml`
2024-05-07 21:39:50 +00:00
e4cac636aa Merge pull request #22611 from containers/renovate/go.etcd.io-bbolt-1.x
fix(deps): update module go.etcd.io/bbolt to v1.3.10
2024-05-07 18:24:36 +00:00
afd2464008 Merge pull request #22599 from TomSweeneyRedHat/dev/tsweeney/imagereadme
[CI:DOCS] Add info on the quay.io images to the README.md
2024-05-07 18:05:24 +00:00
b63a85c81d Merge pull request #22627 from edsantiago/exitwitherror-part8
ExitWithError() - play_kube_test.go
2024-05-07 18:02:38 +00:00
b59edad58b fix(deps): update module google.golang.org/protobuf to v1.34.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-07 18:01:51 +00:00
1150020cb2 Merge pull request #22635 from giuseppe/fix-test-for-powercap
test: improve test for powercap presence
2024-05-07 17:59:52 +00:00
c758b49000 Merge pull request #22632 from lsm5/no-bats-rhel
[skip-ci] RPM: `bats` required only on Fedora
2024-05-07 17:57:06 +00:00
303d0b398e test: improve test for powercap presence
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2024-05-07 17:24:50 +02:00
97f3f9c34e Merge pull request #22479 from jakecorrenti/provider-detection
machine: Add provider detection API
2024-05-07 14:58:07 +00:00
6a551b395f Merge pull request #22633 from containers/renovate/golang.org-x-tools-0.x
fix(deps): update module golang.org/x/tools to v0.21.0
2024-05-07 14:25:21 +00:00
9865511d00 fix(deps): update module go.etcd.io/bbolt to v1.3.10
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-07 13:04:25 +00:00
be5cbc443e fix(deps): update module golang.org/x/tools to v0.21.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-07 12:53:01 +00:00
21a15f8c40 Merge pull request #22630 from containers/renovate/golang.org-x-exp-0.x
fix(deps): update module golang.org/x/exp to v0.0.0-20240506185415-9bf2ced13842
2024-05-07 12:51:54 +00:00
36c05b5c6a [skip-ci] RPM: bats required only on Fedora
The `bats` package is not present on RHEL environments. It should be
conditionalized only for Fedora to avoid `installibility` test failures.

C9S Ref: https://gitlab.com/redhat/centos-stream/rpms/podman/-/blob/c9s/podman.spec?ref_type=heads#L130

Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
2024-05-07 08:49:23 -04:00
42cc712485 fix(deps): update module golang.org/x/exp to v0.0.0-20240506185415-9bf2ced13842
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-07 10:37:19 +00:00
7de9a8141c Merge pull request #22626 from containers/renovate/golang.org-x-crypto-0.x
fix(deps): update module golang.org/x/crypto to v0.23.0
2024-05-07 10:34:20 +00:00
2e624d2acf Merge pull request #22613 from edsantiago/exitwitherror-part7
ExitWithError() - v files
2024-05-07 09:33:49 +00:00
a85253d01f Merge pull request #22589 from mheon/different_hc_unit_names
Add a run counter to healthcheck unit names
2024-05-07 09:31:05 +00:00
bcc7537b11 Merge pull request #22620 from edsantiago/skip-machine-tests-if-we-can
Skip machine tests if they don't need to be run
2024-05-07 09:28:20 +00:00
e3b0e58d2e gpdate and remove parameter settings in .golangci.yml
Signed-off-by: qianxi0410 <894871277@qq.com>
2024-05-07 15:50:22 +08:00
f078258c83 Merge pull request #22560 from edsantiago/exitwitherror-part4
ExitWithError() -- run_test.go
2024-05-07 01:40:47 +00:00
7d12ae0973 ExitWithError() - play_kube_test.go
Followup to #22270: wherever possible/practical, extend command
error checks to include explicit exit status codes and error strings.

This commit handles test/e2e/play_kube_test.go

Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-05-06 15:59:53 -06:00
02b8fd7156 Temporarily disable rootless debian e2e testing
Signed-off-by: Chris Evich <cevich@redhat.com>
2024-05-06 15:27:32 -04:00
7745854155 fix(deps): update module golang.org/x/crypto to v0.23.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-06 19:07:31 +00:00
b520e909e0 CI Docs: Clarify passthrough_envars() comments
A long time ago, `passthrough_envars()` was defined in `lib.sh`.  It has
since been moved, but the related comments were never updated.  Update
the env. var. comments pointing future maintainers to the function that
relies on them.  Otherwise a simple search w/in this repo. won't turn up
anything.

Signed-off-by: Chris Evich <cevich@redhat.com>
2024-05-06 13:26:55 -04:00
6009ccac2b Merge pull request #22615 from containers/renovate/golang.org-x-term-0.x
Update module golang.org/x/term to v0.20.0
2024-05-06 16:22:27 +00:00
f1b8439966 Merge pull request #22529 from dcermak/substitute-home-in-runlabel
Also substitute $HOME in runlabel with user's homedir
2024-05-06 15:57:41 +00:00
87747ca820 Skip machine tests if they don't need to be run
Followup to #13936 : add an exclusion to localmachine tests
so we can avoid running those on test- or doc-only PRs.
Reason: #22551, the machine-start-timeout flake, is causing
hours of wasted time.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-05-06 09:55:16 -06:00
e8ef36e26e Update CI VMs to F40, F39, D13
Signed-off-by: Chris Evich <cevich@redhat.com>
2024-05-06 10:46:08 -04:00
83ee16b9ba ExitWithError() - v files
Followup to #22270: wherever possible/practical, extend command
error checks to include explicit exit status codes and error strings.

This commit handles test/e2e/v*_test.go

Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-05-06 08:42:48 -06:00
22eff26916 Update module golang.org/x/term to v0.20.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-06 14:25:51 +00:00
07d8b327a0 Merge pull request #22608 from giuseppe/use-pause-process-dir-for-root
util: specify a not empty pause dir for root too
2024-05-06 14:23:47 +00:00
efcb1f8996 Merge pull request #22605 from flo-at/main
[CI:DOCS]Add missing option 'healthy' to output of `podman run --help`
2024-05-06 13:54:00 +00:00
431cbffab6 machine: Add provider detection API
Extends the `pkg/machine/provider` package to add an API which includes
provider detection based on the host operating system.

Signed-off-by: Jake Correnti <jakecorrenti+github@proton.me>
2024-05-06 09:42:02 -04:00
7462fdb406 Merge pull request #22584 from containers/renovate/github.com-cyphar-filepath-securejoin-0.x
Update module github.com/cyphar/filepath-securejoin to v0.2.5
2024-05-06 10:19:30 +00:00
419efb9eb5 util: specify a not empty pause dir for root too
commit b3014c1c69d5870104aa45f7caae7af041094171 changed
GetRootlessRuntimeDir() to return an empty string for root, so that
its value is not exported as XDG_RUNTIME_DIR, and other programs like
crun can use a better default.

Now GetRootlessPauseProcessPidPath() uses homedir.GetRuntimeDir().
The homedir.GetRuntimeDir() function returns a value also when running
as root so it can be used inside a nested Podman.

Closes: https://github.com/containers/podman/issues/22327

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2024-05-06 12:14:00 +02:00