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

fix: fix samples region tags and test flakiness #680

Merged
merged 8 commits into from Sep 23, 2021

Conversation

minherz
Copy link
Contributor

@minherz minherz commented Sep 22, 2021

Set logging_write_log_entry and logging_write_log_entry_advanced region tags to the correct sample snippets.
Update samples test for the snippets accordingly.
Resolve java.lang.RuntimeException exception that appears in the samples tests output.
Modify the samples test to eliminate incorrect output in the faked stdout that leads to failed asserts (in testListLogEntriesSample).

Fixes #679

@minherz minherz requested a review from a team as a code owner September 22, 2021 08:57
@product-auto-label product-auto-label bot added api: logging Issues related to the googleapis/java-logging API. samples Issues that are directly related to samples. labels Sep 22, 2021
@snippet-bot
Copy link

snippet-bot bot commented Sep 22, 2021

Here is the summary of changes.

You are about to add 2 region tags.
You are about to delete 1 region tag.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Sep 22, 2021
@minherz minherz requested a review from a team as a code owner September 22, 2021 08:58
minherz and others added 8 commits September 23, 2021 07:56
define timestamp filter in UTC time.
change filter to last minute entries.
enforce closing logging client at the end of the snippet.
apply formatting.
force closing logging client at the end of the snippet
change logging_write_request_entry to logging_write_log_entry_advanced
add closing logging client at the end of the test unit
add multiple attempts to clean log after each test
print debug info in a case cleaning fails
remove unused textPayload from the snippet
@minherz minherz merged commit 53481bd into master Sep 23, 2021
@minherz minherz deleted the minherz/fix-region-tags branch September 23, 2021 08:10
gcf-merge-on-green bot pushed a commit that referenced this pull request Sep 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: logging Issues related to the googleapis/java-logging API. cla: yes This human has signed the Contributor License Agreement. samples Issues that are directly related to samples.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix exceptions in sample test logs and region tags
3 participants