-
Notifications
You must be signed in to change notification settings - Fork 988
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Parameterizing commit id and spanner host in spanner-staging-tests wo…
…rkflow (#2096) * Parameterizing commit id in spanner-staging-tests workflow * Parameterizing spanner host in spanner-staging-tests workflow * creating spanner-staging-it-tests and invoking test with staging tests profile * Correcting description * Integration test report corrected
- Loading branch information
1 parent
cf5b98b
commit f933ae9
Showing
3 changed files
with
118 additions
and
5 deletions.
There are no files selected for viewing
This file contains 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 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 |
---|---|---|
@@ -0,0 +1,85 @@ | ||
/* | ||
* Copyright (C) 2025 Google LLC | ||
* | ||
* 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 main | ||
|
||
import ( | ||
"flag" | ||
"log" | ||
|
||
"github.com/GoogleCloudPlatform/DataflowTemplates/cicd/internal/flags" | ||
"github.com/GoogleCloudPlatform/DataflowTemplates/cicd/internal/workflows" | ||
) | ||
|
||
func main() { | ||
flags.RegisterCommonFlags() | ||
flags.RegisterItFlags() | ||
flag.Parse() | ||
|
||
// Run mvn install before running integration tests | ||
mvnFlags := workflows.NewMavenFlags() | ||
err := workflows.MvnCleanInstall().Run( | ||
mvnFlags.IncludeDependencies(), | ||
mvnFlags.IncludeDependents(), | ||
mvnFlags.SkipDependencyAnalysis(), | ||
mvnFlags.SkipCheckstyle(), | ||
mvnFlags.SkipJib(), | ||
mvnFlags.SkipTests(), | ||
mvnFlags.SkipJacoco(), | ||
mvnFlags.SkipShade(), | ||
mvnFlags.ThreadCount(8), | ||
mvnFlags.InternalMaven()) | ||
if err != nil { | ||
log.Fatalf("%v\n", err) | ||
} | ||
|
||
// Run spanner integration tests | ||
mvnFlags = workflows.NewMavenFlags() | ||
err = workflows.MvnVerify().Run( | ||
mvnFlags.IncludeDependencies(), | ||
mvnFlags.IncludeDependents(), | ||
mvnFlags.SkipDependencyAnalysis(), | ||
mvnFlags.SkipCheckstyle(), | ||
mvnFlags.SkipJib(), | ||
mvnFlags.SkipShade(), | ||
mvnFlags.RunSpannerStagingIntegrationTests(), | ||
mvnFlags.ThreadCount(4), | ||
mvnFlags.IntegrationTestParallelism(3), | ||
mvnFlags.StaticBigtableInstance("teleport"), | ||
mvnFlags.StaticSpannerInstance("teleport"), | ||
mvnFlags.InternalMaven(), | ||
flags.Region(), | ||
flags.Project(), | ||
flags.ArtifactBucket(), | ||
flags.StageBucket(), | ||
flags.HostIp(), | ||
flags.PrivateConnectivity(), | ||
flags.SpannerHost(), | ||
flags.FailureMode(), | ||
flags.RetryFailures(), | ||
flags.StaticOracleHost(), | ||
flags.StaticOracleSysPassword(), | ||
flags.CloudProxyHost(), | ||
flags.CloudProxyMySqlPort(), | ||
flags.CloudProxyPostgresPort(), | ||
flags.CloudProxyPassword(), | ||
flags.UnifiedWorkerHarnessContainerImage(), | ||
flags.CloudProxyPassword()) | ||
if err != nil { | ||
log.Fatalf("%v\n", err) | ||
} | ||
log.Println("Build Successful!") | ||
} |
This file contains 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