4711 Commits

Author SHA1 Message Date
flatcar-ci
9d53553890
New version: stable-3139.2.0 stable-3139.2.0 2022-04-05 20:26:23 +05:30
flatcar-ci
dcb1ed3cf6 New version: beta-3139.1.1-nightly-20220405-0155 2022-04-05 03:56:37 +00:00
Kai Lueke
bd0adf0d94 Merge pull request #266 from flatcar-linux/scripts
ci-automation: use a single git tag and skip nightlies with no changes
2022-04-04 17:20:34 +02:00
Kai Lueke
ebb38d1528 ci-automation: use a single git tag and skip nightlies with no changes
The pipeline created two tags if an SDK was built, one for the SDK and
one for the OS build (which was a free-standing tag or a local state
that was equivalent to the existing tag of the same name). The
nightlies created update commits on the main branch, even if no change
was done, and on the release branches we lacked these commits.

Create the release tag in the nightly SDK bootstrap already and reuse
it for the nightly OS build. Instead of local state, checkout the
existing tags explicitly. Extend the nightly update commit logic to
cover release branches and detect if we can skip building because no
changes were done.
2022-04-04 17:20:34 +02:00
Thilo Fromm
a518604e04 ci-automation/sdk_bootstrap: check submodules for nightly branch push
Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2022-04-04 17:20:11 +02:00
Thilo Fromm
7d1b13b60d ci-automation/sdk_bootstrap: Only push to main in nightlies
Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2022-04-04 17:20:11 +02:00
Thilo Fromm
d2e0703195 ci-automation: SDK build updates version.txt in main branch
This change has sdk_bootstrap update the origin branch when run from the
main branch, updating the SDK and OS version in 'main' for each SDK
bootstrap build.

Release / maintenance branches have the SDK version set in the
versionfile at release time. But main is never updated.

Updating the versionfile in main when a new SDK is built ensures that
dev branches based on main will also use the correct SDK version (e.g.
in subsequent CI builds).
2022-04-04 17:20:11 +02:00
Thilo Fromm
c50ac3f544 Merge pull request #268 from flatcar-linux/scripts
ci-automation/test.sh: remove PARALLEL_TESTS passing (move to CI)
2022-04-01 15:19:26 +02:00
Thilo Fromm
f9f393f9e9 ci-automation/test.sh: remove PARALLEL_TEST passing (move to CI)
Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2022-04-01 15:19:26 +02:00
Thilo Fromm
b1dbc43899 Merge pull request #261 from flatcar-linux/scripts
ci-automation/test.sh: export PARALLEL_TESTS
2022-03-23 12:25:15 +01:00
Thilo Fromm
ed6b9d1bdd ci-automation/test.sh: export PARALLEL_TESTS
Export PARALLEL_TESTS in the container's .env file to ensure it is
passed to the vendor script.
2022-03-23 12:25:15 +01:00
Jeremi Piotrowski
5740bf3058 Merge pull request #260 from flatcar-linux/scripts
run_sdk_container: skip fetching image if custom_image is requested
2022-03-18 09:16:22 +01:00
Jeremi Piotrowski
c29b8438cf run_sdk_container: skip fetching image if custom_image is requested
In our CI most uses of run_sdk_container pass the '-C image' flag, which broke
with the last change, due to unbound docker_sdk_vernum variable. Skip fetching
the image when custom_image is passed.

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2022-03-18 09:16:22 +01:00
Kai Lueke
c50822720b jenkins/images.sh: use correct board for comparison
The output always was about amd64 because the board was not set.
Pass the board along.
2022-03-17 17:07:38 +01:00
Thilo Fromm
c06fb8a653 Merge pull request #258 from flatcar-linux/scripts
ci-automation/test.sh: use the latest kola from coreos-overlay
2022-03-16 17:05:22 +01:00
Thilo Fromm
72ae0f6acf ci-automation/test.sh: use the latest kola from coreos-overlay 2022-03-16 17:05:22 +01:00
Kai Lueke
5bb23efeab Merge pull request #259 from flatcar-linux/scripts
run_sdk_container: Fall back to tar ball download for SDK image and other improvements
2022-03-16 16:59:53 +01:00
Kai Lueke
8626562660 run_sdk_container: add remove flag
At the moment one must remove the leftover containers manually.
Add a flag to do so when stopping the container.
2022-03-16 16:59:53 +01:00
Kai Lueke
4948026d61 run_sdk_container: recognize --help flag
When the user passes --help we should not start a container and throw a
late error message afterwards but show the help directly.
2022-03-16 16:59:53 +01:00
Kai Lueke
9403dacabe run_sdk_container: Fall back to tar ball download for SDK image
The nightly SDK image is not pushed to a registry but has to be
downloaded from the build server as tar ball.
Fall back to the tar ball import for a better user experience.
To reuse the ci logic it had to support the "docker" env variable.
The use of the pigz container is not always needed if the user has
pigz available.
2022-03-16 16:59:53 +01:00
Thilo Fromm
9b777fc3d8 Merge pull request #257 from flatcar-linux/scripts
ci-automation/tapfile_helper_lib.sh: remove non-printable ASCII
2022-03-16 11:00:20 +01:00
Thilo Fromm
761ed0d54e ci-automation/tapfile_helper_lib.sh: remove non-printable ASCII
Jenkins TAP file parser does not process non-printable ASCII characters
but bails out. This change removes all ASCII < 0x1F, so non-printable
characters are not included in the TAP report.

