Skip to content

Commit

Permalink
test: disambiguate log files for flakybot (#95)
Browse files Browse the repository at this point in the history
* test: disambiguate log files for flakybot

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* try different owlbot config

* try again without backslash

* 🦉 Updates from OwlBot post-processor

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
  • Loading branch information
tswast and gcf-owl-bot[bot] authored Mar 25, 2022
1 parent 0363e87 commit e5797a8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def default(session, tests_path):
session.run(
"py.test",
"--quiet",
f"--junitxml=unit_{session.python}_sponge_log.xml",
f"--junitxml={os.path.split(tests_path)[-1]}_{session.python}_sponge_log.xml",
"--cov=db_dtypes",
"--cov=tests/unit",
"--cov-append",
Expand Down Expand Up @@ -179,7 +179,7 @@ def prerelease(session, tests_path):
session.run(
"py.test",
"--quiet",
f"--junitxml=prerelease_unit_{session.python}_sponge_log.xml",
f"--junitxml={os.path.split(tests_path)[-1]}_prerelease_{session.python}_sponge_log.xml",
"--cov=db_dtypes",
"--cov=tests/unit",
"--cov-append",
Expand Down
7 changes: 6 additions & 1 deletion owlbot.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,11 @@
["noxfile.py"], r"def default\(session\):", "def default(session, tests_path):"
)
s.replace(["noxfile.py"], r'os.path.join\("tests", "unit"\),', "tests_path,")
s.replace(
["noxfile.py"],
r'f"--junitxml=unit_{session.python}_sponge_log.xml",',
r'f"--junitxml={os.path.split(tests_path)[-1]}_{session.python}_sponge_log.xml",',
)
s.replace(
["noxfile.py"],
r'''
Expand Down Expand Up @@ -154,7 +159,7 @@ def prerelease(session, tests_path):
session.run(
"py.test",
"--quiet",
f"--junitxml=prerelease_unit_{session.python}_sponge_log.xml",
f"--junitxml={os.path.split(tests_path)[-1]}_prerelease_{session.python}_sponge_log.xml",
"--cov=db_dtypes",
"--cov=tests/unit",
"--cov-append",
Expand Down

0 comments on commit e5797a8

Please sign in to comment.