googleapis / googleapis/google-cloud-rust
Flake in bigquery `job_samples` test
- Dominant language
- Rust
- Stars
- 955
- Forks
- 144
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 279
Description
> **Commit:** [9953b09](https://github.com/googleapis/google-cloud-rust/commit/9953b094fb1b25cd703301b62997b22f52a10740)
>
> ```
> full error: the request exceeded the request deadline error sending request for url (https://bigquery.googleapis.com/bigquery/v2/projects/rust-sdk-testing/jobs?allUsers=false&maxResults=20&minCreationTime=0&pageToken=1788250336403-job_UPuqahsZZoeGKdC2Mvqj1ttsQGlJ&projection=0&parentJobId=&%24alt=json%3Benum-encoding%3Dint)
> Caused by:
> 0: error sending request for url (https://bigquery.googleapis.com/bigquery/v2/projects/rust-sdk-testing/jobs?allUsers=false&maxResults=20&minCreationTime=0&pageToken=1788250336403-job_UPuqahsZZoeGKdC2Mvqj1ttsQGlJ&projection=0&parentJobId=&%24alt=json%3Benum-encoding%3Dint)
> 1: operation timed out
> because: Error { kind: Timeout, source: Some(reqwest::Error { kind: Request, url: "https://bigquery.googleapis.com/bigquery/v2/projects/rust-sdk-testing/jobs?allUsers=false&maxResults=20&minCreationTime=0&pageToken=1788250336403-job_UPuqahsZZoeGKdC2Mvqj1ttsQGlJ&projection=0&parentJobId=&%24alt=json%3Benum-encoding%3Dint", source: TimedOut }) }
> because: reqwest::Error { kind: Request, url: "https://bigquery.googleapis.com/bigquery/v2/projects/rust-sdk-testing/jobs?allUsers=false&maxResults=20&minCreationTime=0&pageToken=1788250336403-job_UPuqahsZZoeGKdC2Mvqj1ttsQGlJ&projection=0&parentJobId=&%24alt=json%3Benum-encoding%3Dint", source: TimedOut }
> because: TimedOut
> Error: the request exceeded the request deadline error sending request for url (https://bigquery.googleapis.com/bigquery/v2/projects/rust-sdk-testing/jobs?allUsers=false&maxResults=20&minCreationTime=0&pageToken=1788250336403-job_UPuqahsZZoeGKdC2Mvqj1ttsQGlJ&projection=0&parentJobId=&%24alt=json%3Benum-encoding%3Dint)
> Caused by:
> 0: error sending request for url (https://bigquery.googleapis.com/bigquery/v2/projects/rust-sdk-testing/jobs?allUsers=false&maxResults=20&minCreationTime=0&pageToken=1788250336403-job_UPuqahsZZoeGKdC2Mvqj1ttsQGlJ&projection=0&parentJobId=&%24alt=json%3Benum-encoding%3Dint)
> 1: operation timed out
> failures:
> tests::job_samples
> ```
_Originally posted by @dbolduc in [#6670](https://github.com/googleapis/google-cloud-rust/issues/6670#issuecomment-5578695062)_
Contributor guide
Research direction
Start by locating the `tests::job_samples` test and reviewing commit 9953b09, then reproduce the BigQuery request timeout if possible. Done means the test no longer flakes when the BigQuery jobs request exceeds its deadline, with the relevant test passing reliably.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- databases, testing
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100