Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

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

Merged
tswast merged 3 commits into
masterfrom
skip-docfx
Dec 8, 2020
Merged

ci: skip docfx in main 'Kokoro' presubmit#423
tswast merged 3 commits into
masterfrom
skip-docfx

Conversation

@busunkim96

@busunkim96 busunkim96 commented Dec 8, 2020

Copy link
Copy Markdown
Contributor

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.

@busunkim96
busunkim96 requested review from tmatsuo and tswast December 8, 2020 16:28
@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

@tswast tswast left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Thanks!

Comment thread .kokoro/build.sh Outdated
else
python3.6 -m nox
# docfx session runs in the 'docs-presubmit' presubmit
python3.6 -m nox -k "not docfx"

Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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

tmatsuo commented Dec 8, 2020

Copy link
Copy Markdown
Contributor

@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 <[email protected]>

* fix: fix invalid version specification of pyarrow

Co-authored-by: Bu Sun Kim <[email protected]>
Co-authored-by: Tim Swast <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

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.

3 participants