Brad Davidson
0504e44d26
Move windows build to separate job
...
Don't block other linux steps on building the windows binary
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
(cherry picked from commit 20a9a6bfc3 )
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2025-02-10 10:18:23 -08:00
Brad Davidson
bac9166529
Add windows smoke test
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
(cherry picked from commit 3aa24cdde8 )
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2025-02-10 10:18:23 -08:00
Brad Davidson
4ac647041e
Fix linux-specific clientaccess test
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
(cherry picked from commit 0d15457c77 )
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2025-02-10 10:18:23 -08:00
Brad Davidson
7ff3d66e0e
Move Windows compilation test to GH Actions and enable integration/coverage
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
(cherry picked from commit 5c8f2364c4 )
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2025-02-10 10:18:23 -08:00
Derek Nola
286793d12d
Consolidate test utility functions into top level package ( #11711 )
...
* [e2e] Convert RunCmdOnNode to method
* Consolidate e2e variables into TestConfig struct
* Consolidate docker and integration test helper functions
* E2E: Directly count daemonsets, not their pods
* Add missing Context levels for E2E tests
* Migrate e2e.ParsePods to new tests client package
* Run the go test compile test on their respective architectures
Signed-off-by: Derek Nola <derek.nola@suse.com >
2025-02-07 21:18:27 -08:00
Derek Nola
2b7476a35e
Run Docker test on Github Actions arm64 runners ( #11705 )
...
* Build and Run Arm64 Docker Tests
* Compile go tests for both amd64 and arm64
* Use version.sh to determine channel, not git
* Consolidate docker tests into 2D matrix
* Remove old Docker test from Drone and Github Actions
Signed-off-by: Derek Nola <derek.nola@suse.com >
2025-02-07 21:18:27 -08:00
Derek Nola
2fa9b95230
Convert snapshotrestore from E2E to Docker test
...
Signed-off-by: Derek Nola <derek.nola@suse.com >
2025-02-07 21:18:27 -08:00
Derek Nola
e20b4b947c
Upload E2E logs on failure as GHA artifacts ( #11514 )
...
* Upload E2E journald logs as artifacts in GHA
Signed-off-by: Derek Nola <derek.nola@suse.com >
* Improve fork information for parent extraction
Signed-off-by: Derek Nola <derek.nola@suse.com >
---------
Signed-off-by: Derek Nola <derek.nola@suse.com >
2025-01-13 12:22:34 -08:00
Derek Nola
e0e8e1a1ec
Convert legacy docker tests from bash to golang ( #11357 )
...
* Convert the following Docker test from Bash to Go
- basics
- bootstraptoken
- cacerts
- compat -> skew
- etcd
- lazypull
- upgrade
Signed-off-by: Derek Nola <derek.nola@suse.com >
* Add Docker go tests to GHA
* Prebuild K3s Go Tests
* Strip go test binaries to reduce size
* Handle complex branch options
Signed-off-by: Derek Nola <derek.nola@suse.com >
* Implement basic golang tests on arm and arm64 pipelines
Signed-off-by: Derek Nola <derek.nola@suse.com >
2025-01-13 12:22:34 -08:00
Vitor Savian
fffd3b580b
Add auto import images for containerd image store
...
* Add auto import images for containerd image store
* Add auto import images
Signed-off-by: Vitor Savian <vitor.savian@suse.com >
* Fix EOF error log when importing tarball files
Signed-off-by: Vitor Savian <vitor.savian@suse.com >
* Delaying queue
Signed-off-by: Vitor Savian <vitor.savian@suse.com >
* Add parse for images
Signed-off-by: Vitor Savian <vitor.savian@suse.com >
* Fix build for auto import in 1.29
Signed-off-by: Vitor Savian <vitor.savian@suse.com >
---------
Signed-off-by: Vitor Savian <vitor.savian@suse.com >
2025-01-11 01:57:46 -03:00
Derek Nola
008981138b
[Release-1.29] Backport E2E GHA fixes ( #11229 )
...
* Fix Github Actions for Ubuntu-24.04 (#11112 )
* Fix vagrant/libvirt composite action for ubuntu-24.04
* Don't ignore changes to internal actions
* Fix unit tests for ubuntu 24.04, new lsof version
* Pin os version for unit and E2E workflows
Signed-off-by: Derek Nola <derek.nola@suse.com >
* Pin vagrant to older version to avoid known issue 13527
Signed-off-by: Derek Nola <derek.nola@suse.com >
---------
Signed-off-by: Derek Nola <derek.nola@suse.com >
2024-11-04 20:26:42 -08:00
Derek Nola
9510ac25fe
[Release-1.29] Revert "Make svclb as simple as possible" ( #11114 )
...
* Revert "Make svclb as simple as possible"
This reverts commit 1befd65a0a .
Signed-off-by: manuelbuil <mbuil@suse.com >
Signed-off-by: Derek Nola <derek.nola@suse.com >
* Pin E2E tests to 22.04
Signed-off-by: Derek Nola <derek.nola@suse.com >
---------
Signed-off-by: manuelbuil <mbuil@suse.com >
Signed-off-by: Derek Nola <derek.nola@suse.com >
Co-authored-by: manuelbuil <mbuil@suse.com >
2024-10-15 22:35:21 -07:00
manuelbuil
56a9685011
Make svclb as simple as possible
...
Signed-off-by: manuelbuil <mbuil@suse.com >
2024-10-11 15:50:52 +02:00
Brad Davidson
11c49f0c0b
Add ca-cert rotation integration test
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
(cherry picked from commit b1a42e5d43 )
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2024-10-10 11:40:54 -07:00
Derek Nola
9d86578a59
Fix caching name for e2e vagrant box ( #10695 )
...
Signed-off-by: Derek Nola <derek.nola@suse.com >
2024-09-06 14:58:22 -07:00
Derek Nola
a701519354
Update to newer OS images for install testing ( #10681 )
...
* Update to newer OS images for install testing
* Update vagrant images used for E2E
Signed-off-by: Derek Nola <derek.nola@suse.com >
2024-09-06 14:58:22 -07:00
Brad Davidson
c0877f34b6
Tag PR image build as latest before scanning
...
This is less effort than passing the tag across steps 🤷♂️
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
(cherry picked from commit 378edb939d )
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2024-09-06 11:30:37 -07:00
Brad Davidson
ebc4e505ea
Fix /trivy action running against target branch instead of PR branch
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
(cherry picked from commit 3d6e4a793a )
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2024-09-06 11:30:37 -07:00
dependabot[bot]
bf1d3aa6ef
Bump aquasecurity/trivy-action from 0.20.0 to 0.24.0 ( #10795 )
...
Bumps [aquasecurity/trivy-action](https://github.com/aquasecurity/trivy-action ) from 0.20.0 to 0.24.0.
- [Release notes](https://github.com/aquasecurity/trivy-action/releases )
- [Commits](https://github.com/aquasecurity/trivy-action/compare/0.20.0...0.24.0 )
---
updated-dependencies:
- dependency-name: aquasecurity/trivy-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
(cherry picked from commit dacc636cf4 )
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2024-09-06 11:30:37 -07:00
Derek Nola
0c26a936f5
Add trivy scanning trigger for PRs ( #10758 )
...
Signed-off-by: Derek Nola <derek.nola@suse.com >
(cherry picked from commit fa6940d03d )
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2024-09-06 11:30:37 -07:00
Derek Nola
25dae66203
[Release-1.29] July Test Backports ( #10508 )
...
* Move test-compat to GHA (#10414 )
Signed-off-by: Derek Nola <derek.nola@suse.com >
* For E2E upgrade test, automatically determine the channel to use (#10461 )
Signed-off-by: Derek Nola <derek.nola@suse.com >
2024-07-15 10:45:45 -07:00
Brad Davidson
2c50f4aa5b
Fix embedded mirror blocked by SAR RBAC and re-enable test
...
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
2024-05-31 09:16:55 -07:00
Derek Nola
6624273a97
Fix embeddedmirror test
...
Signed-off-by: Derek Nola <derek.nola@suse.com >
2024-03-28 10:12:54 -07:00
Derek Nola
c98ca14198
Add wasm test to e2e matrix
...
Signed-off-by: Derek Nola <derek.nola@suse.com >
2024-03-28 10:12:54 -07:00
Derek Nola
41377540fd
Use ubuntu latest for better golang caching keys ( #9711 )
...
Signed-off-by: Derek Nola <derek.nola@suse.com >
2024-03-27 09:19:56 -07:00
Derek Nola
21c170512c
Fix e2e vagrant cacheing
...
Signed-off-by: Derek Nola <derek.nola@suse.com >
2024-03-08 10:54:28 -08:00
Derek Nola
aea81c0822
Run docker tests in E2E GH Action
...
Build image with new input option
Run most of the basic docker tests in E2E
Signed-off-by: Derek Nola <derek.nola@suse.com >
2024-03-08 10:54:28 -08:00
Derek Nola
9bd4c8a9fc
Bump upload and download actions to v4 ( #9666 )
...
Signed-off-by: Derek Nola <derek.nola@suse.com >
2024-03-07 15:56:43 -08:00
Derek Nola
da7312d082
Convert snapshotter test in e2e test
...
Signed-off-by: Derek Nola <derek.nola@suse.com >
2024-03-06 14:04:05 -08:00
Derek Nola
d022a506d5
Migrate E2E tests to GitHub Actions
...
Signed-off-by: Derek Nola <derek.nola@suse.com >
2024-03-06 14:04:05 -08:00
Derek Nola
75ccaf9942
Allow non-sudo vagrant
...
Signed-off-by: Derek Nola <derek.nola@suse.com >
2024-03-06 14:04:05 -08:00
Derek Nola
29c73e6965
Fix setup-go typos ( #9634 )
...
* Fix setup-go typos
Signed-off-by: Derek Nola <derek.nola@suse.com >
2024-03-04 10:18:36 -08:00
Derek Nola
138a107f4c
Reenable Install and Snapshotter Testing ( #9601 )
...
* Use regular ubuntu runners for install and snapshotter tests
* Workaround for vagrant box caching
* Update testing readme
Signed-off-by: Derek Nola <derek.nola@suse.com >
2024-03-04 09:11:04 -08:00
Derek Nola
3e948aa0d5
Correct formatting of GH PR sha256sum artifact ( #9472 )
...
* Conform to how the install script wants the sha256sum name
* Remove no-op sed for GH PR install
Signed-off-by: Derek Nola <derek.nola@suse.com >
2024-03-01 08:45:01 -08:00
Derek Nola
8f777d04f8
Better GitHub CI caching strategy for golang ( #9495 )
...
Signed-off-by: Derek Nola <derek.nola@suse.com >
2024-03-01 08:41:09 -08:00
Manuel Buil
736fb2bc8d
Add an integration test for flannel-backend=none
...
Signed-off-by: Manuel Buil <mbuil@suse.com >
2024-03-01 12:08:09 +01:00
Derek Nola
fa37d03395
Update install test OS matrix ( #9480 )
...
* Remove old cgroupsv2 test
* Consolidate install test clauses into functions
* Unpin vagrant-k3s plugin version, run latest
* Add ubuntu-2204 as install test, remove ubuntu-focal
* Update nightly install matrix
* Move to Leap 15.5
* Consolidate vagrant box caching key to improve cache hits on all VM testing
Signed-off-by: Derek Nola <derek.nola@suse.com >
2024-02-29 15:41:56 -08:00
Derek Nola
922c5a6bed
Unit Testing Matrix and Actions bump ( #9479 )
...
cache is now on by default
Signed-off-by: Derek Nola <derek.nola@suse.com >
2024-02-29 15:41:05 -08:00
Brooks Newberry
3e13e3619c
Update Kubernetes to v1.29.2 ( #9493 )
...
Signed-off-by: Brooks Newberry <brooks@newberry.com >
2024-02-15 12:48:20 -08:00
Derek Nola
b1323935dc
Add codcov secret for integration tests on Push ( #9422 )
...
Signed-off-by: Derek Nola <derek.nola@suse.com >
2024-02-08 09:01:36 -08:00
dependabot[bot]
5c92345423
Bump codecov/codecov-action from 3 to 4 ( #9353 )
...
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action ) from 3 to 4.
- [Release notes](https://github.com/codecov/codecov-action/releases )
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md )
- [Commits](https://github.com/codecov/codecov-action/compare/v3...v4 )
---
updated-dependencies:
- dependency-name: codecov/codecov-action
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-02-06 16:33:59 -08:00
Derek Nola
fcd1108e73
Add ability to install K3s PR Artifact from GitHub ( #9185 )
...
* Add support for INSTALL_K3s_PR
Signed-off-by: Derek Nola <derek.nola@suse.com >
* Add sha256sum to K3s PR artifacts
Signed-off-by: Derek Nola <derek.nola@suse.com >
* Update install sha256sum
Signed-off-by: Derek Nola <derek.nola@suse.com >
* Revert whitespace changes
Signed-off-by: Derek Nola <derek.nola@suse.com >
---------
Signed-off-by: Derek Nola <derek.nola@suse.com >
2024-02-06 16:30:12 -08:00
caroline-suse-rancher
cef7e9e2dc
New stale action
...
This PR adds a new github stale action. This will replace our previous (and now deprecated) stalebot. Two notable differences are that issues will now go stale after 45 days of inactivity, and the most commonly used priority labels have been added for exemption.
Docs and list of inputs for stale action for reference here.
Signed-off-by: caroline-suse-rancher <caroline.davis@suse.com >
2024-01-19 16:04:46 -05:00
Pedro Tashima
d8907ce62c
Update to v1.29.1 ( #9259 )
...
Signed-off-by: Pedro Tashima <pedro.tashima@suse.com >
Co-authored-by: Pedro Tashima <pedro.tashima@suse.com >
2024-01-18 10:15:18 -03:00
dependabot[bot]
9d9fbf4ff4
Bump actions/setup-go from 4 to 5 ( #9036 )
...
Bumps [actions/setup-go](https://github.com/actions/setup-go ) from 4 to 5.
- [Release notes](https://github.com/actions/setup-go/releases )
- [Commits](https://github.com/actions/setup-go/compare/v4...v5 )
---
updated-dependencies:
- dependency-name: actions/setup-go
dependency-type: direct:production
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-01-02 11:04:25 -05:00
Hussein Galal
7101af36bb
Update Kubernetes to v1.29.0+k3s1 ( #9052 )
...
* Update to v1.29.0
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* Update to v1.29.0
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* Update go to 1.21.5
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* update golangci-lint
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* update flannel to 0.23.0-k3s1
This update uses k3s' fork of flannel to allow the removal of
multicluster cidr flag logic from the code
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* fix flannel calls
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* update cri-tools to version v1.29.0-k3s1
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* Remove GOEXPERIMENT=nounified from arm builds
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* Skip golangci-lint
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* Fix setup logging with newer go version
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* Move logging flags to components arguments
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* add sysctl commands to the test script
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
* Update scripts/test
Signed-off-by: Brad Davidson <brad@oatmail.org >
* disable secretsencryption tests
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
---------
Signed-off-by: galal-hussein <hussein.galal.ahmed.11@gmail.com >
Signed-off-by: Brad Davidson <brad@oatmail.org >
Co-authored-by: Brad Davidson <brad@oatmail.org >
2023-12-19 05:14:02 +02:00
Johnatas
3f23723035
Update to v1.28.4 ( #8920 )
...
Signed-off-by: Johnatas <johnatas.santos@suse.com >
2023-11-22 15:01:45 -03:00
Johnatas
6aef26e94b
Update to v1.28.3 ( #8682 )
2023-10-19 16:54:48 -07:00
Chris Wayne
b010c941cf
Fix .github regex to skip drone runs on gh action bumps ( #8433 )
...
* Fix .github regex to skip drone runs on gh action bumps
Signed-off-by: Chris Wayne <cwayne18@gmail.com >
2023-09-26 08:46:37 -04:00
Johnatas
6330a5b49c
Update to v1.28.2 and go v1.20.8 ( #8364 )
...
* Update to v1.28.2
Signed-off-by: Johnatas <johnatasr@hotmail.com >
* Bump containerd and stargz versions
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
* Print message on upgrade fail
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
* Send Bad Gateway instead of Service Unavailable when tunnel dial fails
Works around new handling for Service Unavailable by apiserver aggregation added in kubernetes/kubernetes#119870
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
* Add 60 seconds to server upgrade wait to account for delays in apiserver readiness
Also change cleanup helper to ensure upgrade test doesn't pollute the
images for the rest of the tests.
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
---------
Signed-off-by: Johnatas <johnatasr@hotmail.com >
Signed-off-by: Brad Davidson <brad.davidson@rancher.com >
Co-authored-by: Brad Davidson <brad.davidson@rancher.com >
2023-09-19 10:18:47 -03:00