Skip to content

feat: support custom build service account in remote_function #1796

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 7 commits into from
Jun 12, 2025

Conversation

shobsi
Copy link
Contributor

@shobsi shobsi commented Jun 5, 2025

Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:

  • Make sure to open an issue as a bug/issue before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea
  • Ensure the tests and linter pass
  • Code coverage does not decrease (if any source code was changed)
  • Appropriate docs were updated (if necessary)

Fixes internal issue 405141940 🦕

…vice_account`:

This commit refactors the system test `test_remote_function_via_session_custom_build_sa`
in `tests/system/large/functions/test_remote_function.py` to align with
the structure and validation approach of `test_remote_function_via_session_custom_sa`.

The test now:
- Uses the project "bigframes-dev-perf".
- Sets `cloud_build_service_account` to "bigframes-dev-perf-1@bigframes-dev-perf.iam.gserviceaccount.com".
- Sets `cloud_function_service_account` to the same value for simplicity in this test.
- Uses `cloud_function_ingress_settings="all"`.
- Validates that `gcf.build_config.service_account` matches the
  provided `cloud_build_service_account`.
- Employs a dedicated session for the test and ensures proper cleanup.
@shobsi shobsi requested review from a team as code owners June 5, 2025 23:20
@shobsi shobsi requested a review from TrevorBergeron June 5, 2025 23:20
@product-auto-label product-auto-label bot added size: m Pull request size is medium. api: bigquery Issues related to the googleapis/python-bigquery-dataframes API. labels Jun 5, 2025
@shobsi shobsi marked this pull request as draft June 5, 2025 23:20
@shobsi shobsi marked this pull request as ready for review June 11, 2025 18:56
@shobsi shobsi merged commit e586151 into main Jun 12, 2025
24 checks passed
@shobsi shobsi deleted the refactor-custom-build-sa-system-test branch June 12, 2025 22:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: bigquery Issues related to the googleapis/python-bigquery-dataframes API. size: m Pull request size is medium.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants