Commit Graph

108 Commits

Author SHA1 Message Date
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
Chris Evich 36d95b0503
Cirrus: Ensure the build-push VM image is labeled
Recently the container image build jobs have been failing with the
cirrus error:

```
Failed to start: INVALID_ARGUMENT: Operation with name
"operation-1657739085511-5e3b475527b8f-779ec7ef-41f9804e" failed with
status = HttpJsonStatusCode{statusCode=INVALID_ARGUMENT} and message =
BAD REQUEST
```

I was able to track this down to an obsolete
`build-push-c6193881921355776` image.  Fortunately I was able to
un-obsolete the VM image.  Update the time-stamping meta_task to include
this image to prevent this problem in the future.

Signed-off-by: Chris Evich <cevich@redhat.com>
2022-07-13 15:08:56 -04:00
Chris Evich cf6b1bcfba
Docs: Update multi-arch buildah images readme
Contents updated to more closely resemble the same docs in the podman
repository.  Also, remove the `centos7` compatibility section (and
build context) given it's not been built or maintained in over two
years.

Signed-off-by: Chris Evich <cevich@redhat.com>
2022-06-17 11:18:43 -04:00
Chris Evich 0a1d828dad
Cirrus: Migrate multiarch build off github actions
The github actions workflow for this operation is complex and difficult
to maintain.  For several months now a replacement has been running well
in the podman repository.  It's scripts/components are centralized,
versioned, unit, and integration tested.  Add cirrus tasks to run the
build, and another task to allow test builds in a PR.

This also adds support for a new magic CI string: `[CI:BUILD]`.
With this string in the PR title, automation will only do basic build
verification, and enable testing of the multi-arch build process.

Otherwise, many tasks were updated to not be created when running the
cirrus-cron multi-arch image builds, since this would simply be a waste
of time and invitation for flakes.

Signed-off-by: Chris Evich <cevich@redhat.com>
2022-06-17 11:18:43 -04:00
Daniel J Walsh 9042b86b2d
Vendor in latest github.com/sirupsen/logrus
[NO NEW TESTS NEEDED]

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
2022-06-09 16:02:43 -04:00
Chris Evich 4cf93e3edc
Fix use generic/ambiguous DEBUG name
The use of the generic 'DEBUG' name in varialbes or flags can be very
problematic and lead to difficult to troubleshoot problems.  Update CI
VM images to those including updated automation library that uses the
`$A_DEBUG` env. var. instaed.  Also update other repository files which
make use of the generic form.

Signed-off-by: Chris Evich <cevich@redhat.com>
2022-06-02 11:44:38 -04:00
Lokesh Mandvekar 1a79fbede1
Cirrus: use Ubuntu 22.04 LTS
Signed-off-by: Lokesh Mandvekar <lsm5@fedoraproject.org>
2022-05-27 10:54:04 -04:00
Chris Evich cc5e80f6de
Cirrus: Update CI VMs to F36
Signed-off-by: Chris Evich <cevich@redhat.com>
2022-04-28 10:37:33 -04:00
Aditya R 5eccef1482
cirrus: add seperate task and matrix for rootless
Split rootless testing into its own cirrus task and do not merge it with
existing rootless tests.

Signed-off-by: Aditya R <arajan@redhat.com>
2022-03-08 15:08:12 +05:30
Aditya R 165e984b50
buildah: test rootless integration
Add cirrus boiler plate for rootless testing infrastructure.
Following commit introduces only neccassary foundation and skeleton
which will be used by rootless testing of buildah.

[NO NEW TESTS NEEDED]

Signed-off-by: Aditya R <arajan@redhat.com>
2022-03-08 14:57:43 +05:30
Chris Evich 7311154441
Cirrus: Use updated VM images
Mainly this is to confirm some changes needed for the podman-py CI
setup don't disrupt operations here. Ref:

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

Signed-off-by: Chris Evich <cevich@redhat.com>
2022-02-08 14:21:10 -05:00
Ed Santiago 1c684933e0 Enable git-daemon tests
...by bumping up the CI VM ID to ones that include the
git-daemon (Fedora) or git-daemon-run (Ubuntu) packages.

Reason: #3701 rewrote some tests to work around github
closing 'git://' protocol access... but those new tests
were simply being skipped.

Reference: https://github.com/containers/podman/issues/12851

Signed-off-by: Ed Santiago <santiago@redhat.com>
2022-01-13 15:04:33 -07:00
OpenShift Merge Robot 60880a74e0
Merge pull request #3706 from cevich/freshen
Cirrus: Freshen VM images
2022-01-13 00:52:17 +01:00
Chris Evich 8195db90c1
Cirrus: Re-order tasks for more parallelism
Execute all tasks in three dependent, parallel groups

1. Meta + smoke + vendor + cross
2. Unit + int. + containerized-int. + conformance
3. Success

Signed-off-by: Chris Evich <cevich@redhat.com>
2022-01-12 11:42:59 -05:00
Chris Evich 0e6980fb65
Cirrus: Freshen VM images
Signed-off-by: Chris Evich <cevich@redhat.com>
2022-01-12 11:26:47 -05:00
Chris Evich ad8c2c3694
Cirrus: Run int. tests in parallel with unit
This is somewhat of a band-aid since these two tasks take 45+ minutes
each.  Running them in parallel improves the overall runtime when
tests are otherwise/generally passing.  If/when unit tests fail, the
status won't update until integration tasks complete, but the failure
will be immediately observable in a PR.  So it's a minor price to pay
for improved runtime in the general case.

Signed-off-by: Chris Evich <cevich@redhat.com>
2022-01-10 14:45:49 -05:00