213 Commits

Author SHA1 Message Date
Michael Vogt
d88a00e9a0 github: replace "sanity check" with "quick check" in workflow
In order to move to a more inclusive naming we need to replace
the word "sanity" with something more inclusive like "quick".

This commit does that for the (user visible) workflow output.
2022-03-14 16:55:50 +01:00
Sergio Cazzolato
fbec1ec262 Fix the quoting for the metadate json value 2022-03-10 12:20:19 -03:00
Sergio Cazzolato
bf6229901e Include the source github url as part of the mongo db issues
The idea is to have a tracking to the original error log in the mondo db
issues.
2022-03-08 16:46:14 -03:00
Sergio Cazzolato
5d6b7ab6a5 tests: include new testing tools and utils (#11399)
* Squashed 'tests/lib/external/snapd-testing-tools/' changes from dc6be12e76..575f5d2016

575f5d2016 Merge pull request #13 from snapcore/new-utils-section
4701612434 avoid installing and removing snapd in ubuntu focal
4d0317633d shellcheck in xenial is not needed
d95cb2e627 Moving some tools to the new utils section
839a0ce808 Merge pull request #10 from snapcore/new-spread-shellcheck-tool
5d5efd6fbe Merge pull request #12 from snapcore/run-shellchek-in-old-version
497b7d691f Force testing shellchek with versions 0.8 and 0.7
b3cb5a5a0a Update the copyright
872b64e05b Merge pull request #11 from Meulengracht/main
aa8799d0f8 tools/repack-kernel: fix SC2061
a44a987381 Merge pull request #9 from snapcore/check-spread-yaml-files
5cfa7cb84d New shellcheck for spread tasks
a9f6e09e0d Merge pull request #8 from Meulengracht/main
cd7926a85f New check-test-format tool
210b232d9c tools/repack-kernel: fix additional shellchecks
ac67796b5c Merge pull request #7 from Meulengracht/main
13fd7270b7 tools/repack-kernel: PR feedback comments
3844702a17 Merge pull request #6 from Meulengracht/main
4afdeefe42 tests/repack-kernel: move restore above execute to pass ./run-checks
e755eca0f8 Merge pull request #5 from Meulengracht/main
6199fc48f9 tools: add core22 targets in os.query
057919c07a Merge pull request #4 from mvo5/remove-ubuntu-21.04-eol
26b35af9b3 Merge pull request #1 from Meulengracht/main
b0fa82117a many: remove Ubuntu 21.04 (hirsute), it's EOL
878fd76976 repack-kernel: remove some cds and add a newline
4b84abd26b repack-kernel: fix issue in test related to wrong help message pattern
2e7fd675a7 repack-kernel: additional fixes to error messages. additional failure tests
545d72ef20 repack-kernel: additional fixes to tool based on feedback, additional tests
da1e43b4bb repack-kernel: change the install apt command for initramfs
131bcd11b2 repack-kernel: fix prepare command and error message having to much copy-pasta
9b2aef208f repack-kernel: add more tests, fix setup command
b98c024146 review feedback
5b76f3fe99 remove nested.sh, restructure repack-kernel and add test
0e5b5052e3 nested.sh: add missing command for waiting for snap command
9591a6e700 nested.sh: fix issues with OVMF
4db61f2b13 remove scripts that were hard to reuse, handle missing variables
9b956243e1 use env for path instead of hardcoding
b8e9d73349 core: add shared shell scripts for building image and controlling the L2 VM

git-subtree-dir: tests/lib/external/snapd-testing-tools
git-subtree-split: 575f5d201619fc18f83c404222fc98e2ff696b04

* Usinr new utils and tools from the snapd-testing-tools project

* Squashed 'tests/lib/external/snapd-testing-tools/' changes from 575f5d2016..61a4c3142d

61a4c3142d Merge pull request #14 from snapcore/include-support-s390x
3a1a65f6e1 Update the comments about shellchek
5ddfb7e1db New support for s390x arch in os.query tool

git-subtree-dir: tests/lib/external/snapd-testing-tools
git-subtree-split: 61a4c3142d43d3e72330fd570ee16106d861ed24
2022-02-25 09:07:55 -03:00
Miguel Pires
2b4f05b062 .github: fail build if golangci checks fail 2022-02-09 10:12:09 +00:00
Michael Vogt
cc14858c65 Merge pull request #11256 from mansre/snapd_test_debug
many: unit test fix when SNAPD_DEBUG=1 is set
2022-01-25 17:51:31 +01:00
Sreeja Manghat
9bf5d2485a many: unit test fix when SNAPD_DEBUG=1 is set
Minor changes ensuring unset SNAPD_DEBG to avoid test failures when run with SNAPD_DEBUG=1.
Added support in test.yaml for unit tests with SNAPD_DEBUG=1 to be re-run to avoid regressions.
2022-01-25 20:26:56 +05:30
Michael Vogt
0c0ecbb484 Merge remote-tracking branch 'upstream/master' into drop-tests-21.04 2022-01-24 15:40:54 +01:00
Michael Vogt
edc1417418 Merge pull request #11274 from sergiocazzolato/tests-add-jammy
tests: add jammy to spread executions
2022-01-24 13:22:51 +01:00
Michael Vogt
bfbb6ec53b tests: drop 21.04 tests (it's EOL)
The 21.04 Ubuntu release is end-of-life since 2022-01-20. This
commit drops the tests on it.
2022-01-21 21:12:17 +01:00
Ian Johnson
3d6dd4249d .github/workflows/test.yaml: use fetch-depth 0 for full git commit msg access
This is needed because we are now checking git commit author/committer emails
for validity, and to access these from GitHub Actions, we need more git
history.

Signed-off-by: Ian Johnson <ian.johnson@canonical.com>
2022-01-19 11:50:15 -06:00
Sergio Cazzolato
d2d260c43b Testing support for new jammy version 2022-01-19 11:25:18 -03:00
Ian Johnson
7ee9117357 .github/workflows/test.yaml: also check internal snapd version for cleanliness
This is to prevent committing code to PR's which result in snapd internal
version being dirty, like we currently have on master.

Signed-off-by: Ian Johnson <ian.johnson@canonical.com>
2022-01-06 09:22:06 -06:00
Ian Johnson
1a3cd2ecac .github/workflows/test.yaml: add check in github actions for dirty snapd snaps
This should prevent committing changes which create dirty snapd snap versions
in PRs.

Signed-off-by: Ian Johnson <ian.johnson@canonical.com>
2022-01-03 08:57:43 -06:00
Sergio Cazzolato
d532c31da1 Moving to manual opensuse 15.2
As openSUSE Leap 15.2 reach its end of life on Dec. 31, 2021
2021-12-15 14:24:20 -03:00
Sergio Cazzolato
721bed5783 Run spread tests in fedora-35 2021-11-29 16:14:25 -03:00
Ian Johnson
d8d79c823a .github/workflows/test.yaml: restore failing of spread tests on errors (nested)
We need to use pipefail, otherwise the piping to tee will mean that the exit
code is always 0 and thus never actually fails the GitHub Action even when the
spread tests fail.

Signed-off-by: Ian Johnson <ian.johnson@canonical.com>
2021-11-29 05:18:21 -06:00
Sergio Cazzolato
7d688c455d Fix the filter used in jq to send debug info 2021-11-17 16:19:36 -03:00
Sergio Cazzolato
218defb9a4 Send debug info for tests as well 2021-11-17 10:51:28 -03:00
Sergio Cazzolato
bc47fe67f8 Merge branch 'master' into tests-report-spread-errors 2021-11-11 09:35:14 -03:00
Sergio Cazzolato
5e2994123a Merge remote-tracking branch 'upstream/master' into tests-report-spread-errors 2021-11-10 08:43:04 -03:00
Maciej Borzecki
bb32cba643 github: leave a comment documenting reasons for pipefail
Thanks to @mardy for the suggestion.

Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2021-11-10 12:37:57 +01:00
Maciej Borzecki
ab49bd7f6a github: move pipefail and spread into a subshell
Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2021-11-10 07:51:32 +01:00
Maciej Borzecki
6f9aec31a6 github: enable pipefail when running spread
It seems that some recent github runs did not fail although no tests were run.
The only reasonable explanation being either broken action, or missing pipefail
that hid spread's non-0 exit status.

Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
2021-11-09 15:53:54 +01:00
Sergio Cazzolato
17986c5b2b Avoid sending empty lines to mongo db 2021-11-05 16:37:30 -03:00