Skip to content

Commit

Permalink
Merge pull request #5734 from gooddata/release-to-master
Browse files Browse the repository at this point in the history
Merge release into master
  • Loading branch information
huyenthanh09 authored Dec 20, 2024
2 parents 29b53c5 + c9371c0 commit 5f5080a
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 15 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/checklist-cypress-ui-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ jobs:
- name: Rush build
run: node common/scripts/install-run-rush.js build --to @gooddata/sdk-ui-tests-e2e
e2e:
needs: [ warm-up-cache,build ]
needs: [ warm-up-cache, build ]
runs-on:
group: infra1-runners-arc
labels: runners-rxa-xlarge
Expand Down Expand Up @@ -148,4 +148,6 @@ jobs:
with:
name: cypress-test-artifacts
path: |
libs/sdk-ui-tests-e2e/cypress/videos/**/*.mp4
libs/sdk-ui-tests-e2e/cypress/${{ inputs.GIT_REVISION }}/videos/**/*.mp4
libs/sdk-ui-tests-e2e/cypress/${{ inputs.GIT_REVISION }}/screenshots/**/*
libs/sdk-ui-tests-e2e/cypress/${{ inputs.GIT_REVISION }}/results/**/*
56 changes: 49 additions & 7 deletions .github/workflows/checklist-integrated-staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@

