Skip to content

Commit

Permalink
experimental - stress test
Browse files Browse the repository at this point in the history
  • Loading branch information
worldomonation committed Sep 8, 2023
1 parent bd29657 commit f93ca7d
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .teamcity/_self/lib/utils/E2EBuildLibrary.kt
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ fun defaultE2eArtifactRules(): String = """
fun BuildSteps.runE2eTestsWithRetry(
testGroup: String,
additionalEnvVars: Map<String, String> = mapOf(),
stepName: String = "Run tests"
stepName: String = "Run tests"
): ScriptBuildStep {
val envVarExport = additionalEnvVars.map { ( key, value ) -> "export $key='$value'" }.joinToString( separator = "\n" )

Expand All @@ -105,7 +105,7 @@ fun BuildSteps.runE2eTestsWithRetry(
scriptContent = """
# Configure bash shell.
set -x

# Export additional environment variables.
$envVarExport

Expand All @@ -117,7 +117,7 @@ fun BuildSteps.runE2eTestsWithRetry(
set +o errexit

# Run suite.
xvfb-run yarn jest --reporters=jest-teamcity --reporters=default --maxWorkers=%JEST_E2E_WORKERS% --group=$testGroup
for i in {1..50}; do xvfb-run yarn jest --reporters=jest-teamcity --reporters=default --maxWorkers=%JEST_E2E_WORKERS% --group=$testGroup; done

# Restore exit on error.
set -o errexit
Expand Down
8 changes: 4 additions & 4 deletions .teamcity/_self/projects/WPComTests.kt
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ fun jetpackSimpleDeploymentE2eBuildType( targetDevice: String, buildUuid: String
uuid = buildUuid
name = "Jetpack Simple Deployment E2E Tests ($targetDevice)"
description = "Runs E2E tests validating the deployment of Jetpack on Simple sites on $targetDevice viewport"

artifactRules = defaultE2eArtifactRules();

vcs {
Expand Down Expand Up @@ -281,13 +281,13 @@ fun jetpackSimpleDeploymentE2eBuildType( targetDevice: String, buildUuid: String

fun jetpackAtomicDeploymentE2eBuildType( targetDevice: String, buildUuid: String ): BuildType {
val atomicVariations = listOf("default", "php-old", "php-new", "wp-beta", "wp-previous", "private", "ecomm-plan")

return BuildType({
id("WPComTests_jetpack_atomic_deployment_e2e_$targetDevice")
uuid = buildUuid
name = "Jetpack Atomic Deployment E2E Tests ($targetDevice)"
description = "Runs E2E tests validating the deployment of Jetpack on Atomic sites on $targetDevice viewport"

artifactRules = defaultE2eArtifactRules();

vcs {
Expand All @@ -308,7 +308,7 @@ fun jetpackAtomicDeploymentE2eBuildType( targetDevice: String, buildUuid: String

atomicVariations.forEach { variation ->
runE2eTestsWithRetry(
testGroup = "jetpack-wpcom-integration",
testGroup = "jetpack-wpcom-integration-loop",
additionalEnvVars = mapOf(
"ATOMIC_VARIATION" to variation,
"RUN_ID" to "Atomic: $variation"
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/specs/tools/advertising__promote.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/**
* @group calypso-pr
* @group jetpack-wpcom-integration
* @group jetpack-wpcom-integration-loop
*/

import {
Expand Down

0 comments on commit f93ca7d

Please sign in to comment.