Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .github/actions/deploy-test-reports/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ inputs:
description: Group matching the artifacts
required: false
default: '*'
path:
description: Path for link to the report
required: false
default: ''

AWS_BUCKET_NAME_TEST:
required: true
Expand Down Expand Up @@ -46,4 +50,9 @@ runs:

aws s3 cp public/ s3://${AWS_BUCKET_NAME_TEST}/public/${SUB_PATH} --recursive

- name: Add link to report in the workflow summary
shell: bash
run: |
link="${{ inputs.path }}/index.html"

echo "- [${link}](${link})" >> $GITHUB_STEP_SUMMARY
17 changes: 7 additions & 10 deletions .github/workflows/tests-backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ jobs:
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

- name: Unit tests API
timeout-minutes: 20
run: yarn --cwd redisinsight/api/ test:cov --ci --silent

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

- name: Get current date
id: date
if: always()
uses: ./.github/actions/get-current-date

- name: Deploy report
uses: ./.github/actions/deploy-test-reports
if: always()
with:
group: 'report'
path: "${{ vars.DEFAULT_TEST_REPORTS_URL }}/${{ steps.date.outputs.date }}/${{ github.run_id }}/${{ env.REPORT_NAME }}"
AWS_BUCKET_NAME_TEST: ${{ vars.AWS_BUCKET_NAME_TEST }}
AWS_DEFAULT_REGION: ${{ vars.AWS_DEFAULT_REGION }}
AWS_DISTRIBUTION_ID: ${{ secrets.AWS_DISTRIBUTION_ID }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

- name: Get current date
id: date
if: always()
uses: ./.github/actions/get-current-date

- name: Add link to report in the workflow summary
if: always()
run: |
link="${{ vars.DEFAULT_TEST_REPORTS_URL }}/${{ steps.date.outputs.date }}/${{ github.run_id }}/${{ env.REPORT_NAME }}/index.html"
echo "[${link}](${link})" >> $GITHUB_STEP_SUMMARY
19 changes: 7 additions & 12 deletions .github/workflows/tests-e2e-appimage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ jobs:
fluxbox &

- name: Run tests
timeout-minutes: 60
run: |
.github/e2e/test.app-image.sh

Expand Down Expand Up @@ -103,26 +104,20 @@ jobs:
list-suites: 'failed'
fail-on-error: 'false'

- name: Get current date
id: date
if: always()
uses: ./.github/actions/get-current-date

# Deploy report to AWS test bucket
- name: Deploy report
uses: ./.github/actions/deploy-test-reports
if: always()
with:
group: 'report'
path: "${{ vars.DEFAULT_TEST_REPORTS_URL }}/${{ steps.date.outputs.date }}/${{ github.run_id }}/${{ env.REPORT_NAME }}"
AWS_BUCKET_NAME_TEST: ${{ vars.AWS_BUCKET_NAME_TEST }}
AWS_DEFAULT_REGION: ${{ vars.AWS_DEFAULT_REGION }}
AWS_DISTRIBUTION_ID: ${{ secrets.AWS_DISTRIBUTION_ID }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

- name: Get current date
id: date
if: always()
uses: ./.github/actions/get-current-date

- name: Add link to report in the workflow summary
if: always()
run: |
link="${{ vars.DEFAULT_TEST_REPORTS_URL }}/${{ steps.date.outputs.date }}/${{ github.run_id }}/${{ env.REPORT_NAME }}/index.html"
echo "[${link}](${link})" >> $GITHUB_STEP_SUMMARY

19 changes: 8 additions & 11 deletions .github/workflows/tests-e2e-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,15 @@ jobs:
fail-fast: false
matrix:
# Number of threads to run tests
parallel: [0, 1, 2, 3]
parallel: [0, 1, 2, 3, 4, 5]

steps:
- uses: actions/checkout@v4

- name: Get current date
id: date
uses: ./.github/actions/get-current-date

# SSH Debug
- name: Enable SSH
uses: mxschmitt/action-tmate@v3
Expand All @@ -62,7 +66,7 @@ jobs:
- name: Generate short list of the test files
working-directory: ./tests/e2e
run: |
testFiles=$(find tests/web -type f -name '*.e2e.ts' | sort | awk "NR % 4 == ${{ matrix.parallel }}")
testFiles=$(find tests/web -type f -name '*.e2e.ts' | sort | awk "NR % 6 == ${{ matrix.parallel }}")

echo $testFiles

Expand All @@ -72,6 +76,7 @@ jobs:
echo "EOF" >> $GITHUB_ENV

- name: Run tests
timeout-minutes: 80
run: |
export NODE_INDEX=${{ matrix.parallel }}

Expand Down Expand Up @@ -112,18 +117,10 @@ jobs:
uses: ./.github/actions/deploy-test-reports
with:
group: 'report'
path: "${{ vars.DEFAULT_TEST_REPORTS_URL }}/${{ steps.date.outputs.date }}/${{ github.run_id }}/${{ env.REPORT_NAME }}-${{ matrix.parallel }}"
AWS_BUCKET_NAME_TEST: ${{ vars.AWS_BUCKET_NAME_TEST }}
AWS_DEFAULT_REGION: ${{ vars.AWS_DEFAULT_REGION }}
AWS_DISTRIBUTION_ID: ${{ secrets.AWS_DISTRIBUTION_ID }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

- name: Add link to report in the workflow summary
if: always()
run: |
DATE=$(date +'%Y-%m-%d')
link="${{ vars.DEFAULT_TEST_REPORTS_URL }}/${DATE}/${{ github.run_id }}/${{ env.REPORT_NAME }}-${{ matrix.parallel }}/index.html"

echo "- [${link}](${link})" >> $GITHUB_STEP_SUMMARY


18 changes: 7 additions & 11 deletions .github/workflows/tests-frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ jobs:
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

- name: Unit tests UI
timeout-minutes: 30
run: yarn test:cov --ci --silent

- name: Upload Test Report
Expand All @@ -58,24 +59,19 @@ jobs:
name: ${{ env.REPORT_NAME }}
path: report

- name: Get current date
id: date
if: always()
uses: ./.github/actions/get-current-date

- name: Deploy report
uses: ./.github/actions/deploy-test-reports
if: always()
with:
group: 'report'
path: "${{ vars.DEFAULT_TEST_REPORTS_URL }}/${{ steps.date.outputs.date }}/${{ github.run_id }}/${{ env.REPORT_NAME }}"
AWS_BUCKET_NAME_TEST: ${{ vars.AWS_BUCKET_NAME_TEST }}
AWS_DEFAULT_REGION: ${{ vars.AWS_DEFAULT_REGION }}
AWS_DISTRIBUTION_ID: ${{ secrets.AWS_DISTRIBUTION_ID }}
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}

- name: Get current date
id: date
if: always()
uses: ./.github/actions/get-current-date

- name: Add link to report in the workflow summary
if: always()
run: |
link="${{ vars.DEFAULT_TEST_REPORTS_URL }}/${{ steps.date.outputs.date }}/${{ github.run_id }}/${{ env.REPORT_NAME }}/index.html"
echo "[${link}](${link})" >> $GITHUB_STEP_SUMMARY
1 change: 1 addition & 0 deletions .github/workflows/tests-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ jobs:
docker image load -i ./release/docker/docker-linux-alpine.amd64.tar

- name: Run tests
timeout-minutes: 20
run: |
if [ ${{ inputs.redis_client }} == "node-redis" ]; then
export RI_REDIS_CLIENTS_FORCE_STRATEGY=${{ inputs.redis_client }}
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/docker.web.docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ services:
E2E_CLOUD_API_SECRET_KEY: $E2E_CLOUD_API_SECRET_KEY
REMOTE_FOLDER_PATH: "/root/remote"
command: [
'./wait-for-it.sh', 'redis-enterprise:12000', '-s', '-t', '120',
'./wait-for-it.sh', 'redis-enterprise:12000', '-s', '-t', '240',
'--',
'npm', 'run', 'test:chrome:ci'
]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh

echo 'Try to sleep for a while...'
sleep 5
sleep 25
echo 'Creating cluster...'
echo "yes" | redis-cli \
--cluster create \
Expand Down
6 changes: 3 additions & 3 deletions tests/e2e/rte/oss-cluster-7-rs/creator.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ FROM redis:7.0.6

USER root

COPY cluster-create.sh ./
COPY cluster-rs-create.sh ./

RUN chmod a+x cluster-create.sh
RUN chmod a+x cluster-rs-create.sh

CMD ["/bin/sh", "./cluster-create.sh"]
CMD ["/bin/sh", "./cluster-rs-create.sh"]
2 changes: 1 addition & 1 deletion tests/e2e/rte/oss-cluster-7/cluster-create.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/sh

echo 'Try to sleep for a while...'
sleep 5
sleep 25
echo 'Creating cluster...'
echo "yes" | redis-cli \
--cluster create \
Expand Down
2 changes: 1 addition & 1 deletion tests/e2e/web.runner.ci.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import testcafe from 'testcafe';
experimentalDecorators: true
} })
.src((process.env.TEST_FILES || 'tests/web/**/*.e2e.ts').split('\n'))
.browsers(['chromium:headless --disable-search-engine-choice-screen --ignore-certificate-errors'])
.browsers(['chromium:headless --disable-search-engine-choice-screen --ignore-certificate-errors --disable-dev-shm-usage --no-sandbox'])
.screenshots({
path: 'report/screenshots/',
takeOnFails: true,
Expand Down
Loading