Skip to content

Commit 1d57a34

Browse files
chore(python): fix prerelease session [autoapprove] (#476)
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 142c62c commit 1d57a34

2 files changed

Lines changed: 20 additions & 17 deletions

File tree

packages/sqlalchemy-bigquery/.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

packages/sqlalchemy-bigquery/noxfile.py

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

487487
# Install all dependencies
488488
session.install("-e", ".[all, tests, tracing]")
489-
session.install(*UNIT_TEST_STANDARD_DEPENDENCIES)
489+
unit_deps_all = UNIT_TEST_STANDARD_DEPENDENCIES + UNIT_TEST_EXTERNAL_DEPENDENCIES
490+
session.install(*unit_deps_all)
490491
system_deps_all = (
491492
SYSTEM_TEST_STANDARD_DEPENDENCIES
492493
+ SYSTEM_TEST_EXTERNAL_DEPENDENCIES
@@ -515,12 +516,6 @@ def prerelease_deps(session):
515516

516517
session.install(*constraints_deps)
517518

518-
if os.path.exists("samples/snippets/requirements.txt"):
519-
session.install("-r", "samples/snippets/requirements.txt")
520-
521-
if os.path.exists("samples/snippets/requirements-test.txt"):
522-
session.install("-r", "samples/snippets/requirements-test.txt")
523-
524519
prerel_deps = [
525520
"protobuf",
526521
# dependency of grpc
@@ -557,11 +552,19 @@ def prerelease_deps(session):
557552
system_test_folder_path = os.path.join("tests", "system")
558553

559554
# Only run system tests if found.
560-
if os.path.exists(system_test_path) or os.path.exists(system_test_folder_path):
561-
session.run("py.test", "tests/system")
562-
563-
snippets_test_path = os.path.join("samples", "snippets")
564-
565-
# Only run samples tests if found.
566-
if os.path.exists(snippets_test_path):
567-
session.run("py.test", "samples/snippets")
555+
if os.path.exists(system_test_path):
556+
session.run(
557+
"py.test",
558+
"--verbose",
559+
f"--junitxml=system_{session.python}_sponge_log.xml",
560+
system_test_path,
561+
*session.posargs,
562+
)
563+
if os.path.exists(system_test_folder_path):
564+
session.run(
565+
"py.test",
566+
"--verbose",
567+
f"--junitxml=system_{session.python}_sponge_log.xml",
568+
system_test_folder_path,
569+
*session.posargs,
570+
)

0 commit comments

Comments
 (0)