Skip to content

chore: omit 'docfx' from docs-presubmit build #831

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

Merged
merged 11 commits into from
Aug 13, 2021

Conversation

tseaver
Copy link
Contributor

@tseaver tseaver commented Aug 13, 2021

We don't have a 'docfx' session in our noxfile (see #822).

Toward #797.

We don't have a 'docfx' session in our noxfile (see #822).

Toward #797.
@tseaver tseaver requested a review from dandhlee August 13, 2021 19:20
@tseaver tseaver requested review from arithmetic1728, silvolu and a team as code owners August 13, 2021 19:20
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Aug 13, 2021
@tseaver
Copy link
Contributor Author

tseaver commented Aug 13, 2021

Note that I don't actually expect this PR to fix the docs-presubmit build, which has been failing in the .kokoro/bulid.sh setup before ever getting to the point of running nox.

@tseaver tseaver force-pushed the 797-drop-docfx-from-docs-presubmit-build branch from 2e958b5 to f578a99 Compare August 13, 2021 20:03
&& curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | \
apt-key --keyring /usr/share/keyrings/cloud.google.gpg add - \
&& apt-get update -y \
&& apt-get install python2 google-cloud-sdk -y
Copy link
Contributor

Choose a reason for hiding this comment

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

do we need python2 if we don't need to run system tests?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This PR isn't trying to fix #832 (at least not yet). To do that, we need either to have a .kokoro/build-systests.sh script, which runs only the systests, or else work out some environment variable which we use to turn them on / off in .kokoro/build.sh.

Either way will require adding something like .kokoro/presubmit/system-3.8.cfg, to either set the environment variable or trigger the alternate script, which will then need a corresponding tweak to the google3 Kokoro configuration for this repostitory.

Copy link
Contributor

Choose a reason for hiding this comment

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

Currently it just skips the system tests (missing 3.7 interpreter), and docs session runs fine. I think it's fine to move forward as-is.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

PR #833 is based on this PR: once we merge here, I will rebase it against master, and then wait to merge until the google3 changes are in place to enable the Kokoro system-3.7 build.

@dandhlee
Copy link
Contributor

Think we're almost there. Blocked by system tests but it'll be fixed soon, docs-presubmit is happy without docfx and runs docs session fine. Not sure why OwlBot isn't happy though.

@dandhlee dandhlee added the owlbot:run Add this label to trigger the Owlbot post processor. label Aug 13, 2021
@tseaver
Copy link
Contributor Author

tseaver commented Aug 13, 2021

@dandhlee Owlbot gets its nose in a twist when the PR is rebased to remove its earlier, unwanted commits.

@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Aug 13, 2021
@dandhlee
Copy link
Contributor

Hm, I thought rerunning it would resolve itself but I guess not.

@tseaver
Copy link
Contributor Author

tseaver commented Aug 13, 2021

@dandhlee I think we need to get a refresh-token PR merged to master and then here, first. I just asked @busunkim96 if she could make another PR like #828 to unblock us.

@tseaver
Copy link
Contributor Author

tseaver commented Aug 13, 2021

Blocked on #834.

@tseaver
Copy link
Contributor Author

tseaver commented Aug 13, 2021

@dandhlee PTAL.

@tseaver
Copy link
Contributor Author

tseaver commented Aug 13, 2021

Oops, the Owlbot failure is real: the substitution I added breaks when I run synthool locally.

Copy link
Contributor

@dandhlee dandhlee left a comment

Choose a reason for hiding this comment

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

LGTM.

Our '.kokoro/build.sh' expects to find the files there, even for the
docs build.
Fingers crossed that I have the incantation correct -- I will fix the
owlbot replacment once it works.
@tseaver tseaver force-pushed the 797-drop-docfx-from-docs-presubmit-build branch from e43bb29 to 2b5d2c0 Compare August 13, 2021 22:17
@tseaver tseaver merged commit b76f151 into master Aug 13, 2021
@tseaver tseaver deleted the 797-drop-docfx-from-docs-presubmit-build branch August 13, 2021 22:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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