You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by pa...@apache.org on 2021/12/14 15:28:06 UTC
[beam] branch master updated: [BEAM-13438][Playground] update precommit task for the backend
This is an automated email from the ASF dual-hosted git repository.
pabloem pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/beam.git
The following commit(s) were added to refs/heads/master by this push:
new 58932e8 [BEAM-13438][Playground] update precommit task for the backend
new 4471c1f Merge pull request #16199 from [BEAM-13438][Playground] Update precommit task to run benchmarks
58932e8 is described below
commit 58932e842eb1d851acf14694cb63384ba10cb266
Author: AydarZaynutdinov <ay...@akvelon.com>
AuthorDate: Mon Dec 13 17:34:41 2021 +0300
[BEAM-13438][Playground]
update precommit task for the backend
---
playground/backend/build.gradle.kts | 30 ++++++++++++++++++++++++++++++
1 file changed, 30 insertions(+)
diff --git a/playground/backend/build.gradle.kts b/playground/backend/build.gradle.kts
index be66356..dd9578a 100644
--- a/playground/backend/build.gradle.kts
+++ b/playground/backend/build.gradle.kts
@@ -51,6 +51,34 @@ task("test") {
}
}
+task("benchmarkPrecompiledObjects") {
+ group = "verification"
+ description = "Run benchmarks for precompiled objects"
+ doLast {
+ exec {
+ executable("go")
+ args("test", "-bench", ".", "-benchmem", "./internal/cloud_bucket/...")
+ }
+ }
+}
+
+task("benchmarkCodeProcessing") {
+ group = "verification"
+ description = "Run benchmarks for code processing"
+ doLast {
+ exec {
+ executable("go")
+ args("test", "-run=^$", "-bench", ".", "-benchmem", "./internal/code_processing/...")
+ }
+ }
+}
+
+task("benchmark") {
+ dependsOn(":playground:backend:benchmarkPrecompiledObjects")
+ dependsOn(":playground:backend:benchmarkCodeProcessing")
+}
+
+
task("installLinter") {
doLast {
exec {
@@ -69,9 +97,11 @@ task("runLint") {
}
}
}
+
task("precommit") {
dependsOn(":playground:backend:runLint")
dependsOn(":playground:backend:tidy")
dependsOn(":playground:backend:test")
+ dependsOn(":playground:backend:benchmark")
}