Skip to content

Commit ea8fe28

Browse files
chore(python): fix prerelease session [autoapprove] (#473)
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 0307dff commit ea8fe28

File tree

2 files changed

+20
-17
lines changed

2 files changed

+20
-17
lines changed

packages/google-cloud-bigquery-storage/.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:c8878270182edaab99f2927969d4f700c3af265accd472c3425deedff2b7fd93
17-
# created: 2022-07-14T01:58:16.015625351Z
16+
digest: sha256:9db98b055a7f8bd82351238ccaacfd3cda58cdf73012ab58b8da146368330021
17+
# created: 2022-07-25T16:02:49.174178716Z

packages/google-cloud-bigquery-storage/noxfile.py

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

345345
# Install all dependencies
346346
session.install("-e", ".[all, tests, tracing]")
347-
session.install(*UNIT_TEST_STANDARD_DEPENDENCIES)
347+
unit_deps_all = UNIT_TEST_STANDARD_DEPENDENCIES + UNIT_TEST_EXTERNAL_DEPENDENCIES
348+
session.install(*unit_deps_all)
348349
system_deps_all = (
349350
SYSTEM_TEST_STANDARD_DEPENDENCIES
350351
+ SYSTEM_TEST_EXTERNAL_DEPENDENCIES
@@ -373,12 +374,6 @@ def prerelease_deps(session):
373374

374375
session.install(*constraints_deps)
375376

376-
if os.path.exists("samples/snippets/requirements.txt"):
377-
session.install("-r", "samples/snippets/requirements.txt")
378-
379-
if os.path.exists("samples/snippets/requirements-test.txt"):
380-
session.install("-r", "samples/snippets/requirements-test.txt")
381-
382377
prerel_deps = [
383378
"protobuf",
384379
# dependency of grpc
@@ -415,11 +410,19 @@ def prerelease_deps(session):
415410
system_test_folder_path = os.path.join("tests", "system")
416411

417412
# Only run system tests if found.
418-
if os.path.exists(system_test_path) or os.path.exists(system_test_folder_path):
419-
session.run("py.test", "tests/system")
420-
421-
snippets_test_path = os.path.join("samples", "snippets")
422-
423-
# Only run samples tests if found.
424-
if os.path.exists(snippets_test_path):
425-
session.run("py.test", "samples/snippets")
413+
if os.path.exists(system_test_path):
414+
session.run(
415+
"py.test",
416+
"--verbose",
417+
f"--junitxml=system_{session.python}_sponge_log.xml",
418+
system_test_path,
419+
*session.posargs,
420+
)
421+
if os.path.exists(system_test_folder_path):
422+
session.run(
423+
"py.test",
424+
"--verbose",
425+
f"--junitxml=system_{session.python}_sponge_log.xml",
426+
system_test_folder_path,
427+
*session.posargs,
428+
)

0 commit comments

Comments
 (0)