1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
Commit Graph

40 Commits

Author SHA1 Message Date
Gabriel
dbbb41eca7 chore: switch from latest to hat 9.6.7
Signed-off-by: Gabriel <gaccettola@mirantis.com>
2023-05-23 14:17:18 -04:00
Gabriel
6bf1544ddb chore: Support and switch to using ^9.6.7 version of NPM
Signed-off-by: Gabriel <gaccettola@mirantis.com>
2023-05-23 14:17:18 -04:00
Sebastian Malton
6fc01284d3 chore: Support and switch to using ^9.6.5 version of NPM
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-05-15 15:58:46 -04:00
Iku-turso
1b30b50a7d chore: Try if CI works with an alternate way of specifying npm version
Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
2023-05-04 14:23:22 +02:00
Iku-turso
6f4fb39936 chore: Revert non-working way to specify npm version in ci
This reverts commit 1232445e0a.

Co-authored-by: Gabriel <gaccettola@mirantis.com>
Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
2023-05-04 14:23:22 +02:00
Iku-turso
51f75cc9e0 chore: Make ci "npm ci" using correct version of NPM
Signed-off-by: Iku-turso <mikko.aspiala@gmail.com>
2023-05-04 14:23:22 +02:00
Sebastian Malton
3746e28f95 chore(ci): Fix hash declaration
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-25 09:17:49 -04:00
Sebastian Malton
173a667466
Auto cancel stale workflows (#7494)
* chore: rename workflow file

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* chore: Add concurrency rules for workflows

- test
- Electronegativity
- linter

Signed-off-by: Sebastian Malton <sebastian@malton.name>

---------

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-04-04 07:33:18 -04:00
Sebastian Malton
49f0a1af9c
Remove BaseStore<T> and replace with composition of dependencies (#7002)
* Rename ExtensionStore -> BaseExtensionStore
- The name was too close to ExtensionsStore

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Move ExtensionsStore to new format

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Move ClusterStore to new format

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Move UserStore to new format

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Cleanup types to remove multiple cast locations

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Move HotbarStore to new format

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Move WeblinkStore to new format

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Move FileSystemProvisionerStore to new format

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Update snapshots

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Clean up impl and rename to better describe intent

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Fix remaining type errors

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Fully split apart the enabled extensions storage

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Fully split apart the clusters storage

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Fully split apart the hotbar storage

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Fully split apart the weblinks storage

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Fully split apart the user preferences storage

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Fix crashing

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Fix tests and snapshots

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Fix integration test failures

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Improve typing to prevent errors in the future.

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Cleanup @k8slens/messaging and friends

- To fix type errors

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Fix lint issue

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Fix type errors

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Fix global override not being complete enough causing tests to fail

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Bump memory for unit tests on CI

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Attempt to fix memory issue on CI again

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Fixup test because of new injectables

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Upgrade Jest

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Fix unit tests falling over

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Back out jest config change

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Remove console log

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Update snapshot

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Fix tests by matching equality instead of snapshots

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Fix tests by forcing specific snapshot style

- Ubuntu CI seems to format arrays in snapshots differently than macOS locally

Signed-off-by: Sebastian Malton <sebastian@malton.name>

---------

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-03-28 17:54:25 +03:00
Sebastian Malton
95b8c2aaa6
For unit test workflow to only start on linux (#7254)
Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-03-01 11:12:09 -05:00
Sebastian Malton
b5f0960ee1
Only run unit tests on linux for PRs (#7252)
* Only run unit tests on linux for PRs

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Run unit tests on all systems periodically

Signed-off-by: Sebastian Malton <sebastian@malton.name>

---------

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-03-01 10:30:07 -05:00
Janne Savolainen
a0fb46c3e6
Switch to using NPM workspaces (#7115)
* Switch to using npm over yarn

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>

* Remove reference to `yarn` from documentation

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Enable NPM workspaces

Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>

* Introduce script for installing all dependencies

Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>

* Remove usage of lerna bootstrap for no longer being used

Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>

* Fix build by not bundling libraries for application in node environment (main) as Electron does that

Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>

* Tweak evil static import paths in build of application

Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>

* Consolidate npmrc configs to root since required by workspaces

Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com>

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>

* Make application build not fail for not detecting electron version

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>

* Update package-lock

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>

* Make sure native dependencies are rebuilt for electron

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>

* Remove unused binary for causing trouble when installing dependencies

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>

* Update package-lock

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>

* Disable caching in CI for Windows

Installing Electron in Windows seems to be broken in this regards.

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>

---------

Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
Signed-off-by: Sebastian Malton <sebastian@malton.name>
Co-authored-by: Sebastian Malton <sebastian@malton.name>
2023-02-20 12:48:18 +02:00
Jari Kolehmainen
76c025f04c
Fix ensure-binaries bin (#7078)
* fix ensure-binaries bin

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* fix dist file extension

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* use type: module

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* fix lerna/yarn timeouts on windows

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* increase install dependency retry timeout

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

---------

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2023-02-01 17:13:13 +02:00
Jari Kolehmainen
df6f4b5fa0
Allow to develop & build on Windows powershell (#7081)
* allow to develop & build on windows powershell

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* remove hardcoded bash shell from test workflow

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* use rimraf

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

---------

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2023-02-01 15:58:18 +02:00
Sebastian Malton
a5a374a26d
Remove deleted make target invocation (#7005)
* Remove deleted make target invocation

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Remove last use of make in CI and delete last Makefile

Signed-off-by: Sebastian Malton <sebastian@malton.name>

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2023-01-25 03:33:45 -08:00
Jari Kolehmainen
2657df2293
Restructure to monorepo (#6907)
* wip: restructure to monorepo

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* refactor create-release-pr to a package

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* build fixes

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* github workflow fixes

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* fix typo

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* add webpack-env types to core

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* fix github workflows

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* refactor/fix integration tests

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* lint fix

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* yarn run dev

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* eslint settings for vscode

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* move templates to right package

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* open-lens build fixes

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* integration test fix

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* fix nx task dependencies

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* use bash shell for unit tests in test workflow

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* fix test:unit for windows

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* fix win-ca webpack error in open-lens

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* fix win-ca webpack error in open-lens

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* fix build:app on windows

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* remove ELECTRON_BUILDER_EXTRA_ARGS

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* sync src/ from master

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* remove Makefile from core

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2023-01-24 10:46:26 -08:00
Sebastian Malton
8db81a4731
Remove in-tree extensions to help facilitate a more secure and faster booting lens (#6775)
* Remove kube-object-event-status extension

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Remove cluster-metrics-feature intree extension

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Remove lens-node-menu intree extension

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Remove lens-pod-menu intree extension

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Remove building extensions as part of build

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Remove integration test touching previously bundled code

Signed-off-by: Sebastian Malton <sebastian@malton.name>

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-12-20 07:53:33 -05:00
Sebastian Malton
918a984b3f
Replace deprecated github actions ::set-output (#6509)
* Replace deprecated github actions ::set-output

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Update to newer versions to remove notices

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Fix getting cache dir on windows

Signed-off-by: Sebastian Malton <sebastian@malton.name>

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-11-04 09:25:44 -04:00
Sebastian Malton
ce476b4610
Don't run linux integration tests on the unit matrix entry (#6339)
Signed-off-by: Sebastian Malton <sebastian@malton.name>

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-10-05 16:32:10 -04:00
Sebastian Malton
1a8f80a5e9
Split integration tests into seperate jobs from unit tests for faster CI (#6310)
* Split integration tests into seperate jobs from unit tests for faster CI

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Add logging

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Simplify the matrix

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Remove steps that are part of Makefile

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Fix yml decl

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Switch to using single quotes

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Further clarify the test job names

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Fix invocation

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Attempt to fix traking stdout

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Fix lint

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* And handling for tests failing to start

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Add check for app early exiting

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Add more logging to help with debugging

Signed-off-by: Sebastian Malton <sebastian@malton.name>

* Cleanup attemptStart code

Signed-off-by: Sebastian Malton <sebastian@malton.name>

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-10-04 17:20:21 -04:00
Sebastian Malton
5414fc2580
Disable fail-fast on the testing CI jobs (#6080)
- There are several reasons why these might fail that are irrelavent to
  the other pipelines. So we should just let them continue

Signed-off-by: Sebastian Malton <sebastian@malton.name>

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-08-25 09:49:21 -04:00
Sebastian Malton
4771c7755c
Switch ubuntu CI to ubuntu-20.04 (#6078)
Signed-off-by: Sebastian Malton <sebastian@malton.name>

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-08-23 10:15:30 -04:00
Jari Kolehmainen
db65a89ee0
Electron v15.5.7 (#5562)
* electron v15.5.7

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* change pipelines to use node 16

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* bump @types/node

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* update yarn.lock

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* use fs.ObjectEncodingOptions

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2022-06-08 09:55:17 +03:00
Sebastian Malton
649ca09d70
Switch to always using latest minikube in CI (#5408) 2022-05-18 14:11:56 -04:00
Sebastian Malton
2d7f89ab48
Fix check for making sure dependency upgrades don't break dev mode (#5318) 2022-05-03 15:46:24 -04:00
Sebastian Malton
e4b1fa2f40
Fix make dev on master (#5282)
- Add CI action to validate that future bump PRs don't break dev mode

Signed-off-by: Sebastian Malton <sebastian@malton.name>
2022-04-26 20:18:18 -07:00
Jim Ehrismann
560ef99080
changed ownership of retry package (#4891)
Signed-off-by: Jim Ehrismann <jehrismann@mirantis.com>
2022-02-16 11:33:08 -05:00
Jari Kolehmainen
3c55cba40d
use ubuntu 18.04 for builds (#3877)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-09-23 15:14:24 +03:00
Sebastian Malton
e5c9c9a4b5
Fix test GH action to run on all branches (#3822) 2021-09-16 10:38:31 -04:00
Sebastian Malton
1ebb8eedf7
Upgrade all testing linux CI machines to Ubuntu-20.04 (#3799) 2021-09-16 09:02:43 -04:00
Jari Kolehmainen
9d6bed8786
Build and release amd64 & arm64 together (macOS) (#3700)
* build and release amd64 & arm64 together

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* fixes

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-08-31 11:00:27 +03:00
Jari Kolehmainen
6d1e6a2c41
Test build on macOS/arm64 (#3695)
* test build on macos arm64

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* fix syntax

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* fix syntax

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* clean first

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* node-gyp 7.1.2

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* test

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* test

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* cleanup

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-08-31 08:30:02 +03:00
Sebastian Malton
59933507e4
Upgrade to electron 12 and Node 14 (#3572)
Upgrade to electron 12 and Node 14

- Compute cluster ID for tests
- Switch to temporary appData path while testing

Signed-off-by: Sebastian Malton <sebastian@malton.name>

Co-authored-by: Sebastian Malton <smalton@mirantis.com>
Co-authored-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-08-26 12:13:31 -04:00
Jari Kolehmainen
30bd552322
Run integration tests against real build (#3278)
* run integration tests against real build

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* add author.email to package.json

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-07-06 15:38:49 +03:00
Jari Kolehmainen
05a3494acb
Don't bundle extension with eula on default build (#2542) 2021-04-20 09:35:37 -04:00
Jari Kolehmainen
0de3bb13ca
Workaround broken reverse name lookup on gh actions (#2545)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-04-16 13:40:51 +03:00
Jari Kolehmainen
8b9f645a80
Retry yarn/npm install steps on gh actions (#2533)
* retry yarn/npm install steps on gh actions

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* set timeout_minutes

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-04-15 15:22:55 +03:00
Jari Kolehmainen
95ebb52f5d
Test also push to branches on gh actions (#2532)
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-04-15 14:40:49 +03:00
Jari Kolehmainen
b852384e85
Cache node_modules on GH actions (#2517)
* cache node_modules on GH actions

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* tweak

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-04-13 12:26:36 +03:00
Jari Kolehmainen
ed8d26fe68
Test using GH Actions (#2509)
* test on gh actions

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>

* don't run integration test on release pipeline

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
2021-04-12 15:43:45 +03:00