Skip to content

[8.2.0] Make WorkerInstance a @ClassRule @Rule#25504

Merged
iancha1992 merged 1 commit intobazelbuild:release-8.2.0from
iancha1992:cp25434
Mar 10, 2025
Merged

[8.2.0] Make WorkerInstance a @ClassRule @Rule#25504
iancha1992 merged 1 commit intobazelbuild:release-8.2.0from
iancha1992:cp25434

Conversation

@iancha1992
Copy link
Copy Markdown
Member

This makes it easier to use in tests and also avoids restarting the worker for each test by only deleting its state.

Before:

//src/test/java/com/google/devtools/build/lib/remote:BuildWithoutTheBytesIntegrationTest PASSED in 33.4s
  Stats over 5 runs: max = 33.4s, min = 28.8s, avg = 31.8s, dev = 1.7s

After:

//src/test/java/com/google/devtools/build/lib/remote:BuildWithoutTheBytesIntegrationTest PASSED in 11.5s
  Stats over 5 runs: max = 11.5s, min = 9.0s, avg = 10.0s, dev = 0.8s

Requires fixing an InputStream leak in DiskCacheClient.

Suggested in #25412 (comment)

Closes #25432.

PiperOrigin-RevId: 734107531
Change-Id: Icf8f593f8c368c5d9daa36002a6fb1aa9b789dca

Commit 7bc4469

This makes it easier to use in tests and also avoids restarting the worker for each test by only deleting its state.

Before:
```
//src/test/java/com/google/devtools/build/lib/remote:BuildWithoutTheBytesIntegrationTest PASSED in 33.4s
  Stats over 5 runs: max = 33.4s, min = 28.8s, avg = 31.8s, dev = 1.7s
```

After:
```
//src/test/java/com/google/devtools/build/lib/remote:BuildWithoutTheBytesIntegrationTest PASSED in 11.5s
  Stats over 5 runs: max = 11.5s, min = 9.0s, avg = 10.0s, dev = 0.8s
```

Requires fixing an `InputStream` leak in `DiskCacheClient`.

Suggested in bazelbuild#25412 (comment)

Closes bazelbuild#25432.

PiperOrigin-RevId: 734107531
Change-Id: Icf8f593f8c368c5d9daa36002a6fb1aa9b789dca
@iancha1992 iancha1992 added team-Remote-Exec Issues and PRs for the Execution (Remote) team awaiting-review PR is awaiting review from an assigned reviewer labels Mar 7, 2025
@iancha1992 iancha1992 requested a review from coeuvre March 7, 2025 22:17
@iancha1992 iancha1992 requested a review from a team as a code owner March 7, 2025 22:17
@iancha1992 iancha1992 enabled auto-merge March 7, 2025 22:17
@iancha1992 iancha1992 added this pull request to the merge queue Mar 10, 2025
Merged via the queue into bazelbuild:release-8.2.0 with commit f141781 Mar 10, 2025
@github-actions github-actions Bot removed the awaiting-review PR is awaiting review from an assigned reviewer label Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

team-Remote-Exec Issues and PRs for the Execution (Remote) team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants