22568 Commits

Author SHA1 Message Date
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
1d1dba3843 Add missing option 'healthy' to output of podman run --help
Signed-off-by: Florian Wickert <FlorianWickert@gmail.com>
2024-05-05 18:04:17 +02:00
b09f764ef5 [CI:DOCS] Add info on the quay.io images to the README.md
Add information and a link for the quay.io imges to the
README.md

Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
2024-05-03 18:24:50 -04:00
4fd84190b8 Add a random suffix to healthcheck unit names
Systemd dislikes it when we rapidly create and remove a transient
unit. Solution: If we change the name every time, it's different
enough that systemd is satisfied and we stop having errors trying
to restart the healthcheck.

Generate a random 32-bit integer, and add it (formatted as hex)
to the end of the unit name to do this. As a result, we now have
to store the unit name in the database, but it does make
backwards compat easy - if the unit name in the DB is empty, we
revert to the old behavior because the timer was created by old
Podman.

Should resolve RHEL-26105

Signed-off-by: Matt Heon <mheon@redhat.com>
2024-05-03 11:45:05 -04:00
7a43c2ed1b test/e2e: remove toolbox image
The image is way to big (over 800MB) that slows tests down as we always
have to pull this, the tests itself are also super slow due the
entrypoint logic that we don't care about. We should be testing for
features needed and not specific tools.

I think the current changes should have a similar coverage in terms of
podman features, it no longer tests toolbox but IMO this never was a
task for podman CI tests.

The main driver for this is to make the tests run entirely based on
tmpfs and this image is just to much[1].

[1] https://github.com/containers/podman/pull/22533

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-05-03 16:45:51 +02:00
46f247d880 Also substitute $HOME in runlabel with user's homedir
Some programs have their configuration files relative to the user's
home. It would be convenient being able to mount these into the container, but
that requires expansion of `~` or `$HOME` in a label. This commit adds support
for that for the `runlabel` command.

Signed-off-by: Dan Čermák <dcermak@suse.com>
2024-05-03 14:00:20 +02:00
7f6108233f Update module github.com/cyphar/filepath-securejoin to v0.2.5
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-03 09:51:56 +00:00
6ec2c0b43b Merge pull request #22552 from edsantiago/exitwitherror-part3
ExitWithError() - pod_xxx tests
2024-05-03 09:23:44 +00:00
590fec7a78 Change tmpDir for macOS
Signed-off-by: Shion Tanaka <shtanaka@redhat.com>
2024-05-03 15:01:43 +09:00
275c068df7 ExitWithError() - pod_xxx tests
Followup to #22270: wherever possible/practical, extend command
error checks to include explicit exit status codes and error strings.

This commit handles a subset of test/e2e/pod_xxxx_test.go
(I stopped before this grew too huge for review)

Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-05-02 08:48:24 -06:00
c9644ebccf Merge pull request #22557 from containers/renovate/golang.org-x-exp-0.x
Update module golang.org/x/exp to v0.0.0-20240416160154-fe59bbe5cc7f
2024-05-01 15:27:23 +00:00
45d9e66d2c Merge pull request #22556 from containers/renovate/github.com-shirou-gopsutil-v3-3.x
Update module github.com/shirou/gopsutil/v3 to v3.24.4
2024-05-01 15:24:33 +00:00
c378f2d03a ExitWithError() -- run_test.go
Followup to #22270: wherever possible/practical, extend command
error checks to include explicit exit status codes and error strings.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-05-01 07:41:10 -06:00
f2821c3914 Merge pull request #22553 from containers/renovate/github.com-docker-docker-26.x
Update module github.com/docker/docker to v26.1.1+incompatible
2024-05-01 12:50:34 +00:00
f8115d203c Update module golang.org/x/exp to v0.0.0-20240416160154-fe59bbe5cc7f
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-01 10:15:39 +00:00
a96326f608 Update module github.com/shirou/gopsutil/v3 to v3.24.4
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-05-01 04:28:10 +00:00
9b6a3a34ba Merge pull request #22548 from edsantiago/tools-ginkgo-update
vendor ginkgo 2.17.2 into test/tools
2024-04-30 19:50:16 +00:00
9c240337e1 Merge pull request #22550 from cevich/fix_sec_rate_limit
[skip-ci] GHA: Attempt fix exceeded a secondary rate limit
2024-04-30 19:12:34 +00:00
ce365db3a6 Merge pull request #22522 from containers/renovate/pytest-8.x
Update dependency pytest to v8.1.2
2024-04-30 18:40:53 +00:00
61b09333a8 Update module github.com/docker/docker to v26.1.1+incompatible
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-30 16:38:40 +00:00
a521f081c5 Merge pull request #22288 from ashley-cui/machmounttag
Fix machine volumes with long path
2024-04-30 16:36:53 +00:00
8942e2dbda GHA: Attempt fix exceeded a secondary rate limit
Frequent but intermittently, the stale issue and PR locking workflow
generates the error:

