-
Notifications
You must be signed in to change notification settings - Fork 5k
Configure lifecycle tasks for all projects without filtering subprojects #14440
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
Changes from all commits
78196d3
6fc5dab
2efb282
fd6fcd1
1445d4e
8096370
5976132
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
/* | ||
* Copyright 2020 the original author or authors. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
package gradlebuild | ||
|
||
tasks.registerEarlyFeedbackLifecycleTasks() | ||
tasks.named("quickTest") { | ||
dependsOn("test") | ||
} | ||
tasks.named("platformTest") { | ||
dependsOn("test") | ||
} | ||
tasks.configureCIIntegrationTestDistributionLifecycleTasks() | ||
tasks.configureCICrossVersionTestDistributionLifecycleTasks() | ||
|
||
val ciGroup = "CI Lifecycle" | ||
|
||
/** | ||
* Basic compile and check lifecycle tasks. | ||
*/ | ||
fun TaskContainer.registerEarlyFeedbackLifecycleTasks() { | ||
register("compileAllBuild") { | ||
description = "Initialize CI Pipeline by priming the cache before fanning out" | ||
group = ciGroup | ||
dependsOn("compileAll") | ||
} | ||
|
||
register("sanityCheck") { | ||
description = "Run all basic checks (without tests) - to be run locally and on CI for early feedback" | ||
group = "verification" | ||
dependsOn("compileAll", "codeQuality") | ||
} | ||
} | ||
|
||
fun TaskContainer.configureCIIntegrationTestDistributionLifecycleTasks() { | ||
named("quickTest") { | ||
dependsOn("embeddedIntegTest") | ||
} | ||
Comment on lines
+49
to
+51
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. I am not confident with the change because now 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. I think it's ok. |
||
|
||
named("platformTest") { | ||
dependsOn("forkingIntegTest") | ||
} | ||
|
||
named("allVersionsIntegMultiVersionTest") { | ||
dependsOn("integMultiVersionTest") | ||
} | ||
|
||
named("parallelTest") { | ||
dependsOn("parallelIntegTest") | ||
} | ||
|
||
named("noDaemonTest") { | ||
dependsOn("noDaemonIntegTest") | ||
} | ||
|
||
named("configCacheTest") { | ||
dependsOn("configCacheIntegTest") | ||
} | ||
|
||
named("watchFsTest") { | ||
dependsOn("watchFsIntegTest") | ||
} | ||
|
||
named("forceRealizeDependencyManagementTest") { | ||
dependsOn("integForceRealizeTest") | ||
} | ||
} | ||
|
||
fun TaskContainer.configureCICrossVersionTestDistributionLifecycleTasks() { | ||
named("quickTest") { | ||
dependsOn("embeddedCrossVersionTest") | ||
} | ||
|
||
named("platformTest") { | ||
dependsOn("forkingCrossVersionTest") | ||
} | ||
|
||
named("quickFeedbackCrossVersionTest") { | ||
dependsOn("quickFeedbackCrossVersionTests") | ||
} | ||
|
||
named("allVersionsCrossVersionTest") { | ||
dependsOn("allVersionsCrossVersionTests") | ||
} | ||
} |
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.
We don't need to do it now, but eventually it would be better if we won't have to add a sanityCheck task to the root proejct at all. Instead the "sanityCheck" of the subprojects in question here should get extended in the places where the corresponding tasks --- like
allIncubationReportsZip
-- are created.Same for compileAll/services:createBuildReceipt above.