forked from apache/beam
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'apache:master' into master
- Loading branch information
Showing
1,094 changed files
with
42,423 additions
and
27,938 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
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
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,61 @@ | ||
/* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you 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. | ||
*/ | ||
|
||
buildscript { | ||
repositories { | ||
mavenCentral() | ||
} | ||
dependencies { | ||
classpath group: 'org.yaml', name: 'snakeyaml', version: '2.2' | ||
} | ||
} | ||
|
||
/** check that yml are valid */ | ||
task check { | ||
doLast { | ||
fileTree("${project.projectDir}/workflows").matching { | ||
include "*.yml" | ||
include "*.yaml" | ||
}.each { | ||
def fname = it.getName() | ||
// attempt load yml to make sure its valid | ||
def workflow = new org.yaml.snakeyaml.Yaml().load(it.newInputStream()) | ||
|
||
// additional guards for running all tests functionality | ||
// TODO(yathu) expand this also to post commits prior teardown Jenkins postcommits | ||
if ( fname.startsWith("beam_PreCommit")) { | ||
List paths | ||
try { | ||
paths = workflow.getAt(true).pull_request_target.paths as List | ||
} catch (Exception e) { | ||
throw new GradleException("Fail to get the trigger path for ${fname}. " + | ||
"Make sure precommit has a pull_request_target trigger.", e) | ||
} | ||
// precommit should triggered by this specific file | ||
if (paths != null && !paths.contains('release/trigger_all_tests.json')) { | ||
throw new GradleException("Error validating ${fname}: " + | ||
"Please add 'release/trigger_all_tests.json' to the trigger path for release verification run properly") | ||
} | ||
} | ||
} | ||
} | ||
} | ||
|
||
task preCommit { | ||
dependsOn check | ||
} |
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
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 |
---|---|---|
|
@@ -20,14 +20,18 @@ | |
project_id = "apache-beam-testing" | ||
region = "us-central1" | ||
zone = "us-central1-b" | ||
environment = "beam" | ||
environment = "beam-prod" | ||
ingress_domain = "action.beam.apache.org" | ||
organization = "apache" | ||
repository = "beam" | ||
github_app_id_secret_name = "gh-app_id" | ||
github_app_install_id_secret_name = "gh-app_installation_id" | ||
github_private_key_secret_name = "gh-pem_key" | ||
deploy_webhook = "true" | ||
existing_vpc_name = "default" | ||
existing_ip_name = "beam-arc-webhook-ip" | ||
subnetwork_cidr_range = "10.119.0.0/20" | ||
service_account_id = "[email protected]" | ||
runner_group = "beam" | ||
main_runner = { | ||
name = "main-runner" | ||
|
@@ -37,7 +41,7 @@ main_runner = { | |
max_node_count = "24" | ||
min_replicas = "1" | ||
max_replicas = "200" | ||
webhook_scaling = true | ||
webhook_scaling = false | ||
disk_size_gb = 200 | ||
requests = { | ||
cpu = "2" | ||
|
@@ -52,7 +56,7 @@ additional_runner_pools = [{ | |
max_node_count = "10" | ||
min_replicas = "1" | ||
max_replicas = "10" | ||
webhook_scaling = "true" | ||
webhook_scaling = false | ||
requests = { | ||
cpu = "1500m" | ||
memory = "5Gi" | ||
|
@@ -69,7 +73,7 @@ additional_runner_pools = [{ | |
max_node_count = "10" | ||
min_replicas = "1" | ||
max_replicas = "10" | ||
webhook_scaling = "true" | ||
webhook_scaling = false | ||
requests = { | ||
cpu = "7.5" | ||
memory = "5Gi" | ||
|
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
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
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
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
Oops, something went wrong.