From ecbdcc6b369efb6c5e30d54d54009a9786dcdcdb Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Fri, 21 Nov 2025 20:28:01 +0000 Subject: [PATCH] chore: lint failures Source-Link: https://github.com/googleapis/synthtool/commit/7751597471a34c54d67f225b3852e86c35d605b8 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest@sha256:a1e45c1b53fceb5fa7fd5c49cf898048c210eb07001a3355548e7a4545200ee8 --- .github/.OwlBot.lock.yaml | 4 ++-- .github/workflows/ci.yaml | 33 +++++++++++++------------- .github/workflows/issues-no-repro.yaml | 2 +- .kokoro/lint.sh | 5 ++++ renovate.json | 4 ++++ src/types.d.ts | 22 ++++++++++++++--- 6 files changed, 47 insertions(+), 23 deletions(-) diff --git a/.github/.OwlBot.lock.yaml b/.github/.OwlBot.lock.yaml index 76bda3159..3a1abb941 100644 --- a/.github/.OwlBot.lock.yaml +++ b/.github/.OwlBot.lock.yaml @@ -13,5 +13,5 @@ # limitations under the License. docker: image: gcr.io/cloud-devrel-public-resources/owlbot-nodejs:latest - digest: sha256:d0d37c730ec00f109a1a20d298d6df88a965626f75aaf00c3cce94d56c9e2a9f -# created: 2025-10-01T14:22:55.919514987Z + digest: sha256:a1e45c1b53fceb5fa7fd5c49cf898048c210eb07001a3355548e7a4545200ee8 +# created: 2025-11-21T20:24:19.347250905Z diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 3c0b430c6..87f500771 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -12,7 +12,7 @@ jobs: node: [18, 20, 22, 24] steps: - uses: actions/checkout@v5 - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v6 with: node-version: ${{ matrix.node }} - run: node --version @@ -30,7 +30,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v5 - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v6 with: node-version: 18 - run: node --version @@ -44,7 +44,7 @@ jobs: runs-on: windows-latest steps: - uses: actions/checkout@v5 - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v6 with: node-version: 18 - run: npm install --engine-strict @@ -55,21 +55,20 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v5 - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v6 with: node-version: 18 - run: npm install - run: npm run lint - # TODO(https://github.com/googleapis/nodejs-bigquery/issues/1582) - # docs: - # runs-on: ubuntu-latest - # steps: - # - uses: actions/checkout@v5 - # - uses: actions/setup-node@v4 - # with: - # node-version: 18 - # - run: npm install - # - run: npm run docs - # - uses: JustinBeckwith/linkinator-action@v1 - # with: - # paths: docs/ + docs: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v5 + - uses: actions/setup-node@v6 + with: + node-version: 18 + - run: npm install + - run: npm run docs + - uses: JustinBeckwith/linkinator-action@v1 + with: + paths: docs/ diff --git a/.github/workflows/issues-no-repro.yaml b/.github/workflows/issues-no-repro.yaml index 531054022..66ceadb9c 100644 --- a/.github/workflows/issues-no-repro.yaml +++ b/.github/workflows/issues-no-repro.yaml @@ -11,7 +11,7 @@ jobs: pull-requests: write steps: - uses: actions/checkout@v5 - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v6 with: node-version: 18 - run: npm install diff --git a/.kokoro/lint.sh b/.kokoro/lint.sh index aef4866e4..f994f2767 100755 --- a/.kokoro/lint.sh +++ b/.kokoro/lint.sh @@ -17,6 +17,11 @@ set -eo pipefail export NPM_CONFIG_PREFIX=${HOME}/.npm-global +export PATH="${NPM_CONFIG_PREFIX}/bin:${PATH}" + +# Ensure the npm global directory is writable, otherwise rebuild `npm` +mkdir -p ${NPM_CONFIG_PREFIX} +npm config -g ls || npm i -g npm@`npm --version` cd $(dirname $0)/.. diff --git a/renovate.json b/renovate.json index c5c702cf4..f39fd3232 100644 --- a/renovate.json +++ b/renovate.json @@ -15,6 +15,10 @@ { "extends": "packages:linters", "groupName": "linters" + }, + { + "matchManagers": ["github-actions"], + "enabled": false } ], "ignoreDeps": ["typescript"] diff --git a/src/types.d.ts b/src/types.d.ts index 2892e1e4d..2093c6ec9 100644 --- a/src/types.d.ts +++ b/src/types.d.ts @@ -13,7 +13,7 @@ // limitations under the License. /** - * Discovery Revision: 20250912 + * Discovery Revision: 20250928 */ /** @@ -1706,6 +1706,10 @@ declare namespace bigquery { * Optional. Format used to parse TIMESTAMP values. Supports C-style and SQL-style values. */ timestampFormat?: string; + /** + * Precisions (maximum number of total digits in base 10) for seconds of TIMESTAMP types that are allowed to the destination table for autodetection mode. Available for the formats: CSV. For the CSV Format, Possible values include: Not Specified, [], or [6]: timestamp(6) for all auto detected TIMESTAMP columns [6, 12]: timestamp(6) for all auto detected TIMESTAMP columns that have less than 6 digits of subseconds. timestamp(12) for all auto detected TIMESTAMP columns that have more than 6 digits of subseconds. [12]: timestamp(12) for all auto detected TIMESTAMP columns. The order of the elements in this array is ignored. Inputs that have higher precision than the highest target precision in this array will be truncated. + */ + timestampTargetPrecision?: Array; }; /** @@ -2404,7 +2408,7 @@ declare namespace bigquery { */ load?: IJobConfigurationLoad; /** - * Optional. INTERNAL: DO NOT USE. The maximum rate of slot consumption to allow for this job. If set, the number of slots used to execute the job will be throttled to try and keep its slot consumption below the requested rate. + * Optional. A target limit on the rate of slot consumption by this job. If set to a value > 0, BigQuery will attempt to limit the rate of slot consumption by this job to keep it below the configured limit, even if the job is eligible for more slots based on fair scheduling. The unused slots will be available for other jobs and queries to use. Note: This feature is not yet generally available. */ maxSlots?: number; /** @@ -2643,6 +2647,10 @@ declare namespace bigquery { * Optional. Date format used for parsing TIMESTAMP values. */ timestampFormat?: string; + /** + * Precisions (maximum number of total digits in base 10) for seconds of TIMESTAMP types that are allowed to the destination table for autodetection mode. Available for the formats: CSV. For the CSV Format, Possible values include: Not Specified, [], or [6]: timestamp(6) for all auto detected TIMESTAMP columns [6, 12]: timestamp(6) for all auto detected TIMESTAMP columns that have less than 6 digits of subseconds. timestamp(12) for all auto detected TIMESTAMP columns that have more than 6 digits of subseconds. [12]: timestamp(12) for all auto detected TIMESTAMP columns. The order of the elements in this array is ignored. Inputs that have higher precision than the highest target precision in this array will be truncated. + */ + timestampTargetPrecision?: Array; /** * Optional. If sourceFormat is set to "AVRO", indicates whether to interpret logical types as the corresponding BigQuery data type (for example, TIMESTAMP), instead of using the raw type (for example, INTEGER). */ @@ -2974,6 +2982,10 @@ declare namespace bigquery { * Output only. Quotas which delayed this job's start time. */ quotaDeferments?: Array; + /** + * Output only. The reservation group path of the reservation assigned to this job. This field has a limit of 10 nested reservation groups. This is to maintain consistency between reservatins info schema and jobs info schema. The first reservation group is the root reservation group and the last is the leaf or lowest level reservation group. + */ + reservationGroupPath?: Array; /** * Output only. Job resource usage breakdown by reservation. This field reported misleading information and will no longer be populated. */ @@ -4124,7 +4136,7 @@ declare namespace bigquery { */ maxResults?: number; /** - * Optional. INTERNAL: DO NOT USE. The maximum rate of slot consumption to allow for this job. If set, the number of slots used to execute the job will be throttled to try and keep its slot consumption below the requested rate. This limit is best effort. + * Optional. A target limit on the rate of slot consumption by this query. If set to a value > 0, BigQuery will attempt to limit the rate of slot consumption by this query to keep it below the configured limit, even if the query is eligible for more slots based on fair scheduling. The unused slots will be available for other jobs and queries to use. Note: This feature is not yet generally available. */ maxSlots?: number; /** @@ -5525,6 +5537,10 @@ declare namespace bigquery { * Optional. See documentation for precision. */ scale?: string; + /** + * Optional. Precision (maximum number of total digits in base 10) for seconds of TIMESTAMP type. Possible values include: * 6 (Default, for TIMESTAMP type with microsecond precision) * 12 (For TIMESTAMP type with picosecond precision) + */ + timestampPrecision?: string; /** * Required. The field data type. Possible values include: * STRING * BYTES * INTEGER (or INT64) * FLOAT (or FLOAT64) * BOOLEAN (or BOOL) * TIMESTAMP * DATE * TIME * DATETIME * GEOGRAPHY * NUMERIC * BIGNUMERIC * JSON * RECORD (or STRUCT) * RANGE Use of RECORD/STRUCT indicates that the field contains a nested schema. */