Skip to content

test: Add bun testing for apiary - #3986

Merged
danieljbruce merged 4 commits into
mainfrom
bun-testing-apiary
Aug 31, 2026
Merged

danieljbruce merged 4 commits into
mainfrom
bun-testing-apiary

Conversation

@danieljbruce

@danieljbruce danieljbruce commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

Description

This pull request does for apiary what https://github.com/googleapis/google-cloud-node/pull/9208/changes did for google-cloud-node. It adds a CI test that uses bun run test instead of npm test

Adds a new GitHub Actions presubmit workflow (.github/workflows/presubmit-bun.yml) to run the unit test suite against the Bun JavaScript runtime across Node versions 22, 24, and 26.

Key details:

  • Sets up Bun 1.3.14 via oven-sh/setup-bun pinned to SHA 0c5077e51419868618aeaa5fe8019c62421857d6 (v2.2.0).
  • Uses npm install for dependency management to ensure lockfile and version consistency between CI environments.
  • Executes tests with bun run test.

Impact

Ensures ongoing compatibility with the Bun runtime and catches runtime-specific regressions early for users running googleapis in Bun environments. This change is CI-only and introduces no breaking changes or runtime library modifications.

Testing

  • Added .github/workflows/presubmit-bun.yml to run on pull requests.
  • Validated test matrix against Node 22, 24, and 26 with Bun 1.3.14.

Additional Information

  • Dependencies are installed with npm rather than bun install to preserve package resolution consistency with the existing CI pipeline.
  • Sets MOCHA_THROW_DEPRECATION: false consistent with existing test jobs.

@product-auto-label product-auto-label Bot added the size: s Pull request size is small. label Aug 28, 2026
@danieljbruce danieljbruce added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 28, 2026
@danieljbruce
danieljbruce marked this pull request as ready for review August 31, 2026 19:50
@danieljbruce
danieljbruce requested a review from a team as a code owner August 31, 2026 19:50
@danieljbruce danieljbruce added the owlbot:run Add this label to trigger the Owlbot post processor. label Aug 31, 2026
@gcf-owl-bot gcf-owl-bot Bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Aug 31, 2026
@danieljbruce
danieljbruce enabled auto-merge (rebase) August 31, 2026 19:51
@feywind

feywind commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

I wonder if we should change the branch out of date check here like we did on google-cloud-node.

@danieljbruce

Copy link
Copy Markdown
Contributor Author

I wonder if we should change the branch out of date check here like we did on google-cloud-node.

That seems like a good idea. I don't think there are any risks?

@yoshi-kokoro yoshi-kokoro removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Aug 31, 2026
@feywind feywind added the owlbot:run Add this label to trigger the Owlbot post processor. label Aug 31, 2026
@gcf-owl-bot gcf-owl-bot Bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Aug 31, 2026
@danieljbruce
danieljbruce merged commit 7fa5c2e into main Aug 31, 2026
32 checks passed
@danieljbruce
danieljbruce deleted the bun-testing-apiary branch August 31, 2026 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size: s Pull request size is small.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants