Skip to content

Adds reserved_ip_ranges parameter to RunPipelineJobOperator. - #62739

Closed
vrcadore-ig wants to merge 9 commits into
apache:mainfrom
vrcadore-ig:main
Closed

vrcadore-ig wants to merge 9 commits into
apache:mainfrom
vrcadore-ig:main

Conversation

@vrcadore-ig

Copy link
Copy Markdown

PR adds reserved_ip_ranges to RunPipelineJobOperator, changing the internal hook and amending the unit tests.

Related Issues

Was generative AI tooling used to co-author this PR? No


  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst or {issue_number}.significant.rst, in airflow-core/newsfragments.

@vrcadore-ig
vrcadore-ig requested a review from shahar1 as a code owner March 2, 2026 21:37
@boring-cyborg

boring-cyborg Bot commented Mar 2, 2026

Copy link
Copy Markdown

Congratulations on your first Pull Request and welcome to the Apache Airflow community! If you have any issues or are unsure about any anything please check our Contributors' Guide (https://github.com/apache/airflow/blob/main/contributing-docs/README.rst)
Here are some useful points:

  • Pay attention to the quality of your code (ruff, mypy and type annotations). Our prek-hooks will help you with that.
  • In case of a new feature add useful documentation (in docstrings or in docs/ directory). Adding a new operator? Check this short guide Consider adding an example DAG that shows how users should use it.
  • Consider using Breeze environment for testing locally, it's a heavy docker but it ships with a working Airflow and a lot of integrations.
  • Be patient and persistent. It might take some time to get a review or get the final approval from Committers.
  • Please follow ASF Code of Conduct for all communication including (but not limited to) comments on Pull Requests, Mailing list and Slack.
  • Be sure to read the Airflow Coding style.
  • Always keep your Pull Requests rebased, otherwise your build might fail due to changes not related to your commits.
    Apache Airflow is a community-driven project and together we are making it better 🚀.
    In case of doubts contact the developers at:
    Mailing List: [email protected]
    Slack: https://s.apache.org/airflow-slack

@boring-cyborg boring-cyborg Bot added area:providers provider:google Google (including GCP) related issues labels Mar 2, 2026
@potiuk

potiuk commented Apr 6, 2026 •

Copy link
Copy Markdown
Member

@vrcadore-ig A few things need addressing before review — see our Pull Request quality criteria.

  • ❌ Pre-commit / static checks: Failing: CI image checks / Static checks. Run prek run --from-ref main locally to find and fix issues. See Pre-commit / static checks docs.

Note: Your branch is 344 commits behind main. Please rebase and push again to get up-to-date CI results.

No rush.


Note: This comment was drafted by an AI-assisted triage tool and may contain mistakes. Once you have addressed the points above, an Apache Airflow maintainer — a real person — will take the next look at your PR. We use this two-stage triage process so that our maintainers' limited time is spent where it matters most: the conversation with you.

@kaxil
kaxil requested a review from Copilot April 10, 2026 19:55

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds support for Vertex AI PipelineJob reserved_ip_ranges through the Google provider’s RunPipelineJobOperator, wiring the new parameter from operator → hook → underlying PipelineJob.submit() and updating unit tests accordingly.

Changes:

  • Add reserved_ip_ranges parameter to RunPipelineJobOperator and pass it through on execution.
  • Add reserved_ip_ranges parameter to PipelineJobHook.run_pipeline_job() and submit_pipeline_job() and forward it to PipelineJob.submit().
  • Update unit tests to assert the hook is called with reserved_ip_ranges.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
providers/google/src/airflow/providers/google/cloud/operators/vertex_ai/pipeline_job.py Exposes reserved_ip_ranges on the operator and forwards it to the hook.
providers/google/src/airflow/providers/google/cloud/hooks/vertex_ai/pipeline_job.py Extends hook APIs to accept/forward reserved_ip_ranges into PipelineJob.submit().
providers/google/tests/unit/google/cloud/operators/test_vertex_ai.py Updates assertions to include reserved_ip_ranges in the operator → hook call.

Private services access must already be configured for the network. If left unspecified, the
network set in aiplatform.init will be used. Otherwise, the job is not peered with any network.
:param create_request_timeout: Optional. The timeout for the create request in seconds.
:param reserved_ip_ranges: Optional. A list of names for the reserved IP ranges under the VPC network

Copilot AI Apr 10, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is trailing whitespace at the end of the new :param reserved_ip_ranges: docstring line(s). This can cause pre-commit/lint failures; please remove the trailing spaces to match existing docstring formatting (e.g., in vertex_ai/ray.py).

