Skip to content
This repository was archived by the owner on Feb 13, 2024. It is now read-only.

Commit ded3190

Browse files
chore(python): fix prerelease session [autoapprove] (#459)
Source-Link: googleapis/synthtool@1b9ad76 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-python:latest@sha256:9db98b055a7f8bd82351238ccaacfd3cda58cdf73012ab58b8da146368330021 Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 09e969f commit ded3190

File tree

2 files changed

+20
-17
lines changed

2 files changed

+20
-17
lines changed

.github/.OwlBot.lock.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@
1313
# limitations under the License.
1414
docker:
1515
image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest
16-
digest: sha256:e7bb19d47c13839fe8c147e50e02e8b6cf5da8edd1af8b82208cd6f66cc2829c
17-
# created: 2022-07-05T18:31:20.838186805Z
16+
digest: sha256:9db98b055a7f8bd82351238ccaacfd3cda58cdf73012ab58b8da146368330021
17+
# created: 2022-07-25T16:02:49.174178716Z

noxfile.py

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -335,7 +335,8 @@ def prerelease_deps(session):
335335

336336
# Install all dependencies
337337
session.install("-e", ".[all, tests, tracing]")
338-
session.install(*UNIT_TEST_STANDARD_DEPENDENCIES)
338+
unit_deps_all = UNIT_TEST_STANDARD_DEPENDENCIES + UNIT_TEST_EXTERNAL_DEPENDENCIES
339+
session.install(*unit_deps_all)
339340
system_deps_all = (
340341
SYSTEM_TEST_STANDARD_DEPENDENCIES
341342
+ SYSTEM_TEST_EXTERNAL_DEPENDENCIES
@@ -364,12 +365,6 @@ def prerelease_deps(session):
364365

365366
session.install(*constraints_deps)
366367

367-
if os.path.exists("samples/snippets/requirements.txt"):
368-
session.install("-r", "samples/snippets/requirements.txt")
369-
370-
if os.path.exists("samples/snippets/requirements-test.txt"):
371-
session.install("-r", "samples/snippets/requirements-test.txt")
372-
373368
prerel_deps = [
374369
"protobuf",
375370
# dependency of grpc
@@ -406,11 +401,19 @@ def prerelease_deps(session):
406401
system_test_folder_path = os.path.join("tests", "system")
407402

408403
# Only run system tests if found.
409-
if os.path.exists(system_test_path) or os.path.exists(system_test_folder_path):
410-
session.run("py.test", "tests/system")
411-
412-
snippets_test_path = os.path.join("samples", "snippets")
413-
414-
# Only run samples tests if found.
415-
if os.path.exists(snippets_test_path):
416-
session.run("py.test", "samples/snippets")
404+
if os.path.exists(system_test_path):
405+
session.run(
406+
"py.test",
407+
"--verbose",
408+
f"--junitxml=system_{session.python}_sponge_log.xml",
409+
system_test_path,
410+
*session.posargs,
411+
)
412+
if os.path.exists(system_test_folder_path):
413+
session.run(
414+
"py.test",
415+
"--verbose",
416+
f"--junitxml=system_{session.python}_sponge_log.xml",
417+
system_test_folder_path,
418+
*session.posargs,
419+
)

0 commit comments

Comments
 (0)