Commit graph

22789 commits

Author SHA1 Message Date
openshift-merge-bot[bot]
fdaef4609f
Merge pull request #23029 from ygalblum/quadlet-template-unescaped
Quadlet - use specifier for unescaped values for templated container name
2024-06-20 18:47:01 +00:00
openshift-merge-bot[bot]
48e1efbe82
Merge pull request #23030 from Luap99/CI-cond
cirrus.yml: implement skips based on source changes
2024-06-20 18:16:46 +00:00
openshift-merge-bot[bot]
f6be78d2c6
Merge pull request #23053 from mariushoch/main
sqlite_state: Fix RewriteVolumeConfig
2024-06-20 17:32:45 +00:00
Paul Holzinger
f134ab77bc
cirrus.yml: add CI:ALL mode to force all tests
Now that we have source based skips there might be a case where we have
to run all tests. One option is to simply change a line in one of the
danger files but having something that can be set as title might be
easier for users.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-06-20 19:10:02 +02:00
Paul Holzinger
d9183f0587
cirrus.yml: implement skips based on source changes
We do not have to test everything for each PR, we can know based on the
source if we changed (i.e. machine code) and only run the tests then.

This implements it as skip conditions, due to the nature of yaml files
we unfortunately cannot deduplicate everything, i.e. the is PR check and
danger files apply to everything but as skip is only a single yaml
string we cannot deduplicate parts of that string. If anyone knows a way
to achieve this I like to hear it.

For now I implemented this for int, system, bud and machine tests. Once
we are more comfortable with this I plan on adding it to other tests as
well.

This will replace the current _bail_if_test_can_be_skipped logic as it
covers more, marks tasks actually skipped in the github UI and works
even for the windows/macos machine tests.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-06-20 19:10:02 +02:00
openshift-merge-bot[bot]
a2bf49abb8
Merge pull request #23047 from containers/renovate/setuptools-70.x
chore(deps): update dependency setuptools to ~=70.1.0
2024-06-20 12:21:59 +00:00
Marius Hoch
6dd9abf9ec sqlite_state: Fix RewriteVolumeConfig
The VolumeConfig table does not have an ID column, thus
use the Name column to update it.

Fixes #23052

Signed-off-by: Marius Hoch <mail@mariushoch.de>
2024-06-20 11:39:44 +02:00
renovate[bot]
83549ba11f
chore(deps): update dependency setuptools to ~=70.1.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-19 13:37:57 +00:00
Ygal Blum
91a5c0de2a Quadlet - use specifier for unescaped values for templated container name
The escaped version replaces - with / which creates an invalid container name
See https://github.com/containers/podman/issues/22874#issuecomment-2175559746

Signed-off-by: Ygal Blum <ygal.blum@gmail.com>
2024-06-19 14:44:21 +03:00
openshift-merge-bot[bot]
b8d95a5893
Merge pull request #23024 from containers/renovate/github.com-containernetworking-plugins-1.x
Update module github.com/containernetworking/plugins to v1.5.1
2024-06-18 15:01:34 +00:00
openshift-merge-bot[bot]
5b62c2cc2b
Merge pull request #23021 from containers/renovate/github.com-checkpoint-restore-checkpointctl-1.x
Update module github.com/checkpoint-restore/checkpointctl to v1.2.1
2024-06-18 14:58:51 +00:00
openshift-merge-bot[bot]
b869efae52
Merge pull request #22909 from Luap99/fast-system-test-4
test/system: speed up basic_{setup,teardown}()
2024-06-18 12:57:52 +00:00
Paul Holzinger
0eaec1a2e9
cirrus: check for system test leaks in nightly
The leak check is slower (over 5mins) so we do not wnat them on PR runs
to speed system tests up. However that opens the door for someone to add
a test which forgets to do the correct cleanup themselves. This might
not cause a fatal error right away and only later when new tests would
be added. To prevent this happening the nighlty run will check leaks so
that we can fix them quickly and not notice them months/years later when
a new test is added that might trip over it.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-06-18 11:06:52 +02:00
Paul Holzinger
4e0cd49148
test/system: check for leaks in teardown suite
At the end of all tests always check for leaks. That should make us more
robust against adding tests at the end that would leak stuff otherwise.

TODO: something seems wrong with bats when returning an error in
teardown_suite(), it prints a warning:
bats warning: Executed <NUM+1> instead of expected <NUM> tests
And also the output is formatted weirdly in this case where the podman
args are split over multiple lines.
But the test fails as expected so I don't think it is a problem.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-06-18 11:06:51 +02:00
Paul Holzinger
81c90f51c2
test/system: speed up basic_{setup,teardown}()
While these are not really slow they still take about 100-250ms if I
time this locally. Given they are run for every test this adds up
quickly. Looking at CI logs I can see the timings for skipped
tests are all in 600ms range. So I think it is safe to assume that these
functions need to get faster.