Fixes
    Caused by: unacceptable character '' (0x1B) special characters are not allowed
2022-03-16 11:00:19 +01:00
Thilo Fromm
fe4411eac1 Merge pull request #256 from flatcar-linux/scripts
ci-automation/vendor-testing/qemu_update.sh: fix unbound variable
2022-03-15 17:55:10 +01:00
Thilo Fromm
d09ec3b7f3 ci-automation/vendor-testing/qemu_update.sh: fix unbound
One-line fix to resolve
    ci-automation/vendor-testing/qemu_update.sh: line 64: testscript: unbound variable
error.

Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2022-03-15 17:55:10 +01:00
Jeremi Piotrowski
a456748b33 Merge pull request #254 from flatcar-linux/scripts
jenkins/kola/azure: forward azure private networking parameters to kola
2022-03-14 20:40:10 +01:00
Jeremi Piotrowski
e71416f759 jenkins/kola/azure: forward azure private networking parameters to kola
These allow the configuration of virtual network for the created
instances to join, and tell kola to use the private instance IP for
connectivity.
2022-03-14 20:40:10 +01:00
Kai Lueke
baa60f12a6 Merge pull request #250 from flatcar-linux/scripts
jenkins/kola/aws: run tests on additional instance types
2022-03-10 18:23:46 +01:00
Kai Lueke
59ba022d23 jenkins/kola/packet|aws: silence debug output of concurrent test
The concurrent tests' debug output is not helping and causes confusion.
2022-03-10 18:23:46 +01:00
Kai Lueke
2e7b4a409f jenkins/kola/aws: run tests on additional instance types
There was a regression for an instance type which could have been
prevented by testing.
Add the same extended test logic used for Equinix Metal to AWS.
2022-03-10 18:23:46 +01:00
Kai Lueke
bdfcf44b34 Merge pull request #251 from flatcar-linux/scripts
jenkins/images: print kernel config changes
2022-03-10 12:45:10 +01:00
Kai Lueke
851c50cac8 jenkins/images: print kernel config changes
Sometimes the Linux build system changes and results in unexpected
kernel config results.
Print changes in the kernel config as part of the image diff report.
2022-03-10 12:45:10 +01:00
Kai Lueke
a41fdb05d3 Merge pull request #247 from flatcar-linux/scripts
ci-automation: set images as official based on version
2022-03-10 12:43:18 +01:00
Kai Lueke
3f66fa7a82 ci-automation: set images as official based on version
The image needs to be set into official mode through a helper script
(see jenkins/images.sh) and the COREOS_OFFICIAL variable needs to be
set for prod_image_util.sh/build_image_util.sh/grub_install.sh.
2022-03-10 12:43:18 +01:00
Thilo Fromm
79fca60a03 Merge pull request #246 from flatcar-linux/scripts
automation/test.sh: pass PARALLEL_TESTS to container
2022-03-10 12:25:26 +01:00
Thilo Fromm
b6627a9fa1 ci-automation/test.sh: handle unset PARALLEL_TESTS
Co-authored-by: Kai Lüke <pothos@users.noreply.github.com>
2022-03-10 12:25:26 +01:00
Thilo Fromm
888bc0467d automation/test.sh: pass PARALLEL_TESTS to container
Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2022-03-10 12:25:26 +01:00
Kai Lueke
c1617cbcb9 Merge pull request #245 from flatcar-linux/scripts
ci-automation: print kola command line
2022-03-10 12:07:03 +01:00
Kai Lueke
22242da2b3 ci-automation: print kola command line
For running kola manually and knowing which parameters where set, it
helps to print the kola command line in the job.
2022-03-10 12:07:03 +01:00
Thilo Fromm
62fdd7013e Merge pull request #249 from flatcar-linux/scripts
ci-automation/tapfile_helper_lib.sh: only ASCII chars
2022-03-10 11:34:49 +01:00
Thilo Fromm
d654e49917 ci-automation/tapfile_helper_lib.sh: only ASCII chars
This change removes all non-ASCII characters from test debug / error
output when ingesting the output for inclusion in the TAP report.
Jenkins TAP parser does not handle some unicode chars, leading to tap
parser errors with e.g. Cilium output (which uses unicode).

Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2022-03-10 11:34:49 +01:00
Jeremi Piotrowski
2ea5bd096f Merge pull request #248 from flatcar-linux/scripts
ci-automation/tapfile_helper_lib: fix commiting last transaction
2022-03-10 10:38:50 +01:00
Jeremi Piotrowski
a1626424ca ci-automation/tapfile_helper_lib: fix commiting last transaction
Move the final db commit to inside the subshell. Since the while loop
runs inside a subshell, the SQL variable outside of the subshell is not
modified, and so the last contents of the SQL variable are dropped. This
shows up when the last couple test cases don't have an error message,
and simply append the transaction to 'SQL'. They are never written to
the db.

