Commit Graph

123 Commits

Author SHA1 Message Date
Nalin Dahyabhai a07dde1b8d Tag v1.38.1
Tag a new release to incorporate the recent security advisory, and make
a minor update to the CI configuration and Makefile.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2025-01-20 13:22:54 -05:00
tomsweeneyredhat a45885fe7d [release-1.38] Bump c/storage v1.56.1, c/image v5.33.1, c/common v0.61.1
Bump the c/* projects as noted in the title.
This is in preparation for Podman v5.3.2

Added the change to .cirrus.yml to make the "VM img. keepalive" test
happy per @cevich 's recomendation.

Signed-off-by: tomsweeneyredhat <tsweeney@redhat.com>
2025-01-17 15:19:20 -05:00
Ed Santiago 4703b5b0cd CI VMs: bump f40 -> f41
Images built in https://github.com/containers/automation_images/pull/392

Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-11-07 08:15:28 -07:00
renovate[bot] 9cf613a2b5
chore(deps): update dependency containers/automation_images to v20241010
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-10-10 19:33:24 +00:00
Matt Heon 5e82f27fb6 Do not error on trying to write IMA xattr as rootless
Rootless users cannot set the `security.ima` xattr on files
(presumably for security reasons, they get an EPERM on trying to
do so). We will normally try and preserve that xattr, so when
trying to add a file with an IMA xattr to a build on a Buildah
without this patch, you get an error. With this patch, the error
is downgraded to a warning, as it's better to successfully build
with a missing xattr than blocking all builds which want to
include the offending file.

The urgency on this has become somewhat higher as it seems like
F41/Rawhide are installing rpm-plugin-ima by default, which is
setting IMA xattrs on some files that Podman relies on - for
example, the catatonit binary we use for pid pause images.
Without this patch, building the pause image as rootless will
always fail on a system with rpm-plugin-ima installed.

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

Signed-off-by: Matt Heon <mheon@redhat.com>
2024-09-19 11:45:03 -04:00
Paul Holzinger 909cca8b1b
cirrus: disable f39 testing
The golang version is not new enough, this needs to be turned back on
when we upgrade VMs to f41/40 so it is only commented out.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-09-03 17:54:21 +02:00
Paul Holzinger db2a666ddb
cirrus: fix fedora names
The fedora version where wrong in the name causing the task names to
show the wrong distro versions.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-09-03 17:50:33 +02:00
Ed Santiago 3443669351 New VMs
Built: https://github.com/containers/automation_images/pull/383

Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-08-21 13:58:59 -06:00
Ed Santiago 52df6e0e0f CI: use local registry, part 1 of 2
As of https://github.com/containers/automation_images/pull/357
our CI VMs include a local registry preloaded with all(*)
images used in tests.

 * where "all" means "most".

This commit defines a new registries-cached.conf, used in tests,
that redirects docker and quay to the new local registry. The
hope is that this will reduce CI flakes.

Since tests change over time, and new tests may require new
images, this commit also adds a mechanism for pulling in
remote images at test run time. Obviously this negates
the purpose of the cache, since it introduces a flake
pain point. The idea is: DO NOT DO THIS UNLESS ABSOLUTELY
NECESSARY, and then, if we have to do this, hurry up and
spin new CI VMs that include the new image(s).

Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-07-17 12:09:54 -06:00
Ed Santiago 3a35d2fd60 CI VMs: bump
Built in https://github.com/containers/automation_images/pull/361

New docker (26.1.3 -> .4). Seems low-risk aside from that.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-06-20 10:59:56 -06:00
Nalin Dahyabhai 8b0ecd7870 Use /var/tmp for $TMPDIR for vfs conformance jobs
The conformance tests use the default temporary directory for storing
content when running, and the vfs driver easily needs more than the size
of the tmpfs we have on /tmp when we're running conformance tests.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2024-06-07 11:32:12 -04:00
Chris Evich a9e5a1496d
Cross-build on Fedora
Executing a golang cross-compile on an expensive resource such as a Mac
has questionable overall value.  Switch to running on a default Fedora
VM instead.

Signed-off-by: Chris Evich <cevich@redhat.com>
2024-06-05 15:05:33 -04:00
Ed Santiago 7602e9e1d6 CI VMs: bump, to debian with cgroups v2
Per consent in 2024-03-20 Planning, remove support for cgroups v1.
And, per discovery on 2024-05-28, systemd 256 no longer even
boots on a cgroups v1 system.

This commit switches to VMs built in:

  https://github.com/containers/automation_images/pull/338

...in which Debian is now cgroups v2 with crun.

Requires disabling two conformance tests which fail when run
against docker 26.1; see #5526 for context on those.

Also requires disabling two bats tests on debian because
something changed there in ulimits. I'll look into them
later but right now this gives us breathing space.

And, latest git on f40 refuses to serve non-root files when
run as root ("dubious ownership"); so, in start_git_daemon(),
chown the extracted files.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-05-29 10:04:49 -06:00
openshift-merge-bot[bot] 4877088193
Merge pull request #5538 from cevich/name_conformance_ci_vm
CI: Clarify Debian use for conformance tests
2024-05-28 12:54:13 +00:00
Chris Evich 671f298701
CI: Clarify Debian use for conformance tests
For many other CI tasks, the platform is included in the name.  For
whatever reason this was never done for the conformance tests and can be
confusing for maintainers.  Make it clear that they are running on
Debian.

Signed-off-by: Chris Evich <cevich@redhat.com>
2024-05-21 14:35:13 -04:00
Ed Santiago fbd2b7db47 CI VMs: bump to new versions with tmpfs /tmp
For the last long time, Fedora CI VMs have had a disk /tmp.
Real-world setups typically have tmpfs /tmp. This switches
to CI VMs that reflect the real world.

See https://github.com/containers/automation_images/pull/340

Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-04-30 05:32:42 -06:00
Nalin Dahyabhai 14d964d92f Give unit tests a bit more time
We seem to be running up against the timeout when running the unit tests
in CI.  Give them 90 minutes to complete instead of 60.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2024-04-18 13:16:25 -04:00
Ed Santiago c1119f8865 CI: bump VMs
* pasta 2024-03-20 on all Fedoras
* crun 1.14.4 everywhere

See https://github.com/containers/automation_images/pull/337#issuecomment-2010128930

Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-03-20 14:03:03 -06:00
Daniel J Walsh e9c3c1666c
Vendor in containers/(storage,image,common)
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2024-02-28 09:44:33 -05:00
Chris Evich 26d5b84b11
Add comment re: Total Success task name
Signed-off-by: Chris Evich <cevich@redhat.com>
2024-02-27 13:03:12 -05:00
Nalin Dahyabhai e6d1794765 Try Cirrus with a newer VM version
... which will have netavark installed in it, so that tests won't just
fail because it isn't there.

Signed-off-by: Nalin Dahyabhai <nalin@redhat.com>
2024-02-07 11:48:53 -05:00
Ed Santiago d371fc7b9d Bump CI VMs
Source: https://github.com/containers/automation_images/pull/320

There shouldn't be anything here that buildah cares about,
so this should be a simple one, he said breezily.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-01-04 06:50:39 -07:00
renovate[bot] b283c48db2
chore(deps): update dependency containers/automation_images to v20231208
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-12-16 12:00:11 +00:00
Daniel J Walsh 5b9141887a
chore(deps): update dependency containers/automation_images to v20230517
Also update Fedora name.

Signed-off-by: Renovate Bot <bot@renovateapp.com>
Signed-off-by: Chris Evich <cevich@redhat.com>
2023-12-13 06:29:37 -05:00
Chris Evich 7add02a3bb
Update minimum to golang 1.20
Specifically, the 1.20 version is needed for the updated
go-dockerclient.  Ref:

https://github.com/containers/buildah/pull/5007#issuecomment-1719417024

Signed-off-by: Chris Evich <cevich@redhat.com>
2023-11-20 10:46:44 -05:00
Giuseppe Scrivano fe9bdce869
build: downgrade to go 1.20
go 1.21 breaks the Podman CI since it is not available on Fedora 38.

[NO NEW TESTS NEEDED]

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
2023-11-16 16:27:47 +01:00
Daniel J Walsh 8f86c5784f
Update cirrus and version of golang
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2023-11-09 14:12:30 -06:00
renovate[bot] a4f0d7dec2
chore(deps): update dependency containers/automation_images to v20231004
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-10-17 19:34:05 +00:00
Chris Evich 9545744e8b
Cirrus: Remove multi-arch buildah image builds
These jobs have been failing since early August due to
technical/scripting problems.  Disable/remove entirely since a fix is
unlikely to be implemented anytime soon.

Ref: Abandoned recent attempt at debugging
https://github.com/containers/podman/pull/19720

Signed-off-by: Chris Evich <cevich@redhat.com>
2023-09-13 14:17:25 -04:00
renovate[bot] 4c4ff3128c
chore(deps): update dependency containers/automation_images to v20230816
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-22 12:56:52 +00:00
renovate[bot] 2d6e43071e
chore(deps): update dependency containers/automation_images to v20230809
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-12 03:08:32 +00:00
renovate[bot] 204c5a1cec
chore(deps): update dependency containers/automation_images to v20230807
Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-08-10 00:13:12 +00:00
Daniel J Walsh 135b5a8f03
Fix transition test to work with latest selinux policy
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2023-06-29 14:21:17 -04:00
Chris Evich 4b1c5e3a94
Cirrus: Fix meta task failing to find commit
During the nightly cirrus-cron job on main, this error occured:

```
Using built-in Git...
Limiting clone depth to 1!
Cloning refs/heads/main...
Enumerating objects: 9246, done.
...cut...
Compressing objects: 100% (7182/7182), done.
Total 9246 (delta 1519), reused 6078 (delta 1101), pack-reused 0
HEAD is at f35369055d.
Hard resetting to 3908816d5310ac1f7bcd4399d23d75c1da0c2678...
Failed to force reset to 3908816d5310ac1f7bcd4399d23d75c1da0c2678:
object not found!
```

However, the repository code isn't needed or used for the meta task.
Fix this by running `/bin/true` as the `clone_script`.

Signed-off-by: Chris Evich <cevich@redhat.com>
2023-05-03 16:30:10 -04:00
Aditya R 5621727519
makefile: increase conformance timeout
increase conformance timeout from `30min` -> `60min`.

[NO NEW TESTS NEEDED]

Signed-off-by: Aditya R <arajan@redhat.com>
2023-04-26 23:01:12 +05:30
renovate[bot] 9bd6ccf921
chore(deps): update dependency containers/automation_images to v20230405
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-04-06 15:26:13 +00:00
renovate[bot] a92fe130e3
chore(deps): update dependency containers/automation_images to v20230330
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-30 22:48:29 +00:00
renovate[bot] 20861cd21c
chore(deps): update dependency containers/automation_images to v20230320
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-30 10:41:19 +00:00
Miloslav Trmač c0f0efada2 Update to Go 1.18
It is already required in practice, see
> grep 'func .*]('

This also renders the -compat=1.17 option to (go mod tidy)
unnecessary, so drop it.

Signed-off-by: Miloslav Trmač <mitr@redhat.com>
2023-03-17 21:02:59 +01:00
renovate[bot] 4055cc8803
chore(deps): update dependency containers/automation_images to v20230314
Signed-off-by: Renovate Bot <bot@renovateapp.com>
2023-03-16 16:17:43 +00:00
Chris Evich bc2423ebcb
Cirrus: Replace Ubuntu -> Debian SID
Signed-off-by: Chris Evich <cevich@redhat.com>
2023-03-14 17:18:34 -04:00
Daniel J Walsh 21e6e91e4a
Vendor in latest containers/common
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2023-02-22 11:18:07 -05:00
Chris Evich 1950ab687e
Fix multi-arch manifest-list build timeouts
As of this commit, the build script runs the process on x86_64 hardware
(4cpus/8gig) using emulation for foreign architectures.  Due to various
delays, inefficiencies, and other emulation-related slowdowns, it's
possible for dnf to timeout and/or mis-measure a minimum repository
download rate.  Bump up the minimum download rate by 10x and timeout
interval by double.  This should allow the builds to complete more
consistently.

Signed-off-by: Chris Evich <cevich@redhat.com>
2023-01-13 15:11:26 -05:00
Chris Evich d106e425a3
Cirrus: Update VM Images
Of special note: These images use a down-rev kernel which is not subject
to https://bugzilla.redhat.com/show_bug.cgi?id=2159066

Signed-off-by: Chris Evich <cevich@redhat.com>
2023-01-13 10:47:24 -05:00
Chris Evich 57a77073af
Update to F37 CI VM Images, re-enable prior-fedora
Signed-off-by: Chris Evich <cevich@redhat.com>
2022-12-09 14:34:59 -05:00
Ashley Cui 498b45770f [CI:BUILD] Cirrus: Migrate OSX task to M1
Migrate our OSX build to a M1 instance, since Cirrus is sunsetting Intel-based macOS instances.

Signed-off-by: Ashley Cui <acui@redhat.com>
2022-11-22 11:02:32 -05:00
Chris Evich e1c7a5df10 Cirrus CI add flavor parameter
Updates from Chris Evich for CI build script support.

Signed-off-by: Andrew Meadows <andrew@befuddled.ca>
2022-10-07 13:37:19 -07:00
Lokesh Mandvekar 514ff3dc1c
Cirrus: use image with fewer downloaded dependencies
The latest cirrus image bump will use fewer downloaded dependencies in
favor of installation from copr / distro repos.

Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2022-08-26 15:31:33 -04:00
Chris Evich a47dee2c8e
Cirrus: Use the latest imgts container
Contains important updates re: preserving release-branch CI VM images.
Ref: https://github.com/containers/automation_images/pull/157

Signed-off-by: Chris Evich <cevich@redhat.com>
2022-07-26 14:05:44 -04:00
Chris Evich 6841f92e90
Cirrus: Update VM images w/ updated bats
Note: Fedora-35 is disabled due to missing golang 1.18

Ref: https://github.com/containers/automation_images/pull/140
     and
     https://github.com/containers/automation_images/pull/149
     and
     https://github.com/containers/automation_images/pull/146

Signed-off-by: Chris Evich <cevich@redhat.com>
2022-07-21 09:49:29 -04:00