663 Commits

Author SHA1 Message Date
e95fd4f38e Merge pull request #27039 from Luap99/golangci-cache
cirrus: fix golangci-lint cache leak + update freebsd version
2025-09-16 07:30:48 +00:00
bd7aada776 cirrus: update to freebsd 14.3
Freebsd 13.4 is EOL so update to the latest one.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-09-10 14:33:39 +02:00
710e216390 cirrus: fix golangci-lint cache leak
Do not use reupload_on_changes, this will make the cache grow unbound
and I have seen the cache become so large then restoring it and
uploading it took several minutes thus making the task time worse
compared to no cache. I manually cleaned the cache a few times to fix
this but it need to properly be fixed here.

To not have a stale cache for to long also use date +%U which will
create a new cache once a week. This is in line with the offical
golangci-lint github action which invalidates the cache every 7 days by
default[1].

[1] https://github.com/golangci/golangci-lint-action/blob/main/README.md#cache-invalidation-interval

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-09-10 14:23:51 +02:00
a720139dd8 New VM images 2025-09-10
https://github.com/containers/automation_images/pull/416

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-09-10 12:55:11 +02:00
89bd416699 Merge pull request #26860 from Luap99/cirrus-winmake
cirrus: fix podman machine windows only_if condition
2025-08-20 20:06:14 +00:00
9d47477e82 cirrus: fix podman machine windows only_if condition
The winmake target is critical for the machine task as this is used to
actually run the ginkgo command line. PR #26847 modified that line will
not actually running the tests which means it is easy to break CI with
this. Now the chnage of the PR was correct so it worked fine this time
but for the future make sure we actually run the tests in such cases.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-08-19 17:27:58 +02:00
2c89069fa8 update tests duo to CRUN#1767 to support both values
Signed-off-by: Tim Zhou <tizhou@redhat.com>
2025-08-19 10:43:18 -04:00
4410fcb394 cirrus: setup WSL logging
To debug some of the WSL issues we are seeing try to setup logging,
the script parts are taken from the offical logging script[1].

[1] https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1

Signed-off-by: Mario Loriedo <mario.loriedo@gmail.com>
2025-07-04 14:28:58 +02:00
ffbb0ed7b0 update CI images 2025-06-27
from https://github.com/containers/automation_images/pull/408

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-06-30 12:05:56 +02:00
67fa077a5c update image_fix -> automation_images#407
skip test duo to rawhide know issues

Signed-off-by: Tim Zhou <tizhou@redhat.com>
2025-06-23 13:24:58 -04:00
9a0f013f0a Revert "cirrus: test only on f41/rawhide"
This reverts commit 05fc9d2d6b4c81d9f19272bea9d319c5c36cfe02.

Images use fedora f42 now.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-04-22 16:32:49 +02:00
b0df21edef New images 2025-04-16
https://github.com/containers/automation_images/pull/404

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-04-22 16:32:48 +02:00
76eea47fb3 Merge pull request #25743 from kolyshkin/freebsd-golangci-lint
Add freebsd golangci lint run; fix remaining freebsd warnings
2025-04-03 18:30:54 +00:00
b959ca3577 .cirrus.yml: add golangci-lint cache for freebsd task
This shaves the linting time:
 - from 8 to 2 minutes on Cirrus CI with 4 CPUs and 8 GB RAM;
 - from 11 to 3 minutes on Cirrus CI with 2 CPUs and 4 GB RAM;
when the cache is reused.

The cache size is quite modest (~3MB compressed, ~7MB uncompressed).

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2025-04-03 09:25:02 -07:00
c958d5b3ba .cirrus.yml: upsize the freebsd instance
An attempt to speed up golangci-lint.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2025-04-03 09:25:02 -07:00
f18c917ef8 ci: run golangci-lint on freebsd
This could have been done by simply running

	GOOS=freebsd ./bin/golangci-lint run [options] ./...

on Linux, but some freebsd code is using cgo (i.e. is linked to C
libraries), so real freebsd environment is required.

