Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: skip docfx in main 'Kokoro' presubmit #423

Merged
merged 3 commits into from Dec 8, 2020
Merged

ci: skip docfx in main 'Kokoro' presubmit #423

merged 3 commits into from Dec 8, 2020

Conversation

busunkim96
Copy link
Contributor

@busunkim96 busunkim96 commented Dec 8, 2020

The docfx build is failing in continuous (reasons are unclear as we can't seem to reproduce the error locally). log

This PR makes the following changes:

  • skip the docfx session in the main Kokoro presubmit by not listing it in the default sessions list
  • use NOX_SESSION env var to run docs and docfx in docs-presubmit (needs an internal config change in 346339439)

After this is approved I will open a PR in synthtool to make the changes permanent.

@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Dec 8, 2020
@product-auto-label product-auto-label bot added the api: bigquery Issues related to the googleapis/python-bigquery API. label Dec 8, 2020
Copy link
Contributor

@tswast tswast left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

.kokoro/build.sh Outdated
@@ -41,5 +41,6 @@ python3.6 -m nox --version
if [[ -n "${NOX_SESSION:-}" ]]; then
python3.6 -m nox -s "${NOX_SESSION:-}"
else
python3.6 -m nox
# docfx session runs in the 'docs-presubmit' presubmit
python3.6 -m nox -k "not docfx"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm curious if we should be modifying the noxfile instead? I recall there's a way to mark certain sessions as "default"

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like there is! I modified the noxfile.py. PTAL

@busunkim96 busunkim96 marked this pull request as ready for review December 8, 2020 17:24
@busunkim96 busunkim96 requested review from a team, tmatsuo and tswast December 8, 2020 17:24
@busunkim96
Copy link
Contributor Author

@tmatsuo I'm having trouble figuring out what's happening with trampoline. Could you take a look? https://source.cloud.google.com/results/invocations/2451449f-1926-423b-b139-5c318c6a2e30/targets/cloud-devrel%2Fclient-libraries%2Fpython%2Fgoogleapis%2Fpython-bigquery%2Fdocs%2Fdocs-presubmit/log

Digest: sha256:a0f4e7c15988bfb0524f25cb88635d0b9964d940a8a5c5bfbefc3ec651ed72cb
Status: Downloaded newer image for gcr.io/cloud-devrel-kokoro-resources/python-lib-docs:latest
================================================================
2020-12-08T17:40:13Z: Finished pulling the Docker image: gcr.io/cloud-devrel-kokoro-resources/python-lib-docs.
================================================================
================================================================
2020-12-08T17:40:13Z: Start building the docker image.
================================================================
================================================================
2020-12-08T17:40:17Z: Finished building the docker image.
================================================================
================================================================
2020-12-08T17:40:17Z: Running the tests in a Docker container.
================================================================
.kokoro/build.sh: line 18: cd: github/python-bigquery: No such file or directory
================================================================
2020-12-08T17:40:22Z: Build finished with 1
================================================================

@tmatsuo
Copy link
Contributor

tmatsuo commented Dec 8, 2020

@busunkim96

Maybe you can modify build.sh as follows:

if [[ -z "${PROJECT_ROOT:-}" ]]; then
    PROJECT_ROOT="github/python-bigquery"
fi

cd "${PROJECT_ROOT}"

@tswast tswast merged commit e68281e into master Dec 8, 2020
@tswast tswast deleted the skip-docfx branch December 8, 2020 18:52
mamo3gr pushed a commit to mamo3gr/python-bigquery that referenced this pull request Dec 2, 2022
* ci: skip docfx in main 'Kokoro' presubmit

* fix: specify default sessions in noxfile

* add conditional for cd to project root
mamo3gr pushed a commit to mamo3gr/python-bigquery that referenced this pull request Dec 2, 2022
* ci: skip docfx in main 'Kokoro' presubmit

* fix: specify default sessions in noxfile

* add conditional for cd to project root
chalmerlowe pushed a commit that referenced this pull request Dec 14, 2022
* ci: skip docfx in main 'Kokoro' presubmit (#423)

* ci: skip docfx in main 'Kokoro' presubmit

* fix: specify default sessions in noxfile

* add conditional for cd to project root

* ci: use python3 instead of python3.6 in build.sh (#425)

* ci: skip docfx in main 'Kokoro' presubmit

* fix: specify default sessions in noxfile

* fix: use python3 instead of 3.6

* fix: add NOX_SESSION to pass down envvars

* fix: remove quotes arround sessions

Co-authored-by: Tim Swast <swast@google.com>

* fix: fix invalid version specification of pyarrow

Co-authored-by: Bu Sun Kim <8822365+busunkim96@users.noreply.github.com>
Co-authored-by: Tim Swast <swast@google.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the googleapis/python-bigquery API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants