Skip to content

Commit e9016a2

Browse files
committed
Merge branch 'main' into e2e/feature/RI-6291_dependabot-updates
2 parents 9840d42 + a968777 commit e9016a2

File tree

164 files changed

+2189
-585
lines changed

Some content is hidden

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

164 files changed

+2189
-585
lines changed

.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.60.0)
5+
-v - Semver (2.62.0)
66
-d - Build image repository (Ex: -d redisinsight)
77
-r - Target repository (Ex: -r redis/redisinsight)
88
"

.eslintrc.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ module.exports = {
22
root: true,
33
env: {
44
node: true,
5+
browser: true,
56
},
67
extends: ['airbnb-typescript'],
78
plugins: ['@typescript-eslint'],

.github/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.60.0)
5+
-v - Semver (2.62.0)
66
-d - Build image repository (Ex: -d redisinsight)
77
-r - Target repository (Ex: -r redis/redisinsight)
88
"

.github/workflows/pipeline-build-docker.yml

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ on:
77
default: 'staging'
88
type: string
99

10-
only_docker:
11-
description: Build only docker
10+
for_e2e_tests:
11+
description: Build for e2e docker tests
1212
default: false
1313
type: boolean
1414

@@ -45,7 +45,16 @@ jobs:
4545
run: ./.github/build/build.sh
4646

4747
# todo: matrix
48+
- name: Build web archives for e2e tests
49+
if: inputs.for_e2e_tests
50+
run: |
51+
unset npm_config_keytar_binary_host_mirror
52+
unset npm_config_node_sqlite3_binary_host_mirror
53+
# Docker sources
54+
PLATFORM=linux ARCH=x64 LIBC=musl .github/build/build_modules.sh
55+
4856
- name: Build web archives
57+
if: ${{ !inputs.for_e2e_tests }}
4958
run: |
5059
unset npm_config_keytar_binary_host_mirror
5160
unset npm_config_node_sqlite3_binary_host_mirror
@@ -60,10 +69,8 @@ jobs:
6069
PLATFORM=darwin ARCH=arm64 .github/build/build_modules.sh
6170
# VSC Windows
6271
PLATFORM=win32 ARCH=x64 .github/build/build_modules.sh
63-
- name: Build Docker (x64, arm64)
64-
env:
65-
ENV: ${{ vars.ENV }}
66-
RI_SEGMENT_WRITE_KEY: ${{ secrets.RI_SEGMENT_WRITE_KEY }}
72+
73+
- name: Build Docker (x64)
6774
run: |
6875
# Build alpine x64 image
6976
docker buildx build \
@@ -75,6 +82,12 @@ jobs:
7582
-t redisinsight:amd64 \
7683
.
7784
85+
mkdir -p release/docker
86+
docker image save -o release/docker/docker-linux-alpine.amd64.tar redisinsight:amd64
87+
88+
- name: Build Docker (arm64)
89+
if: ${{ !inputs.for_e2e_tests }}
90+
run: |
7891
# Build alpine arm64 image
7992
docker buildx build \
8093
-f .github/build/build.Dockerfile \
@@ -86,7 +99,6 @@ jobs:
8699
.
87100
88101
mkdir -p release/docker
89-
docker image save -o release/docker/docker-linux-alpine.amd64.tar redisinsight:amd64
90102
docker image save -o release/docker/docker-linux-alpine.arm64.tar redisinsight:arm64
91103
92104
- uses: actions/upload-artifact@v4
@@ -100,6 +112,7 @@ jobs:
100112
./release/web-mini
101113
102114
env:
115+
ENV: ${{ vars.ENV }}
103116
RI_AI_CONVAI_TOKEN: ${{ secrets.RI_AI_CONVAI_TOKEN }}
104117
RI_AI_QUERY_PASS: ${{ secrets.RI_AI_QUERY_PASS }}
105118
RI_AI_QUERY_USER: ${{ secrets.RI_AI_QUERY_USER }}

