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

chore(internal/kokoro): enable apidiff #3761

Merged
merged 2 commits into from
Mar 2, 2021

Conversation

noahdietz
Copy link
Contributor

@noahdietz noahdietz commented Mar 2, 2021

  • reenables apidiff
  • update go version to target to be 1.16.x
  • makes it compare against the new GitHub SoT
  • tweaks it to only need a single execution of the incompat check by dumping the output to a file and checking if the file has content

@noahdietz noahdietz requested a review from a team as a code owner March 2, 2021 19:21
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Mar 2, 2021
@@ -34,7 +31,7 @@ go install golang.org/x/exp/cmd/apidiff
# working on an out-of-date branch, and master gets some new feature (that has
# nothing to do with your work on your branch), you'll get an error message.
# Thankfully the fix is quite simple: rebase your branch.
git clone https://code.googlesource.com/gocloud /tmp/gocloud
git clone https://github.com/googleapis/google-cloud-go /tmp/gocloud

MANUALS="bigquery bigtable datastore firestore pubsub spanner storage logging"
STABLE_GAPICS="container/apiv1 dataproc/apiv1 iam iam/admin/apiv1 iam/credentials/apiv1 kms/apiv1 language/apiv1 logging/apiv2 logging/logadmin pubsub/apiv1 spanner/apiv1 translate/apiv1 vision/apiv1"
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 is 1. out of date and 2. not scalable imo.

Any ideas?

Copy link
Member

@codyoss codyoss left a comment

Choose a reason for hiding this comment

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

LGTM

@codyoss codyoss merged commit 94a6850 into googleapis:master Mar 2, 2021
@noahdietz
Copy link
Contributor Author

FWIW this didn't fully work if you check the logs: https://source.cloud.google.com/results/invocations/ba4cca48-fddb-48c4-9273-91db07eb998c/targets/cloud-devrel%2Fclient-libraries%2Fgo%2Fgoogle-cloud-go%2Fpresubmit%2Fgo116/log

The manuals being submodules didn't play nice with the go 1.16 go.sum requirements. Gonna need to fix that

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.

2 participants