-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1233-Rework tests #306
1233-Rework tests #306
Conversation
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## main #306 +/- ##
==========================================
+ Coverage 12.34% 12.37% +0.02%
==========================================
Files 17 17
Lines 1069 1067 -2
==========================================
Hits 132 132
+ Misses 910 908 -2
Partials 27 27
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
bd7f175
to
f096f0d
Compare
057a68d
to
c17223a
Compare
Most test are green locally. They can now run locally. Tthe only env variable needed being the
TODO:
|
79cee2e
to
bfdeafe
Compare
709c744
to
967e459
Compare
I think it is timing out on decentralized test. |
- Migrate to a non-global VM object - Refactor qr registration and decentralized tests to not need a separate CI pipeline to run in parallel - Add valid header on config generated by `create-config` - Run decentralized tests with 2 VMs in parallel - Enable available-releases test - Bump github action and golang version used in tests - Fix qr code registration test - Import go-nodepair from kairos-io - Bump go-nodepair to depend on the same version of edgevpn and fix compilation issues - Rename jobs to match test files and merge available_releases with test job - Run all jobs on ubuntu-latest with qemu Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
(suspecting we don't have enough space to create a 40g disk for qemu) Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
because we don't have enough space for the previous hardcoded 30g for qemu Also install missing qemu-img package Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
because the GA action doesn't put the binaries in a place where I can find them. Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
so that decentralized tests can run successfully Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
to allow them to run in parallel and see if the rest of them (other than the decentralized one) pass. Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
until this is merged: docker-practice/actions-setup-docker#31 Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
On our self-hosted runners, it's already there Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
to save time Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
because the head_ref may change if we rebase the PR, which will result in the old jobs to keep running. By using the pull_request.number we make sure we always stop older jobs for the same PR (even on rebase). Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
(unless maybe if we label our self-hosted runners as "ubuntu-latest" or something) "These labels operate cumulatively, so a self-hosted runner must have all four labels to be eligible to process the job." https://docs.github.com/en/actions/hosting-your-own-runners/managing-self-hosted-runners/using-self-hosted-runners-in-a-workflow It's not an "OR" it's and "AND" Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
before we install packages Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
to see if this fixes the timeouts in CI Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
to avoid timeouts. It passes locally with this amount of resources so... Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
because otherwise, the test continues and prints the next "By" statement between running "Done" and running "Recover" making the output confusing. Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
because making ginkgo stop when our goroutines fails is unexpectedly difficult Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
By inspecting the generated config file for the decentralized test in the CI runner, I found that it had lines like: ``` go: downloading github.com/kairos-io/go-nodepair v0.0.0-20230424150716-d8f0757542c3 go: downloading github.com/kairos-io/kairos/v2 v2.0.3 go: downloading github.com/mudler/edgevpn v0.23.1 go: downloading github.com/mudler/yip v1.0.0 ... ``` This comes from the fact that the first time we run the `main.go` file, the dependencies need to be downloaded. By running `go mod tidy` first, the `go run` command won't print those. Signed-off-by: Dimitris Karakasilis <dimitris@karakasilis.me>
f7a2696
to
6d86ed1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
don't remember the last time I saw these tests green LOL
💪
Fixes #1233