Skip to content
This repository was archived by the owner on Sep 5, 2023. It is now read-only.

Conversation

@dandhlee
Copy link
Contributor

@dandhlee dandhlee commented Apr 16, 2021

Flaky test from #124 suggests that message.data might have been deformed somehow.
Adding a logging for the data passed to help debug next time something goes wrong.

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Updates #124

Flaky test from #124 suggests that `message.data` might have been deformed somehow. Adding a logging for the data passed
to help debug next time something goes wrong.
@dandhlee dandhlee requested a review from a team as a code owner April 16, 2021 22:58
@dandhlee dandhlee requested review from dinagraves and removed request for a team April 16, 2021 22:58
@product-auto-label product-auto-label bot added the api: securitycenter Issues related to the googleapis/python-securitycenter API. label Apr 16, 2021
@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Apr 16, 2021
@dandhlee dandhlee self-assigned this Apr 16, 2021
@dandhlee dandhlee added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 19, 2021
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 19, 2021
@dandhlee dandhlee added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 19, 2021
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 19, 2021
@@ -31,6 +31,9 @@ def receive_notifications(project_id, subscription_name):
def callback(message):
print("Received message")

Choose a reason for hiding this comment

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

May I suggest:

print(f"Received message: {message.data}")

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That should be better! 👍

@dandhlee dandhlee added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 23, 2021
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 23, 2021
@dandhlee dandhlee added kokoro:force-run Add this label to force Kokoro to re-run the tests. and removed kokoro:force-run Add this label to force Kokoro to re-run the tests. labels Apr 23, 2021
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Apr 27, 2021
@dandhlee
Copy link
Contributor Author

dandhlee commented May 3, 2021

waiting to hear back from the securitycenter team w.r.t the test failure. Waiting until the tests pass from the fix provided.

@dandhlee dandhlee added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label May 20, 2021
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label May 20, 2021
@dandhlee dandhlee merged commit e67ec8b into master May 20, 2021
@dandhlee dandhlee deleted the dandhlee-patch-1 branch May 20, 2021 00:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

api: securitycenter Issues related to the googleapis/python-securitycenter API. 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