GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — core: created streaming methods by callmehiphop · Pull Request #1665 · googleapis/google-cloud-node

Conversation

@callmehiphop

@callmehiphop callmehiphop commented Oct 3, 2016 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

This PR moves all streaming APIs to their own methods.

e.g.

bigquery.getJobs() -> bigquery.getJobsStream()

TODOS

  • rename methods
  • docs
  • linting
  • unit tests
  • system tests

Changes

All callback style methods are left intact, however as mentioned earlier, all streaming methods have been moved to their own methods. Here is a map of where streaming functionality has moved to.

BigQuery

  • BigQuery#query -> BigQuery#createQueryStream
  • BigQuery#getDatasets -> BigQuery#getDatasetsStream
  • BigQuery#getJobs -> BigQuery#getJobsStream
  • Dataset#query -> Dataset#createQueryStream
  • Dataset#getTables -> Dataset#getTablesStream
  • Job#getQueryResults -> Job#getQueryResultsStream
  • Table#query -> Table#createQueryStream
  • Table#getRows -> Table#createReadStream

Bigtable

  • Bigtable#getInstances -> Bigtable#getInstancesStream
  • Instance#getClusters -> Instance#getClustersStream
  • Instance#getTables -> Instance#getTablesStream
  • Table#getRows -> Table#createReadStream
  • Table#sampleRowKeys -> Table#sampleRowKeysStream

Compute

  • Compute#getAddresses -> Compute#getAddressesStream
  • Compute#getAutoscalers -> Compute#getAutoscalersStream
  • Compute#getDisks -> Compute#getDisksStream
  • Compute#getInstanceGroups -> Compute#getInstanceGroupsStream
  • Compute#getFirewalls -> Compute#getFirewallsStream
  • Compute#getHealthChecks -> Compute#getHealthChecksStream
  • Compute#getMachineTypes -> Compute#getMachineTypesStream
  • Compute#getNetworks -> Compute#getNetworksStream
  • Compute#getOperations -> Compute#getOperationsStream
  • Compute#getRegions -> Compute#getRegionsStream
  • Compute#getRules -> Compute#getRulesStream
  • Compute#getServices -> Compute#getServicesStream
  • Compute#getSnapshots -> Compute#getSnapshotsStream
  • Compute#getSubnetworks -> Compute#getSubnetworksStream
  • Compute#getVMs -> Compute#getVMsStream
  • Compute#getZones -> Compute#getZonesStream
  • InstanceGroup#getVMs -> InstanceGroup#getVMsStream
  • Network#getSubnetworks -> Network#getSubnetworksStream
  • Network#getFirewalls -> Network#getFirewallsStream
  • Region#getAddresses -> Region#getAddressesStream
  • Region#getOperations -> Region#getOperationsStream
  • Region#getRules -> Region#getRulesStream
  • Region#getSubnetworks -> Region#getSubnetworksStream
  • Zone#getAutoscalers -> Zone#getAutoscalersStream
  • Zone#getDisks -> Zone#getDisksStream
  • Zone#getInstanceGroups -> Zone#getInstanceGroupsStream
  • Zone#getMachineTypes -> Zone#getMachineTypesStream
  • Zone#getOperations -> Zone#getOperationsStream
  • Zone#getVMs -> Zone#getVMsStream

Datastore

  • Query#run -> Query#runStream
  • DatastoreRequest#get -> DatastoreRequest#createReadStream
  • DatastoreRequest#runQuery -> DatastoreRequest#runQueryStream

DNS

  • DNS#getZones -> DNS#getZonesStream
  • Zone#getChanges -> Zone#getChangesStream
  • Zone#getRecords -> Zone#getRecordsStream

Logging

  • Logging#getEntries -> Logging#getEntriesStream
  • Logging#getSinks -> Logging#getSinksStream
  • Log#getEntries -> Log#getEntriesStream

Prediction

  • Prediction#getModels -> Prediction#getModelsStream

PubSub

  • PubSub#getSubscriptions -> PubSub#getSubscriptionsStream
  • PubSub#getTopics -> PubSub#getTopicsStream
  • Topic#getSubscriptions -> Topic#getSubscriptionsStream