This also fixes the issue of ignoring linter errors for Windows and
Darwin (exit 0), introduced by commit c9b108d5b38.

Fixes: c9b108d5b38 ("Bump golangci-lint to v2.0.2")
Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2025-04-03 09:24:58 -07:00
fbb118ed7e cirrus: save/restore golangci-lint cache for linux
This shaves off some time from golangci-lint run.

For linux, it's down from 5 to 3 minutes (for the whole task, not just
the golangci-lint runs), and the cache is only ~7MB (according to
golangci-lint, probably uncompressed) or ~2MB (according to cirrus CI,
probably compressed).

For Mac, due to remote build tag we don't lint much so linting takes
less than a minute, so it is not worth optimizing.

For Windows, similar.

Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
2025-04-02 20:09:47 -07:00
9b9c60d814 CI: use z1d instance for windows machine testing
This one has two local NVMe's attached so we should be able to use fast
local storage to hopefully speed the test up. The NVMe are not mounted
by default so we have to format and mount them. I have choosen Z as
drive letter as I guess it seems most likely that it is free.
Then we need to set the TMPDIR envs to make the machine tests use the
new location.

This speeds up hyperV tests by 20mins and wsl by 9 mins.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-03-26 15:10:04 +01:00
a0acdb837b New images 2025-03-24
From https://github.com/containers/automation_images/pull/402

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-03-24 14:02:06 +01:00
7f11ce85e5 Merge pull request #25522 from l0rd/fix-wsl-check
Fix WSL checks and run unit tests in CI
2025-03-24 01:36:29 +00:00
af29bb5b6e Update CI to run Windows unit tests
Add a new target in winmake.ps1 to run unit tests and use
use it in a new cirrus task.

Fix machine_windows_test.go to make it work in CI machine.

Add the `!windows` tag on tests files that fail on Windows.

Signed-off-by: Mario Loriedo <mario.loriedo@gmail.com>
2025-03-16 13:40:16 +00:00
1945506905 New images 2025-03-12
from https://github.com/containers/automation_images/pull/401

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-03-13 19:44:14 +01:00
05fc9d2d6b cirrus: test only on f41/rawhide
Like commit d03e8ffc56, we need to bump to go 1.23 to get some
dependency updates for CVE fixes.

Thus it will no longer build/test on F40, however F40 might get
rebased to go 1.23 soon then we can revert this.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-03-11 16:55:33 +01:00
c278db873f cirrus: use fastvm for buildah_bud
As they run parallel now we can use some more cores and remove the long
timeout, they must be faster than the 20min default now.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-02-17 13:23:10 +01:00
731ef3ff9c cirrus: bump timeout for macos/win machine tests
They really should not take that long, however they timeout out more
often then they pass so let's give this is a try.

I have some hopes that the new worker pool from Adrian might perform
better.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-02-12 20:11:47 +01:00
07e53673f6 cirrus: figure out DEST_BRANCH automatically
Instead of us forgetting to update it on each new branch push.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-02-12 20:10:57 +01:00
e7d9c61f9f Merge pull request #25288 from Honny1/bump-freebsd
[CI] Bump FreeBSD version to 13.4
2025-02-11 12:55:24 +00:00
a6d6d6409e Bump FreeBSD version to 13.4
Version 13.3 is EOL. See https://www.freebsd.org/releases/

Signed-off-by: Jan Rodák <hony.com@seznam.cz>
2025-02-11 11:15:02 +01:00
d13915f87a new images 2025-02-10
From https://github.com/containers/automation_images/pull/400

Noteworthy here is the new debian tar package which should have the
right fix for our test issue, i.e.
https://github.com/containers/podman/issues/19407

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-02-10 18:50:30 +01:00
1c0f5b0475 new images 2025-01-31
Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-01-31 14:51:27 +01:00
6ee51c5e4f cirrus: bump macos machine test timeout
We see a ton of timeouts in bot the applehv and libkrun machine tests.
It seems 35m are no longer enough. I was not able to spot anything that
would explain why it increased all of the sudden as such I hope this is
enough.

