mirror of
https://github.com/apache/superset.git
synced 2026-04-07 18:35:15 +00:00
feat: Applitools Cypress workflow (#19956)
* WIP * Attempt Github Actions integration * Add completion notification to workflow * Update env * Add new line * Add license * Fix whitespaces * Fix Yaml indentation * Fix afterEach * Add initial tests * Update config * Use test secret * Clean up * Add batchName * Disable logs - add secret * Create separate workflow * Clean up * Update workflow * Exclude applitools tests * Update jobs name * Run applitools tests separetely * Fix path pattern * Run once * Add more initial tests * Enhance tests * Add dashboard edit mode test * Move env * Exclude applitools from sqllab test run * Attempt pull_request_target * Catch Applitools failures * Clean up tests * Add test step * Add test step * Remove step * Fix SqlLab test * Update CURL request * Fix Yaml * Add empty data to batch completion
This commit is contained in:
24
.github/workflows/bashlib.sh
vendored
24
.github/workflows/bashlib.sh
vendored
@@ -183,7 +183,7 @@ cypress-run-all() {
|
||||
nohup flask run --no-debugger -p $port >"$flasklog" 2>&1 </dev/null &
|
||||
local flaskProcessId=$!
|
||||
|
||||
cypress-run "*/**/*"
|
||||
cypress-run "*/**/!(*.applitools.test.ts)"
|
||||
|
||||
# After job is done, print out Flask log for debugging
|
||||
say "::group::Flask log for default run"
|
||||
@@ -198,7 +198,7 @@ cypress-run-all() {
|
||||
nohup flask run --no-debugger -p $port >"$flasklog" 2>&1 </dev/null &
|
||||
local flaskProcessId=$!
|
||||
|
||||
cypress-run "sqllab/*" "Backend persist"
|
||||
cypress-run "sqllab/!(*.applitools.test.ts)" "Backend persist"
|
||||
|
||||
# Upload code coverage separately so each page can have separate flags
|
||||
# -c will clean existing coverage reports, -F means add flags
|
||||
@@ -212,3 +212,23 @@ cypress-run-all() {
|
||||
# make sure the program exits
|
||||
kill $flaskProcessId
|
||||
}
|
||||
|
||||
cypress-run-applitools() {
|
||||
local flasklog="${HOME}/flask.log"
|
||||
local port=8081
|
||||
export CYPRESS_BASE_URL="http://localhost:${port}"
|
||||
|
||||
nohup flask run --no-debugger -p $port >"$flasklog" 2>&1 </dev/null &
|
||||
local flaskProcessId=$!
|
||||
|
||||
cypress-run "*/**/*.applitools.test.ts"
|
||||
|
||||
codecov -c -F "cypress" || true
|
||||
|
||||
say "::group::Flask log for default run"
|
||||
cat "$flasklog"
|
||||
say "::endgroup::"
|
||||
|
||||
# make sure the program exits
|
||||
kill $flaskProcessId
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user