-
Notifications
You must be signed in to change notification settings - Fork 2k
CI: remove unused configurations and further tweaks to filter unnecessary builds. #78973
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
2ef6c2c
.teamcity/_self/projects/WebApp.kt
worldomonation 69ad325
.teamcity/_self/lib/wpcom/WPComPluginBuild.kt
worldomonation ace1dfc
.teamcity/_self/projects/WebApp.kt
worldomonation 4946db9
.teamcity/settings.kts
worldomonation 6c934db
.teamcity/_self/projects/WPComPlugins.kt
worldomonation File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -24,7 +24,6 @@ object WebApp : Project({ | |
| buildType(playwrightPrBuildType("mobile", "90fbd6b7-fddb-4668-9ed0-b32598143616")) | ||
| buildType(PreReleaseE2ETests) | ||
| buildType(AuthenticationE2ETests) | ||
| buildType(HelpCentreE2ETests) | ||
| buildType(QuarantinedE2ETests) | ||
| }) | ||
|
|
||
|
|
@@ -982,153 +981,6 @@ object AuthenticationE2ETests : E2EBuildType( | |
| } | ||
| ) | ||
|
|
||
| object HelpCentreE2ETests : E2EBuildType( | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. These configurations were never used or no longer used. |
||
| buildId = "calypso_WebApp_Calypso_E2E_Help_Centre", | ||
| buildUuid = "a0e62582-8598-483e-8b82-9de540288f6d", | ||
| buildName = "Help Centre E2E Tests", | ||
| buildDescription = "Runs a suite of Help Centre E2E tests.", | ||
| testGroup = "help-centre", | ||
| buildParams = { | ||
| param("env.VIEWPORT_NAME", "desktop") | ||
| }, | ||
| buildFeatures = { | ||
| notifications { | ||
| notifierSettings = slackNotifier { | ||
| connection = "PROJECT_EXT_11" | ||
| sendTo = "#e2eflowtesting-notif" | ||
| messageFormat = verboseMessageFormat { | ||
| addStatusText = true | ||
| } | ||
| } | ||
| branchFilter = "+:<default>" | ||
| buildFailedToStart = true | ||
| buildFailed = true | ||
| buildFinishedSuccessfully = false | ||
| buildProbablyHanging = true | ||
| } | ||
| }, | ||
| buildTriggers = { | ||
| schedule { | ||
| schedulingPolicy = cron { | ||
| hours = "*/3" | ||
| } | ||
| branchFilter = "+:<default>" | ||
| triggerBuild = always() | ||
| withPendingChangesOnly = false | ||
| } | ||
| } | ||
| ) | ||
|
|
||
| object KPIDashboardTests : BuildType({ | ||
| id("calypso_WebApp_Calypso_E2E_KPI_Dashboard") | ||
| uuid = "441efac5-721a-4557-9448-9234e89fb6b1" | ||
| name = "Test build for KPI Dashboard project" | ||
| description = "Test build configuration for KPI dashboard." | ||
| artifactRules = """ | ||
| logs.tgz => logs.tgz | ||
| screenshots => screenshots | ||
| trace => trace | ||
| allure-results.tgz => allure-results.tgz | ||
| """.trimIndent() | ||
|
|
||
| vcs { | ||
| root(Settings.WpCalypso) | ||
| cleanCheckout = true | ||
| } | ||
|
|
||
| params { | ||
| param("env.NODE_CONFIG_ENV", "test") | ||
| param("env.PLAYWRIGHT_BROWSERS_PATH", "0") | ||
| param("env.TEAMCITY_VERSION", "2021") | ||
| param("env.HEADLESS", "true") | ||
| param("env.LOCALE", "en") | ||
| param("env.DEBUG", "") | ||
| param("env.VIEWPORT_NAME", "desktop") | ||
| param("env.ALLURE_RESULTS_PATH", "allure-results") | ||
| } | ||
|
|
||
| steps { | ||
| bashNodeScript { | ||
| name = "Prepare environment" | ||
| scriptContent = """ | ||
| # Install deps | ||
| yarn workspaces focus wp-e2e-tests @automattic/calypso-e2e | ||
|
|
||
| # Decrypt secrets | ||
| # Must do before build so the secrets are in the dist output | ||
| E2E_SECRETS_KEY="%E2E_SECRETS_ENCRYPTION_KEY_CURRENT%" yarn workspace @automattic/calypso-e2e decrypt-secrets | ||
|
|
||
| # Build packages | ||
| yarn workspace @automattic/calypso-e2e build | ||
| """.trimIndent() | ||
| dockerImage = "%docker_image_e2e%" | ||
| } | ||
|
|
||
| bashNodeScript { | ||
| name = "Run tests" | ||
| scriptContent = """ | ||
| # Configure bash shell. | ||
| shopt -s globstar | ||
| set -x | ||
|
|
||
| # Enter testing directory. | ||
| cd test/e2e | ||
| mkdir temp | ||
|
|
||
| # Run suite. | ||
| xvfb-run yarn jest --reporters=jest-teamcity --reporters=default --maxWorkers=%JEST_E2E_WORKERS% --group=kpi | ||
| """ | ||
| dockerImage = "%docker_image_e2e%" | ||
| } | ||
|
|
||
| bashNodeScript { | ||
| name = "Collect results" | ||
| executionMode = BuildStep.ExecutionMode.RUN_ON_FAILURE | ||
| scriptContent = """ | ||
| set -x | ||
|
|
||
| mkdir -p screenshots | ||
| find test/e2e/results -type f \( -iname \*.webm -o -iname \*.png \) -print0 | xargs -r -0 mv -t screenshots | ||
|
|
||
| mkdir -p logs | ||
| find test/e2e/results -name '*.log' -print0 | xargs -r -0 tar cvfz logs.tgz | ||
|
|
||
| mkdir -p trace | ||
| find test/e2e/results -name '*.zip' -print0 | xargs -r -0 mv -t trace | ||
|
|
||
| mkdir -p allure-results | ||
| find test/e2e/allure-results -name '*.json' -print0 | xargs -r -0 tar cvfz allure-results.tgz | ||
| """.trimIndent() | ||
| dockerImage = "%docker_image_e2e%" | ||
| } | ||
| } | ||
|
|
||
| features { | ||
| perfmon { | ||
| } | ||
| } | ||
|
|
||
| // By default, no triggers are defined for this template class. | ||
| triggers {} | ||
|
|
||
| failureConditions { | ||
| executionTimeoutMin = 20 | ||
| // Don't fail if the runner exists with a non zero code. This allows a build to pass if the failed tests have been muted previously. | ||
| nonZeroExitCode = false | ||
|
|
||
| // Fail if the number of passing tests is 50% or less than the last build. This will catch the case where the test runner crashes and no tests are run. | ||
| failOnMetricChange { | ||
| metric = BuildFailureOnMetric.MetricType.PASSED_TEST_COUNT | ||
| threshold = 50 | ||
| units = BuildFailureOnMetric.MetricUnit.PERCENTS | ||
| comparison = BuildFailureOnMetric.MetricComparison.LESS | ||
| compareTo = build { | ||
| buildRule = lastSuccessful() | ||
| } | ||
| } | ||
| } | ||
| }) | ||
|
|
||
| object QuarantinedE2ETests: E2EBuildType( | ||
| buildId = "calypso_WebApp_Quarantined_E2E_Tests", | ||
| buildUuid = "14083675-b6de-419f-b2f6-ec89c06d3a8c", | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the merge conflict, just a heads up that I moved the unit tests here from calypso apps to the primary unit test build config in #79097.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah gotcha, I'll take a look. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Heads up, I'm temporarily reverting #79159 because of an issue with the ETK build #79159
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@roo2 Thanks for the heads up. I'll merge my changes in since it should not cause any issues with existing builds, but that means I'd be shifting the conflict resolution burden onto @noahtallen - hope you don't mind.