Commit graph

42 commits

Author SHA1 Message Date
Dusty Mabe
399f1f968f .cci.jenkinsfile: bump resource request
Should allow us to run more tests in parallel.
2026-06-08 12:02:19 -04:00
Nikita Dubrovskii
75e29d68c2 .cci.jenkinsfile: drop testiso and run kola after all artifacts
Drop kolaTestIso() and instead run kola() after building all artifacts.
The iso.* tests are now folded into the main kola test suite, so we
build all artifacts first (metal, metal4k, live) before running tests.
2026-05-05 13:18:43 +02:00
Dusty Mabe
c05b4c457d .cci.jenkinsfile: drop downloading ostree for previous build
Now that we can generate an rpmdiff from commitmeta.json alone [1]
we can stop downloading the ostree ociarchive on every build.

[1] https://github.com/coreos/coreos-assembler/pull/4327
2025-10-03 16:34:37 -04:00
Dusty Mabe
dd3cbf6d2a .cci.jenkinsfile: adjust rpm diff strategy
With the new build-with-buildah strategy we no longer
have the rpm information in the ostree commit object
so we have to download the entire ociarchive if we want
to do RPM diffing. Download the ociarchive in the buildfetch.

Also switch to using `cosa diff` for the rpm diff part.
2025-09-16 20:19:44 -04:00
Dusty Mabe
c537e88c86 .cci.jenkinsfile: build live and metal* together
This will prevent us from having to invoke OSBuild twice.
2025-02-24 16:52:47 -05:00
Dusty Mabe
f9458601ee ci: use OSbuild to build metal/metal4k in one shot
Since we dropped runvm_with_cache_snapshot this now fails.
Let's make a similar change here as what we did in
https://github.com/coreos/coreos-assembler/pull/3970
2024-11-24 14:26:38 -05:00
Jonathan Lebon
cd69b31f59 ci: cancel previous build on PR update
This is an easy way to save CI resources; when a PR is updated, abort
any previous build for that PR to focus on testing the latest push.
2023-11-21 17:25:15 -05:00
Adam Piasecki
7980158ca9 Update .cci.jenkinsfile
Co-authored-by: Dusty Mabe <dusty@dustymabe.com>
2023-06-14 16:10:44 -04:00
Adam Piasecki
1c859a4a9e Veryfying file location 2023-06-14 16:10:44 -04:00
Adam Piasecki
47852dddc0 .cci.jenkinsfile: change path for download-overrides.py
PR's requesting the move

See: https://github.com/coreos/coreos-assembler/pull/3510
See: https://github.com/coreos/fedora-coreos-releng-automation/pull/176

Issue:

See: https://github.com/coreos/fedora-coreos-tracker/issues/1185
2023-06-14 16:10:44 -04:00
Jonathan Lebon
3f87e4328b ci: update for new kolaTestIso()
The `extraArgs4k` parameter no longer does anything. Just remove it so
it's clear that we're accepting the default set of tests from
`kola testiso`.

This will run more tests than before. We'll likely cut down tests we
consider redundant soon, but that should be transparent to this code.
2023-03-01 12:47:02 -05:00
Jonathan Lebon
e38fd8a9ff ci: bump memory request to 9Gi
Noticed in https://github.com/coreos/fedora-coreos-config/pull/2031 that
the `kola testiso` was killed:

    FAIL: iso-offline-install (bios + metal) (1m35.505s)
        signal: killed
    Error: signal: killed

This is likely due to hitting up against the memory limit. It seems like
512Mi of overhead isn't enough. Let's bump it to 1Gi.
2022-11-03 16:19:40 -04:00
Jonathan Lebon
04cb471e5c ci: add a cpu and memory request
We're not currently requesting anything, which means we're at the mercy
of any default limit set on the cluster we're running on. Let's add an
explicit request.

Also bump the CPU request to 4 from the default of 2.
2022-10-17 18:38:36 -04:00
Jonathan Lebon
37866426cb ci: migrate to new directory and method names
The previous `fcos*` ones are deprecated.
2022-10-13 15:00:15 -04:00
Dusty Mabe
d53f7c263b .cci.jenkinsfile: use buildfetch instead of buildprep
It's what all the cool kids are doing these days. See
https://github.com/coreos/coreos-assembler/pull/2495
2021-10-21 15:11:25 -04:00
Benjamin Gilbert
20c6a46f07 Revert "ci: run kola basic scenarios"
coreos-ci-lib does this by default as of
https://github.com/coreos/coreos-ci-lib/pull/91.

This reverts commit 82859cbc47.
2021-09-10 13:48:06 -04:00
Benjamin Gilbert
82859cbc47 ci: run kola basic scenarios
This gets us UEFI boot testing with the bare-metal image (not just the
ISO), plus an NVMe boot test.
2021-09-08 12:54:47 -04:00
Benjamin Gilbert
cf80842315 ci: use coreos-ci-lib wrapper for kola testiso
This adds iso-live-login and iso-as-disk scenarios, plus tests on metal4k,
multipath, and UEFI.  It also drops the iso-install scenario, which isn't
a typical use case for FCOS.
2021-09-08 12:54:47 -04:00
Jonathan Lebon
31832a5c67 ci: add branched to list of mechanical streams
We might as well enable overrides support on all mechanical streams
while we're at it.