name: Checklist ~ run integrated e2e tests
on:
schedule:
- cron: '30 20 * * 0-4' #master branch
- cron: '30 13 * * 0,2,4' #release branch
workflow_dispatch:
inputs:
run-cypress-sdk:
Expand All @@ -14,6 +17,11 @@ on:
required: false
default: true
type: boolean
run-boiler-app:
description: 'Boiler app test'
required: false
default: true
type: boolean
test-branch:
description: 'Test branch to run tests'
required: false
Expand All @@ -33,7 +41,9 @@ jobs:
outputs:
run-cypress-sdk: ${{ steps.test-suite-options.outputs.run-cypress-sdk }}
run-export: ${{ steps.test-suite-options.outputs.run-export }}
run-boiler-app: ${{ steps.test-suite-options.outputs.run-boiler-app }}
send_message_to_slack_channel: ${{ steps.test-suite-options.outputs.send_message_to_slack_channel }}
git-revision: ${{ steps.git-revision-options.outputs.git-revision }}
steps:
- name: Set test suite options
id: test-suite-options
Expand All @@ -48,11 +58,26 @@ jobs:
else
echo "run-export=${{ inputs.run-export }}" >> $GITHUB_OUTPUT
fi
if [ -z "${{ inputs.run-boiler-app }}" ]; then
echo 'run-boiler-app=true' >> $GITHUB_OUTPUT
else
echo "run-boiler-app=${{ inputs.run-boiler-app }}" >> $GITHUB_OUTPUT
fi
if [ -z "${{ inputs.send_message_to_slack_channel }}" ]; then
echo 'send_message_to_slack_channel=true' >> $GITHUB_OUTPUT
else
echo "send_message_to_slack_channel=${{ inputs.send_message_to_slack_channel }}" >> $GITHUB_OUTPUT
fi
- name: Set git revision to run
id: git-revision-options
run: |
if [ -z "${{ github.event.schedule }}" ]; then
echo "git-revision=${{ inputs.test-branch }}" >> $GITHUB_OUTPUT
elif [ "${{ github.event.schedule }}" == '30 13 * * 0,2,4' ]; then
echo 'git-revision=release' >> $GITHUB_OUTPUT
else
echo 'git-revision=master' >> $GITHUB_OUTPUT
fi
checklist-SDK:
name: Cypress SDK on top of Tiger
permissions:
Expand All @@ -61,10 +86,10 @@ jobs:
id-token: write
uses: ./.github/workflows/checklist-cypress-ui-test.yaml
needs: [ setup-stage ]
if: ${{ needs.setup-stage.outputs.run-cypress-sdk == 'true'}}
if: ${{ needs.setup-stage.outputs.run-cypress-sdk == 'true' }}
with:
CYPRESS_TEST_TAGS: 'checklist_integrated_tiger'
GIT_REVISION: ${{ inputs.test-branch || master }}
GIT_REVISION: ${{ needs.setup-stage.outputs.git-revision }}
TEST_BACKEND: 'https://checklist.staging.stg11.panther.intgdc.com'
TIGER_DATASOURCES_NAME: 'vertica_staging-goodsales'
checklist-export:
Expand All @@ -75,18 +100,35 @@ jobs:
id-token: write
uses: ./.github/workflows/checklist-cypress-ui-test.yaml
needs: [ setup-stage, checklist-SDK ]
if: ${{ !cancelled() && (needs.setup-stage.outputs.run-export == 'true') }}
if: ${{ !cancelled() && needs.setup-stage.outputs.run-export == 'true' }}
with:
CYPRESS_TEST_TAGS: 'checklist_integrated_tiger_export'
GIT_REVISION: ${{ inputs.test-branch || master }}
GIT_REVISION: ${{ needs.setup-stage.outputs.git-revision }}
TEST_BACKEND: 'https://checklist.staging.stg11.panther.intgdc.com'
TIGER_DATASOURCES_NAME: 'vertica_staging-goodsales'
checklist-boiler-app:
name: Boiler app test
permissions:
contents: read
pages: write
id-token: write
uses: ./.github/workflows/checklist-run-boiler-app.yaml
needs: [ setup-stage ]
if: ${{ needs.setup-stage.outputs.run-boiler-app == 'true' }}
with:
GIT_REVISION: ${{ needs.setup-stage.outputs.git-revision }}
TEST_BACKEND: 'https://checklist.staging.stg11.panther.intgdc.com'
TIGER_DATASOURCES_NAME: 'vertica_staging-goodsales'
SDK_VERSION: 'latest'
SDK_LANG: 'js'
FILTER: 'boilerapp.spec.ts'
status-check-notify-slack:
needs:
- setup-stage
- checklist-SDK
- checklist-export
if: ${{ !canceled() }}
- checklist-boiler-app
if: ${{ !cancelled() }}
runs-on:
group: infra1-runners-arc
labels: runners-small
Expand All @@ -95,13 +137,13 @@ jobs:
id: alls-green
uses: re-actors/alls-green@release/v1
with:
allowed-skips: checklist-SDK, checklist-export
allowed-skips: checklist-SDK, checklist-export, checklist-boiler-app
jobs: ${{ toJSON(needs) }}
- name: Send Slack notification
uses: slackapi/[email protected]
if: ${{ needs.setup-stage.outputs.send_message_to_slack_channel == 'true' }}
with:
channel-id: qa_tests
channel-id: panther-checklist-testing
slack-message: "${{ steps.alls-green.outcome == 'success' && ':unicorn_face:' || ':robot_panic:' }} `checklist-SDK-${{ github.ref_name }}-branch: ` *${{ steps.alls-green.outcome == 'success' && 'success' || 'failed' }}*; please check *<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|the logs>*."
env:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
11 changes: 5 additions & 6 deletions .github/workflows/checklist-run-boiler-app.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,9 @@ on:
default: 'latest'
SDK_LANG:
description: 'Programming Language to be used'
type: choice
type: string
default: 'js'
options:
- js
- ts
required: true
FILTER:
type: string
required: true
Expand Down Expand Up @@ -93,6 +91,7 @@ jobs:
labels: runners-rxa-xlarge
permissions:
contents: read
pages: write
id-token: write
steps:
- uses: actions/checkout@v4
Expand All @@ -118,6 +117,7 @@ jobs:
run: |
export HOST=${{ inputs.TEST_BACKEND }}
export TIGER_DATASOURCES_NAME=${{ inputs.TIGER_DATASOURCES_NAME }}
export FIXTURE_TYPE=goodsales
export SDK_LANG=${{ inputs.SDK_LANG }}
export FILTER=${{ inputs.FILTER }}
if [[ -z ${{ inputs.SDK_VERSION }} || ${{ inputs.SDK_VERSION }} == "latest" ]]; then
Expand All @@ -126,13 +126,12 @@ jobs:
export SDK_VERSION=${{ inputs.SDK_VERSION }}
fi
echo "The boiler app will be run with sdk version $SDK_VERSION"
./common/scripts/ci/run_boiler_app_integration_tests_with_live_backend.sh
- name: Archive the cypress test artifacts
uses: actions/upload-artifact@v4
if: ${{ !cancelled() }}
with:
name: cypress-test-artifacts
name: cypress-boiler-test-artifacts
path: |
libs/sdk-ui-tests-e2e/cypress/videos/**/*.mp4
libs/sdk-ui-tests-e2e/cypress/screenshots/**/*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ $_RUSH build -t sdk-ui-tests-e2e
trap "docker rmi --force $CYPRESS_IMAGE || true" EXIT

docker run --rm --entrypoint '' \
--user root \
-e BOILER_APP_NAME \
-e BOILER_APP_VERSION \
-e SDK_LANG \
Expand Down

0 comments on commit 5f5080a

Please sign in to comment.