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

api_check bug fix #680

Merged
merged 1 commit into from
Aug 17, 2021
Merged

api_check bug fix #680

merged 1 commit into from
Aug 17, 2021

Conversation

jdyke
Copy link
Contributor

@jdyke jdyke commented Aug 16, 2021

There was a bug introduced during PR #626 and this addresses the bug.

There was a bug introduced during PR #626 and this addresses the bug.
@pull-request-size pull-request-size bot added the size/XS Denotes a PR that changes 0-9 lines. label Aug 16, 2021
@google-cla google-cla bot added the cla: yes All committers have signed a CLA label Aug 16, 2021
@boredabdel boredabdel self-requested a review August 16, 2021 14:17
Copy link
Member

@boredabdel boredabdel left a comment

Choose a reason for hiding this comment

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

LGTM

@boredabdel
Copy link
Member

/gcbrun

@jdyke
Copy link
Contributor Author

jdyke commented Aug 16, 2021

/gcbrun

This didn't look like it worked for me when I ran it earlier, is there something I need to do?

@boredabdel
Copy link
Member

Yeah it's failing the linter and formatter.

Can you please have a look at this page and run the linter locally https://github.com/GoogleCloudPlatform/professional-services/blob/main/CONTRIBUTING.md ?

Thanks

@jdyke
Copy link
Contributor Author

jdyke commented Aug 16, 2021

Yeah it's failing the linter and formatter.

Can you please have a look at this page and run the linter locally https://github.com/GoogleCloudPlatform/professional-services/blob/main/CONTRIBUTING.md ?

Thanks

You got it. I'll get that going.

@jdyke
Copy link
Contributor Author

jdyke commented Aug 16, 2021

So I ran this and its failing for a different repo. Looks like code got submitted without running the checks? Not sure if that should hold back this PR since its someone else's tool.

Validating ./tools/google-cloud-support-slackbot - Checking python files
./google_cloud_support_slackbot.py:182:5: F841 local variable 'token' is assigned to but never used
./google_cloud_support_slackbot.py:255:13: F841 local variable 'e' is assigned to but never used
./google_cloud_support_slackbot.py:284:13: F841 local variable 'e' is assigned to but never used
./google_cloud_support_slackbot.py:560:9: F841 local variable 'escalation_mask' is assigned to but never used
./google_cloud_support_slackbot.py:564:9: F841 local variable 'e' is assigned to but never used
./google_cloud_support_slackbot.py:680:18: F541 f-string is missing placeholders
./google_cloud_support_slackbot.py:710:18: F541 f-string is missing placeholders
./google_cloud_support_slackbot.py:959:13: F841 local variable 'data' is assigned to but never used
Some files need to be formatted in ./tools/google-cloud-support-slackbot - FAIL

@jdyke
Copy link
Contributor Author

jdyke commented Aug 16, 2021

So I ran this and its failing for a different repo. Looks like code got submitted without running the checks? Not sure if that should hold back this PR since its someone else's tool.

Validating ./tools/google-cloud-support-slackbot - Checking python files
./google_cloud_support_slackbot.py:182:5: F841 local variable 'token' is assigned to but never used
./google_cloud_support_slackbot.py:255:13: F841 local variable 'e' is assigned to but never used
./google_cloud_support_slackbot.py:284:13: F841 local variable 'e' is assigned to but never used
./google_cloud_support_slackbot.py:560:9: F841 local variable 'escalation_mask' is assigned to but never used
./google_cloud_support_slackbot.py:564:9: F841 local variable 'e' is assigned to but never used
./google_cloud_support_slackbot.py:680:18: F541 f-string is missing placeholders
./google_cloud_support_slackbot.py:710:18: F541 f-string is missing placeholders
./google_cloud_support_slackbot.py:959:13: F841 local variable 'data' is assigned to but never used
Some files need to be formatted in ./tools/google-cloud-support-slackbot - FAIL

Otherwise, thats the only failure. I won't be able to get that CI check cleared. Let me know what youd like to do. Thanks!

Some files need to be formatted in ./tools/google-cloud-support-slackbot - FAIL

make: *** [Makefile:28: test] Error 1

@boredabdel
Copy link
Member

Ok Thanks. I will force this merge. Will figure out why the CI is broken

@boredabdel boredabdel closed this Aug 17, 2021
@boredabdel boredabdel reopened this Aug 17, 2021
@boredabdel boredabdel merged commit 5644286 into GoogleCloudPlatform:main Aug 17, 2021
@jdyke jdyke deleted the patch-1 branch August 17, 2021 10:54
rosmo pushed a commit to rosmo/professional-services that referenced this pull request Mar 17, 2022
There was a bug introduced during PR GoogleCloudPlatform#626 and this addresses the bug.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes All committers have signed a CLA size/XS Denotes a PR that changes 0-9 lines.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants