Skip to content

chore(gax): resolves linter warnings in gax - #9281

Draft
shivanee-p wants to merge 29 commits into
mainfrom
shivaneep-gax-linter-fixes
Draft

shivanee-p wants to merge 29 commits into
mainfrom
shivaneep-gax-linter-fixes

Conversation

@shivanee-p

Copy link
Copy Markdown
Contributor

No description provided.

@shivanee-p
shivanee-p added this pull request to stack #9282 September 10, 2026 18:42

@gemini-code-assist gemini-code-assist Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Code Review

This pull request refactors several files in the @google-cloud/gax package, primarily focusing on formatting imports, type definitions, and converting unit tests in apiCallable.ts from callback-based (done) patterns to modern async/await syntax with assert.rejects. Feedback is provided regarding a skipped test in the unit tests, suggesting that an accompanying comment or TODO referencing a tracking issue should be added to explain the reason for skipping.

});

it.skip('retries with exponential backoff', done => {
it.skip('retries with exponential backoff', async () => {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

When skipping a test, please ensure there is an accompanying comment or TODO that references the correct tracking issue and accurately describes the failure reason.

References
  1. When skipping a test, ensure the accompanying comment or TODO references the correct tracking issue and accurately describes the failure reason.

shivanee-p and others added 28 commits September 11, 2026 09:45
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
@shivanee-p
shivanee-p force-pushed the shivaneep-o11y-http-tracing branch from e2b5e2e to 6b5bd97 Compare September 11, 2026 18:08
@shivanee-p
shivanee-p force-pushed the shivaneep-gax-linter-fixes branch from 7d14d55 to 087aea5 Compare September 11, 2026 18:08

@quirogas quirogas left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

For your awareness, not a merge gate. The lint job in presubmit.yaml is continue-on-error: true (L41), so the red X is informational. Note that since #9277 has new commits merged from #9269/#9267, this branch will need a merge/rebase.

*/

import type {Response as NodeFetchResponse} from 'node-fetch' with {'resolution-mode': 'import'};
import type {Response as NodeFetchResponse} from 'node-fetch' with {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nit: commit 087aea5 ran Prettier across gax and reformatted imports in legacy files (fallbackServiceStub.ts, pagedApiCaller.ts, test/unit/pagedIteration.ts), which pulled pre-existing promise/* violations into the HEAD^1...HEAD diff window checked by linter.mjs --strict. One option is reverting the formatting-only churn on those three legacy files and keeping the targeted apiCallable.ts fixes so we avoid rewriting promise chains in the pagination and fallback stubs.

@shivanee-p
shivanee-p force-pushed the shivaneep-o11y-http-tracing branch 3 times, most recently from caa5b0d to d03116a Compare September 15, 2026 01:12
@shivanee-p
shivanee-p removed this pull request from stack #9282 September 15, 2026 01:46
@shivanee-p
shivanee-p added this pull request to stack #9335 September 15, 2026 01:51
@shivanee-p
shivanee-p force-pushed the shivaneep-o11y-http-tracing branch 3 times, most recently from 5d7f1e4 to b3d229c Compare September 15, 2026 17:45
@shivanee-p
shivanee-p removed this pull request from stack #9335 September 15, 2026 21:12
@shivanee-p
shivanee-p force-pushed the shivaneep-o11y-http-tracing branch 2 times, most recently from 65f3d84 to fe93681 Compare September 17, 2026 17:50
@shivanee-p
shivanee-p changed the base branch from shivaneep-o11y-http-tracing to main September 17, 2026 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants