Skip to content

Commit

Permalink
build(python): enable flakybot on library unit and system tests (#23)
Browse files Browse the repository at this point in the history
Source-Author: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com>
Source-Date: Wed Feb 17 14:10:46 2021 -0700
Source-Repo: googleapis/synthtool
Source-Sha: d17674372e27fb8f23013935e794aa37502071aa
Source-Link: googleapis/synthtool@d176743
  • Loading branch information
yoshi-automation committed Mar 23, 2021
1 parent 16486d8 commit 990780d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
10 changes: 10 additions & 0 deletions .kokoro/build.sh
Expand Up @@ -40,6 +40,16 @@ python3 -m pip uninstall --yes --quiet nox-automation
python3 -m pip install --upgrade --quiet nox
python3 -m nox --version

# If this is a continuous build, send the test log to the FlakyBot.
# See https://github.com/googleapis/repo-automation-bots/tree/master/packages/flakybot.
if [[ $KOKORO_BUILD_ARTIFACTS_SUBDIR = *"continuous"* ]]; then
cleanup() {
chmod +x $KOKORO_GFILE_DIR/linux_amd64/flakybot
$KOKORO_GFILE_DIR/linux_amd64/flakybot
}
trap cleanup EXIT HUP
fi

# If NOX_SESSION is set, it only runs the specified session,
# otherwise run all the sessions.
if [[ -n "${NOX_SESSION:-}" ]]; then
Expand Down
6 changes: 3 additions & 3 deletions synth.metadata
Expand Up @@ -4,21 +4,21 @@
"git": {
"name": ".",
"remote": "https://github.com/googleapis/python-access-context-manager.git",
"sha": "5322c93a3a02567430e5dff33f05732e9a7249e2"
"sha": "16486d80abe103ceb14631deb4182b664c91050f"
}
},
{
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
"sha": "4679e7e415221f03ff2a71e3ffad75b9ec41d87e"
"sha": "d17674372e27fb8f23013935e794aa37502071aa"
}
},
{
"git": {
"name": "synthtool",
"remote": "https://github.com/googleapis/synthtool.git",
"sha": "4679e7e415221f03ff2a71e3ffad75b9ec41d87e"
"sha": "d17674372e27fb8f23013935e794aa37502071aa"
}
}
],
Expand Down

0 comments on commit 990780d

Please sign in to comment.