We have over 670 test cases currently so we talk about over 400s spend
in these functions in CI. This allows for big gains.

Now overall this is a tricky trade of, while all tests should cleanup
after themselves there is no guarantee for that as such errors can be
leaked into other tests making debugging much harder. To work at least a
bit against this teardown checks if the test was successful and only
skips the podman commands bases on that. Without it a single flake could
cause all following tets to fail.

As such this commit does the proper setup once one suite start then only
after a test failed.

In order for this to work at all we have to fix all leaks first, see
previous commits. And then for the future keep a very strong eye on
this during reviews.

Also add a PODMAN_BATS_LEAK_CHECK option

By default test must cleanup themselves and to speed up CI we no longer
do any cleanup in teardown by default. However there is still many cases
where we might have to debug a leak so add a new PODMAN_BATS_LEAK_CHECK
env option that can be set and should cause teardown to fail if the test
did not cleanup properly.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-06-18 11:06:50 +02:00
Paul Holzinger
a2352fa3ea
test/system: fix up many tests that do not cleanup
All tests should cleanup themselves and not leak stuff.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-06-18 11:06:49 +02:00
Paul Holzinger
e9c6cd1559
test/system: fix podman --authfile=nonexistent-path
Remove leaking containers and remove unessesary push/pull args. For push
it tries to push an image as argument which makes no sense and for pull
we try to pull argument as image which is also wrong.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-06-18 11:06:47 +02:00
renovate[bot]
f611ac9304
Update module github.com/containernetworking/plugins to v1.5.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-17 21:28:37 +00:00
openshift-merge-bot[bot]
afe55cded0
Merge pull request #23006 from containers/renovate/github.com-gorilla-schema-1.x
Update module github.com/gorilla/schema to v1.4.0
2024-06-17 19:38:02 +00:00
renovate[bot]
043ce618bc
Update module github.com/checkpoint-restore/checkpointctl to v1.2.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-17 19:36:33 +00:00
openshift-merge-bot[bot]
86bab1bb74
Merge pull request #23005 from containers/renovate/github.com-spf13-cobra-1.x
Update module github.com/spf13/cobra to v1.8.1
2024-06-17 19:35:16 +00:00
renovate[bot]
f4aa71e730
Update module github.com/spf13/cobra to v1.8.1
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-17 18:07:20 +00:00
renovate[bot]
0627fce798
Update module github.com/gorilla/schema to v1.4.0
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-06-17 18:05:54 +00:00
openshift-merge-bot[bot]
67bbbb9e94
Merge pull request #23017 from Luap99/wsl-error
pkg/machine/wsl: wrap command errors
2024-06-17 17:34:17 +00:00
Paul Holzinger
5c1e5cd026
pkg/machine/wsl: force terminate wsl instance
We do a soft stop via systemd to allow graceful shutdown behavior.
Hoewever for unknown reason we are hitting such a case in CI right now.
Regardless of the CI issue we should always to the hard terminate in
such case so only log the timeout as warning.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-06-17 17:52:01 +02:00
Paul Holzinger
bd906cb314
pkg/machine/wsl: wrap command errors
First of some commands ignored cmd.Wait() error which means it was
impossible to notice any command errors. And others only returned
the wait error as it which when a command fails is just
`exit status <code>` which is not helpful at all.

This commit should add proper error wrapping with stderr to get useful
strings back hopefully.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-06-17 17:46:23 +02:00
openshift-merge-bot[bot]
aa2bbeea48
Merge pull request #23010 from ygalblum/quadlet-doc-relative-path
[CI:DOCS] Quadlet - add note about relative path resolution
2024-06-17 15:30:58 +00:00
Ygal Blum
dca94be028 [CI:DOCS] Quadlet - add note about relative path resolution
Signed-off-by: Ygal Blum <ygal.blum@gmail.com>
2024-06-17 17:32:34 +03:00
Matt Heon
f269485295
Merge pull request #23013 from Luap99/fix-CI
CI: do not install python packages at runtime
2024-06-17 08:48:16 -04:00
Paul Holzinger
c20767120f
CI: do not install python packages at runtime
No idea why we need them, it passes without them so I just remove them.
Currently CI is broken as this install is failing on rawhide for some
reason. I don't know what changed there but this is working and unblocks
CI so I like to get this in.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-06-17 13:03:25 +02:00
openshift-merge-bot[bot]
1d339e4ae3
Merge pull request #22999 from cevich/candidate_release
[skip-ci] Release workflow: Include candidate descriptor
2024-06-14 16:52:34 +00:00
Chris Evich
54edf3d8ee
Release workflow: Include candidate descriptor
Assist humans by indicating clearly whe a release announcement is
pertaining to a candidate.  Otherwise, it's possible someone may
overlook the `-rcX` version suffix.

