GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [iam] testing: use multiple projects by tmatsuo · Pull Request #3772 · GoogleCloudPlatform/python-docs-samples

Conversation

@tmatsuo

@tmatsuo tmatsuo commented May 16, 2020

Copy link
Copy Markdown
Contributor

part of #3310

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Takashi Matsuo
[iam] testing: use multiple projects
0834e72
part of GoogleCloudPlatform#3310
@tmatsuo
tmatsuo requested a review from a team as a code owner May 16, 2020 05:01
@blunderbuss-gcf blunderbuss-gcf Bot assigned gguuss May 16, 2020
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label May 16, 2020
@tmatsuo

tmatsuo commented May 16, 2020

Copy link
Copy Markdown
Contributor Author

py36 project has Role Administrator

py37 project has Security Admin

My guess is we need Security Admin.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Takashi Matsuo
change required roles
1ad3247
@tmatsuo

tmatsuo commented May 16, 2020

Copy link
Copy Markdown
Contributor Author

It seems like you need 3 roles.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tmatsuo

tmatsuo commented May 16, 2020

Copy link
Copy Markdown
Contributor Author

It seems like list_service_accounts errors out with an empty result. Maybe I can just create a dummy service account in each project then it's fine.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@tmatsuo tmatsuo added kokoro:run Add this label to force Kokoro to re-run the tests. automerge Merge the pull request once unit tests and other checks pass. and removed kokoro:run Add this label to force Kokoro to re-run the tests. labels May 16, 2020
@gcf-merge-on-green

gcf-merge-on-green Bot commented May 16, 2020

Copy link
Copy Markdown
Contributor

Your PR has attempted to merge for 3 hours. Please check that all required checks have passed, you have an automerge label, and that all your reviewers have approved the PR

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@gcf-merge-on-green

gcf-merge-on-green Bot commented May 16, 2020

Copy link
Copy Markdown
Contributor

Merge-on-green attempted to merge your PR for 6 hours, but it was not mergeable because either one of your required status checks failed, or one of your required reviews was not approved. Learn more about your required status checks here: https://help.github.com/en/github/administering-a-repository/enabling-required-status-checks. You can remove and reapply the label to re-run the bot.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@leahecole leahecole removed the automerge Merge the pull request once unit tests and other checks pass. label May 18, 2020
@leahecole

leahecole commented May 18, 2020

Copy link
Copy Markdown
Collaborator

removing automerge label until there's a second approval

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

gguuss
gguuss reviewed May 18, 2020
View reviewed changes
Comment thread iam/api-client/noxfile_config.py
# build specific Cloud project. You can also use your own string
# to use your own Cloud project.
# 'gcloud_project_env': 'GCLOUD_PROJECT',
'gcloud_project_env': 'BUILD_SPECIFIC_GCLOUD_PROJECT',

@gguuss gguuss May 18, 2020

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

Just to clarify, this overrides for running locally but doesn't impact CI?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@tmatsuo tmatsuo May 18, 2020

Copy link
Copy Markdown
Contributor Author

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

It affects both.

On Kokoro, it will use one of the python version specific cloud projects (e.g. python-docs-samples-tests-py36).

When you run it locally, you have to set BUILD_SPECIFIC_GCLOUD_PROJECT envvar which is little bit cumbersome, but you'll know this by the error message easily, and you can do:

export BUILD_SPECIFIC_GCLOUD_PROJECT=${GOOGLE_CLOUD_PROJECT}

then it's fine for most cases.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
gguuss
gguuss approved these changes May 18, 2020
View reviewed changes
Takashi Matsuo
Merge branch 'master' into iam-multi-proj
da9bfab
@tmatsuo
tmatsuo merged commit e44bacb into GoogleCloudPlatform:master May 18, 2020
@tmatsuo
tmatsuo deleted the iam-multi-proj branch May 18, 2020 23:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer
@gguuss gguuss gguuss approved these changes
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@gguuss gguuss

Labels

cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

4 participants

@tmatsuo @leahecole @gguuss @googlebot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.