Eventually, we should move our stream definitions into coreos-ci-lib to
have it in one canonical place.
2021-07-14 13:34:37 -04:00
Dusty Mabe
252b00f34b ci: don't do a strict build for mechanical streams
If we are operating on a mechanical stream then we can pin packages in
lockfiles but we don't maintain a full set so we can't do a strict build.
2021-07-14 09:04:56 -04:00
Jonathan Lebon
cf0e29e14f ci: run iso-offline-install using --qemu-multipath
This exercises the new support for multipath on firstboot:
https://github.com/coreos/fedora-coreos-config/pull/1011
2021-05-27 16:10:22 -04:00
Jonathan Lebon
35b1a3a445 ci: abbreviate testiso directory and artifacts
By design, `kola testiso` exercises the metal path. So adding "metal" to
the filenames of things is redundant.
2021-05-27 16:10:22 -04:00
Dusty Mabe
de05fc7426 Updates for master -> main branch renamings 2021-05-11 11:59:50 -04:00
Jonathan Lebon
f63d8b8327 ci: use cosa basearch instead of hardcoding x86_64
This doesn't matter right now, but just on principle.
2021-04-06 15:34:15 -04:00
Jonathan Lebon
09c392dadb ci: error out if downgrade detected
In the majority of cases, we don't expect new builds to downgrade RPMs.
Let's default to erroring out and contributors can consciously override
CI if was really expected.
2021-04-06 15:34:15 -04:00
Jonathan Lebon
793a0d0250 ci: print human-readable RPM diff
The `.pkgdiff` element from the build metadata isn't very useful to
humans. Let's just re-invoke `rpm-ostree db diff` to get a nice legible
diff.
2021-04-06 15:34:15 -04:00
Jonathan Lebon
b5a7b3ab1f ci: use --parent-build
This is prep for more easily re-diff'ing the previous and new build via
rpm-ostree. But also it more closely matches what production builds do.
2021-04-06 15:34:15 -04:00
Jonathan Lebon
d4e9435f57 ci: checkout repo to the config/ directory
Instead of checking out the repo directly into the workspace, let's get
in the habit of checking it out into a subdirectory to keep things
clean.

This also helps code which look at the name of the directory in which
the repo is checked out, such as kola external host test handling.

This makes use of a new custom step:

https://github.com/coreos/coreos-ci-lib/pull/40
2020-10-06 14:42:54 -04:00
Jonathan Lebon
e60007cc3b ci: Also test live images
This should be part of coreos-ci-lib proper, but let's do this for now.
2020-09-09 12:28:18 -04:00
Dusty Mabe
ebdf7062d8 ci: call fetch stage with --with-cosa-overrides
This was added in https://github.com/coreos/coreos-assembler/pull/1404
extraFetchArgs was added to fcosBuild in https://github.com/coreos/coreos-ci-lib/pull/26
2020-04-27 17:25:22 -04:00
Jonathan Lebon
93210034be ci: buildprep from stream matching branch name
E.g. on `next-devel` we want CI to `buildprep` from the `next-devel`
stream.

Required for green CI in:
https://github.com/coreos/fedora-coreos-config/pull/306
2020-03-20 16:05:20 -04:00
Jonathan Lebon
341fb5605d ci: buildprep from latest testing-devel
That way if a PR adds a package, we'll print the pkg diff.
2020-02-28 11:26:54 -05:00
Jonathan Lebon
d46c0c38b9 ci: migrate to new coreos-ci project
And in the process, use the new custom steps from coreos-ci-lib to
simplify things.
2020-02-24 15:33:33 -05:00
Colin Walters
8fced14dd8 ci/validate: New file to check syntax
I've had syntax errors in shell script in `overlay.d` too many
times, let's add a quick check for this.  This is a more lightweight
version of what we're doing in coreos-assembler.
2019-12-20 12:11:49 -05:00
Jonathan Lebon
5b03a9a13c ci: archive kola results if tests fail
So we can actually try to diagnose the failure.

Same as was done in coreos-assembler:
https://github.com/coreos/coreos-assembler/pull/982
2019-12-09 17:35:51 -05:00
Jonathan Lebon
a2342ecaed ci: use new download-overrides.py script
So that we can test the build in CI before merging:
https://github.com/coreos/fedora-coreos-releng-automation/pull/63
2019-12-09 17:35:51 -05:00
Jonathan Lebon
0a330a27ba ci: run kola in parallel
Similarly to https://github.com/coreos/coreos-assembler/pull/884.
2019-10-31 14:43:45 -04:00
Jonathan Lebon
e02bf0ec97 Add kola-blacklist.yaml
This will contain a documented list of tests known to fail right now.
For details, see the corresponding cosa PR which learns how to read
this, and the mantle RFE:

https://github.com/coreos/coreos-assembler/pull/866
https://github.com/coreos/mantle/issues/1103
2019-10-22 12:35:13 -04:00
Jonathan Lebon
889b3d1359 ci: blacklist fcos.python
This is known to fail right now due to
https://github.com/coreos/fedora-coreos-tracker/issues/280.
2019-10-21 16:31:59 -04:00
Jonathan Lebon
dc50d5d47e ci: use coreos/coreos-ci-lib shared lib
The canonical repo is now under the `coreos/` org.
2019-09-13 18:27:49 -04:00
Jonathan Lebon
0dec737c52 ci: use Jenkins checkout instead of recloning
Just do the checkout in a subdirectory in the the workspace, then point
`cosa` at it. That way we don't clone the repo twice.

This should fix CI errors when PRs are not fully rebased.
2019-09-13 18:27:49 -04:00
Jonathan Lebon
1fd83eb599 ci: add Jenkins pipeline
Run all contributions through a `cosa build` and `cosa kola run` so we
know `git master` is always somewhat sane.
2019-08-06 14:44:48 -04:00