Fixes #25057

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-01-20 19:50:15 +01:00
62c81298fd New VM Images
https://github.com/containers/automation_images/pull/398

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2025-01-07 16:18:09 +01:00
ae9120a71d Update VM images
from https://github.com/containers/automation_images/pull/396

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-12-12 15:14:57 +01:00
926b31e053 Bump CI VMs
Get new systemd-257~rc1 on rawhide, see what happens with #24220

Built in : https://github.com/containers/automation_images/pull/394

Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-11-18 07:39:35 -07:00
b5c9fe948c Yet another bump, f41 with fixed kernel
6.11.6 on f41 and f41-aws. Also, pasta 2024-10-30 on f40.

Built in https://github.com/containers/automation_images/pull/393

Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-11-08 04:58:06 -07:00
d770069062 Revert "cirrus: test only on f40/rawhide"
This reverts commit d03e8ffc56e4337d6b14e9b4d0569555b0aadb3d.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-11-06 11:03:35 -07:00
ba5ce49c10 test f41 VMs
Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-11-06 11:03:35 -07:00
67e39c1ec5 pasta udp tests: new bytecheck helper
...for debugging #24147, because "md5sum mismatch" is not
the best way to troubleshoot bytestream differences.

socat is run on the container, so this requires building a
new testimage (20241011). Bump to new CI VMs[1] which include it.

 [1] https://github.com/containers/automation_images/pull/389

Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-10-16 10:15:19 -06:00
b3302e8e18 Housekeeping: remove duplicates from success_task
Accidentally introduced in #21639.

Thanks to Paul for the Python code to prevent this from
happening again.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-10-15 10:09:15 -06:00
dc55b59987 Test new VM build
https://github.com/containers/automation_images/pull/376

Signed-off-by: Nicola Sella <nsella@redhat.com>
2024-10-15 13:26:30 +02:00
5d10e6e16b cirrus: let tar extract figure out the compression
tar should be smart enough to check the magic byte and use the correct
decompression algo based on that so there is no need to spell it out
explictly.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-10-14 17:08:34 +02:00
9e35fead03 cirrus: use zstd over bzip2 for repo archive
The repo tar process took over 1:20 min, with zstd it takes less than
10s so we safe over a minute by doing this.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-10-11 11:25:34 +02:00
6e69978d2e cirrus: use shared repo_prep/repo_artifacts scripts
The script for aarch is exactly the same so there doesn't seem to be a
reason to duplciate it.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-10-11 11:25:33 +02:00
39963cc984 cirrus: use fastvm for builds
Builds now take over 10 mins, given golang compilation is parallelized
by default we can give more cores to speed it up.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-10-11 11:25:33 +02:00
a79fec5e98 cirrus: update CI images
Images from https://github.com/containers/automation_images/pull/387

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-10-10 14:19:25 +02:00
09ba5db035 CI: run and collect cleanup tracer logs
In order to get better debug data for cleanup flakes. The argv is
printed with 0 bytes so replace them with spaces to make the log
readable for humans.

Signed-off-by: Paul Holzinger <pholzing@redhat.com>
2024-09-24 12:47:04 +02:00
1e9464c9b4 Merge pull request #23937 from edsantiago/test-crun-17
New VMs: test crun 1.17
2024-09-17 20:28:43 +00:00
6b621d9571 ci: bump system tests to fastvm
Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-09-17 11:19:36 -06:00
8d119f0c2d New VMs: test crun 1.17
...and remove one old skip() for older debian, but leave
two others in place and mark that they're still a problem.

Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-09-17 06:51:36 -06:00
359092e463 Bump VMs. ShellCheck is now built-in
Minor bump. Fedora VMs now include ShellCheck, so we can
remove the 'dnf install' at CI run time.

Also, FWIW, Debian *vark are now at 1.12 (from 1.9)

VMs built in https://github.com/containers/automation_images/pull/385

Signed-off-by: Ed Santiago <santiago@redhat.com>
2024-09-09 06:16:20 -06:00