You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/05/19 03:36:09 UTC

[GitHub] [airflow] mik-laj commented on pull request #8575: [AIRFLOW-6981] Move Google Cloud Build from Discovery API to Python Library

mik-laj commented on pull request #8575:
URL: https://github.com/apache/airflow/pull/8575#issuecomment-630558831


   I tried to run system tests and unfortunately none of the tasks was successful.
   
   <details>
   
   
   ```
   [2020-05-19 03:29:06,688] {taskinstance.py:719} INFO - Dependencies all met for <TaskInstance: example_gcp_cloud_build.create_build_from_repo 2020-05-18T00:00:00+00:00 [queued]>
   [2020-05-19 03:29:06,713] {taskinstance.py:719} INFO - Dependencies all met for <TaskInstance: example_gcp_cloud_build.create_build_from_repo 2020-05-18T00:00:00+00:00 [queued]>
   [2020-05-19 03:29:06,714] {taskinstance.py:908} INFO - 
   --------------------------------------------------------------------------------
   [2020-05-19 03:29:06,714] {taskinstance.py:909} INFO - Starting attempt 1 of 1
   [2020-05-19 03:29:06,715] {taskinstance.py:910} INFO - 
   --------------------------------------------------------------------------------
   [2020-05-19 03:29:06,731] {taskinstance.py:929} INFO - Executing <Task(CloudBuildCreateBuildOperator): create_build_from_repo> on 2020-05-18T00:00:00+00:00
   [2020-05-19 03:29:06,738] {standard_task_runner.py:53} INFO - Started process 12279 to run task
   [2020-05-19 03:29:06,861] {logging_mixin.py:91} INFO - Running <TaskInstance: example_gcp_cloud_build.create_build_from_repo 2020-05-18T00:00:00+00:00 [None]> on host a8861d3b63cf
   [2020-05-19 03:29:06,930] {taskinstance.py:1002} INFO - Exporting the following env vars:
   AIRFLOW_CTX_DAG_OWNER=airflow
   AIRFLOW_CTX_DAG_ID=example_gcp_cloud_build
   AIRFLOW_CTX_TASK_ID=create_build_from_repo
   AIRFLOW_CTX_EXECUTION_DATE=2020-05-18T00:00:00+00:00
   AIRFLOW_CTX_DAG_RUN_ID=backfill__2020-05-18T00:00:00+00:00
   [2020-05-19 03:29:06,935] {taskinstance.py:1191} ERROR - Failed to parse source field: Message type "google.devtools.cloudbuild.v1.RepoSource" has no field named "repo_ name".
    Available Fields(except extensions): ['projectId', 'repoName', 'branchName', 'tagName', 'commitSha', 'dir'].
   Traceback (most recent call last):
     File "/usr/local/lib/python3.7/site-packages/google/protobuf/json_format.py", line 524, in _ConvertFieldValuePair
       [f.json_name for f in message_descriptor.fields]))
   google.protobuf.json_format.ParseError: Message type "google.devtools.cloudbuild.v1.RepoSource" has no field named "repo_ name".
    Available Fields(except extensions): ['projectId', 'repoName', 'branchName', 'tagName', 'commitSha', 'dir']
   
   During handling of the above exception, another exception occurred:
   
   Traceback (most recent call last):
     File "/usr/local/lib/python3.7/site-packages/google/protobuf/json_format.py", line 582, in _ConvertFieldValuePair
       self.ConvertMessage(value, sub_message)
     File "/usr/local/lib/python3.7/site-packages/google/protobuf/json_format.py", line 481, in ConvertMessage
       self._ConvertFieldValuePair(value, message)
     File "/usr/local/lib/python3.7/site-packages/google/protobuf/json_format.py", line 592, in _ConvertFieldValuePair
       raise ParseError(str(e))
   google.protobuf.json_format.ParseError: Message type "google.devtools.cloudbuild.v1.RepoSource" has no field named "repo_ name".
    Available Fields(except extensions): ['projectId', 'repoName', 'branchName', 'tagName', 'commitSha', 'dir']
   
   During handling of the above exception, another exception occurred:
   
   Traceback (most recent call last):
     File "/usr/local/lib/python3.7/site-packages/google/protobuf/json_format.py", line 582, in _ConvertFieldValuePair
       self.ConvertMessage(value, sub_message)
     File "/usr/local/lib/python3.7/site-packages/google/protobuf/json_format.py", line 481, in ConvertMessage
       self._ConvertFieldValuePair(value, message)
     File "/usr/local/lib/python3.7/site-packages/google/protobuf/json_format.py", line 592, in _ConvertFieldValuePair
       raise ParseError(str(e))
   google.protobuf.json_format.ParseError: Message type "google.devtools.cloudbuild.v1.RepoSource" has no field named "repo_ name".
    Available Fields(except extensions): ['projectId', 'repoName', 'branchName', 'tagName', 'commitSha', 'dir']
   
   During handling of the above exception, another exception occurred:
   
   Traceback (most recent call last):
     File "/opt/airflow/airflow/models/taskinstance.py", line 1025, in _run_raw_task
       result = task_copy.execute(context=context)
     File "/opt/airflow/airflow/providers/google/cloud/operators/cloud_build.py", line 161, in execute
       build = BuildProcessor(build=self.build).process_body()
     File "/opt/airflow/airflow/providers/google/cloud/operators/cloud_build.py", line 784, in process_body
       return ParseDict(self.build, Build())
     File "/usr/local/lib/python3.7/site-packages/google/protobuf/json_format.py", line 450, in ParseDict
       parser.ConvertMessage(js_dict, message)
     File "/usr/local/lib/python3.7/site-packages/google/protobuf/json_format.py", line 481, in ConvertMessage
       self._ConvertFieldValuePair(value, message)
     File "/usr/local/lib/python3.7/site-packages/google/protobuf/json_format.py", line 590, in _ConvertFieldValuePair
       raise ParseError('Failed to parse {0} field: {1}.'.format(name, e))
   google.protobuf.json_format.ParseError: Failed to parse source field: Message type "google.devtools.cloudbuild.v1.RepoSource" has no field named "repo_ name".
    Available Fields(except extensions): ['projectId', 'repoName', 'branchName', 'tagName', 'commitSha', 'dir'].
   [2020-05-19 03:29:06,942] {taskinstance.py:1235} INFO - Marking task as FAILED. dag_id=example_gcp_cloud_build, task_id=create_build_from_repo, execution_date=20200518T000000, start_date=20200519T032906, end_date=20200519T032906
   [2020-05-19 03:29:07,655] {logging_mixin.py:91} INFO - [2020-05-19 03:29:07,655] {local_task_job.py:103} INFO - Task exited with return code 1
   
   ```
   ```
   [2020-05-19 03:29:06,666] {taskinstance.py:719} INFO - Dependencies all met for <TaskInstance: example_gcp_cloud_build.create_build_from_storage 2020-05-18T00:00:00+00:00 [queued]>
   [2020-05-19 03:29:06,692] {taskinstance.py:719} INFO - Dependencies all met for <TaskInstance: example_gcp_cloud_build.create_build_from_storage 2020-05-18T00:00:00+00:00 [queued]>
   [2020-05-19 03:29:06,693] {taskinstance.py:908} INFO - 
   --------------------------------------------------------------------------------
   [2020-05-19 03:29:06,694] {taskinstance.py:909} INFO - Starting attempt 1 of 1
   [2020-05-19 03:29:06,694] {taskinstance.py:910} INFO - 
   --------------------------------------------------------------------------------
   [2020-05-19 03:29:06,713] {taskinstance.py:929} INFO - Executing <Task(CloudBuildCreateBuildOperator): create_build_from_storage> on 2020-05-18T00:00:00+00:00
   [2020-05-19 03:29:06,717] {standard_task_runner.py:53} INFO - Started process 12278 to run task
   [2020-05-19 03:29:06,833] {logging_mixin.py:91} INFO - Running <TaskInstance: example_gcp_cloud_build.create_build_from_storage 2020-05-18T00:00:00+00:00 [None]> on host a8861d3b63cf
   [2020-05-19 03:29:06,900] {taskinstance.py:1002} INFO - Exporting the following env vars:
   AIRFLOW_CTX_DAG_OWNER=airflow
   AIRFLOW_CTX_DAG_ID=example_gcp_cloud_build
   AIRFLOW_CTX_TASK_ID=create_build_from_storage
   AIRFLOW_CTX_EXECUTION_DATE=2020-05-18T00:00:00+00:00
   AIRFLOW_CTX_DAG_RUN_ID=backfill__2020-05-18T00:00:00+00:00
   [2020-05-19 03:29:26,646] {taskinstance.py:1191} ERROR - 'dict' object has no attribute 'DESCRIPTOR'
   Traceback (most recent call last):
     File "/opt/airflow/airflow/models/taskinstance.py", line 1025, in _run_raw_task
       result = task_copy.execute(context=context)
     File "/opt/airflow/airflow/providers/google/cloud/operators/cloud_build.py", line 171, in execute
       return MessageToDict(result)
     File "/usr/local/lib/python3.7/site-packages/google/protobuf/json_format.py", line 174, in MessageToDict
       return printer._MessageToJsonObject(message)
     File "/usr/local/lib/python3.7/site-packages/google/protobuf/json_format.py", line 209, in _MessageToJsonObject
       message_descriptor = message.DESCRIPTOR
   AttributeError: 'dict' object has no attribute 'DESCRIPTOR'
   [2020-05-19 03:29:26,657] {taskinstance.py:1235} INFO - Marking task as FAILED. dag_id=example_gcp_cloud_build, task_id=create_build_from_storage, execution_date=20200518T000000, start_date=20200519T032906, end_date=20200519T032926
   [2020-05-19 03:29:26,871] {logging_mixin.py:91} INFO - [2020-05-19 03:29:26,870] {local_task_job.py:103} INFO - Task exited with return code 1
   
   ```
   </details>


----------------------------------------------------------------
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.

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