Skip to content

Fix flakiness and formatting issues in google-cloud-pubsub schemas acceptance tests #34025

@torreypayne

Description

@torreypayne

Environment details

Steps to reproduce

  1. I submitted chore: Add pubsub rollback schema sample #34019
  2. I noticed test failures in schemas/acceptance_test.rb; the PR changes did not overlap with those tests, so these seem to be flaky failures that affect throughput. This issue is to track the fix to address this CI flakiness.

Code example

    expect_with_retry "pubsub_subscribe_avro_records_with_revisions" do
        assert_output /Received a binary-encoded message:.*Alaska.*Received a binary-encoded message:.*California/m do
          subscribe_avro_records_with_revisions subscription_id: @subscription.name
        end
      end

Full backtrace

Finished in 1505.708359s, 0.0345 runs/s, 0.1561 assertions/s.

  1) Failure:
schemas::AVRO#test_0006_supports pubsub_subscribe_avro_records_with_revisions [acceptance/schemas_test.rb:265]:
In stdout.
Expected /Received a binary-encoded message:.*Alaska.*Received a binary-encoded message:.*California/m to match "".

52 runs, 235 assertions, 1 failures, 0 errors, 8 skips

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions