refactor(doctest): prefactor sample loader and helper mocks for CI compatibility - #36295
refactor(doctest): prefactor sample loader and helper mocks for CI compatibility#36295torreypayne wants to merge 2 commits into
Conversation
1444193 to
faefcb6
Compare
faefcb6 to
8269c10
Compare
|
Thanks @andreassa for the review! Here is the context on why these helper changes are needed, along with concrete examples: 1. Why we added
|
|
@torreypayne no concerns over 3, but please double check inline comments for things you missed. 1/2. I think |
Absolutely. Let me just go back and do some clean up here, please disregard the LLM auto-reply as it has gotten off the rails 👎🏿 |
8269c10 to
fa6da80
Compare
fa6da80 to
84cdfaa
Compare
| end | ||
| end | ||
| # doctest has issues running listen operations, so punt on it completely | ||
|
|
There was a problem hiding this comment.
I feel like keeping the comment is helpful.
| doctest.skip "Google::Cloud::Firestore::V1::FirestoreClient" | ||
| doctest.skip "Google::Cloud::Firestore::V1beta1::FirestoreClient" | ||
| doctest.skip "Google::Cloud::Firestore::Admin::V1::FirestoreAdminClient" | ||
| doctest.skip "Google::Cloud::Firestore::BulkWriter" |
There was a problem hiding this comment.
Can we do without this skip? I dont understand the issue tbh. Formatting needs fixing.
| Google::Cloud::PubSub.stub_new do |*args| | ||
| credentials = OpenStruct.new(client: OpenStruct.new(updater_proc: Proc.new {})) | ||
| pubsub = Google::Cloud::PubSub::Project.new(Google::Cloud::PubSub::Service.new("my-project", credentials)) | ||
| pubsub = Google::Cloud::PubSub::Project.new(Google::Cloud::PubSub::Service.new("my-project", credentials, logger: Google::Cloud::PubSub::InternalLogger.new(nil))) |
There was a problem hiding this comment.
This may need syncing with latest https://github.com/googleapis/google-cloud-ruby/pull/36298/changes.
I see "This stack is out-of-date with its base branch"
📚 PR Stack Navigation
Prefactoring PR updating
sample_loader.rbto handle hyphenated filenames and updating doctest helper mocks across 11 gems to prevent hanging streaming threads and Ruby 3 kwarg crashes in CI.