Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

plamut
Copy link
Contributor

@plamut plamut commented Aug 25, 2021

Fixes #478.

@plamut plamut requested a review from parthea August 25, 2021 10:52
@plamut plamut requested review from a team as code owners August 25, 2021 10:52
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Aug 25, 2021
@product-auto-label product-auto-label bot added the api: pubsub Issues related to the googleapis/python-pubsub API. label Aug 25, 2021
Copy link
Contributor

@tseaver tseaver left a comment

Choose a reason for hiding this comment

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

No replacments in owlbot.py to preserve these changes?

@plamut
Copy link
Contributor Author

plamut commented Aug 25, 2021

I'm starting to suspect that the script I used has bugs, as some of the files are autogenerated (IIRC)...

(or was not meant to cover all these cases)

@tseaver
Copy link
Contributor

tseaver commented Aug 25, 2021

@plamut it looks like the Owlbot Post Processor check isn't configured for this repo, either. @parthea can you please investigate?

@plamut
Copy link
Contributor Author

plamut commented Aug 25, 2021

Putting this on hold until we investigate.

@plamut plamut added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label Aug 25, 2021
@parthea parthea added the owlbot:run Add this label to trigger the Owlbot post processor. label Aug 25, 2021
@parthea
Copy link
Contributor

parthea commented Aug 25, 2021

I've added the owlbot:run label. Usually this step isn't required. For example, see googleapis/python-datastream#17

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

parthea commented Aug 25, 2021

Hi @plamut, please let me know if you have any questions.

@plamut
Copy link
Contributor Author

plamut commented Aug 25, 2021

@parthea I cannot see anything else besides "successfully ran 10 steps" - what does the OwlBot check check?

The most useful information, if supported, would be a warning if any of the files changed in the PR would be overwritten the next time OwlBot runs.

Is this possible or does one have to manually run the code generation locally manually and inspect the diff?

@tseaver
Copy link
Contributor

tseaver commented Aug 25, 2021

@plamut Owlbot actually did roll back some of your changes in f610443, which is the confirmation that you need to add replacements to owlbot.py: if you push just that change, without touching the other files, then Owlbot will apply it.

@plamut
Copy link
Contributor Author

plamut commented Aug 25, 2021

@plamut Owlbot actually did roll back some of your changes in f610443, which is the confirmation that you need to add replacements to owlbot.py: if you push just that change, without touching the other files, then Owlbot will apply it.

Ah, didn't see that commit initially when I cam back, it'ss exactly what I needed. 👍 It's clear what gets overridden without the replacement rules.

@plamut plamut added owlbot:run Add this label to trigger the Owlbot post processor. and removed do not merge Indicates a pull request not ready for merge, due to either quality or timing. labels Aug 25, 2021
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Aug 25, 2021
@plamut plamut added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 25, 2021
@plamut plamut requested a review from tseaver August 25, 2021 19:52
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 25, 2021
@tseaver tseaver added the owlbot:run Add this label to trigger the Owlbot post processor. label Aug 25, 2021
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Aug 25, 2021
@plamut
Copy link
Contributor Author

plamut commented Aug 25, 2021

@tseaver It appears that if OwlBot doesn't doesn't generate any diff, it doesn't add any commits to the PR branch?

(or why was the owlbot:run label re-applied, if the reason was not the "missing" commit?)

Edit: Ah, some the files were not re-generated after all...

@plamut plamut changed the base branch from master to main August 25, 2021 20:41
@plamut
Copy link
Contributor Author

plamut commented Aug 25, 2021

Hm... where are the Samples CI checks? (Lint, Python3.6 - 3.8)

@anguillanneuf IIRC you added those checks, is perhaps the master branch hardcoded somewhere and thus they didn't run on a PR to main?

Update: It's fine for now since this PR's target has been changed to master, and we'll then just rename master to main. We should still keep an eye if all the CI checks are preserved even after the rename.

@plamut plamut changed the base branch from main to master August 26, 2021 11:53
@plamut plamut added the owlbot:run Add this label to trigger the Owlbot post processor. label Aug 26, 2021
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Aug 26, 2021
@plamut plamut force-pushed the migrate-default-branch-to-main branch from 23eea83 to 894dd7d Compare August 26, 2021 12:08
@plamut plamut added the owlbot:run Add this label to trigger the Owlbot post processor. label Aug 26, 2021
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Aug 26, 2021
@plamut plamut added the owlbot:run Add this label to trigger the Owlbot post processor. label Aug 26, 2021
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Aug 26, 2021
@plamut
Copy link
Contributor Author

plamut commented Aug 26, 2021

Should be good now, the only change the OwlBot Postprocessor did was a trivial blacken thingy (opted to append a comma to the tuple items).

@plamut plamut merged commit 24f76ba into googleapis:master Aug 26, 2021
@plamut plamut deleted the migrate-default-branch-to-main branch August 26, 2021 17:48
@plamut
Copy link
Contributor Author

plamut commented Aug 26, 2021

@parthea Please now rename master to main in the repo settings, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: pubsub Issues related to the googleapis/python-pubsub API. cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Migrate from master to main branch
4 participants