Commit Graph

45 Commits

Author SHA1 Message Date
Kevin Daudt
69d3c79858 ci: set lower resource requests for small jobs
We have a kubernetes cluster for x86_64 now to accept jobs. The default
limits are high to facilitate building packages.

For the smaller CI jobs like linting, these limits are too high and may
hinder other jobs from being accepted.

Set variables that set lower requests for these jobs.
2025-03-29 15:11:40 +00:00
Kevin Daudt
873b8bd5c0 ci: use generic tag for arch-independent jobs
This allows other fast runners to be used as well to run these jobs.
2025-02-20 15:28:22 +00:00
Kevin Daudt
c8660d1f71 ci: move strategy to the trigger context 2024-11-27 17:20:39 +00:00
Kevin Daudt
f934b9a390 ci: depend on downstream pipeline
Otherwise the MR pipeline will show succesful, even though the
downstream pipeline failed.
2024-11-27 17:18:51 +00:00
Kevin Daudt
08d03b91a8 ci: use dynamic downstream pipelines
This gives us more flexibiity with regards to the job configuration. One
job generates the job configuration which then triggers a downstream
pipeline.
2024-11-27 16:49:07 +00:00
Kevin Daudt
17310f269e ci: do not allow loongarch64 ci to fail
While loongarch64 was being bootstrapped, we allowed it to fail to not
hard-block any MRs where it failed. Now that loongarch64 will be part of
the 3.21 release, CI failures for loongarch64 should be hard failures.
2024-10-17 16:15:33 +00:00
Kevin Daudt
13df4c918e ci: explicitly provide platform for 32-bits arches
This is a feature supported since gitlab 16.7.

Since 36f0600b15 (ci: remove custom mirror for loongarch64,
2024-09-27), we use the same image for all arches, but because the
runner hosts are all 64-bits, we need to specify the platform
explicitly.

Fixes alpine/infra/infra#10830
2024-09-28 12:40:05 +00:00
Kevin Daudt
36f0600b15 ci: remove custom mirror for loongarch64
We now have an official edge repository for loongarch64
2024-09-27 17:48:59 +00:00
Kevin Daudt
abcead8c6b ci: fix registry url 2024-09-27 17:38:55 +00:00
Kevin Daudt
e3d45783c4 ci: use self-hosted images
Docker not support loongarch64 yet, so we need to build the alpine base
image ourself.

