Skip to content

Commit 66b634a

Browse files
Merge pull request #3657 from RedisInsight/feature/dyn-dep-main-merge
Feature/dyn dep main merge
2 parents f204ec6 + 193e297 commit 66b634a

File tree

1,014 files changed

+38017
-16578
lines changed

Some content is hidden

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

1,014 files changed

+38017
-16578
lines changed

.circleci/build/build.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:18.18-alpine
1+
FROM node:20.14-alpine
22

33
# runtime args and environment variables
44
ARG DIST=Redis-Insight.tar.gz

.circleci/build/release-docker.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
set -e
33

44
HELP="Args:
5-
-v - Semver (2.50.0)
5+
-v - Semver (2.52.0)
66
-d - Build image repository (Ex: -d redisinsight)
77
-r - Target repository (Ex: -r redis/redisinsight)
88
"

.circleci/config.yml

Lines changed: 39 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ aliases:
176176

177177
orbs:
178178
win: circleci/[email protected]
179-
node: circleci/node@5.0.2
179+
node: circleci/node@5.2.0
180180
aws: circleci/[email protected]
181181

182182
executors:
@@ -189,7 +189,7 @@ executors:
189189
docker_layer_caching: true
190190
docker-node:
191191
docker:
192-
- image: cimg/node:18.15.0
192+
- image: cimg/node:20.15
193193
docker:
194194
docker:
195195
- image: cibuilds/docker:19.03.5
@@ -387,10 +387,24 @@ jobs:
387387
steps:
388388
- checkout
389389
- node/install:
390-
node-version: '18.15.0'
390+
install-yarn: true
391+
node-version: '20.15'
391392
- attach_workspace:
392393
at: .
393394
- run: sudo apt-get install net-tools
395+
- run:
396+
name: Install WM
397+
command: sudo apt install fluxbox
398+
- run:
399+
name: Run X11
400+
command: |
401+
Xvfb :99 -screen 0 1920x1080x24 &
402+
sleep 3
403+
fluxbox &
404+
# - run:
405+
# name: Clone mocked RDI server
406+
# command: |
407+
# git clone https://[email protected]/RedisInsight/RDI_server_mocked.git tests/e2e/rte/rdi
394408
- run:
395409
name: .AppImage tests
396410
command: |
@@ -430,8 +444,8 @@ jobs:
430444
at: .
431445
- run:
432446
command: |
433-
nvm install 18.15.0
434-
nvm use 18.15.0
447+
nvm install 20.15
448+
nvm use 20.15
435449
npm install --global yarn
436450
- run:
437451
command: |
@@ -483,6 +497,10 @@ jobs:
483497
name: Load built docker image from workspace
484498
command: |
485499
docker image load -i /tmp/release/docker/docker-linux-alpine.amd64.tar
500+
# - run:
501+
# name: Clone mocked RDI server
502+
# command: |
503+
# git clone https://[email protected]/RedisInsight/RDI_server_mocked.git tests/e2e/rte/rdi
486504
- run:
487505
name: Run tests
488506
command: |
@@ -597,7 +615,8 @@ jobs:
597615
steps:
598616
- checkout
599617
- node/install:
600-
node-version: '18.15.0'
618+
install-yarn: true
619+
node-version: '20.15'
601620
- attach_workspace:
602621
at: .
603622
- run:
@@ -639,6 +658,7 @@ jobs:
639658
export RI_CLOUD_IDP_GH_ID=$RI_CLOUD_IDP_GH_ID_STAGE
640659
export RI_CLOUD_API_URL=$RI_CLOUD_API_URL_STAGE
641660
export RI_CLOUD_CAPI_URL=$RI_CLOUD_CAPI_URL_STAGE
661+
export RI_FEATURES_CONFIG_URL=$RI_FEATURES_CONFIG_URL_STAGE
642662
643663
if [ << parameters.env >> == 'stage' ]; then
644664
RI_UPGRADES_LINK=$RI_UPGRADES_LINK_STAGE RI_SEGMENT_WRITE_KEY=$RI_SEGMENT_WRITE_KEY_STAGE yarn package:stage --linux << parameters.target >>
@@ -657,7 +677,7 @@ jobs:
657677
- release/*-linux.yml
658678
macosx:
659679
executor: macos
660-
resource_class: macos.x86.medium.gen2
680+
resource_class: macos.m1.medium.gen1
661681
parameters:
662682
env:
663683
description: Build environment (stage || prod)
@@ -675,7 +695,7 @@ jobs:
675695
steps:
676696
- checkout
677697
- node/install:
678-
node-version: '18.15.0'
698+
node-version: '20.15'
679699
- attach_workspace:
680700
at: .
681701
- run:
@@ -687,6 +707,7 @@ jobs:
687707
command: |
688708
yarn install
689709
yarn --cwd redisinsight/api/ install
710+
yarn --cwd redisinsight/ install
690711
yarn build:statics
691712
no_output_timeout: 15m
692713
- run:
@@ -715,6 +736,7 @@ jobs:
715736
export RI_CLOUD_CAPI_URL=$RI_CLOUD_CAPI_URL_STAGE
716737
export RI_UPGRADES_LINK=''
717738
export RI_SEGMENT_WRITE_KEY=''
739+
export RI_FEATURES_CONFIG_URL=$RI_FEATURES_CONFIG_URL_STAGE
718740
719741
if [ << parameters.env >> == 'stage' ]; then
720742
export RI_UPGRADES_LINK=$RI_UPGRADES_LINK_STAGE
@@ -773,14 +795,17 @@ jobs:
773795
- run:
774796
name: Build windows exe
775797
command: |
776-
nvm install 18.15.0
777-
nvm use 18.15.0
798+
nvm install 20.15
799+
nvm use 20.15
778800
npm install --global yarn
779801
780802
# set ALL_REDIS_COMMANDS=$(curl $ALL_REDIS_COMMANDS_RAW_URL)
803+
# install dependencies
781804
yarn install
782805
yarn --cwd redisinsight/api/ install
806+
yarn --cwd redisinsight/ install
783807
yarn build:statics:win
808+
784809
if [ << parameters.env >> == 'prod' ]; then
785810
yarn package:prod
786811
rm -rf release/win-unpacked
@@ -796,6 +821,7 @@ jobs:
796821
export RI_CLOUD_IDP_GH_ID=$RI_CLOUD_IDP_GH_ID_STAGE
797822
export RI_CLOUD_API_URL=$RI_CLOUD_API_URL_STAGE
798823
export RI_CLOUD_CAPI_URL=$RI_CLOUD_CAPI_URL_STAGE
824+
export RI_FEATURES_CONFIG_URL=$RI_FEATURES_CONFIG_URL_STAGE
799825
800826
if [ << parameters.env >> == 'stage' ]; then
801827
RI_UPGRADES_LINK=$RI_UPGRADES_LINK_STAGE RI_SEGMENT_WRITE_KEY=$RI_SEGMENT_WRITE_KEY_STAGE yarn package:stage --win << parameters.target >>
@@ -864,7 +890,8 @@ jobs:
864890
steps:
865891
- checkout
866892
- node/install:
867-
node-version: '18.15.0'
893+
install-yarn: true
894+
node-version: '20.15'
868895
- run:
869896
name: Install dependencies
870897
command: |
@@ -1233,7 +1260,7 @@ workflows:
12331260
- Build docker image
12341261
- e2e-app-image:
12351262
name: E2ETest (AppImage)
1236-
parallelism: 2
1263+
parallelism: 1
12371264
requires:
12381265
- Build app - Linux (stage)
12391266
# Workflow for feature, bugfix, main branches

.circleci/e2e/test.app-image.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ yarn --cwd tests/e2e install
88

99
# create folder before tests run to prevent permissions issue
1010
mkdir -p tests/e2e/remote
11+
mkdir -p tests/e2e/rdi
1112

1213
# run rte
1314
docker-compose -f tests/e2e/rte.docker-compose.yml build

.snyk

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Snyk (https://snyk.io) policy file
2+
exclude:
3+
global:
4+
- __mocks__/**
5+
- redisinsight/api/src/__mocks__/**
6+
- tests
7+
- redisinsight/api/test/**
8+
- "*.spec.ts"
9+
- "*.spec.tsx"

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# the best way to minimize the number of node_module restores and build steps
77
# while still keeping the final image small.
88

9-
FROM node:18.18-alpine as build
9+
FROM node:20.14-alpine as build
1010

1111
# update apk repository and install build dependencies
1212
RUN apk update && apk add --no-cache --virtual .gyp \
@@ -39,7 +39,7 @@ RUN yarn --cwd ./redisinsight/api install --production
3939
COPY ./redisinsight/api/.yarnclean.prod ./redisinsight/api/.yarnclean
4040
RUN yarn --cwd ./redisinsight/api autoclean --force
4141

42-
FROM node:18.18-alpine
42+
FROM 20.14-alpine
4343

4444
# runtime args and environment variables
4545
ARG NODE_ENV=production

api.Dockerfile

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

configs/webpack.config.main.prod.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ export default merge(baseConfig, {
8383
RI_AI_CONVAI_TOKEN: 'RI_AI_CONVAI_TOKEN' in process.env ? process.env.RI_AI_CONVAI_TOKEN: '',
8484
RI_AI_QUERY_USER: 'RI_AI_QUERY_USER' in process.env ? process.env.RI_AI_QUERY_USER: '',
8585
RI_AI_QUERY_PASS: 'RI_AI_QUERY_PASS' in process.env ? process.env.RI_AI_QUERY_PASS: '',
86+
RI_FEATURES_CONFIG_URL: 'RI_FEATURES_CONFIG_URL' in process.env ? process.env.RI_FEATURES_CONFIG_URL: '',
8687
}),
8788

8889
new webpack.DefinePlugin({
File renamed without changes.

configs/webpack.config.renderer.prod.ts

Whitespace-only changes.

0 commit comments

Comments
 (0)