Skip to content

Conversation

@ofrobots
Copy link
Contributor

The system tests for error reporting were still not safe to run
concurrently. The issue is that at the end we were deleting all events
(there is no API to delete events selectively, AFAICT). This meant that
concurrent executions of the system tests against the same project could
clobber anothers logged errors.

This is consistent with the observed timeouts looking for events to
show up.

Ref: googleapis/nodejs-logging-bunyan#275

The system tests for error reporting were still not safe to run
concurrently. The issue is that at the end we were deleting all events
(there is no API to delete events selectively, AFAICT). This meant that
concurrent executions of the system tests against the same project could
clobber anothers logged errors.

This is consistent with the observed timeouts looking for events to
show up.

Ref: googleapis/nodejs-logging-bunyan#275
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Mar 13, 2019
@codecov
Copy link

codecov bot commented Mar 13, 2019

Codecov Report

Merging #279 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #279   +/-   ##
=======================================
  Coverage   92.15%   92.15%           
=======================================
  Files           6        6           
  Lines         102      102           
  Branches       18       18           
=======================================
  Hits           94       94           
  Misses          4        4           
  Partials        4        4

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 74b7364...a6eeda9. Read the comment docs.

Previously we were comparing the list of services using the
representative sample. This means that if more than one service have the
same error, we may not necessarily get the sample that we want to
observe. Instead look for all the affected services for all groups to
find the matching group.
@ofrobots
Copy link
Contributor Author

@soldair note that this has an additional commit here. It was necessary here because we run the error reporting test twice, once for winston2 and once for winston3. This needed even more smarts to deflake. Once this LGTY, I can copy this over to bunyan next.

@ofrobots ofrobots merged commit 6b53d89 into googleapis:master Mar 14, 2019
@ofrobots ofrobots deleted the fix-flakiness branch March 14, 2019 05:12
ofrobots added a commit to googleapis/nodejs-logging-bunyan that referenced this pull request Mar 14, 2019
Previously we were comparing the list of services using the
representative sample. This means that if more than one service have the
same error, we may not necessarily get the sample that we want to
observe. Instead look for all the affected services for all groups to
find the matching group.

Ref: googleapis/nodejs-logging-winston#279
ofrobots added a commit to googleapis/nodejs-logging-bunyan that referenced this pull request Mar 14, 2019
Previously we were comparing the list of services using the
representative sample. This means that if more than one service have the
same error, we may not necessarily get the sample that we want to
observe. Instead look for all the affected services for all groups to
find the matching group.

Ref: googleapis/nodejs-logging-winston#279
miguelvelezsa pushed a commit to googleapis/google-cloud-node that referenced this pull request Jan 14, 2026
Previously we were comparing the list of services using the
representative sample. This means that if more than one service have the
same error, we may not necessarily get the sample that we want to
observe. Instead look for all the affected services for all groups to
find the matching group.

Ref: googleapis/nodejs-logging-winston#279
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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