GeezerVison is showing github.com — build: use trampoline_v2 for python samples and allow custom dockerfi… · kthytang/python-aiplatform@77e58c5
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboard +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | docker: |
2 | 2 | image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest |
3 | | - digest: sha256:82b12321da4446a73cb11bcb6812fbec8c105abda3946d46e6394e5fbfb64c0f |
| 3 | + digest: sha256:6e7328583be8edd3ba8f35311c76a1ecbc823010279ccb6ab46b7a76e25eafcc |
Collapse file
Copy file name to clipboardExpand all lines: .kokoro/samples/lint/common.cfg +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -31,4 +31,4 @@ gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/python-docs-samples" |
31 | 31 | gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" |
32 | 32 |
|
33 | 33 | # Use the trampoline script to run in docker. |
34 | | -build_file: "python-aiplatform/.kokoro/trampoline.sh" |
| 34 | +build_file: "python-aiplatform/.kokoro/trampoline_v2.sh" |
Collapse file
Copy file name to clipboardExpand all lines: .kokoro/samples/python3.6/common.cfg +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -37,4 +37,4 @@ gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/python-docs-samples" |
37 | 37 | gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" |
38 | 38 |
|
39 | 39 | # Use the trampoline script to run in docker. |
40 | | -build_file: "python-aiplatform/.kokoro/trampoline.sh" |
| 40 | +build_file: "python-aiplatform/.kokoro/trampoline_v2.sh" |
Collapse file
Copy file name to clipboardExpand all lines: .kokoro/samples/python3.7/common.cfg +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -37,4 +37,4 @@ gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/python-docs-samples" |
37 | 37 | gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" |
38 | 38 |
|
39 | 39 | # Use the trampoline script to run in docker. |
40 | | -build_file: "python-aiplatform/.kokoro/trampoline.sh" |
| 40 | +build_file: "python-aiplatform/.kokoro/trampoline_v2.sh" |
Collapse file
Copy file name to clipboardExpand all lines: .kokoro/samples/python3.8/common.cfg +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -37,4 +37,4 @@ gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/python-docs-samples" |
37 | 37 | gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" |
38 | 38 |
|
39 | 39 | # Use the trampoline script to run in docker. |
40 | | -build_file: "python-aiplatform/.kokoro/trampoline.sh" |
| 40 | +build_file: "python-aiplatform/.kokoro/trampoline_v2.sh" |
Collapse file
Copy file name to clipboardExpand all lines: .kokoro/samples/python3.9/common.cfg +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -37,4 +37,4 @@ gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/python-docs-samples" |
37 | 37 | gfile_resources: "/bigstore/cloud-devrel-kokoro-resources/trampoline" |
38 | 38 |
|
39 | 39 | # Use the trampoline script to run in docker. |
40 | | -build_file: "python-aiplatform/.kokoro/trampoline.sh" |
| 40 | +build_file: "python-aiplatform/.kokoro/trampoline_v2.sh" |
Collapse file
Copy file name to clipboardExpand all lines: .kokoro/test-samples-against-head.sh -2Lines changed: 0 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -23,6 +23,4 @@ set -eo pipefail |
23 | 23 | # Enables `**` to include files nested inside sub-folders |
24 | 24 | shopt -s globstar |
25 | 25 |
|
26 | | -cd github/python-aiplatform |
27 | | - |
28 | 26 | exec .kokoro/test-samples-impl.sh |
Collapse file
Copy file name to clipboardExpand all lines: .kokoro/test-samples.sh -2Lines changed: 0 additions & 2 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -24,8 +24,6 @@ set -eo pipefail |
24 | 24 | # Enables `**` to include files nested inside sub-folders |
25 | 25 | shopt -s globstar |
26 | 26 |
|
27 | | -cd github/python-aiplatform |
28 | | - |
29 | 27 | # Run periodic samples tests at latest release |
30 | 28 | if [[ $KOKORO_BUILD_ARTIFACTS_SUBDIR = *"periodic"* ]]; then |
31 | 29 | # preserving the test runner implementation. |
|
Collapse file
Copy file name to clipboardExpand all lines: .trampolinerc +14-3Lines changed: 14 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
16 | 16 |
|
17 | 17 | # Add required env vars here. |
18 | 18 | required_envvars+=( |
19 | | - "STAGING_BUCKET" |
20 | | - "V2_STAGING_BUCKET" |
21 | 19 | ) |
22 | 20 |
|
23 | 21 | # Add env vars which are passed down into the container here. |
24 | 22 | pass_down_envvars+=( |
| 23 | + "NOX_SESSION" |
| 24 | + ############### |
| 25 | + # Docs builds |
| 26 | + ############### |
25 | 27 | "STAGING_BUCKET" |
26 | 28 | "V2_STAGING_BUCKET" |
27 | | - "NOX_SESSION" |
| 29 | + ################## |
| 30 | + # Samples builds |
| 31 | + ################## |
| 32 | + "INSTALL_LIBRARY_FROM_SOURCE" |
| 33 | + "RUN_TESTS_SESSION" |
| 34 | + "BUILD_SPECIFIC_GCLOUD_PROJECT" |
| 35 | + # Target directories. |
| 36 | + "RUN_TESTS_DIRS" |
| 37 | + # The nox session to run. |
| 38 | + "RUN_TESTS_SESSION" |
28 | 39 | ) |
29 | 40 |
|
30 | 41 | # Prevent unintentional override on the default image. |
|