Skip to content

Commit

Permalink
build: shard python autosynth job (#977)
Browse files Browse the repository at this point in the history
Fixes #966 

Also needs internal config changes in 361648260.
  • Loading branch information
busunkim96 authored Mar 9, 2021
1 parent fa172c6 commit e5fa6d9
Show file tree
Hide file tree
Showing 10 changed files with 375 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2020 Google LLC
# Copyright 2021 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand All @@ -17,6 +17,11 @@ env_vars: {
value: "autosynth.providers.python"
}

env_vars: {
key: "MULTISYNTH_SHARD"
value: "0/10"
}

env_vars: {
key: "AUTOSYNTH_MULTIPLE_COMMITS"
value: "true"
Expand Down
41 changes: 41 additions & 0 deletions .kokoro-autosynth/python-shard1.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Copyright 2021 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.

env_vars: {
key: "MULTISYNTH_CONFIG"
value: "autosynth.providers.python"
}

env_vars: {
key: "MULTISYNTH_SHARD"
value: "1/10"
}

env_vars: {
key: "AUTOSYNTH_MULTIPLE_COMMITS"
value: "true"
}

env_vars: {
key: "AUTOSYNTH_MULTIPLE_PRS"
value: "true"
}

env_vars: {
key: "SYNTHTOOL_TRACK_OBSOLETE_FILES"
value: "true"
}

# bump the timeout for this job to 10 hours
timeout_mins: 600
41 changes: 41 additions & 0 deletions .kokoro-autosynth/python-shard2.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Copyright 2021 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.

env_vars: {
key: "MULTISYNTH_CONFIG"
value: "autosynth.providers.python"
}

env_vars: {
key: "MULTISYNTH_SHARD"
value: "2/10"
}

env_vars: {
key: "AUTOSYNTH_MULTIPLE_COMMITS"
value: "true"
}

env_vars: {
key: "AUTOSYNTH_MULTIPLE_PRS"
value: "true"
}

env_vars: {
key: "SYNTHTOOL_TRACK_OBSOLETE_FILES"
value: "true"
}

# bump the timeout for this job to 10 hours
timeout_mins: 600
41 changes: 41 additions & 0 deletions .kokoro-autosynth/python-shard3.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Copyright 2021 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.

env_vars: {
key: "MULTISYNTH_CONFIG"
value: "autosynth.providers.python"
}

env_vars: {
key: "MULTISYNTH_SHARD"
value: "3/10"
}

env_vars: {
key: "AUTOSYNTH_MULTIPLE_COMMITS"
value: "true"
}

env_vars: {
key: "AUTOSYNTH_MULTIPLE_PRS"
value: "true"
}

env_vars: {
key: "SYNTHTOOL_TRACK_OBSOLETE_FILES"
value: "true"
}

# bump the timeout for this job to 10 hours
timeout_mins: 600
41 changes: 41 additions & 0 deletions .kokoro-autosynth/python-shard4.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Copyright 2021 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.

env_vars: {
key: "MULTISYNTH_CONFIG"
value: "autosynth.providers.python"
}

env_vars: {
key: "MULTISYNTH_SHARD"
value: "4/10"
}

env_vars: {
key: "AUTOSYNTH_MULTIPLE_COMMITS"
value: "true"
}

env_vars: {
key: "AUTOSYNTH_MULTIPLE_PRS"
value: "true"
}

env_vars: {
key: "SYNTHTOOL_TRACK_OBSOLETE_FILES"
value: "true"
}

# bump the timeout for this job to 10 hours
timeout_mins: 600
41 changes: 41 additions & 0 deletions .kokoro-autosynth/python-shard5.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Copyright 2021 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.

env_vars: {
key: "MULTISYNTH_CONFIG"
value: "autosynth.providers.python"
}

env_vars: {
key: "MULTISYNTH_SHARD"
value: "5/10"
}

env_vars: {
key: "AUTOSYNTH_MULTIPLE_COMMITS"
value: "true"
}

env_vars: {
key: "AUTOSYNTH_MULTIPLE_PRS"
value: "true"
}

env_vars: {
key: "SYNTHTOOL_TRACK_OBSOLETE_FILES"
value: "true"
}

# bump the timeout for this job to 10 hours
timeout_mins: 600
41 changes: 41 additions & 0 deletions .kokoro-autosynth/python-shard6.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Copyright 2021 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.

env_vars: {
key: "MULTISYNTH_CONFIG"
value: "autosynth.providers.python"
}

env_vars: {
key: "MULTISYNTH_SHARD"
value: "6/10"
}

env_vars: {
key: "AUTOSYNTH_MULTIPLE_COMMITS"
value: "true"
}

env_vars: {
key: "AUTOSYNTH_MULTIPLE_PRS"
value: "true"
}

env_vars: {
key: "SYNTHTOOL_TRACK_OBSOLETE_FILES"
value: "true"
}

# bump the timeout for this job to 10 hours
timeout_mins: 600
41 changes: 41 additions & 0 deletions .kokoro-autosynth/python-shard7.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Copyright 2021 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.

env_vars: {
key: "MULTISYNTH_CONFIG"
value: "autosynth.providers.python"
}

env_vars: {
key: "MULTISYNTH_SHARD"
value: "7/10"
}

env_vars: {
key: "AUTOSYNTH_MULTIPLE_COMMITS"
value: "true"
}

env_vars: {
key: "AUTOSYNTH_MULTIPLE_PRS"
value: "true"
}

env_vars: {
key: "SYNTHTOOL_TRACK_OBSOLETE_FILES"
value: "true"
}

# bump the timeout for this job to 10 hours
timeout_mins: 600
41 changes: 41 additions & 0 deletions .kokoro-autosynth/python-shard8.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Copyright 2021 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.

env_vars: {
key: "MULTISYNTH_CONFIG"
value: "autosynth.providers.python"
}

env_vars: {
key: "MULTISYNTH_SHARD"
value: "8/10"
}

env_vars: {
key: "AUTOSYNTH_MULTIPLE_COMMITS"
value: "true"
}

env_vars: {
key: "AUTOSYNTH_MULTIPLE_PRS"
value: "true"
}

env_vars: {
key: "SYNTHTOOL_TRACK_OBSOLETE_FILES"
value: "true"
}

# bump the timeout for this job to 10 hours
timeout_mins: 600
41 changes: 41 additions & 0 deletions .kokoro-autosynth/python-shard9.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
# Copyright 2021 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.

env_vars: {
key: "MULTISYNTH_CONFIG"
value: "autosynth.providers.python"
}

env_vars: {
key: "MULTISYNTH_SHARD"
value: "9/10"
}

env_vars: {
key: "AUTOSYNTH_MULTIPLE_COMMITS"
value: "true"
}

env_vars: {
key: "AUTOSYNTH_MULTIPLE_PRS"
value: "true"
}

env_vars: {
key: "SYNTHTOOL_TRACK_OBSOLETE_FILES"
value: "true"
}

# bump the timeout for this job to 10 hours
timeout_mins: 600

0 comments on commit e5fa6d9

Please sign in to comment.