Resource

  • Resource#getProjects -> Resource#getProjectsStream

Storage

  • Storage#getBuckets -> Storage#getBucketsStream
  • Bucket#getFiles -> Bucket#getFilesStream

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@callmehiphop
core: created streaming methods
ba0145e
@callmehiphop callmehiphop added core don't merge labels Oct 3, 2016
@callmehiphop callmehiphop assigned stephenplusplus Oct 3, 2016
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Oct 3, 2016
@stephenplusplus

stephenplusplus commented Oct 3, 2016

Copy link
Copy Markdown
Contributor

bigquery.getJobs() -> bigquery.getJobStream()

I think we should go with bigquery.getJobsStream() to avoid confusion.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

stephenplusplus
stephenplusplus reviewed Oct 3, 2016
View reviewed changes
Comment thread packages/bigquery/src/dataset.js
* .on('data', function(table) {
* this.end();
* });
*/

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

callmehiphop
callmehiphop commented Oct 3, 2016
View reviewed changes
Comment thread packages/common/src/paginator.js Outdated
* @param {function} originalMethod - The original method.
* @return {function} wrapped - The wrapped method.
*/
paginator.wrap_ = function(originalMethod) {

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@callmehiphop
updated streaming method descriptions with emitted type
9648c7b
stephenplusplus
stephenplusplus reviewed Oct 4, 2016
View reviewed changes
Comment thread packages/common/src/paginator.js Outdated
*
* streamRouter is used to extend `nextQuery`+callback methods with stream
* functionality.
* paginator is used to auto paginated `nextQuery` methods as well as

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/common/src/paginator.js Outdated
* @param {function} originalMethod - The original method.
* @return {function} wrapped - The wrapped method.
*/
paginator.wrap_ = function(originalMethod) {

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@callmehiphop

callmehiphop commented Oct 4, 2016

Copy link
Copy Markdown
Contributor Author
Class.prototype[originalMethodName + '_'] = originalMethod;

We can definitely do this, but it makes me a little nervous that it'll either require additional method renaming since the private version could exist or in the future it could lead to some confusion if we're overwriting private methods without realizing it.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@stephenplusplus

stephenplusplus commented Oct 4, 2016

Copy link
Copy Markdown
Contributor

I'm not too concerned about that, but you can always name it something more unique.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@callmehiphop callmehiphop mentioned this pull request Oct 4, 2016
docs: update event emitters to use event tag #1667
Closed
@callmehiphop
update original method caching
15441f7
@callmehiphop callmehiphop mentioned this pull request Oct 5, 2016
core: adding promise support #1670
Merged
@stephenplusplus

stephenplusplus commented Oct 5, 2016

Copy link
Copy Markdown
Contributor

@callmehiphop @jgeewax wdyt re: bigquery.getJobStream() vs bigquery.getJobsStream()?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@callmehiphop

callmehiphop commented Oct 5, 2016

Copy link
Copy Markdown
Contributor Author

IIRC we had settled on smushing the s's. I closest thing to written confirmation I could find was in #1142 (comment).

Personally I like the smushed naming better, and I don't think that is something that will confuse the user.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@stephenplusplus

stephenplusplus commented Oct 5, 2016

Copy link
Copy Markdown
Contributor

I meant "smushing" as in pushing them both together, not collapsing / some other word that's not clear. Basically, I prefer getJobsStream because we have a method called getJobs that this is the streaming version of. It makes it a no-brainer to know what to call when you want the stream mode. There's also getJobStream being singular ("this stream gets a job" vs "this stream gets multiple jobs"). Just curious about more thoughts on those points.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

callmehiphop added 2 commits October 6, 2016 16:20
@callmehiphop
pluralized all the stream method names
984cdf0
@callmehiphop
unit testing + linting
00e55ba
@callmehiphop callmehiphop removed the don't merge label Oct 7, 2016
@callmehiphop

callmehiphop commented Oct 7, 2016

Copy link
Copy Markdown
Contributor Author

@stephenplusplus I made a bunch of updates - I think this is in a pretty good place. PTAL!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

stephenplusplus
stephenplusplus reviewed Oct 7, 2016
View reviewed changes

@stephenplusplus stephenplusplus left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice work, sir! I have a general comment that I didn't want to drop throughout, but I think in some places, this deviates from the alpha-sort pattern of methods. Please double check and try to keep it sorted in the source and tests as well, as it makes jumping into a bug fix / test cycle much easier. If the whole file was out of sort already, don't worry about taking on any extra work to clean it up, but I think most were sorted.

Other than that, just a few notes on naming / docs.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread packages/bigquery/src/dataset.js Outdated
*
* See {module:bigquery#createQueryStream} for full documentation of this
* method.
*/

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/bigquery/src/dataset.js
* .on('data', function(table) {
* this.end();
* });
*/

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/bigtable/src/table.js Outdated
* @return {stream}
*
* @example
* table.getRowsStream()

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/bigtable/src/table.js Outdated
/**
* Get Row objects for the rows currently in your table.
* Get {module:bigtable/row} objects for the rows currently in your table as a
* readable object stream.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/common/src/paginator.js Outdated
*
* streamRouter is used to extend `nextQuery`+callback methods with stream
* functionality.
* paginator is used to auto paginated `nextQuery` methods as well as

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/common/src/paginator.js Outdated
*
* search.query('done=true', function(err, results, nextQuery) {});
* search.query('done=true', function(err, results, nextQuery) {
* search.query(nextQuery, function(err, results, nextQuery) { ... });

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/datastore/src/query.js Outdated
* });
*/
Query.prototype.run = function() {
Query.prototype.stream = function() {

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread packages/datastore/src/request.js Outdated
* the end cursor from the previous query as the starting cursor for the next
* query. You can pass that object back to this method to see if more results
* exist.
*

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

Comment thread scripts/link-common.js

'use strict';

var Module = require('./helpers').Module;

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@callmehiphop
renamed + alpha-sorted methods/tests
dc6fa56
@callmehiphop

callmehiphop commented Oct 7, 2016

Copy link
Copy Markdown
Contributor Author

@stephenplusplus I made some updates based on your feedback, PTAL!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

stephenplusplus
stephenplusplus reviewed Oct 7, 2016
View reviewed changes

@stephenplusplus stephenplusplus left a comment

Copy link
Copy Markdown
Contributor

There was a problem hiding this comment.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
Comment thread packages/bigquery/test/index.js Outdated
assert.strictEqual(bq.getDatasetsStream, 'getDatasets');
assert.strictEqual(bq.getJobsStream, 'getJobs');
assert.strictEqual(bq.createQueryStream, 'query');
assert.strictEqual(bq.getDatasetsStream, 'getDatasets');

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This comment was marked as spam.

Sign in to view

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@callmehiphop
removed duplicate assertion
6f7bfb5
@callmehiphop

callmehiphop commented Oct 9, 2016

Copy link
Copy Markdown
Contributor Author

@stephenplusplus not trying to be annoying :) - but where do we stand on this?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@stephenplusplus

stephenplusplus commented Oct 9, 2016

Copy link
Copy Markdown
Contributor

Just a few comments we didn't discuss:

#1665 (comment)
#1665 (comment)
#1665 (comment)

Mobile now, but there may have been more PTAL

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@callmehiphop

callmehiphop commented Oct 10, 2016

Copy link
Copy Markdown
Contributor Author

Actually I resolved all of those, not sure why the comments are still in the feed.. maybe a quirk of starting a review?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@stephenplusplus

stephenplusplus commented Oct 10, 2016

Copy link
Copy Markdown
Contributor

Oh, that's frustrating. Well, while I dig back into the changes, it looks like there's a build bug: https://ci.appveyor.com/project/GoogleCloudPlatform/google-cloud-node/build/1.0.298/job/y5hsy2w05p6iqg6c

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@stephenplusplus

stephenplusplus commented Oct 10, 2016 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

related: #1512

I think we should roll out a deprecation plan here:

  1. Keep support for the old methods, but log a warning when it is used:

table.getRows() is deprecated starting in 1.0. Use table.createReadStream().

  1. Change the docs for the old method to simply:

This method is deprecated! See {module:bigtable/table#createReadStream}.

We will git rid of the warnings in 1.0 stable, but for the beta, I think it's fair to print to the console.

Can you also make a map of old -> new methods, so we can include them all at once in the release notes?

// cc @richardkazuomiller

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@callmehiphop

callmehiphop commented Oct 10, 2016

Copy link
Copy Markdown
Contributor Author

it looks like there's a build bug

Not a bug per se, but we don't link common on CI, so the streamify() changes aren't present in any of the packages. You might have to fiddle with the tests locally to get them to pass.

Keep support for the old methods

Not sure how we are supposed to do that, the whole intention behind this is to add support for Promises, meaning when a callback is omitted to one of these original methods, we instead return a Promise.

  1. Change the docs for the old method to simply:

This method is deprecated! See {module:bigtable/table#createReadStream}.

How do you want me to squeeze that in? Technically all the methods will still be usable with callbacks and promises.

Can you also make a map of old -> new methods, so we can include them all at once in the release notes?

Sure can.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@stephenplusplus

stephenplusplus commented Oct 10, 2016

Copy link
Copy Markdown
Contributor

Not a bug per se, but we don't link common on CI, so the streamify() changes aren't present in any of the packages.

Okay, what can we do to make the CI pass? Do we need to cut a release of changes in common?

Not sure how we are supposed to do that, the whole intention behind this is to add support for Promises, meaning when a callback is omitted to one of these original methods, we instead return a Promise.

I'm thinking of methods such as getRows -> createReadStream. This PR removes getRows, so I think we should instead add it as a wrapper that simply calls createReadStream.

How do you want me to squeeze that in? Technically all the methods will still be usable with callbacks and promises.

See above; these docs would be for the methods that were removed, that I think we should add back.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@callmehiphop

callmehiphop commented Oct 10, 2016

Copy link
Copy Markdown
Contributor Author

Okay, what can we do to make the CI pass? Do we need to cut a release of changes in common?

Well yes, but this branch was being merged into the Promise support branch.. not master. I figured we'd get that branch working fine and then figure out a roll out plan later (break up commits, etc.)

See above; these docs would be for the methods that were removed, that I think we should add back.

I'll double check, but I'm pretty confident I didn't actually remove any methods, all the streaming APIs that I refactored had a non-streaming version that should still be intact.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@stephenplusplus

stephenplusplus commented Oct 10, 2016

Copy link
Copy Markdown
Contributor

Well yes, but this branch was being merged into the Promise support branch.. not master. I figured we'd get that branch working fine and then figure out a roll out plan later (break up commits, etc.)

Ah right, not a big deal then.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@callmehiphop

callmehiphop commented Oct 10, 2016

Copy link
Copy Markdown
Contributor Author

I double checked and I can't find any methods that were outright deleted.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@stephenplusplus

stephenplusplus commented Oct 10, 2016 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Okidoke, sorry to derail. No methods were removed, this only adds new methods with Stream() at the end of it. However, we skipped some implied methods, such as table.getRowsStream(), instead calling it table.createReadStream(). This isn't a deprecation in the normal sense, but is a deviation from our pattern. That means streaming users of table.getRows() will need to be aware they need to use table.createReadStream().

Can you list methods where we did that ^ and put them in the OP of this PR? I believe it may only be the example above and something from BigQuery?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@callmehiphop

callmehiphop commented Oct 10, 2016

Copy link
Copy Markdown
Contributor Author

Since we needed a map of what functionality went where, I went ahead and just updated the overview with every method that has changed.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@stephenplusplus

stephenplusplus commented Oct 10, 2016

Copy link
Copy Markdown
Contributor

A beautiful sight. Thanks! imamerge.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@stephenplusplus
stephenplusplus merged commit ba75399 into googleapis:promise-support Oct 10, 2016
callmehiphop added a commit that referenced this pull request Oct 14, 2016
@callmehiphop
core: created streaming methods (#1665)
c491493
sofisl pushed a commit that referenced this pull request Feb 25, 2026
@shaffeeullah @gcf-owl-bot @ddelgrosso1
test: conformance testing for retries (#1566)
9757193
* feat: added library methods for conformance testing (#1553)

* feat: added library methods for conformance testing

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* fixed header

* responded to PR comment, addressed some TODOs

* resolved TODO

* removed functions that dont make requests

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>

* feat: add method mapping json file (#1569)

* feat: add method mapping json file

* add deleteResumableCache to mapping

* WIP: retry strategy runner code (#1567)

* feat: retry strategy runner code

* fixed license

* removed unused option

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* built out tests further, still doesnt work

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* built out more functionality

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* began refactor

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* moved functions

* refactored code

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* Update libraryMethods.ts

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>

* fix: fixed runtime errors. all the tests still fail, but they run now (#1591)

* fix: fixed runtime errors. all the tests still fail, but they run now

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>

* fix: exported functions

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* test: pull testbench docker image, kokoro presubmit conformance test … (#1590)

* test: pull testbench docker image, kokoro presubmit conformance test hooks

* use async function instead of explicit promise return

* move file to node12 directory

* fix file naming and linter issues

* fix: retry strategy bug fixes (#1594)

* bug fixes

* removed logs

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* some tests pass

* fixed some more tests

* saves file

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* uncommented functions

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* removed duplicate storage definition

* changed precondition options

* down to 7 failing tests!

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>

* feat: check that instructions were utilized in testbench (#1601)

* feat: check that instructions were utilized in testbench

* feedback

* fix: remove all files from bucket before delete (#1603)

* feat: move test creation and header set to beforeEach (#1605)

* feat: move test creation and header set to beforeEach

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Denis DelGrosso <[email protected]>
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>

* fix: create client for each test instead of globally (#1608)

* fix: remove bucketGet (#1610)

* fix: return promise from stream functions and resolve on end (#1612)

* fix: move createReadStream to correct mapping location (#1613)

* fix: remap bucket set storage class and bucket set metadata (#1615)

* fix: remap bucket set storage class

* fix: remap bucketSetMetadata

* fix: fixed bucketUploadMultipart (#1627)

* fix: fixed bucketUploadMultipart

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>

* fix: conformance test fixes for deleteFiles, fileDelete, and copy (#1636)

* fix: add copy to invocation map

* fix: fix deleteFiles and fileDelete conformance tests

* linter fixes

* fix: only send metageneration to bucket related tests (#1641)

* fix: remove tests for createWriteStream as the function is not retryable

* fix: only send metageneration to bucket related tests

* linter

* fix: set retention period before file creation (#1651)

* set retention period before file creation

* removed log statement

* removed log statement

* fix: set correct bucket precondition (#1653)

* fix: set correct bucket precondition

* Update retryStrategy.ts

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>

* fix: combine conformance test (#1656)

* fix: update test bucket (#1657)

* fix: combine conformance test

* fix: only return bucket with preconditions if the test says so

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>

* fix: fixed storage.objects.patch tests (#1658)

* fix: fixed storage.objects.patch tests

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>

* fix: refactor tests (#1659)

* fix: refactor tests

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>

* chore: build headers for isPublic from interceptors (#1665)

* chore: build headers for isPublic from interceptors

* simplify code

* tests: removed failing tests (internal issue b/203793664) (#1674)

* fix: add conformance project id (#1673)

* fix: add conformance test project id settting

* lint

* increase timeout for before hook

* specify correct host to docker port mapping

* add stop command for docker container

* chore: use import on json files instead of fs read (#1675)

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Denis DelGrosso <[email protected]>
Co-authored-by: Denis DelGrosso <[email protected]>
thiyaguk09 pushed a commit to thiyaguk09/google-cloud-node-fork that referenced this pull request Mar 18, 2026
@shaffeeullah @gcf-owl-bot @ddelgrosso1
test: conformance testing for retries (googleapis#1566)
055f2e7
* feat: added library methods for conformance testing (googleapis#1553)

* feat: added library methods for conformance testing

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* fixed header

* responded to PR comment, addressed some TODOs

* resolved TODO

* removed functions that dont make requests

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>

* feat: add method mapping json file (googleapis#1569)

* feat: add method mapping json file

* add deleteResumableCache to mapping

* WIP: retry strategy runner code (googleapis#1567)

* feat: retry strategy runner code

* fixed license

* removed unused option

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* built out tests further, still doesnt work

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* built out more functionality

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* began refactor

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* moved functions

* refactored code

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* Update libraryMethods.ts

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>

* fix: fixed runtime errors. all the tests still fail, but they run now (googleapis#1591)

* fix: fixed runtime errors. all the tests still fail, but they run now

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>

* fix: exported functions

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* test: pull testbench docker image, kokoro presubmit conformance test … (googleapis#1590)

* test: pull testbench docker image, kokoro presubmit conformance test hooks

* use async function instead of explicit promise return

* move file to node12 directory

* fix file naming and linter issues

* fix: retry strategy bug fixes (googleapis#1594)

* bug fixes

* removed logs

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* some tests pass

* fixed some more tests

* saves file

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* uncommented functions

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

* removed duplicate storage definition

* changed precondition options

* down to 7 failing tests!

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>

* feat: check that instructions were utilized in testbench (googleapis#1601)

* feat: check that instructions were utilized in testbench

* feedback

* fix: remove all files from bucket before delete (googleapis#1603)

* feat: move test creation and header set to beforeEach (googleapis#1605)

* feat: move test creation and header set to beforeEach

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Denis DelGrosso <[email protected]>
Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>

* fix: create client for each test instead of globally (googleapis#1608)

* fix: remove bucketGet (googleapis#1610)

* fix: return promise from stream functions and resolve on end (googleapis#1612)

* fix: move createReadStream to correct mapping location (googleapis#1613)

* fix: remap bucket set storage class and bucket set metadata (googleapis#1615)

* fix: remap bucket set storage class

* fix: remap bucketSetMetadata

* fix: fixed bucketUploadMultipart (googleapis#1627)

* fix: fixed bucketUploadMultipart

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>

* fix: conformance test fixes for deleteFiles, fileDelete, and copy (googleapis#1636)

* fix: add copy to invocation map

* fix: fix deleteFiles and fileDelete conformance tests

* linter fixes

* fix: only send metageneration to bucket related tests (googleapis#1641)

* fix: remove tests for createWriteStream as the function is not retryable

* fix: only send metageneration to bucket related tests

* linter

* fix: set retention period before file creation (googleapis#1651)

* set retention period before file creation

* removed log statement

* removed log statement

* fix: set correct bucket precondition (googleapis#1653)

* fix: set correct bucket precondition

* Update retryStrategy.ts

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>

* fix: combine conformance test (googleapis#1656)

* fix: update test bucket (googleapis#1657)

* fix: combine conformance test

* fix: only return bucket with preconditions if the test says so

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>

* fix: fixed storage.objects.patch tests (googleapis#1658)

* fix: fixed storage.objects.patch tests

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>

* fix: refactor tests (googleapis#1659)

* fix: refactor tests

* 🦉 Updates from OwlBot

See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>

* chore: build headers for isPublic from interceptors (googleapis#1665)

* chore: build headers for isPublic from interceptors

* simplify code

* tests: removed failing tests (internal issue b/203793664) (googleapis#1674)

* fix: add conformance project id (googleapis#1673)

* fix: add conformance test project id settting

* lint

* increase timeout for before hook

* specify correct host to docker port mapping

* add stop command for docker container

* chore: use import on json files instead of fs read (googleapis#1675)

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Co-authored-by: Denis DelGrosso <[email protected]>
Co-authored-by: Denis DelGrosso <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

1 more reviewer
@stephenplusplus stephenplusplus stephenplusplus left review comments
Reviewers whose approvals may not affect merge requirements

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@stephenplusplus stephenplusplus

Labels

cla: yes This human has signed the Contributor License Agreement. core

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@callmehiphop @stephenplusplus @googlebot
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.