Suggested change
:param reserved_ip_ranges: Optional. A list of names for the reserved IP ranges under the VPC network
:param reserved_ip_ranges: Optional. A list of names for the reserved IP ranges under the VPC network

Copilot uses AI. Check for mistakes.
Private services access must already be configured for the network. If left unspecified, the
network set in aiplatform.init will be used. Otherwise, the job is not peered with any network.
:param create_request_timeout: Optional. The timeout for the create request in seconds.
:param reserved_ip_ranges: Optional. A list of names for the reserved IP ranges under the VPC network

Copilot AI Apr 10, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The added :param reserved_ip_ranges: docstring line contains trailing whitespace at the end of the line. Please remove it to avoid formatting/lint issues.

Suggested change
:param reserved_ip_ranges: Optional. A list of names for the reserved IP ranges under the VPC network
:param reserved_ip_ranges: Optional. A list of names for the reserved IP ranges under the VPC network

Copilot uses AI. Check for mistakes.
Private services access must already be configured for the network. If left unspecified, the
network set in aiplatform.init will be used. Otherwise, the job is not peered with any network.
:param create_request_timeout: Optional. The timeout for the create request in seconds.
:param reserved_ip_ranges: Optional. A list of names for the reserved IP ranges under the VPC network

Copilot AI Apr 10, 2026

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The added :param reserved_ip_ranges: docstring line contains trailing whitespace at the end of the line. Please remove it to avoid formatting/lint issues.

Suggested change
:param reserved_ip_ranges: Optional. A list of names for the reserved IP ranges under the VPC network
:param reserved_ip_ranges: Optional. A list of names for the reserved IP ranges under the VPC network

Copilot uses AI. Check for mistakes.
@potiuk
potiuk marked this pull request as draft April 22, 2026 15:11
@potiuk

potiuk commented Apr 22, 2026 •

Copy link
Copy Markdown
Member

@vrcadore-ig This PR was triaged 16 days ago with no reply since. Converting to draft — this PR doesn't yet meet our Pull Request quality criteria.

  • ❌ Unresolved review comments (3 threads): please walk through each unresolved review thread. Even if a suggestion looks incorrect or irrelevant — and some of them will be, especially any comments left by automated reviewers like GitHub Copilot — it is still the author's responsibility to respond: apply the fix, reply in-thread with a brief explanation of why the suggestion does not apply, or resolve the thread if the feedback is no longer relevant. Leaving threads unaddressed for weeks blocks the PR from moving forward.

See the linked criteria for how to fix each item, then mark the PR "Ready for review". This is not a rejection — just an invitation to bring the PR up to standard. No rush.


Note: This comment was drafted by an AI-assisted triage tool and may contain mistakes. Once you have addressed the points above, an Apache Airflow maintainer — a real person — will take the next look at your PR. We use this two-stage triage process so that our maintainers' limited time is spent where it matters most: the conversation with you.

@potiuk

potiuk commented Apr 22, 2026 •

Copy link
Copy Markdown
Member

Quick follow-up to the triage comment above — one clarification on the "Unresolved review comments" item:

Once you believe a thread has been addressed — whether by pushing a fix, or by replying in-thread with an explanation of why the suggestion doesn't apply — please mark the thread as resolved yourself by clicking the "Resolve conversation" button at the bottom of each thread. Reviewers don't auto-close their own threads, so an addressed-but-unresolved thread reads as "still waiting on the author" and keeps the PR from moving forward. The author doing the resolve-click is the expected convention on this project.


Note: This comment was drafted by an AI-assisted triage tool and may contain mistakes. Once you have addressed the points above, an Apache Airflow maintainer — a real person — will take the next look at your PR. We use this two-stage triage process so that our maintainers' limited time is spent where it matters most: the conversation with you.

@potiuk

potiuk commented May 6, 2026

Copy link
Copy Markdown
Member

@vrcadore-ig This draft PR has been inactive for 13 days since the last triage comment and no response from the author. Closing to keep the queue clean.

You are welcome to reopen this PR when you resume work, or to open a new one addressing the issues previously raised. There is no rush — take your time.


Note: This comment was drafted by an AI-assisted triage tool and may contain mistakes. Once you have addressed the points above, an Apache Airflow maintainer — a real person — will take the next look at your PR. We use this two-stage triage process so that our maintainers' limited time is spent where it matters most: the conversation with you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:providers provider:google Google (including GCP) related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Include reserved_ip_ranges to airflow.providers.google.cloud.operators.vertex_ai.pipeline_job.RunPipelineJobTrigger

3 participants