4378 Commits

Author SHA1 Message Date
Kai Lüke
ff5b204fb1 Merge pull request #135 from kinvolk/flatcar-scripts
jenkins/kola/qemu(_uefi): run update test from previous release
2021-07-27 12:53:10 +02:00
Kai Lüke
d0224e06eb jenkins/kola/qemu(_uefi): run update test from previous release
The newly enabled update test performs an update from the built image
to itself. This is useful to test that the update mechanism didn't
break but it doesn't say if the built image will be accepted as update
from the previous official release.

Introduce an additional kola run that begins from the previous official
release and tests to update to the built image. Since the test does two
updates it also covers the case of updating from the built image to the
built image. Thus, we can skip the test in the normal run.
This new kola run is done first to keep the qemu-latest symlink valid
for the main test suite.
2021-07-27 12:53:10 +02:00
Kai Lüke
277ad678ca jenkins/kola: share a single qemu script file 2021-07-27 12:53:10 +02:00
Kai Lüke
19a933383e Merge pull request #130 from kinvolk/flatcar-scripts
Generate test update payload and run the kola update test
2021-07-14 20:51:48 +02:00
Kai Lüke
ee480c22ff Generate test update payload and run the kola update test
The kola update tests need a dev-key-signed update payload. This was
lacking and caused the update tests to be skipped.
Generate the test update payload for both dev builds and release builds
and run the kola tests for both. The test update payload has a special
name to not confuse it with the real update payload for releases, and
we keep the previous behavior to sign releases. Therefore, the
generate_update function wasn't used but the extract_update function
extended with generating the additional test payload.
2021-07-14 20:51:48 +02:00
Kai Lüke
05b267f25a Merge pull request #128 from kinvolk/flatcar-scripts
jenkins/systemd-run-wrap.sh: randomize unit name suffix
2021-07-14 13:46:43 +02:00
Kai Lüke
c0c47a586b jenkins/systemd-run-wrap.sh: randomize unit name suffix
The timestamp alone was not enough to prevent unit name clashes.
Add a random suffix to greater reduce the chance of hitting a clash.
2021-07-14 13:46:43 +02:00
Kai Lüke
38f81804e4 Merge pull request #127 from kinvolk/flatcar-scripts
jenkins: move all inline bash scripts to flatcar-scripts
2021-07-05 20:07:25 +02:00
Kai Lüke
17db3f4a0a jenkins: move all inline bash scripts to flatcar-scripts
The logic of the inline bash scripts of each job was sometimes
separated into the flatcar-scripts/jenkins/*.sh helpers but mostly
part of the Groovy file. This coupling had its advantages but also
downsides when special cases needed to be added for different release
versions. Other issues were that the inline scripts needed the
backslash character to be escaped twice and Jenkins was not good in
terminating the child processes when stopping a job. Having inline
bash scripts in Groovy also mandated the use of Jenkins to build and
release Flatcar Container Linux which hinders test builds in other CI
platforms.
Move the inline bash scripts fully to to the files in
flatcar-scripts/jenkins/ and create new ones for job that didn't have
a script there yet. Also invoke them through a systemd-run wrapper
script which ensures that all child processes are terminated and also
sets up /opt/bin as additional path for the static lbzcat binary.
A workaround for bash 4 was needed to use a temporary file instead of
the <(cmd) bash feature which caused a strange syntax error, otherwise
the bash commands are moved as they are.
2021-07-05 20:07:25 +02:00
Kai Lüke
4d61e8afa5 Merge pull request #122 from kinvolk/flatcar-scripts
jenkins/vm: expect a FORMATS parameter which has a list of formats
stable-2765.2.6 stable-2765.2.5 stable-2765.2.4 stable-2765.2.3 stable-2765.2.2 stable-2765.2.1 stable-2765.2.0
2021-02-19 15:17:00 +01:00
Kai Lüke
bb062d0564 jenkins/vm: expect a FORMATS parameter which has a list of formats
One Jenkins jobs for each image format caused a large overhead.
Allow to build multiple image formats in one job.
2021-02-19 15:17:00 +01:00
Marga Manterola
215583ff4d
Merge pull request #111 from kinvolk/marga-kinvolk/aws-pro
vm_image_util: Use new aws_pro flag for ec2-compat
beta-2765.1.0 alpha-2765.0.0
2021-01-22 18:30:23 +01:00
Margarita Manterola
ad8204af82 vm_image_util: Use new aws_pro flag for ec2-compat 2021-01-22 11:57:52 +01:00
Kai Lüke
934e4e28b9
Merge pull request #110 from kinvolk/kai/find-license
Fall back to source repository license files if not in portage
2021-01-20 18:26:16 +01:00
Kai Lüke
bd34d059f3 Fall back to source repository license files if not in portage
When a license file is newly added, portage may not yet have it in the
shared folder and the license inclusion step fails.
Fall back to the source repositories and look for the license file
there, too. Print a warning if not found instead of failing to build.
2021-01-20 17:03:05 +01:00
Krzesimir Nowak
dac588de9e
Merge pull request #109 from kinvolk/krnowak/fix-urls
build_library: Fix git URLs
2021-01-19 17:56:49 +01:00
Krzesimir Nowak
45d3a0d9a9 build_library: Fix git URLs
The repos were moved to kinvolk. Redirects still work, but it's better
not to rely on them.
2021-01-19 17:31:17 +01:00
Marga Manterola
df660df80e
Merge pull request #108 from kinvolk/marga-kinvolk/gce-pro
Add GCE Pro OEM type
alpha-2748.0.0
2021-01-04 11:59:44 +01:00
Margarita Manterola
cf7f4bd4a4 Add GCE Pro OEM type 2020-12-22 13:52:52 +01:00
Vincent Batts
d46b95ba29
Merge pull request #91 from kinvolk/vbatts/arm
qemu_template: use more cpus for ARM if available
alpha-2723.0.0
2020-12-15 08:29:10 -05:00
Kai Lüke
ef631cd7af
Merge pull request #106 from kinvolk/kai/aws-pro
Add AWS Pro OEM type
2020-12-15 11:14:25 +01:00
Sayan Chowdhury
3ac8f6a5da
Merge pull request #107 from kinvolk/sayan/fix-dev-container-path
dev_container_util.sh: Use the shflags group instead of the default flag
2020-12-14 21:10:16 +05:30
Sayan Chowdhury
95f05a9ad6
dev_container_util.sh: Use the shflags group instead of the default flag
The build_image script invokes the create_dev_container function, and
passes the `FLAGS_group` as param. Use the param, to generate the
binhost URL instead of using the DEFAULT_GROUP which stays as developer
always.

Fixes: kinvolk/Flatcar#298
Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2020-12-14 19:30:08 +05:30
Kai Lüke
f84ca169e5 Add AWS Pro OEM type
This is the initial creation of an AWS Pro image coming with support,
and features added on top of it.
2020-12-09 16:38:28 +01:00
Sayan Chowdhury
bed73e2b2c
Merge pull request #103 from kinvolk/sayan/add-azure-gpu-support-on-main
Update the azure pro package reference to the oem-azure-pro
beta-2705.1.0 alpha-2705.0.0
2020-11-25 19:39:28 +05:30
Sayan Chowdhury
9e2098bfff
Update the azure pro package reference to the oem-azure-pro
This commit also fixes the BINHOST URL for the for the developer
container portage

Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2020-11-25 14:42:56 +05:30
Thilo Fromm
81d4ed8940
Merge pull request #102 from kinvolk/t-lo/build_packages-fix-symlink-run-gcc-config
build_packages, build_image_util.sh: fix up liblto symlink
alpha-2697.0.0
2020-11-18 14:42:21 +01:00
Dongsu Park
d4be1e865e
Merge pull request #101 from kinvolk/dongsu/fix-kernel-symlink-memcpy
build_library: Ignore broken symlink in Kernel source tree
2020-11-17 13:28:08 +01:00
Thilo Fromm
22b08b0ae4 build_packages, build_image_util.sh: fix up liblto symlink
Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2020-11-16 19:06:59 +01:00
Dongsu Park
6eae505f16 build_library: Ignore broken symlink in Kernel source tree
Kernel source tree started to have a broken link
`tools/testing/selftests/powerpc/copyloops/memcpy_mcsafe_64.S`.
Especially in case of Kernel 5.8.18, like:

```
broken link: /usr/src/linux-5.8.18-coreos/tools/testing/selftests/powerpc/copyloops/memcpy_mcsafe_64.S
ERROR   build_packages: test_image_content: Failed symlink check
```

Ignore the symlink when checking broken symlinks.
2020-11-13 17:27:49 +01:00
Dongsu Park
5201aee4a3
Merge pull request #100 from flatcar-linux/dongsu/cleanup-ccache
jenkins: do not configure ccache variables
2020-10-26 23:30:44 +01:00
Dongsu Park
829cec45e8 jenkins: do not configure ccache variables
Setting the invalid CCACHE_ variables resulted in strange failure
in projects depending on meson, newer version like 0.55.3. For example
systemd build fails like the following errors:

```
 * ACCESS DENIED:  utimes:       /mnt/host/source/ccache
 * ACCESS DENIED:  utimes:       /mnt/host/source/ccache

F: utimes
S: deny
P: /mnt/host/source/ccache
A: /mnt/host/source/ccache
R: /mnt/host/source/ccache
C: ccache cc /build/amd64-usr/var/tmp/portage/sys-apps/systemd-246/work/systemd-246-abi_x86_64.amd64/meson-private/sanitycheckc.c -o /build/amd64-usr/var/tmp/portage/sys-apps/systemd-246/work/systemd-246-abi_x86_64.amd64/meson-private/sanitycheckc.exe -O1 -pipe -pipe -D_FILE_OFFSET_BITS=64
```

We should not set up ccache at all, as it has been already disabled in
coreos-overlay repo.
2020-10-26 15:38:57 +01:00
Sayan Chowdhury
4ae32d068e
Merge pull request #99 from flatcar-linux/sayan/add-qemu-oem
Add OEM package for QEMU
alpha-2661.0.0
2020-10-09 13:15:01 +05:30
Sayan Chowdhury
8799028007
Add OEM package for QEMU
Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2020-10-08 11:51:24 +05:30
Sayan Chowdhury
86800378db
Merge pull request #96 from flatcar-linux/sayan/add-azure-pro
Add Azure Pro to the list of amd64 format list
2020-09-29 00:20:53 +05:30
Sayan Chowdhury
23c72c0a5c
Add Azure Pro to the list of amd64 format list
Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2020-09-28 23:09:36 +05:30
Sayan Chowdhury
f521ca99bb
Merge pull request #94 from flatcar-linux/sayan/rename-to-pro
build_library: Rename the images to use pro instead of premium
2020-09-21 21:23:58 +05:30
Sayan Chowdhury
9953cc8c8f
build_library: Rename the images to use pro instead of premium
Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2020-09-21 20:31:41 +05:30
Sayan Chowdhury
e66c89ef31
Merge pull request #93 from flatcar-linux/sayan/azure-seperate-build
Add Azure OEM and selective private upload
2020-09-21 19:55:23 +05:30
Sayan Chowdhury
cc147a1255
Add the new OEM type, and selective upload azure as private
Signed-off-by: Sayan Chowdhury <sayan@kinvolk.io>
2020-09-19 18:58:12 +05:30
Vincent Batts
eb5affd424
Merge pull request #92 from flatcar-linux/vbatts/qemu-lint
qemu_template: shell lint and update
2020-09-16 10:47:08 -04:00
Vincent Batts
ed7de96c1f
qemu_template: shell lint and update
Signed-off-by: Vincent Batts <vbatts@kinvolk.io>
2020-09-16 10:30:07 -04:00
Vincent Batts
a97df50696
qemu_template: use more cpus for ARM if available
But don't hog all `VM_NCPUS`, as we are still emulating them

Signed-off-by: Vincent Batts <vbatts@kinvolk.io>
2020-09-15 17:39:35 -04:00
Vincent Batts
a22f316c23
Merge pull request #89 from flatcar-linux/vbatts/build-host
build_packages: export build host information
alpha-2632.0.0
2020-09-03 08:36:52 -04:00
Vincent Batts
a77e218d4d
Merge pull request #90 from flatcar-linux/vbatts/update-contrib
contrib: allow newer ssh keys, and user-provided template
2020-09-02 08:11:43 -04:00
Vincent Batts
acac817ea1
contrib: shellcheck lint
Signed-off-by: Vincent Batts <vbatts@kinvolk.io>
2020-09-02 08:10:50 -04:00
Vincent Batts
b8360e2c20
contrib: allow newer ssh keys
Signed-off-by: Vincent Batts <vbatts@kinvolk.io>
2020-09-02 08:10:47 -04:00
Vincent Batts
a43fcbb534
contrib: allow user to provide cloud-config template
Respecting that substitutions will still be made, the user may want to
also install their own unit files or similar

Signed-off-by: Vincent Batts <vbatts@kinvolk.io>
2020-09-02 08:10:33 -04:00
Vincent Batts
f104a53aeb
build_packages: export build host information
Signed-off-by: Vincent Batts <vbatts@kinvolk.io>
2020-08-28 13:51:22 -04:00
Kai Lüke
bc11ee282d
Merge pull request #86 from flatcar-linux/kai/nightly-sdk
set_version: Support resolving nightly SDKs
beta-2605.4.0 beta-2605.3.0 beta-2605.2.0 alpha-2605.1.0 alpha-2605.0.0
2020-08-05 22:06:19 +02:00