diff --git a/.drone.star b/.drone.star index c45c36f8561..756ec6b815f 100644 --- a/.drone.star +++ b/.drone.star @@ -55,7 +55,7 @@ config = { "e2e": { "1": { "earlyFail": True, - "skip": True, + "skip": False, "suites": [ "journeys", "smoke", @@ -71,7 +71,7 @@ config = { }, "3": { "earlyFail": True, - "skip": True, + "skip": False, "tikaNeeded": True, "suites": [ "search", @@ -86,7 +86,7 @@ config = { }, "4": { "earlyFail": True, - "skip": True, + "skip": False, "suites": [ "navigation", "user-settings", @@ -95,7 +95,7 @@ config = { ], }, "app-provider": { - "skip": True, + "skip": False, "suites": [ "app-provider", ], @@ -112,7 +112,7 @@ config = { }, }, "oidc-refresh-token": { - "skip": True, + "skip": False, "features": [ "cucumber/features/oidc/refreshToken.feature", ], @@ -122,7 +122,7 @@ config = { }, }, "oidc-iframe": { - "skip": True, + "skip": False, "features": [ "cucumber/features/oidc/iframeTokenRenewal.feature", ], @@ -132,7 +132,7 @@ config = { }, "ocm": { "earlyFail": True, - "skip": True, + "skip": False, "federationServer": True, "suites": [ "ocm", @@ -210,6 +210,9 @@ def main(ctx): def beforePipelines(ctx): return checkStarlark() + \ + licenseCheck(ctx) + \ + documentation(ctx) + \ + changelog(ctx) + \ pnpmCache(ctx) + \ cacheOcisPipeline(ctx) + \ pipelinesDependsOn(buildCacheWeb(ctx), pnpmCache(ctx)) + \ @@ -224,7 +227,7 @@ def stagePipelines(ctx): e2e_pipelines = e2eTests(ctx) keycloak_pipelines = e2eTestsOnKeycloak(ctx) - return buildAndTestDesignSystem(ctx) + e2e_pipelines + keycloak_pipelines + return unit_test_pipelines + buildAndTestDesignSystem(ctx) + pipelinesDependsOn(e2e_pipelines + keycloak_pipelines, unit_test_pipelines) def afterPipelines(ctx): return build(ctx) + pipelinesDependsOn(notify(), build(ctx)) @@ -241,9 +244,9 @@ def pnpmCache(ctx): "steps": skipIfUnchanged(ctx, "cache") + installPnpm() + rebuildBuildArtifactCache(ctx, "pnpm", ".pnpm-store") + - checkPlaywrightChromiumCache() + - installPlaywright() + - cachePlaywright(), + checkChromiumCache() + + installChromium() + + cacheChromium(), "trigger": { "ref": [ "refs/heads/master", @@ -608,7 +611,7 @@ def e2eTests(ctx): steps = skipIfUnchanged(ctx, "e2e-tests") + \ restoreBuildArtifactCache(ctx, "pnpm", ".pnpm-store") + \ installPnpm() + \ - restorePlaywrightChromiumCache() + \ + restoreChromiumCache() + \ restoreBuildArtifactCache(ctx, "web-dist", "dist") if ctx.build.event == "cron": @@ -719,7 +722,7 @@ def installPnpm(): ], }] -def installPlaywright(): +def installChromium(): return [{ "name": "playwright-install", "image": OC_CI_NODEJS, @@ -1825,7 +1828,7 @@ def e2eTestsOnKeycloak(ctx): steps = restoreBuildArtifactCache(ctx, "pnpm", ".pnpm-store") + \ installPnpm() + \ - restorePlaywrightChromiumCache() + \ + restoreChromiumCache() + \ keycloakService() + \ restoreBuildArtifactCache(ctx, "web-dist", "dist") if ctx.build.event == "cron": @@ -1906,9 +1909,9 @@ def getOcislatestCommitId(ctx): }, ] -def cachePlaywright(): +def cacheChromium(): return [{ - "name": "upload-playwright-cache", + "name": "upload-chromium-cache", "image": MINIO_MC, "environment": minio_mc_environment, "commands": [ @@ -1919,9 +1922,9 @@ def cachePlaywright(): ], }] -def checkPlaywrightChromiumCache(): +def checkChromiumCache(): return [{ - "name": "check-playwright-cache", + "name": "check-chromium-cache", "image": MINIO_MC, "environment": minio_mc_environment, "commands": [ @@ -1931,9 +1934,9 @@ def checkPlaywrightChromiumCache(): ], }] -def restorePlaywrightChromiumCache(): +def restoreChromiumCache(): return [{ - "name": "restore-playwright-chromium-cache", + "name": "restore-chromium-cache", "image": MINIO_MC, "environment": minio_mc_environment, "commands": [ diff --git a/tests/drone/script.sh b/tests/drone/script.sh index 808937c88ec..3afb94015d9 100644 --- a/tests/drone/script.sh +++ b/tests/drone/script.sh @@ -52,7 +52,7 @@ check_playwright_cache() { if [[ "$playwright_cache" != "" ]] then - echo "Playwright $playwright_version Chromium exists in cache." + echo "Playwright v$playwright_version supported chromium doesn't exist in cache." exit 0 fi exit 78 @@ -64,6 +64,7 @@ if [[ "$1" == "" ]]; then echo "Commands:" echo -e " get_latest_ocis_commit_id \t get the latest oCIS commit ID" echo -e " check_ocis_cache \t\t check if the cache exists for the given commit ID" + echo -e " get_playwright_version \t get the playwright version from package.json" echo -e " check_playwright_cache \t check if the cache exists for the given commit ID" exit 1 fi diff --git a/tests/e2e/cucumber/environment/index.ts b/tests/e2e/cucumber/environment/index.ts index 5cff375e465..73904ddfb62 100644 --- a/tests/e2e/cucumber/environment/index.ts +++ b/tests/e2e/cucumber/environment/index.ts @@ -100,7 +100,6 @@ BeforeAll(async (): Promise => { state.browser = await browsers[config.browser]() - console.log(state.browser.version()) // setup keycloak admin user if (config.keycloak) { const usersEnvironment = new environment.UsersEnvironment()