Skip to content

Commit 64b3a4f

Browse files
doc: update resource docstrings (#60)
* changes without context autosynth cannot find the source of changes triggered by earlier changes in this repository, or by version upgrades to tools such as linters. * chore(python): use BUILD_SPECIFIC_GCLOUD_PROJECT for samples https://github.com/googleapis/python-talent/blob/ef045e8eb348db36d7a2a611e6f26b11530d273b/samples/snippets/noxfile_config.py#L27-L32 `BUILD_SPECIFIC_GCLOUD_PROJECT` is an alternate project used for sample tests that do poorly with concurrent runs on the same project. Source-Author: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> Source-Date: Wed Sep 30 13:06:03 2020 -0600 Source-Repo: googleapis/synthtool Source-Sha: 9b0da5204ab90bcc36f8cd4e5689eff1a54cc3e4 Source-Link: googleapis/synthtool@9b0da52 * chore(python): use 'setup.py' to detect repo root Closes #792 Source-Author: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com> Source-Date: Fri Oct 9 15:06:33 2020 -0600 Source-Repo: googleapis/synthtool Source-Sha: e0ae456852bf22f38796deb79cff30b516fde244 Source-Link: googleapis/synthtool@e0ae456 * build(python): samples tests should pass if no samples exist Source-Author: Daniel Sanche <d.sanche14@gmail.com> Source-Date: Wed Oct 14 08:00:06 2020 -0700 Source-Repo: googleapis/synthtool Source-Sha: 477764cc4ee6db346d3febef2bb1ea0abf27de52 Source-Link: googleapis/synthtool@477764c
1 parent 80e91b5 commit 64b3a4f

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

bigquery_storage/quickstart/noxfile.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,11 @@ def _get_repo_root():
199199
break
200200
if Path(p / ".git").exists():
201201
return str(p)
202+
# .git is not available in repos cloned via Cloud Build
203+
# setup.py is always in the library's root, so use that instead
204+
# https://github.com/googleapis/synthtool/issues/792
205+
if Path(p / "setup.py").exists():
206+
return str(p)
202207
p = p.parent
203208
raise Exception("Unable to detect repository root.")
204209

bigquery_storage/to_dataframe/noxfile.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,11 @@ def _get_repo_root():
199199
break
200200
if Path(p / ".git").exists():
201201
return str(p)
202+
# .git is not available in repos cloned via Cloud Build
203+
# setup.py is always in the library's root, so use that instead
204+
# https://github.com/googleapis/synthtool/issues/792
205+
if Path(p / "setup.py").exists():
206+
return str(p)
202207
p = p.parent
203208
raise Exception("Unable to detect repository root.")
204209

0 commit comments

Comments
 (0)