You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "siddhsql (via GitHub)" <gi...@apache.org> on 2023/05/13 16:42:50 UTC

[GitHub] [airflow] siddhsql opened a new issue, #31272: unable to specify location in arguments to CloudBuildRunBuildTriggerOperator

siddhsql opened a new issue, #31272:
URL: https://github.com/apache/airflow/issues/31272

   ### Apache Airflow version
   
   Other Airflow 2 version (please specify below)
   
   ### What happened
   
   airflow version 2.4.3
   
   when we try to specify location in argument to CloudBuildRunBuildTriggerOperator 
   
   code:
   
   ```
   from airflow.providers.google.cloud.operators.cloud_build import (
       CloudBuildRunBuildTriggerOperator,
   )
   
   CloudBuildRunBuildTriggerOperator(
           task_id=task_id,
           project_id=PROJECT_ID,
           trigger_id=trigger_id,        
   location=LOCATION,
           source={"project_id": PROJECT_ID, "repo_name": repo_url, "branch_name": "master"},
   )
   ```
   
   we get error:
   
   ```
   Broken DAG: [/home/airflow/gcs/dags/xxx.py] Traceback (most recent call last):
   
     File "/opt/python3.8/lib/python3.8/site-packages/airflow/models/baseoperator.py", line 408, in apply_defaults
   
       result = func(self, **kwargs, default_args=default_args)
   
     File "/opt/python3.8/lib/python3.8/site-packages/airflow/models/baseoperator.py", line 756, in __init__
   
       raise AirflowException(
   
   airflow.exceptions.AirflowException: Invalid arguments were passed to CloudBuildRunBuildTriggerOperator (task_id: iacv-common). Invalid arguments were:
   
   **kwargs: {'location': 'us-central1'}
   ```
   
   ### What you think should happen instead
   
   the location should be honored
   
   ### How to reproduce
   
   run the code above
   
   ### Operating System
   
   Linux Debian
   
   ### Versions of Apache Airflow Providers
   
   2.4.3
   
   ### Deployment
   
   Google Cloud Composer
   
   ### Deployment details
   
   _No response_
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] boring-cyborg[bot] commented on issue #31272: unable to specify location in arguments to CloudBuildRunBuildTriggerOperator

Posted by "boring-cyborg[bot] (via GitHub)" <gi...@apache.org>.
boring-cyborg[bot] commented on issue #31272:
URL: https://github.com/apache/airflow/issues/31272#issuecomment-1546707524

   Thanks for opening your first issue here! Be sure to follow the issue template! If you are willing to raise PR to address this issue please do so, no need to wait for approval.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] potiuk closed issue #31272: unable to specify location in arguments to CloudBuildRunBuildTriggerOperator

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk closed issue #31272: unable to specify location in arguments to CloudBuildRunBuildTriggerOperator
URL: https://github.com/apache/airflow/issues/31272


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] potiuk commented on issue #31272: unable to specify location in arguments to CloudBuildRunBuildTriggerOperator

Posted by "potiuk (via GitHub)" <gi...@apache.org>.
potiuk commented on issue #31272:
URL: https://github.com/apache/airflow/issues/31272#issuecomment-1546709476

   Fixed in https://github.com/apache/airflow/pull/29937 - check in release notes of provider when it has been released and upgrade provider (or upgrade to latest simply).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [airflow] siddhsql commented on issue #31272: unable to specify location in arguments to CloudBuildRunBuildTriggerOperator

Posted by "siddhsql (via GitHub)" <gi...@apache.org>.
siddhsql commented on issue #31272:
URL: https://github.com/apache/airflow/issues/31272#issuecomment-1548329322

   on https://github.com/apache/airflow/releases a search for 29937 does not return anything. is this pending release?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org