See https://github.com/docker-library/official-images/pull/17607
2024-09-27 16:48:57 +00:00
Carlo Landmeter
390c8c6a2f ci: remove manual mode for loongarch64 2024-08-10 20:35:09 +00:00
Kevin Daudt
99e54daeb7 ci: allow loongarch64 jobs to fail
Otherwise all pipelines where the job is not run will show as 'waiting
for manual action'. This behavior is different when just using `when:
manual` outside of rules, where `allow_failure` was implicitly true.
2024-07-18 06:24:02 +00:00
Kevin Daudt
b26b6c9818 ci: add job for loongarch64 2024-07-17 20:46:24 +00:00
Natanael Copa
190601d7f6 ci: fix riscv64 name and enable by default
We now have real riscv64 machines to run the CI jobs. Rename the job to
reflect that and enable by default.
2024-03-06 12:24:00 +01:00
Kevin Daudt
935caaed25 ci: add 'rules' to workflow 2023-09-01 10:43:17 +00:00
Kevin Daudt
ff5b8d73ce ci: switch to rules
`only` has been deprecated and gitlab recommends to use rules instead,
which are more flexible.

Add a global workflow and change the `only` specifications to `rules`.
2023-09-01 10:39:55 +00:00
Carlo Landmeter
cf956ad7ae ci: trigger creation of disk images
This ci job will trigger a downstream multi-project pipeline to
build a disk image.
2023-02-11 23:37:15 +01:00
Kevin Daudt
3a1d676f5f ci: revert temporary disable arm* jobs
The builder is available again.

This reverts commit 9a738fc34a.
2022-11-17 14:54:37 +00:00
Kevin Daudt
9a738fc34a ci: temporary disable arm* jobs
The CI hosts will not be available for a couple of days. Disable the
jobs to keep the pipelines going.
2022-11-13 17:56:58 +00:00
Jakub Jirutka
013a5290d1 ci: add manual job build-riscv64-emulated
This job is not started automatically as others, but the
developer/contributor can start it via GitLab UI.
2022-07-28 22:40:31 +00:00
Kevin Daudt
2bdf0ea276 gitlab-ci: run builds and linting in same stage 2022-07-26 18:56:28 +00:00
Kevin Daudt
e6097b01dd ci: don't run changed-aports ourselves
This is now done directly by the lint script
2022-04-17 15:27:22 +00:00
Kevin Daudt
53b28cf905 ci: remove before_script
Due to recent changes in git, the owner of the repository files matter.
In CI, the repository is cloned by root, while the CI jobs run as a
non-root user. This causes git to fail with an error message.

This was already fixed in the ci build script, but the `before_script`
is run before that, and now starts to fail because the updated git
version is part of the image itself.

Because we fetch the commits in the build script anyway, lets just
remove the before_script.
2022-04-17 14:15:29 +00:00
Kevin Daudt
50e272e684 ci: allow redundant jobs to be interrupted 2021-12-27 19:18:33 +00:00
Andy Postnikov
f2f19cb4d3 Revert "test risc"
This reverts commit f24197dc3f.
2021-11-20 00:22:06 +02:00
Andy Postnikov
f24197dc3f test risc 2021-11-19 22:20:50 +00:00
Kevin Daudt
0d203bc2ab ci: include armhf 2021-05-09 15:55:39 +00:00
Kevin Daudt
a86101dc5d ci: don't copy packages and keys
This is now handled by the build script itself so that it's able to skip
this step in case the size is larger than the limit.
2021-02-23 05:50:38 +00:00
Kevin Daudt
57a7f1223f ci: upload logs/ dir as artifact 2021-01-27 11:46:40 +00:00
Kevin Daudt
9174e34551 gitlab-ci: fetch 500 commits 2020-09-03 15:57:32 +00:00
Kevin Daudt
a7c656a3a8 ci: use clone instead of fetch
This makes sure there is no interference from older merge requests and
shallow fetches.
2020-02-15 10:41:53 +00:00
Kevin Daudt
e0dc9c96d2 ci: enable shallow cloning/fetching 2020-02-10 17:01:17 +01:00
Kevin Daudt
84b3592681 ci: silence fetching from upstream
To reduce noise in the job log, silence the output of `git fetch`.
2020-02-09 18:35:49 +00:00
Kevin Daudt
cfde91da97 ci: fix typo in armv7 image tag 2019-12-30 09:06:53 +00:00
Kevin Daudt
bfb820e1cc ci: use armv7 image for armv7 build job
armv7 runs on an aarch64 machine, so we need to explicitly ask for the
armv7 image, as well as running the shell with linux32.
2019-12-30 08:36:24 +00:00
Kevin Daudt
29b127feb4 Revert "gitlab-ci: remove git fetch before_script"
Decided it's better to do it in one place than repeating the logic on
multiple places.

This reverts commit fb5b97d091.
2019-10-19 13:09:05 +00:00
Kevin Daudt
fb5b97d091 gitlab-ci: remove git fetch before_script
To know what aports are changed in a merge request, we need to know
where the target branch is, so that we can use git diff against that
branch.

To test this, this was added in the CI jobs description in a global
`before_script`, but this is now being handled by respective scripts
themselves, so the before_script is now redundant.
2019-10-19 07:17:43 +00:00
Kevin Daudt
0e379524e6 gitlab-ci: override git strategy / depth
In order to properly calculate what aports have been changed, we need
proper history being present. A shallow clone interferese with that.

Instead of having to override these settings on each project (forks of
aports), we can override these settings in the CI jobs description
instead.
2019-10-19 07:14:39 +00:00
Kevin Daudt
baa0f22610 gitlab-ci: enable armv7 build job 2019-10-14 23:04:16 +00:00
Kevin Daudt
66a10915ac gitlab-ci: revert "gitlab-ci: temporarily disable s390x"
The builder is back.

This reverts commit d89be7ee6e.
2019-10-14 13:10:16 +00:00
Kevin Daudt
d89be7ee6e gitlab-ci: temporarily disable s390x
Until the runner is back.
2019-10-12 19:16:23 +00:00
Kevin Daudt
772b5b2731 gitlab-ci: add build job for aarch64 2019-10-12 19:15:47 +00:00
Kevin Daudt
4afc00abcc gitlab-ci: upload built packages as artifacts
gitlab allows us to define artifacts that will be uploaded to gitlab and
available to download for some time.

Specify that the built packages should be uploaded to gitlab, along with
the public key.
2019-10-02 21:28:22 +00:00
Kevin Daudt
b1d8067959 .gitlab-ci.yml: add ci jobs to build changed aports
Closes !74
2019-09-24 17:56:25 +00:00
Kevin Daudt
4b74d83216 aports: enable gitlab-ci linting
This will enable the CI linting job for merge requests done on gitlab.
The linting job will allow for failures, so linting failures will show
up as worning, but won't prevent the rest of the CI pipeline to
continue.
2019-08-15 12:08:22 +00:00