.github/workflows/pipeline-build-macos.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ jobs:
7373
7474
yarn package:stage && yarn package:mas
7575
rm -rf release/mac
76+
7677
mv release/mas-universal/Redis-Insight-mac-universal-mas.pkg release/Redis-Insight-mac-universal-mas.pkg
7778
7879
# handle manual builds
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: Publish to stores
2+
3+
on:
4+
workflow_call:
5+
6+
env:
7+
AWS_BUCKET_NAME: ${{ secrets.AWS_BUCKET_NAME }}
8+
AWS_DEFAULT_REGION: ${{ vars.AWS_DEFAULT_REGION }}
9+
AWS_DISTRIBUTION_ID: ${{ secrets.AWS_DISTRIBUTION_ID }}
10+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
11+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
12+
13+
jobs:
14+
docker:
15+
runs-on: ubuntu-latest
16+
name: Publish to Dockerhub
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Download Docker images
21+
run: |
22+
mkdir release
23+
aws s3 cp s3://${AWS_BUCKET_NAME}/public/latest/docker ./release/docker --recursive
24+
25+
- name: Publish docker
26+
env:
27+
DOCKER_USER: ${{ secrets.DOCKER_USER }}
28+
DOCKER_PASS: ${{ secrets.DOCKER_PASS }}
29+
DOCKER_REPO: ${{ secrets.DOCKER_REPO }}
30+
DOCKER_V1_USER: ${{ secrets.DOCKER_V1_USER }}
31+
DOCKER_V1_REPO: ${{ secrets.DOCKER_V1_REPO }}
32+
run: |
33+
appVersion=$(jq -r '.version' redisinsight/package.json)
34+
35+
docker login -u $DOCKER_USER -p $DOCKER_PASS
36+
37+
./.github/build/release-docker.sh \
38+
-d redisinsight \
39+
-r $DOCKER_REPO \
40+
-v $appVersion
41+
42+
docker login -u $DOCKER_V1_USER -p $DOCKER_V1_PASS
43+
44+
./.github/build/release-docker.sh \
45+
-d redisinsight \
46+
-r $DOCKER_V1_REPO \
47+
-v $appVersion
48+
49+
snapcraft:
50+
runs-on: ubuntu-latest
51+
name: Publish to Snapcraft
52+
env:
53+
SNAPCRAFT_FILE_NAME: 'Redis-Insight-linux-amd64.snap'
54+
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }}
55+
steps:
56+
- uses: actions/checkout@v4
57+
58+
- name: Download Snapcraft package
59+
id: snap
60+
run: |
61+
mkdir release
62+
aws s3 cp s3://${AWS_BUCKET_NAME}/public/latest/${SNAPCRAFT_FILE_NAME} ./release
63+
echo "snap-path=$(readlink -e ./release/${SNAPCRAFT_FILE_NAME})" >> "$GITHUB_OUTPUT"
64+
65+
- uses: snapcore/action-publish@v1
66+
name: Publish Snapcraft
67+
with:
68+
snap: ${{ steps.snap.outputs.snap-path }}
69+
release: stable
70+

.github/workflows/release-docker.yml

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

.github/workflows/release-prod.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ jobs:
5050
needs: virustotal-prod
5151
secrets: inherit
5252

53-
docker-prod:
54-
name: Release docker images
55-
uses: ./.github/workflows/release-docker.yml
53+
publish-stores:
54+
name: Publish to stores
55+
uses: ./.github/workflows/publish-stores.yml
5656
needs: aws-upload-prod
5757
secrets: inherit
5858

.github/workflows/tests-e2e-docker.yml

Lines changed: 11 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,6 @@ jobs:
3333
e2e-docker-tests:
3434
runs-on: ubuntu-latest
3535
name: E2E Docker tests
36-
# environment:
37-
# name: production
38-
container:
39-
image: docker:latest
40-
options: --privileged
41-
volumes:
42-
- /usr/src/app/results:/usr/src/app/results
43-
- /usr/src/app/report:/usr/src/app/report
4436
strategy:
4537
fail-fast: false
4638
matrix:
@@ -50,9 +42,6 @@ jobs:
5042
steps:
5143
- uses: actions/checkout@v4
5244

53-
- name: Setup repository
54-
run: git config --global --add safe.directory /__w/RedisInsight/RedisInsight
55-
5645
# SSH Debug
5746
- name: Enable SSH
5847
uses: mxschmitt/action-tmate@v3
@@ -74,6 +63,7 @@ jobs:
7463
working-directory: ./tests/e2e
7564
run: |
7665
testFiles=$(find tests/web -type f -name '*.e2e.ts' | sort | awk "NR % 4 == ${{ matrix.parallel }}")
66+
7767
echo $testFiles
7868
7969
# Multi-Line value
@@ -117,23 +107,8 @@ jobs:
117107
list-suites: 'failed'
118108
fail-on-error: 'false'
119109

120-
- name: Add link to report in the workflow summary
121-
if: always()
122-
run: |
123-
DATE=$(date +'%Y-%m-%d')
124-
link="${{ vars.DEFAULT_TEST_REPORTS_URL }}/${DATE}/${{ github.run_id }}/${{ env.REPORT_NAME }}-${{ matrix.parallel }}/index.html"
125-
126-
echo "- [${link}](${link})" >> $GITHUB_STEP_SUMMARY
127-
128-
# Deploy report to AWS test bucket
129-
deploy-report:
130-
name: Deploy report
131-
needs: 'e2e-docker-tests'
132-
if: always()
133-
runs-on: ubuntu-latest
134-
steps:
135-
- uses: actions/checkout@v4
136110
- name: Deploy report
111+
if: always()
137112
uses: ./.github/actions/deploy-test-reports
138113
with:
139114
group: 'report'
@@ -143,3 +118,12 @@ jobs:
143118
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
144119
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
145120

121+
- name: Add link to report in the workflow summary
122+
if: always()
123+
run: |
124+
DATE=$(date +'%Y-%m-%d')
125+
link="${{ vars.DEFAULT_TEST_REPORTS_URL }}/${DATE}/${{ github.run_id }}/${{ env.REPORT_NAME }}-${{ matrix.parallel }}/index.html"
126+
127+
echo "- [${link}](${link})" >> $GITHUB_STEP_SUMMARY
128+
129+

.github/workflows/tests-integration.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ env:
4848
}
4949
ITESTS_NAMES_SHORT: |
5050
{
51+
"mods-preview": "OSS Standalone and all preview modules",
5152
"oss-st-5-pass": "OSS Standalone v5 with admin pass required",
5253
"oss-st-6-tls-auth": "OSS Standalone v6 with TLS auth required",
5354
"oss-clu-tls": "OSS Cluster with TLS enabled",

0 commit comments

Comments
 (0)