-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/apache/beam into tox_2_again
- Loading branch information
Showing
1,422 changed files
with
62,366 additions
and
34,694 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
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,24 +20,28 @@ | |
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" | ||
runner_image = "us-central1-docker.pkg.dev/apache-beam-testing/beam-github-actions/beam-arc-runner:2b20e26bb3b99d8e4f41a3d1d9d2e7080043de5c" | ||
machine_type = "e2-standard-16" | ||
min_node_count = "1" | ||
max_node_count = "24" | ||
max_node_count = "30" | ||
min_replicas = "1" | ||
max_replicas = "200" | ||
webhook_scaling = true | ||
max_replicas = "240" | ||
webhook_scaling = false | ||
disk_size_gb = 200 | ||
requests = { | ||
cpu = "2" | ||
|
@@ -49,10 +53,10 @@ additional_runner_pools = [{ | |
machine_type = "e2-standard-2" | ||
runner_image = "us-central1-docker.pkg.dev/apache-beam-testing/beam-github-actions/beam-arc-runner:2b20e26bb3b99d8e4f41a3d1d9d2e7080043de5c" | ||
min_node_count = "1" | ||
max_node_count = "10" | ||
max_node_count = "15" | ||
min_replicas = "1" | ||
max_replicas = "10" | ||
webhook_scaling = "true" | ||
max_replicas = "15" | ||
webhook_scaling = false | ||
requests = { | ||
cpu = "1500m" | ||
memory = "5Gi" | ||
|
@@ -66,10 +70,10 @@ additional_runner_pools = [{ | |
machine_type = "c3-highmem-8" | ||
runner_image = "us-central1-docker.pkg.dev/apache-beam-testing/beam-github-actions/beam-arc-runner:2b20e26bb3b99d8e4f41a3d1d9d2e7080043de5c" | ||
min_node_count = "1" | ||
max_node_count = "10" | ||
max_node_count = "15" | ||
min_replicas = "1" | ||
max_replicas = "10" | ||
webhook_scaling = "true" | ||
max_replicas = "15" | ||
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
Oops, something went wrong.