-
Notifications
You must be signed in to change notification settings - Fork 316
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Update testing configs and structure for speed (#578)
* Initial test config changes * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/master/packages/owl-bot/README.md * Update build configs to match google3 job configs * Rename required presubmit CI check * 🦉 Updates from OwlBot See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * Force OwlBot to avoid overwriting Kokoro configs * Undo OwlBot overwrite * Update OwlBot.py * Fix double install of SDK in sample nox sessions * Empty requirements.txt files to trigger Sample CI * Update Nox env var to use spaces, not csv * Update parallel dist in presubmit * Address reviewer comments, final changes * Limit presubmit to unit-3.6, widen release presubmit to all unit tests * Update presubmit to unit-3.7 only * Unit 3.6, 3.7 in presubmit to check coverage * Presubmit to unit-3.8 Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
- Loading branch information
1 parent
4e7666a
commit 3612b05
Showing
15 changed files
with
59 additions
and
13 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,10 @@ | ||
env_vars: { | ||
key: "NOX_SESSION" | ||
value: "system-3.8" | ||
} | ||
|
||
# Run system tests in parallel, splitting up by file | ||
env_vars: { | ||
key: "PYTEST_ADDOPTS" | ||
value: "-n=auto --dist=loadfile" | ||
} |
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,11 @@ | ||
# Run all unit test sessions, in Python 3.6 to 3.9 | ||
env_vars: { | ||
key: "NOX_SESSION" | ||
value: "unit" | ||
} | ||
|
||
# Run unit tests in parallel, splitting up by test | ||
env_vars: { | ||
key: "PYTEST_ADDOPTS" | ||
value: "-n=auto" | ||
} |
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 |
---|---|---|
@@ -1 +1,13 @@ | ||
# Format: //devtools/kokoro/config/proto/build.proto | ||
# Format: //devtools/kokoro/config/proto/build.proto | ||
|
||
# Run all sessions except system tests and docs builds | ||
env_vars: { | ||
key: "NOX_SESSION" | ||
value: "unit-3.8 lint lint_setup_py blacken cover" | ||
} | ||
|
||
# Run unit tests in parallel, splitting up by file | ||
env_vars: { | ||
key: "PYTEST_ADDOPTS" | ||
value: "-n=auto --dist=loadfile" | ||
} |
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,11 @@ | ||
# Run system tests in presubmit for library releases | ||
env_vars: { | ||
key: "NOX_SESSION" | ||
value: "system-3.8 unit" | ||
} | ||
|
||
# Run system tests in parallel, splitting up by file | ||
env_vars: { | ||
key: "PYTEST_ADDOPTS" | ||
value: "-n=auto --dist=loadfile" | ||
} |
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,2 @@ | ||
pytest==6.2.4 | ||
pytest-xdist |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,2 +1 @@ | ||
pytest >= 6.2 | ||
git+https://github.com/googleapis/python-aiplatform.git@mb-release#egg=google-cloud-aiplatform | ||
google-cloud-aiplatform |
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,2 @@ | ||
pytest==6.2.4 | ||
pytest-xdist |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,3 +1 @@ | ||
pytest==6.2.4 | ||
google-cloud-storage>=1.26.0, <2.0.0dev | ||
google-cloud-aiplatform==1.3.0 | ||
google-cloud-aiplatform |
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