Signed-off-by: Jeremi Piotrowski <jpiotrowski@microsoft.com>
2022-03-10 10:38:50 +01:00
Thilo Fromm
991000a24d Merge pull request #243 from flatcar-linux/scripts
ci-automation: fix tap parser errors
2022-03-08 16:49:07 +01:00
Thilo Fromm
ac773e12e9 ci-automation/tapfile_helper_lib.sh: fix CI TAP parse errors
This change fixes and adds more string chars escaping in the test error
debug output ("\" are removed and a bug in removing '"' is fixed),
addressing a parser errof the CI encountered when ingesting TAP output.

Furthermore, line numbering is shortened, and test names have a spurious
"-" prefix removed.

Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2022-03-08 16:49:07 +01:00
Kai Lueke
57ea7afdb5 Merge pull request #244 from flatcar-linux/scripts
Fix and improve channel handling
2022-03-04 14:27:05 +01:00
Kai Lueke
830b421020 ci-automation: set the channel from the git tag
For now we had only "developer" images in the new pipeline.
Based on the git tag like "alpha-1234.0.0" set the channel (group) for
the image and also use this logic when finding the channel in the QEMU
update test.
2022-03-04 14:27:05 +01:00
Kai Lueke
9c199813f4 jenkins/images: find channel from base channel variable
Using the tags on the branch is not enough to find the channel we want
to be the dev build be related to.
Use the base channel variable which was introduced for this.
2022-03-04 14:27:05 +01:00
Thilo Fromm
6b3ce83c8e Merge pull request #242 from flatcar-linux/scripts
ci-automation/tapfile_helper_lib.sh: read test output from file
2022-03-03 09:28:45 +01:00
Thilo Fromm
6c2a121917 ci-automation/tapfile_helper_lib.sh: use subshell, break lines after 200
Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2022-03-03 09:28:45 +01:00
Thilo Fromm
c5858891a6 ci-automation/tapfile_helper_lib.sh: read test output from file
This change updates the tapfile helper to read test output from a file
instead of passig it inline in the SQL INSERT statement.
This fixes an issue with large error output from tests, which breaks
tap_ingest_tapfile():
    ci-automation/tapfile_helper_lib.sh: line 31: /usr/bin/sqlite3: Argument list too long
Error observed with the cl.toolbox.dnf-install test, which can generate
8000 lines of output. Fix tested with the same output.

Signed-off-by: Thilo Fromm <thilo@kinvolk.io>
2022-03-03 09:28:45 +01:00