Commit Graph

139 Commits

Author SHA1 Message Date
Phillip Rak 305753d6b4 Update UI e2e version when branching for release
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-09-29 16:13:33 -07:00
Richard Cox 4070270b35
Improve e2e tests, add but don't use K3S scripts (#14854)
* Run e2e tests in k3s + helm rather than docker

* collect logs from k3s, use head and newer kube version, check for webhook up when starting rancher

* use latest rc chart

* debugging

* use lower kube version

* fixes to brittle tests, log fixes, enable oidc provider

* fix logs

* test tweaks

* use alpha repo, rc in stable is too old. also wait for capi service

* improvements

* debug

* rtryyr

* don't run settings e2e tests - they leave cluster with non-original values

* fix settings tests, fix CRD test (worked by luck before)

* fix fetch of initial settings

* more settings fixes, crd tweak

* update settings
- it uses useDefault as the reset, which was the issue
- leave tests as is (mosty) and just reset them all at the end

* asd

* adsad

* more settings fixes

* remove problem code

* use toms debug image for api failures

* sdfdsf

* Use 'head' chart

* Use audit log

* enable browser logs for beforeAll and afterAll

* debug for checking racnher pod containers, increase audit log level

* don't overwrite logs...

* output improvements, move position of audit log `set`

* use new (docs pending) flag to enable audit log

* extra logging now in rancher/rancher, use head image (should remove a lot of false positives around fleet)

* improve comment

* combine test artifacts

* tweaks, and another data point for 'resolved' tests

* attempt to get previous logs (audit log previous might not exist)

* remove k logs --previous, use logs deployment/name

* re-enable all tests

* tidyng up

* better logs, including crashed containers

* k3s updates... but run in docker

* change lookup from anything containing 1 to `1`

* changes following pr review

* remove un-needed chrome pin
- this commented out section was a c+p from the main e2e section
- the main e2e section comments this out
- both should use a single repo gh action, won't do that now though
2025-08-22 09:38:08 +01:00
Phillip Rak 28acc2502e Script the updates for e2e release versions
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-08-11 16:53:49 -07:00
Richard Cox 78e4196ece
Merge branch 'master' into set-server-url 2025-07-08 11:06:17 +01:00
Richard Cox 1c9e290786
Unpin rancher version in e2e tests, update tests following vai on by default (#14498)
* WIP - just testing how are suite behaves with vai on

* Use common method to create query params for steve api requests

* with vai on there's no workload page... so update tests

* flip back hom page urls

* more fixes

* More fixes

* E2eRequestUtils --> RequestUtils, smarter isVaiCacheEnabled

* better method name, fix a11y tests

* disable vai for vai tests

* fetching the setting gives a 404. hardcode for the moment

* give up, make method async

* use pathWithDefaultSteveParams everywhere

* rename grep tag vai to noVai (matching what the tests run)

* fixes

* Allow more time for rancher to restart after toggling a ff

* fix network policies

* Changes following review

* replace pathWithDefaultSteveParams with ?*

* fixes

* Remove temp code that enables FF, should be defunct once enabled by default

* unpin, improve script

* on failure upload rancher logs to job artifacts

* fix

* test specific rancher commit, and rancher debug level

* try head again following overnight fixes

* Wire in VAI_ENABLED env var (to avoid), fixed isVaiCacheEnabled (no value, use default)

* Standardise references to small image, use `k8s.gcr.io/pause` instead of `nginx:alpine`

* test - see if specific workalods are the sticking point

* reduce impact of cronjob

* reduce impact of cronjob - additional

* Improve e2e tests that spam resource creation/delete
- take gaps when creating resources
- wait for ns deletion (containing resources) to complete before continueing)

* even stricker cron schedule

* update three additional places where workloads spam happens

* fix tag of new @vai tests

* use default count, reduce to min. also removed horrible `while`

* temp fail cronjobs to see logs + recordings

* improvements to noVai test cases, move new utils to commands

* fix flaky compliance and kontainer tests

* proper context, fix lint, fix ingress test

