Skip to content

Commit 3943bf4

Browse files
authored
Merge pull request #193 from RedisInsight/main
main to release
2 parents 975f4b8 + 7086cee commit 3943bf4

File tree

71 files changed

+759
-5647
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+759
-5647
lines changed

.circleci/config.yml

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ aliases:
3636
not: *manual-build-conditions
3737

3838
orbs:
39-
node: circleci/node@5.2.0
39+
node: circleci/node@5.3.0
4040
win: circleci/windows@5.0.0
4141
aws: circleci/aws-cli@4.1.3
4242

@@ -48,8 +48,6 @@ executors:
4848
machine:
4949
image: ubuntu-2004:2023.04.2
5050
docker_layer_caching: true
51-
environment:
52-
DISPLAY: ":99"
5351
docker-node:
5452
docker:
5553
- image: cimg/node:20.15
@@ -91,7 +89,7 @@ jobs:
9189
paths:
9290
- ~/.cache/yarn
9391

94-
e2e-app-image:
92+
e2e-linux:
9593
executor: linux-executor-dlc
9694
parameters:
9795
report:
@@ -116,10 +114,22 @@ jobs:
116114
command: |
117115
sudo apt-get install -y xvfb
118116
Xvfb :99 -screen 0 1920x1080x24 &
117+
- run:
118+
name: Install dependencies
119+
command: cd tests/e2e && yarn install
120+
- run:
121+
name: Compile TypeScript
122+
command: cd tests/e2e && yarn compile
123+
- run:
124+
name: Verify Compiled Files
125+
command: ls -R tests/e2e/dist/tests/
119126
- run:
120127
name: Run e2e tests
121128
command: |
122-
cd tests/e2e && export TEST_FILES=$(circleci tests glob "tests/**/*.e2e.ts" | circleci tests split --split-by=timings) && cd ../..
129+
cd tests/e2e/dist
130+
export TEST_FILES=$(circleci tests glob "tests/**/*.e2e.js" | circleci tests split --split-by=timings)
131+
echo "Running tests: $TEST_FILES"
132+
cd ../../..
123133
.circleci/e2e/test.app.sh
124134
- when:
125135
condition:
@@ -346,6 +356,9 @@ jobs:
346356
executor: linux-executor
347357
steps:
348358
- checkout
359+
- node/install:
360+
install-yarn: true
361+
node-version: '20.15'
349362
- restore_cache:
350363
<<: *uiDepsCacheKey
351364
- run:
@@ -399,7 +412,7 @@ workflows:
399412
requires:
400413
- Start E2E Tests
401414

402-
- e2e-app-image:
415+
- e2e-linux:
403416
name: E2ETest (linux)
404417
parallelism: 2
405418
requires:
@@ -508,7 +521,7 @@ workflows:
508521
name: Build extension - Windows (stage)
509522
<<: *stageFilter
510523
# e2e tests on linux build
511-
- e2e-app-image:
524+
- e2e-linux:
512525
name: E2ETest (linux)
513526
parallelism: 2
514527
requires:
@@ -546,7 +559,7 @@ workflows:
546559
<<: *prodFilter
547560

548561
# e2e tests on linux build
549-
- e2e-app-image:
562+
- e2e-linux:
550563
name: E2ETest (Linux)
551564
parallelism: 2
552565
requires:

.circleci/e2e/test.app.sh

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,14 @@
11
#!/bin/bash
22
set -e
33

4-
yarn --cwd tests/e2e install
5-
6-
# create folder before tests run to prevent permissions issue
4+
# Create folder before tests run to prevent permissions issues
75
mkdir -p tests/e2e/remote
86

9-
# run rte
7+
# Run RTE (Redis Test Environment)
108
docker-compose -f tests/e2e/rte.docker-compose.yml build
119
docker-compose -f tests/e2e/rte.docker-compose.yml up --force-recreate -d -V
12-
./tests/e2e/wait-for-redis.sh localhost 12000 && \
10+
./tests/e2e/wait-for-redis.sh localhost 12000
1311

14-
# run tests
12+
# Run tests
1513
RI_SOCKETS_CORS=true \
1614
yarn --cwd tests/e2e dotenv -e .ci.env yarn --cwd tests/e2e test:ci

.eslintignore

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ node_modules
3434
.DS_Store
3535

3636
# App packaged
37-
storybook-static
3837
dist
3938
backend_dist
4039
scripts
@@ -52,7 +51,6 @@ package.json
5251
*.scss.d.ts
5352
yarn.lock
5453
pnpm-lock.yaml
55-
!.storybook
5654

5755
# E2E tests
58-
tests
56+
tests

.eslintrc.js

Lines changed: 11 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@ module.exports = {
66
browser: true,
77
},
88
extends: [
9+
'eslint:recommended',
10+
'plugin:react/recommended',
11+
'plugin:react-hooks/recommended',
12+
'airbnb-base',
913
'airbnb-typescript',
10-
'airbnb/hooks',
1114
'plugin:sonarjs/recommended',
12-
'plugin:storybook/recommended',
1315
// TODO: in a separate pull request enable and fix all classes sorting issues for tailwind
1416
// 'plugin:tailwindcss/recommended',
1517
],
@@ -47,21 +49,6 @@ module.exports = {
4749
code: 140,
4850
},
4951
],
50-
'jsx-a11y/label-has-associated-control': [
51-
2,
52-
{
53-
labelComponents: [
54-
'FormLabel',
55-
],
56-
labelAttributes: [
57-
'label',
58-
],
59-
controlComponents: [
60-
'input',
61-
],
62-
depth: 1,
63-
},
64-
],
6552
'class-methods-use-this': 'off',
6653
// https://github.com/vitejs/vite-plugin-react/tree/main/packages/plugin-react#consistent-components-exports
6754
'react-refresh/only-export-components': ['warn'],
@@ -94,6 +81,13 @@ module.exports = {
9481
'object-curly-newline': 'off',
9582
'no-nested-ternary': 'off',
9683
'no-param-reassign': ['error', { props: false }],
84+
'default-param-last': 'off',
85+
'@typescript-eslint/default-param-last': 'off',
86+
'no-unsafe-optional-chaining': 'off',
87+
'function-paren-newline': 'off',
88+
'prefer-regex-literals': 'off',
89+
'react/display-name': 'off',
90+
'no-promise-executor-return': 'off',
9791
'sonarjs/no-duplicate-string': 'off',
9892
'sonarjs/cognitive-complexity': [1, 20],
9993
'sonarjs/no-identical-functions': [0, 5],

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ lerna-debug.log*
1919
coverage
2020
/.nyc_output
2121
**/coverage
22-
storybook-static
2322

2423
# IDEs and editors
2524
/.idea

.storybook/DocsContainer.tsx

Lines changed: 0 additions & 18 deletions
This file was deleted.

.storybook/helpers.js

Lines changed: 0 additions & 18 deletions
This file was deleted.

.storybook/main.js

Lines changed: 0 additions & 24 deletions
This file was deleted.

.storybook/manager-head.html

Lines changed: 0 additions & 18 deletions
This file was deleted.

.storybook/manager.js

Lines changed: 0 additions & 6 deletions
This file was deleted.

0 commit comments

Comments
 (0)