Commit Graph

28 Commits

Author SHA1 Message Date
Alexandre Alves 49f6fb62b5
re-enable extension build check for observability extension (#15634) 2025-10-15 16:38:36 +01:00
Alexandre Alves c6a66fdcaf
disable test extension build for stackstate due to issue with node version bump (#15629) 2025-10-15 11:52:06 +01:00
Richard Cox 9fe21d8143 Fix disabled extension test involving PaginatedResourceTable
- this previously failed, re-enabled and resolved issues
2025-09-25 12:24:36 +01:00
Alexandre Alves 95c85a4471
comment out capi extension from test-plugins-build since it's still WIP (#15485)
* comment out capi extension from test-plugins-build since it's still WIP

* fix pr
2025-09-23 09:26:02 +01:00
Alexandre Alves 2b51d4af8d
re-enable extension checks (#13795)
* re-enable extension checks

* re-enable extension checks
2025-03-19 09:26:49 +00:00
Alexandre Alves 13496483fe
keyboard navigation for cluster badge appearance modal (#13021)
* working on key nav for cluster badge appearance

* color input is now key nav friendly + tooltip works on focus + trying to get focus trap to work properly

* remove console logs + add focus trap to card component with prop control + fix element for config badge button

* fix lint problem

* fix TS errors on pkg build

* remove step of building the skeleton app in the check-plugins-build step, which imo doesnt serve any purpose whatsoever

* add focus-trap as a shell dependency + revert publish script change

* remove focus-trap directive + improve chaining event handler modifiers

* pin focus-trap to 7.6.2 + replace link for button on cluster explorer main page + remove unused ev

* address pr comments
2025-01-24 09:33:00 +00:00
Phillip Rak 8171b5fbab Disable capi, stackstate, and harvester extension tests
Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-01-21 14:03:38 -07:00
Phillip Rak 2bb17c8923 Remove neuvector from `test-plugins-build.sh`
Neuvector builds currently fail with the error

```
  ERROR  Failed to compile with 1 error5:49:49 PM

 error  in utils/common.ts:85:23

TS2694: Namespace 'dayjs' has no exported member 'ManipulateType'.
    83 |   base: string,
    84 |   interval: number,
  > 85 |   intervalUnit: dayjs.ManipulateType,
       |                       ^^^^^^^^^^^^^^
    86 |   pattern = "YYYYMMDDHHmmss"
    87 | ) {
    88 |   // base format: "YYYYMMDDHHmmss"
```

It appears that neuvector might require some updates that are unrelated to bumping Vue to 3.5.x. We will disable this test until neuvector can be patched.

Signed-off-by: Phillip Rak <rak.phillip@gmail.com>
2025-01-16 14:28:43 -07:00
Richard Cox f980283813
Add server-side pagination to cluster explorer lists (#11672)
* cluster list now uses resource table

* New PaginatedResourceTable

* WIP

* add context to pag setting

* tidying up

* Add server-side pagination to cluster explorer events and general events list

* Servier-side pagination for catalog apps, cluster repo and operation

* Servier-side pagination for Service --> HPA, inmgress, services

* Server-side pagination for home page clusters list and side bar clusters

- Functional Changes
  - SSP now works after vue3 bump
  - Home Page Clusters list now uses server-side pagination
  - Side Bar clusters list now uses server-side pagination
  - Wire in now supported sorting / filtering by id and name used for table columns
  - Allow pagination to be enabled given a specific context
  - Call findPage without persisting to store

- New Pagination Tools
  - PaginatedResourceTable - Convenience Component, wraps ResourceTable with pagination specific props
  - PaginationWrapper - Convenience class to handle requests for resources and updates to them (avoiding store)

- Regressions
  - Side Nav menu ready state was `mgmtCluster.isReady && !pCluster?.hasError`, now ???

* fixes after merge. apply PagResTable to node list, vue3 fixes

* - Fix issue where list components containing PaginatedResourceTables would incorrectly fetch all resources anyway
- convert reminaing storage lists

* policy section

* fix async button in manual refresh mode

* fgh

* aaaaa

* Server-side pagination for home page clusters list and side bar clusters

- Functional Changes
  - SSP now works after vue3 bump
  - Home Page Clusters list now uses server-side pagination
  - Side Bar clusters list now uses server-side pagination
  - Wire in now supported sorting / filtering by id and name used for table columns
  - Allow pagination to be enabled given a specific context
  - Call findPage without persisting to store

- New Pagination Tools
  - PaginatedResourceTable - Convenience Component, wraps ResourceTable with pagination specific props
  - PaginationWrapper - Convenience class to handle requests for resources and updates to them (avoiding store)

- Regressions
  - Side Nav menu ready state was `mgmtCluster.isReady && !pCluster?.hasError`, now ???

* Iteration

Note - prov clusters is broken (only fetches local) due to blocking pr. breals
- notPinned list

* Fix dupe inStore
- remove from resource list, put in resource-fetch (used also by pag res table)

* Fix dupe inStore
- remove from resource list, put in resource-fetch (used also by pag res table)

* Two fixes
- changes namespaces kicked of side nav cluster requests (thought pinnedIds changed)
- fix generic lists re-fetching given ns filter changes (they don't have namespaced arg)

* fixes / updates

* testing/tidying

* WIP - Rest of workload lists

* finish off workloads

* tidying up

* fix non-generic list filtering by namespace

* remove comment, backport fix

* test fixes

* E2E: Ensure we wait for cluster entries to exist before clicking on them

* backport fix for local/api filtering

* Remove debug code

* Changes after review

* e2e fixes / debugging

* More e2e fixes

* More e2e fixes

* More e2e fixes

* Fix generic pages that filter on pagination

* Attempt to fix flaky vai test

* Fix after merge from master

* Updates following new indexed files

* Fix lint and test

* Changes given real cluster tests
- general fixes
- correct issue were sorting prov clusters on mgmt cluster props (issue in master as well...)
- bit the bullet, we now don't fetch all mgmt clusters on dashboard visit.
  - there could be knock on affects, but we'd need to remove it sometime in 2.11....

* Fix issues with diplaying rke1 data in home page
- includes https://github.com/rancher/dashboard/pull/12881

* Fix unit tests

* remove invalid sort/filter type

* Running through new indexed fields

* fix unit tests

* lint fixes

* Fixes after small review

* lint

* Test for check-plugin-gates pkg build from shell

* e2e fixes

* Testing new indexed fields with dev image

* tidyuing up imports in hope to fix ts error in check-plugins gate

* Fix failing check-plugin-gates
- caused by shell/scripts/test-plugins-build.sh importing list/catalog.cattle.io.clusterrepo.vue
- the component had been updated to a TS component
- check-plugin build outputs TS errors for a component file imports
- vs code shows no errors for imported file

* tidying up a smidge

* Many tweaks
- Remove final todo's
  - includes fix for service type clusterip/headless overlap
- Removed ununused ENDPOINT column (note ENDPOINT formatter used in other columns)
- Testing freshly added index fields

* Improve location of new place where componentWillFetch is set

* fix lint, comment updated

* Fix failing e2e tests
- fix cluster dashboard events test
- fix and greatly improve flaky events test
- fix hpa test
- functional fixes
  - fix sorting/filtering events by object type
  - fix hpa columns
2025-01-07 15:13:42 -07:00
Alexandre Alves 0dbb8bdc36
add harvester extension to our extensions to check with the test-plugin-build step (#12842) 2024-12-10 12:01:07 +00:00
Alexandre Alves c36fe42591
add missing checks for extensions that have now been migrated to vue3 (#12731)
* add missing checks for extensions that have now been migrated to vue3

* add -W flag to ignore workspace root check
2024-12-09 13:45:30 +00:00
Alexandre Alves 783ba1f9e5
re-enable extension checks for elemental and kubewarden in test-plugins-build (#12597)
* re-enable extension checks for elemental and kubewarden in test-plugins-build

* remove @rancher/shell package instead of removing the whole yarn.lock

* comment out wfs for faster pipeline runs + tweak test-plugins-build code

* comment out wfs for faster pipeline runs + tweak test-plugins-build code

* revert wfs runs that were disabled
2024-11-14 18:06:38 +00:00
Jordon Leach c171255899
Ensure @rancher/shell version using tags (#11758)
* Ensure @rancher/shell version using tags

Enable corepack for extension builds

Migrate creators outside of shell dir

Update creators path - switch to npm publish

* Add NPM_REGISTRY to publish args

* Fix creators_dir path - Bump ext package

* Add update package version function in test script

* Fix gitignore file name

* Add .yarnrc.yml for skeleton - revert node versions
2024-08-30 19:10:19 -04:00
Alexandre Alves 138601c6a6
Update publish shell workflow to allow for independent release of either shell or creators packages (#11697)
* add step for checking tag version matching + remove unused tmp_dir var + update creators version to match what was published on npm

* add missing env var + script cleanup

* updated publish-shell script to allow for independent publish of shell or creators pkgs via tag + minor changes to have it work on a PR just for testing

* update string

* update string

* update string check with sed

* revert wf and publish-shell to correct form

* address pr comments

* fix TAG export

* stringify case strings + fix publish-shell script with path for creators pkg publish

* re-trigger gates

* add check if npm tag should be pre-release
2024-08-30 14:28:53 +01:00
cnotv ec73efb9f4 Check-plugin: Removing extension integration due lack of update 2024-08-22 16:09:54 -07:00
Jordon Leach 21120630f7
Consolidate extension creators into one package (#11605)
* Consolidate extension creators into one package

* PR updates

* Fix test-plugins-build script to match new creator - remove dependency install step
2024-08-22 11:18:49 -04:00
Evgeniya Vashkevich 24e2718577
[INT] Added CAPI ui to the list of extensions to test (#11398) 2024-08-08 07:03:54 -07:00
Alexandre Alves 0092617300
improve shell api gating (#11164)
* improve shell api gating

* update logic

* minor update

* populate extensions API version as latest shell version

* remove semver dependency on creators/pkg

* update script

* change

* change

* add default shell API version if there is no annotation in the metadata for gating it

* remove default for shell API in uiplugins + fix creators/pkg init script to read shell version from node_modules

* add mechanism to prevent shell pkg folder check for creators/pkg in our pipelines

* cleanup comment

* bump shell version on master
2024-07-01 13:58:08 +01:00
Nancy 374a839720
refactor extension uninstall tests (#11286)
* split extension uninstall tests by extension so retries work

* disable failing fleet test

* comment out test instead of using .skip

* stop running kubewarden-ui tests in dashboard ci
2024-06-21 14:05:45 -07:00
Giuseppe Leo 79af5ef829
Upload artifacts as output of check-plugins check for debugging (#10118)
* Upload artifacts

* Do not remove files

* Correct node_modules exclution

* Restrict to failure and 2 days

* Adding condition for cleanup; Added log with path

* Add eslintignore for kubewarden and elemental

* Update Regex for versions

* Include -rc and multiple digits for alpha

* Format indentation fix
2023-12-11 22:04:49 +01:00
Alexandre Alves 0abdbfa903
improve test plugins build script (#10102)
* improve test plugins build script to test extension build with newly built version of the shell package

* uncomment code

* uncomment code

* fix clone permissions issue + add missing registry variables

* revert changes

* revert changes

* address pr comments + delete unwanted code

---------

Co-authored-by: Alexandre Alves <aalves@Alexandres-MacBook-Pro.local>
2023-12-06 14:03:51 +00:00
Neil MacDougall f69dcff49d
Ensure build fails when it fails! (#8201) 2023-02-17 17:09:29 +00:00
Neil MacDougall b73940b7e3 Need to build after yarn install 2022-12-01 16:59:08 +00:00
Neil MacDougall 7bac916f96 Fix test plugins script to avoid version issues with rancher components lib 2022-12-01 16:51:11 +00:00
Neil MacDougall 4abc94a940
Fix plugin pkg tsconfig (#6930)
* Fix pkg tsconfig

* Ensure test package is removed

* Fix package versions

* Add update package and refine typescript configuration

* Fix lint issues

* Fix issues with creators

* Install dependencies

* Fix e2e

* Include components for standalone app build

* Fix issue with yarn linking shell

* Fix for yarn linking

* Fix for lstat on non-existing file

* Fix lint issue when running with yarn link

* Update TextAreaAutoGrow.vue

* Fix test script build

* Fix test script issue

* Fix script on mac
2022-11-24 10:03:42 +00:00
Neil MacDougall 0eacd47718
Ensure we use a version number (#6792) 2022-09-01 14:45:59 +01:00
Neil MacDougall 8b02a3fbf7 Fix plugin check script 2022-09-01 13:57:07 +01:00
Neil MacDougall c614af2173
Plugins fixes and check GitHub action (#6370)
* Plugins fixes and check GitHub action

* Update check-plugins.yaml

* Update check-plugins.yaml

* Debug script

* Debug script

* Make sure verdaccio check does not fail script

* Allow errors when checking

* Fixes for CI

* Fix directory cleanup

* Debug

* Add yarn install for in-tree check

* Fix lint issues
2022-07-20 13:07:38 +01:00