```
You have exceeded a secondary rate limit. Please wait a few minutes
before you try again. If you reach out to GitHub Support for help,
please include the request ID XYZ
```

According to upstream `dessant/lock-threads` issue 48, this seems to be
coming from the GitHub side (bug/feature/limitation), since the action
uses an official github API rate-limiting library.  It's unlikely related
to which style/syntax of github token is used, nor if the action is
executed concurrently across multiple repos.

According to the rate-limiting docs:
https://docs.github.com/en/rest/using-the-rest-api/rate-limits-for-the-rest-api?apiVersion=2022-11-28#about-secondary-rate-limits
it's possible the issue is caused due to an unknown aspect of the clause:

```
These secondary rate limits are subject to change without notice. You
may also encounter a secondary rate limit for undisclosed reasons.
```

The same docs indicate Github Apps have enhanced rate-limits which
scale with the org's repo count.  Attempt to fix the intermittent
failures by making use of a new, dedicated, org-specific, private "Stale
Locking App" I recently created.  This requires the addition of a new
action to the workflow that obtains a short-lived token for passing to
lock-threads.

Note: Because both `vars.STALE_LOCKING_APP_ID` and
`secrets.STALE_LOCKING_APP_PRIVATE_KEY` are defined at the
containers-organization level, the Buildah and Skopeo re-use
of this workflow should continue to function normally w/o change.

Signed-off-by: Chris Evich <cevich@redhat.com>
2024-04-30 12:01:42 -04:00
8a97a03f9b Merge pull request #22547 from containers/renovate/google.golang.org-protobuf-1.x
Update module google.golang.org/protobuf to v1.34.0
2024-04-30 15:35:25 +00:00
1bc6f16bd0 vendor ginkgo 2.17.2 into test/tools
..to match the version in root dir, to get rid of the mismatch
warning on every ginkgo run.

I still don't understand why renovatebot isn't doing this.

(Also, touch a file under e2e, to force tests to run)

Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-04-30 09:26:35 -06:00
a140c74ba4 Fix machine volumes with long path and paths with dashes
AppleHV accepts a max 36 bytes for mount tags. Instead of using the fully qualified path for the mount tag, SHA256 the path, and truncate the shasum to 36 bytes.
Also correctly escape dashes in mounted paths.

Signed-off-by: Ashley Cui <acui@redhat.com>
2024-04-30 11:25:45 -04:00
d1f8933a93 Update module google.golang.org/protobuf to v1.34.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-30 13:02:52 +00:00
ba73c604c4 Merge pull request #22545 from containers/renovate/github.com-crc-org-crc-v2-2.x
Update module github.com/crc-org/crc/v2 to v2.35.0
2024-04-30 12:59:47 +00:00
d886d87edf Update module github.com/crc-org/crc/v2 to v2.35.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-30 09:08:49 +00:00
33d18cf904 Merge pull request #22541 from containers/renovate/github.com-onsi-gomega-1.x
Update module github.com/onsi/gomega to v1.33.1
2024-04-30 09:07:12 +00:00
c17f7af6b4 Update module github.com/onsi/gomega to v1.33.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-04-30 04:41:16 +00:00
9eefb5de3b Merge pull request #22532 from Luap99/more-e2e-fixes
test/e2e: more fixes to not leak tmp files/dirs
2024-04-29 14:39:39 +00:00