Also fix a quoting problem missed in testing.

Signed-off-by: Chris Evich <cevich@redhat.com>
2024-06-13 17:22:03 -04:00
Ashley Cui
26370c95b7
Merge pull request #22988 from cevich/send_release_mail
[skip-ci] GHA: Send release notification mail
2024-06-13 13:30:29 -04:00
Chris Evich
19989380b8
Minor: Fix indentation in GHA release workflow
Simply indent list items two spaces to the right WRT their parent.

Signed-off-by: Chris Evich <cevich@redhat.com>
2024-06-13 10:49:37 -04:00
Chris Evich
82973c38e4
GHA: Send release notification mail
Rather than manually crafting what ends up being nearly identical
release e-mails, do it automatically whenever a release is created.

Note: At the time of this commit, there is a possible race condition
with the `mac-pkg.yml` workflow, since it runs in parallel.  It could
fail, or fail to complete prior to the e-mail content being generated.
This should be unlikely, if `release-artifacts.yml` goes through and
compiles every artifact, but it's not guaranteed.

Signed-off-by: Chris Evich <cevich@redhat.com>
2024-06-13 10:48:14 -04:00
Chris Evich
ad56dc7e2b
GHA: Validate release version number
There's a reasonable chance this workflow will be triggered by a human
(via `workflow_dispatch``), and a non-zero chance with an invalid
version number for which a release should not be created.  Detect this
and provide a way for the operator to debug the source of the error.

Also fix some whitespace inconsistencies.

Signed-off-by: Chris Evich <cevich@redhat.com>
2024-06-13 10:47:26 -04:00
openshift-merge-bot[bot]
00bcd9aa81
Merge pull request #22733 from nalind/system-check
Add `podman system check`
2024-06-13 10:35:56 +00:00
openshift-merge-bot[bot]
6180052534
Merge pull request #22983 from edsantiago/exitwitherror-continued
ExitWithError, continued
2024-06-13 10:27:47 +00:00
openshift-merge-bot[bot]
09f22eb907
Merge pull request #22977 from giuseppe/add-pull-option-cli
podman: add new hidden flag --pull-option
2024-06-13 10:25:00 +00:00
openshift-merge-bot[bot]
e77e660b37
Merge pull request #22981 from baude/issue22946
[CI:DOCS] Fix typos in podman-build
2024-06-13 10:22:11 +00:00
Ed Santiago
267d838e38 ExitWithError, continued
Low-hanging fruit: Exit(X) with no error message
is now ExitWithError(X, "")

Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-06-12 08:48:19 -06:00
Giuseppe Scrivano
730a215025
podman: add new hidden flag --pull-option
add a new flag that allows to override the pull options configured in
the storage.conf file.

e.g.: --pull-option="enable_partial_images=false" can be specified to
Podman to disable partial pulls even if enabled.

Leave it as a hidden configuration flag for now since the API itself
is marked as experimental in c/storage.

Currently c/storage doesn't honor the overrides, being fixed with
https://github.com/containers/storage/pull/1966

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2024-06-12 15:48:36 +02:00
Brent Baude
5a4416be08 [CI:DOCS] Fix typos in podman-build
Fix two typos in podman build as reported by #22946

FIXES: #22946

Signed-off-by: Brent Baude <bbaude@redhat.com>
2024-06-12 08:03:48 -05:00
Giuseppe Scrivano
8fececcdb9
infra: mark storageSet when imagestore is changed
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2024-06-12 14:47:35 +02:00
openshift-merge-bot[bot]
009a2441de
Merge pull request #22759 from slp/krun-debug
Enable libkrun provider to open a debug console
2024-06-12 06:30:04 +00:00
openshift-merge-bot[bot]
798beb47ec
Merge pull request #22694 from jmaibaum/quadlet-build
Quadlet: Add support for .build files
2024-06-11 20:41:28 +00:00
openshift-merge-bot[bot]
49f4ded69f
Merge pull request #22964 from lsm5/add-jnovy
[CI:DOCS] Add jnovy as reviewer and approver
2024-06-11 19:22:04 +00:00
openshift-merge-bot[bot]
f79ede86c6
Merge pull request #22914 from Luap99/start-stopped
libpod: do not reuse networking on start
2024-06-11 19:18:55 +00:00
openshift-merge-bot[bot]
e0a7adec68
Merge pull request #22957 from rhatdan/squash
--squash --layers=false should be allowed
2024-06-11 19:16:12 +00:00
Lokesh Mandvekar
18c7a55ccd
[CI:DOCS] Add jnovy as reviewer and approver
Signed-off-by: Lokesh Mandvekar <lsm5@redhat.com>
2024-06-11 09:04:49 -04:00