Skip to content

Commit 9a65b6e

Browse files
Merge branch 'main' into fe/feature/RI-6330-disable-the-overview-refresh
2 parents 23889e2 + 17be0f6 commit 9a65b6e

File tree

400 files changed

+6978
-4171
lines changed

Some content is hidden

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

400 files changed

+6978
-4171
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.64.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/actions/deploy-test-reports/action.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ inputs:
66
description: Group matching the artifacts
77
required: false
88
default: '*'
9+
path:
10+
description: Path for link to the report
11+
required: false
12+
default: ''
913

1014
AWS_BUCKET_NAME_TEST:
1115
required: true
@@ -46,4 +50,9 @@ runs:
4650
4751
aws s3 cp public/ s3://${AWS_BUCKET_NAME_TEST}/public/${SUB_PATH} --recursive
4852
53+
- name: Add link to report in the workflow summary
54+
shell: bash
55+
run: |
56+
link="${{ inputs.path }}/index.html"
4957
58+
echo "- [${link}](${link})" >> $GITHUB_STEP_SUMMARY

.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.64.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: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
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 --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_PASS: ${{ secrets.DOCKER_V1_PASS }}
32+
DOCKER_V1_REPO: ${{ secrets.DOCKER_V1_REPO }}
33+
run: |
34+
appVersion=$(jq -r '.version' redisinsight/package.json)
35+
36+
docker login -u $DOCKER_USER -p $DOCKER_PASS
37+
38+
./.github/build/release-docker.sh \
39+
-d redisinsight \
40+
-r $DOCKER_REPO \
41+
-v $appVersion
42+
43+
docker login -u $DOCKER_V1_USER -p $DOCKER_V1_PASS
44+
45+
./.github/build/release-docker.sh \
46+
-d redisinsight \
47+
-r $DOCKER_V1_REPO \
48+
-v $appVersion
49+
50+
snapcraft:
51+
runs-on: ubuntu-latest
52+
name: Publish to Snapcraft
53+
env:
54+
SNAPCRAFT_FILE_NAME: 'Redis-Insight-linux-amd64.snap'
55+
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }}
56+
steps:
57+
- uses: actions/checkout@v4
58+
59+
- name: Download Snapcraft package
60+
id: snap
61+
run: |
62+
mkdir release
63+
aws s3 cp s3://${AWS_BUCKET_NAME}/public/latest/${SNAPCRAFT_FILE_NAME} ./release
64+
echo "snap-path=$(readlink -e ./release/${SNAPCRAFT_FILE_NAME})" >> "$GITHUB_OUTPUT"
65+
66+
- uses: snapcore/action-publish@v1
67+
name: Publish Snapcraft
68+
with:
69+
snap: ${{ steps.snap.outputs.snap-path }}
70+
release: stable
71+

.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-backend.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ jobs:
5151
curl -H "Content-type: application/json" --data @$WORKDIR/slack.$FILENAME -H "Authorization: Bearer $SLACK_AUDIT_REPORT_KEY" -X POST https://slack.com/api/chat.postMessage
5252
5353
- name: Unit tests API
54+
timeout-minutes: 20
5455
run: yarn --cwd redisinsight/api/ test:cov --ci --silent
5556

5657
- name: Upload Test Report
@@ -60,24 +61,20 @@ jobs:
6061
name: ${{ env.REPORT_NAME }}
6162
path: redisinsight/api/report
6263

64+
- name: Get current date
65+
id: date
66+
if: always()
67+
uses: ./.github/actions/get-current-date
68+
6369
- name: Deploy report
6470
uses: ./.github/actions/deploy-test-reports
6571
if: always()
6672
with:
6773
group: 'report'
74+
path: "${{ vars.DEFAULT_TEST_REPORTS_URL }}/${{ steps.date.outputs.date }}/${{ github.run_id }}/${{ env.REPORT_NAME }}"
6875
AWS_BUCKET_NAME_TEST: ${{ vars.AWS_BUCKET_NAME_TEST }}
6976
AWS_DEFAULT_REGION: ${{ vars.AWS_DEFAULT_REGION }}
7077
AWS_DISTRIBUTION_ID: ${{ secrets.AWS_DISTRIBUTION_ID }}
7178
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
7279
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
7380

74-
- name: Get current date
75-
id: date
76-
if: always()
77-
uses: ./.github/actions/get-current-date
78-
79-
- name: Add link to report in the workflow summary
80-
if: always()
81-
run: |
82-
link="${{ vars.DEFAULT_TEST_REPORTS_URL }}/${{ steps.date.outputs.date }}/${{ github.run_id }}/${{ env.REPORT_NAME }}/index.html"
83-
echo "[${link}](${link})" >> $GITHUB_STEP_SUMMARY

0 commit comments

Comments
 (0)