Skip to content

test: Generate a unique id for each of the instances in the client side metrics system tests#1662

Merged
danieljbruce merged 6 commits intomainfrom
generate-id-for-system-tests
Aug 6, 2025
Merged

test: Generate a unique id for each of the instances in the client side metrics system tests#1662
danieljbruce merged 6 commits intomainfrom
generate-id-for-system-tests

Conversation

@danieljbruce
Copy link
Contributor

@danieljbruce danieljbruce commented Aug 5, 2025

Description

The system tests are failing frequently with a NOT_FOUND instance error. The hypothesis is that since the client side metrics system tests are always running against the same instance name emulator-test-instance that one test suite is deleting this instance while the other test suite is reading from it causing this error. The solution is that like the other system tests we should generate a unique id for the created instance so that two tests suites running at the same time do not interfere with one another. We also need to add some code for the unique case where we need to create instances on a second project for the should send the metrics to the metrics handler for a single row read test.

Impact

Less Flakey tests

Testing

Tests changed to use a unique instance id each time for client side metrics.

@danieljbruce danieljbruce requested a review from a team August 5, 2025 19:46
@danieljbruce danieljbruce requested a review from a team as a code owner August 5, 2025 19:46
@product-auto-label product-auto-label bot added size: m Pull request size is medium. api: bigtable Issues related to the googleapis/nodejs-bigtable API. labels Aug 5, 2025
danieljbruce and others added 3 commits August 5, 2025 15:55
@danieljbruce danieljbruce added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 6, 2025
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 6, 2025
@danieljbruce danieljbruce added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 6, 2025
@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 6, 2025
@danieljbruce danieljbruce merged commit ce1e796 into main Aug 6, 2025
20 of 23 checks passed
@danieljbruce danieljbruce deleted the generate-id-for-system-tests branch August 6, 2025 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: bigtable Issues related to the googleapis/nodejs-bigtable API. size: m Pull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants