Commit Graph

120 Commits

Author SHA1 Message Date
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
Richard Cox e3143f6164 Port drone build tasks to gh workflows + actions
- Remove old drone build tasks (note - FOSSA will not be ported at this time, discussed in slack)
- create generic setup composit action which can be used by multiple workflows
- create generic lint, i18n-lint and unittest composit action which can be used by multiple workflows
- create generic build-and-upload workflow which can be used by multiple workflows
- trigger build-and-upload on merge to specific branch (TBD)
- trigger build-and-upload on specific tags

Also
- changed name of yarn install:ci as it was used outside of ci

Note
- I'd have liked to group together the workflows used by the build, but things like workflow subfolders
aren't supported
2024-04-25 13:45:11 +01:00
Neil MacDougall c4c7d9e02d
Pin rancher backend image version for e2e tests (#10859)
* Pin rancher backend image version for e2e tests

* Try older image
2024-04-22 17:58:23 +01:00
Neil MacDougall c116777dc3
Zube migration: Update script, update workflow and remove Zube workflow (#10855) 2024-04-22 16:34:24 +01:00
Neil MacDougall 3231fc1962
Update regions list and add script to sync it (#10799) 2024-04-12 20:25:36 +01:00
Richard Cox f2e229eca0 Move e2e build out from each e2e step to a single pre e2e job
- also use yarn cache
2024-03-25 10:32:02 +00:00
Phillip Rak 69c71cfea3 Target `v2.9-head` for e2e runs
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-03-15 16:18:42 -07:00
Phillip Rak 201b53cb34 Target `v2.9-a83e8c5526b54153aee0edbc2dc7b6d8ea982bec-head` for e2e runs
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2024-03-14 14:55:31 -07:00
Neil MacDougall 7ef50a1309
Add script and CI job to check that all e2e tests have tags (#10578)
* Add script and CI job to check that all e2e tests have tags

* Fix script name

* Add tags to test that does not have them
2024-03-08 15:16:04 +00:00
Neil MacDougall 010f1403ab
Add zube migration script (WIP) (#10534)
* Add zube migration script

* Add GitHub Projects PR workflow

* Add initial workflow to test token access
2024-03-05 14:31:28 +00:00
Phillip Rak e700243ba6
Merge pull request #10189 from rak-phillip/chore/2.9/update-environment
Bump rancher version to `v2.9-head` for e2e scripts
2024-01-04 19:42:23 -07:00
Phillip Rak 52c39e2038 Bump rancher version to `v2.9-head` for e2e scripts
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2023-12-20 10:40:01 -07:00
Neil MacDougall c5f5c9b0cf
Add support for replaying network requests from a captured HAR file (#10149)
* Add support for replaying from har file

* Fix merge

* Improvements

* Add export and folder support

* Minor tidy ups

* Fix lint

* Add doc

* Update doc with correct fallback HTTP status code

* Fix typo
2023-12-20 16:39:00 +00:00
Giuseppe Leo e92b03943b
E2E job parallelization by user role and functionality (#9887)
* Create matrix for E2E job

* Create utility for mapping skipped tests for given dirs

* Allow to filter any dir for given env vars

Add Rancher setup phase in test CI

Restore skip setup variable for other checks

* Cypress config cleanup

* Avoid use of tags for setup test

Add setup tag

* Add specs dir to the matrix

Correct matrix to use each role

Add tag prefix on command

* Correct coverage path

* Simplify cypress utility

* Implement only env var filtering logic

Update env var filtering with a menageable definition

Update CI to filter paths by new logic

Reorganize tests file tree

Add tags for each section

Combine roles and features specs

Update new specs to the tag format

Grouping tags

Fix issues with specs and admin spec/username for login parallelization

Fix issue pre-pending @ character

Remove coupling

Remove Docker stop

Enable all the tests in groups

Allow E2E matrix to fail with strategy flag fail-fast

* Add role for setup in combination to features

* Change tag AND to OR (space instead plus)

* Exclude non tagged tests instead of skip

* Correct standard user name

* Use object for matrix definition; Restore usernames for tests; Remove hackish tag for role

* Pair matrix role tag to multiple matrix features

* Disable failing tests

* Move diagnostic from extension to generic

* Remove build dashboard flag for setup

* Correct screenshot naming to match coverage file naming

* Move Cypress utils out of shell

* Remove View API check for fleet

* Add documentation

* Update skip logic and documentation

* Update env template
2023-12-12 13:07:54 +01:00
Richard Cox 01bacaf5a9
Temporary fix for flaky tests (#9718)
* Only run flaky tests

* Comments, minor change

* Optionally build UI

* Give horrible `wait`s a try

* disable cov coverage if no instrumented code

* fix if

* debug, fix

* attempt to return 0 in all cases

* Tidying up
2023-11-13 13:34:44 +00:00
Richard Cox 0df75e6ba9 Remove broken release process that creates a PR in rancher/rancher
- the pr created for rancher/dashboard somehow conflicted with the pr created by rancher/ui
- so pr creation is manual at the moment
- someone outside the team is working on another method of automation
2023-10-17 10:39:26 +01:00
Richard Cox d5ed805086 Bump the rancher version used in e2e tests to 2.8 2023-09-28 14:01:04 +01:00
Richard Cox 317a328ac5 Remove docker files
- Dockerfile
  - used by drone to build rancherlabs/dashboard (which is private)
  - basically running dashboard in a container
- Dockerfile.dev
  - have a strong suspicion this might be rancher/dashboard:dev (which doesn't exist or is private)
  - yarn installs, yarn devs
2023-09-26 13:27:18 +01:00
yonasberhe23 2c18619932
ui automation: update workflow: create standard user, add tags to tests (#9029)
* add standard user to workflow

* update create user logic and added cypress-grep plugin

* added admin and standard user tags to tests, updated workflow in test.yaml

* update workflow file and added adminUser tag to setup

---------

Co-authored-by: Yonas Berhe <yberhe@Yonass-MacBook-Pro.local>
2023-07-04 11:17:24 -07:00
Richard Cox a3f17e3f6d Use the latest rancher/ui build in e2e tests
- given we now serve the (built) dashboard files we set CATTLE_UI_OFFLINE_PREFERRED=true
- this means the embedded rancher/ui is used
- so now we do something similar to ensure the latest rancher/ui is used
2023-06-27 11:16:54 +01:00