* fix lint
2025-07-02 15:40:14 +01:00
Alejandro Ruiz 6f86e88a91 Set CATTLE_SERVER_URL when running Rancher with Docker 2025-06-30 14:31:23 +02:00
Alexandre Alves aebde5c25f
Rancher as an OIDC provider (#14475)
* Rancher as an OIDC provider (interface and flow)

---------

Co-authored-by: Richard Cox <ricox@suse.com>
2025-06-26 10:39:26 +01:00
Richard Cox 2b2a499691 Pin rancher to a version that should unblock e2e 2025-06-25 11:48:25 +01:00
Richard Cox ab1483b3b9 Add script to locally run e2e tests as per gates 2025-06-25 11:48:03 +01:00
Richard Cox e2b6ef0a95 allow more time for rancher to start up 2025-06-24 16:59:50 +01:00
Neil MacDougall c4606138de
Minor tweaks to cloud update script and GH workflow script (#14477)
* Minor tweaks to cloud update script and GH workflow script

* Fixes
2025-06-13 13:20:52 +01:00
Neil MacDougall 6f23a10248
Add GH Action to run the cloud data sync scripts periodically (#14202)
* Add GitHub action to run cloud data update script

* Does not need node

* Fixes

* ensure we do an npm install

* Fix repository variable

* Fix repository ref

* Fixes

* Add permissions

* Update labels

* Fix commit command

* Add git config

* Tweaks

* Update permissions

* Add back in set -e

* Permissions

* Fix set -e

* Fix PR body

* Speed up node modules install

* Tweak script

* Tweaks

* Fix PR body

* Permissions

* Fix branch delete

* Fix delete

* Tweak to do a rebase

* Set target brach to master

* Force branch push in case old branch exists

* Delete existing branch first

* Improve delete

* Include Azure data sync

* Keep usgov regions
2025-05-30 17:17:37 +01:00
yonasberhe23 17becd3559 unpin e2e tests 2025-05-14 08:09:16 -07:00
yonasberhe23 ec5e91405e pin e2e tests to older version of rancher 2025-05-09 14:39:29 -07:00
Phillip Rak d35c29cc79 Revert: Pin Rancher version to v2.11-2053ce644a31cd8053d1f58e2487154b0b8513b6-head for e2e tests
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-02-06 11:34:14 -07:00
Giuseppe Leo 4a5d2bb056
Allow to skip Cypress dashboard E2E tests using a label or env var (#13146)
* Allow to switch Cypress command with cy2 on env var

* Remove coverage flag

* Restore Cypress dashboard

* Assign env var TEST_DISABLE_DASHBOARD_LABEL based on label presence

* Extend E2E script condition to TEST_DISABLE_DASHBOARD_LABEL

* Correct label term

* Remove unnecessary key and ID for Cypress command

* Correct PR label

* Add echo to display disable method; Add comments

* Add documentation

* Allow GH to set env var from the config
2025-01-20 11:49:33 +01:00
Phillip Rak 60f62107e7 Pin Rancher version to v2.11-2053ce644a31cd8053d1f58e2487154b0b8513b6-head for e2e tests
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-01-14 12:25:23 -07:00
Neil MacDougall cfd00889aa
Migrate AWS script to axios (#12833) 2025-01-06 10:48:26 +00:00
Phillip Rak bfa291f542 Replace `request` with `axios` in har script
`request` is not a Dashboard dependency and has been deprecated.

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-12-05 14:30:12 -07:00
Alejandro Ruiz 79d71c62cc e2e: wait for webhook to be ready 2024-11-07 13:07:01 +01:00
Neil MacDougall e2731ebb08
Fix documentation link check script (#12423) 2024-10-30 14:42:18 +00:00
momesgin f84ac9e0fc
Update rancher image version for e2e tests (#12310)
* update rancher image version for e2e tests

* update package.json's docker local script to use the latest version

* update what's new version to 2.10

* revert unrelated change

* add rancher version variable to reuse + skipping some e2e tests

* revert unnecessary changes in version.spec.ts

* remove typo

* fix version typo

* skip account-api-keys tests

* skip a test in namespace-picker.spec.ts

* update home test to use rancher version variable

* remove 'v' from version number

* fix typo

* fix flaky charts tests

* fix flaky repositories tests

* more precise enabling logic for checkboxes

* lint

---------

Co-authored-by: Mo Mesgin <mmesgin@Mos-M2-MacBook-Pro.local>
2024-10-24 10:46:38 +01:00
Phillip Rak f45c6aece1 Auto-lint
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-10-02 17:28:59 -07:00
Phillip Rak c9ab2cf32d Prefer `axios` over `request-promise-native`
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-10-02 17:28:59 -07:00
Neil MacDougall f5759e4574
Add script to check http links in our translation files (#12048)
* Add doc link checker

* Tidy ups, add git workflow job and fix broken strings

* Fix comments and update workflow to fail on error

* Fix PR review feedback
2024-10-01 09:52:43 +01:00
Neil MacDougall 4c9ad32248
Add a helper script to build and update the dashboard UI in a running container (#11652) 2024-09-30 17:13:12 +01:00
Alexandre Alves 61b6235ff6 script adjustment 2024-08-14 12:56:03 +01:00
Alexandre Alves 97ff592ca5 get back script optimisations + revert small change used to trigger workflow + fix path elemental.po 2024-08-14 12:36:12 +01:00
Alexandre Alves e6cc196f40 finalized workflow + remove echos from e2e-docker-start + working on elemental spec 2024-08-14 09:11:12 +01:00
Alexandre Alves 7ed37c7edb echo on e2e-docker-start 2024-08-14 09:11:12 +01:00
Alexandre Alves 486351c2e9 adjust e2e test run to pass spec + adjust add of main extensions repo 2024-08-14 09:11:07 +01:00
Alexandre Alves 8f6433b4f2 test matrix for multiple envs 2024-08-14 09:10:13 +01:00
Alexandre Alves 169d8fa1f0 script adjustment/fix 2024-08-14 09:10:13 +01:00
Alexandre Alves b0211fff11 script adjustment/fix 2024-08-14 09:10:13 +01:00
Alexandre Alves befd075ac1 Revert "script adjustment/fix"
This reverts commit 48a13ef3554da045850f88b43ace5edfee99e03d.
2024-08-14 09:10:13 +01:00
Alexandre Alves 320d53b29b script adjustment/fix 2024-08-14 09:10:13 +01:00
Alexandre Alves c9eda1eef3 script adjustment/fix 2024-08-14 09:10:13 +01:00
Alexandre Alves 104e80c75c script adjustment 2024-08-14 09:10:13 +01:00
Alexandre Alves e15ee8947a script adjustment 2024-08-14 09:10:13 +01:00
Alexandre Alves e14a9735b9 script adjustment 2024-08-14 09:10:13 +01:00
Alexandre Alves 00e5db19ff fix bash script + prevent a lot of e2e tests from running 2024-08-14 09:10:13 +01:00
Alexandre Alves 7ca533c172 testing workflow for the first time 2024-08-14 09:10:13 +01:00
Alexandre Alves 872f7deace saving WIP 2024-08-14 09:10:13 +01:00
Giuseppe Leo a2304f462e
Remove or replace all the @nuxt libraries (#11302)
* Update checkout to v4 and bump Node to 16

* Update GHA workflow migration paths

* Removed named exports from Vue files

* Move code outside of the Vue app element

* Remove @nuxtjs/eslint-config-typescript

* Remove @nuxt/types and @nuxt/typescript-build

* Fix import issue with http-proxy-middleware

* Replace @nuxtjs/axios with axios and axios-retry

* Remove @nuxtjs/webpack-profile

* Fix linting issues after Nuxt webpack removal

* Pin resolution for glob after rebase

* Update yarn.lock after rebase

* Fix issue with rancher-components

* Bump rancher-component GHA config to match rebase changes

* Generate yarn file

* Add dependency

* Remove nuxt global var in app template

* Pin version for babel/plugin-proposal-private-methods
2024-08-08 15:31:44 +02:00
Giuseppe Leo d98ca6bd85
Remove Nuxt reference in extensions and creator (#11420)
* Remove nuxt commands

* Remove vsconfig nuxt mention

* Remove Nuxt path as unused

* Remove Nuxt

* Remove creator scripts

* Remove all the nuxt and nuxt.config references

* Restore existing comment about Nuxt

* Add dependency for check-plugin

* Add more missing dependencies

* Update to comments

* Correct comment based on PR review
2024-08-07 18:42:08 +02:00
Giuseppe Leo c36b071e40
Remove every reference to .nuxt global option (#11265)
* Remove unused rehydratation plugin

* Remove any reference to the .nuxt folders

* Remove globalApp nuxt and any reference or use case to nuxt.error

* Replace errors handling with existing fail-whale logic
2024-06-21 11:15:05 +02:00
Neil MacDougall f5431cbbaf
Add i18n string usage checker script (#10805)
* Add i18n string usage checker script

* Fix lint issues

* Add i18n check to GH Action workflow

* Update to node 16

* Update workflow to run script properly

* Allow script to return okay if when there are errors

* Add documentation

* Remove commented code
2024-05-02 20:52:15 +01:00
Richard Cox f459aa9b5d
Merge pull request #10874 from richard-cox/richard-drone-dashboard-pr
Port drone build tasks to gh workflows + actions
2024-05-01 15:25:46 +01:00
Neil MacDougall 53e666994d
Unpin Rancher backend (#10900) 2024-04-30 11:10:27 +01:00
Richard Cox 411a9bf8e8 Changes following review 2024-04-26 13:32:22 +01:00