See 
<https://ci-beam.apache.org/job/beam_PostCommit_Python_Examples_Dataflow/1021/display/redirect>

Changes:


------------------------------------------
[...truncated 178.50 KB...]
                       client=None,  # pylint: disable=unused-argument
                       oauth2client_args=None,
                       **kwds):
        """Attempt to get credentials, using an oauth dance as the last 
resort."""
        scopes = util.NormalizeScopes(scopes)
        client_info = {
            'client_id': client_id,
            'client_secret': client_secret,
            'scope': ' '.join(sorted(scopes)),
            'user_agent': user_agent or '%s-generated/0.1' % package_name,
        }
        for method in _CREDENTIALS_METHODS:
            credentials = method(client_info, **kwds)
            if credentials is not None:
                return credentials
        credentials_filename = credentials_filename or os.path.expanduser(
            '~/.apitools.token')
        credentials = CredentialsFromFile(credentials_filename, client_info,
                                          oauth2client_args=oauth2client_args)
        if credentials is not None:
            return credentials
>       raise exceptions.CredentialsError('Could not create valid credentials')
E       apitools.base.py.exceptions.CredentialsError: Could not create 
valid credentials

../../build/gradleenv/2050596098/lib/python3.10/site-packages/apitools/base/py/credentials_lib.py:157:
 CredentialsError
------------------------------ Captured log call -------------------------------
INFO     apache_beam.runners.portability.stager:stager.py:754 
Executing command: 
['<https://ci-beam.apache.org/job/beam_PostCommit_Python_Examples_Dataflow/ws/src/build/gradleenv/2050596098/bin/python3.10',>
 '-m', 'pip', 'download', '--dest', '/tmp/dataflow-requirements-cache', '-r', 
'/tmp/tmp27v80qwl/tmp_requirements.txt', '--exists-action', 'i', '--no-deps', 
'--implementation', 'cp', '--abi', 'cp310', '--platform', 
'manylinux2014_x86_64']
INFO     apache_beam.runners.portability.stager:stager.py:325 Copying 
Beam SDK 
"<https://ci-beam.apache.org/job/beam_PostCommit_Python_Examples_Dataflow/ws/src/sdks/python/build/apache-beam.tar.gz";>
 to staging location.
INFO     
apache_beam.runners.dataflow.dataflow_runner:dataflow_runner.py:484 Pipeline 
has additional dependencies to be installed in SDK worker container, consider 
using the SDK container image pre-building workflow to avoid repetitive 
installations. Learn more on 
https://cloud.google.com/dataflow/docs/guides/using-custom-containers#prebuild
INFO     root:environments.py:376 Default Python SDK image for 
environment is apache/beam_python3.10_sdk:2.43.0.dev
INFO     root:environments.py:295 Using provided Python SDK container 
image: gcr.io/cloud-dataflow/v1beta3/python310-fnapi:beam-master-20221018
INFO     root:environments.py:302 Python SDK container image set to 
"gcr.io/cloud-dataflow/v1beta3/python310-fnapi:beam-master-20221018" for Docker 
environment
INFO     
apache_beam.runners.portability.fn_api_runner.translations:translations.py:714 
==================== <function pack_combiners at 0x7f032677cc10> 
====================
INFO     
apache_beam.runners.portability.fn_api_runner.translations:translations.py:714 
==================== <function sort_stages at 0x7f032677d3f0> 
====================
WARNING  
oauth2client.contrib.multiprocess_file_storage:multiprocess_file_storage.py:141 
Credentials file could not be loaded, will ignore and overwrite.
WARNING  
oauth2client.contrib.multiprocess_file_storage:multiprocess_file_storage.py:141 
Credentials file could not be loaded, will ignore and overwrite.
_______________ CodersIT.test_coders_output_files_on_small_input 
_______________

self = <apache_beam.examples.cookbook.coders_it_test.CodersIT 
testMethod=test_coders_output_files_on_small_input>

    @pytest.mark.no_xdist
    @pytest.mark.examples_postcommit
    def test_coders_output_files_on_small_input(self):
      test_pipeline = TestPipeline(is_integration_test=True)
      # Setup the files with expected content.
      OUTPUT_FILE_DIR = \
          'gs://temp-storage-for-end-to-end-tests/py-it-cloud/output'
      output = '/'.join([OUTPUT_FILE_DIR, str(uuid.uuid4()), 'result'])
      INPUT_FILE_DIR = \
          'gs://temp-storage-for-end-to-end-tests/py-it-cloud/input'
      input = '/'.join([INPUT_FILE_DIR, str(uuid.uuid4()), 'input.txt'])
>     create_content_input_file(
          input, '\n'.join(map(json.dumps, self.SAMPLE_RECORDS)))

apache_beam/examples/cookbook/coders_it_test.py:90: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
apache_beam/examples/cookbook/coders_it_test.py:50: in 
create_content_input_file
    with gcs.open(path, 'w') as f:
apache_beam/io/filesystemio.py:215: in close
    self._uploader.finish()
apache_beam/io/gcp/gcsio.py:790: in finish
    raise self._upload_thread.last_error  # pylint: disable=raising-bad-type
apache_beam/io/gcp/gcsio.py:763: in _start_upload
    self._client.objects.Insert(self._insert_request, upload=self._upload)
apache_beam/io/gcp/internal/clients/storage/storage_v1_client.py:1152:
 in Insert
    return self._RunMethod(
../../build/gradleenv/2050596098/lib/python3.10/site-packages/apitools/base/py/base_api.py:714:
 in _RunMethod
    http_response = upload.InitializeUpload(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = Upload (uninitialized)
http_request = <apitools.base.py.http_wrapper.Request object at 0x7f02e5d22f50>
http = <httplib2.Http object at 0x7f02e5d226b0>
client = 
<apache_beam.io.gcp.internal.clients.storage.storage_v1_client.StorageV1 object 
at 0x7f02e5d22740>

    def InitializeUpload(self, http_request, http=None, client=None):
        """Initialize this upload from the given http_request."""
        if self.strategy is None:
            raise exceptions.UserError(
                'No upload strategy set; did you call ConfigureRequest?')
        if http is None and client is None:
            raise exceptions.UserError('Must provide client or http.')
        if self.strategy != RESUMABLE_UPLOAD:
            return
        http = http or client.http
        if client is not None:
            http_request.url = client.FinalizeTransferUrl(http_request.url)
        self.EnsureUninitialized()
        http_response = http_wrapper.MakeRequest(http, http_request,
                                                 retries=self.num_retries)
        if http_response.status_code != http_client.OK:
>           raise exceptions.HttpError.FromResponse(http_response)
E           apitools.base.py.exceptions.HttpUnauthorizedError: 
HttpError accessing 
<https://www.googleapis.com/resumable/upload/storage/v1/b/temp-storage-for-end-to-end-tests/o?alt=json&name=py-it-cloud%2Finput%2F5aed1df9-36bb-476a-9fca-75758ad3fe70%2Finput.txt&uploadType=resumable>:
 response: <{'x-guploader-uploadid': 
'ADPycdssgOYOtXkuYkZx9e8dQPTry2dL3hu6gdMcwz--IFhyyq_EjSQOyr2xjqm6VtrcsQAJVtNa1-cqlxxjsJb6qwoUqQ',
 'date': 'Thu, 20 Oct 2022 14:41:43 GMT', 'vary': 'Origin, X-Origin', 
'www-authenticate': 'Bearer realm="https://accounts.google.com/";', 
'cache-control': 'no-cache, no-store, max-age=0, must-revalidate', 'expires': 
'Mon, 01 Jan 1990 00:00:00 GMT', 'pragma': 'no-cache', 'content-length': '438', 
'server': 'UploadServer', 'content-type': 'text/html; charset=UTF-8', 'status': 
'401'}>, content <{
E             "error": {
E               "code": 401,
E               "message": "Anonymous caller does not have 
storage.objects.create access to the Google Cloud Storage object.",
E               "errors": [
E                 {
E                   "message": "Anonymous caller does not have 
storage.objects.create access to the Google Cloud Storage object.",
E                   "domain": "global",
E                   "reason": "required",
E                   "locationType": "header",
E                   "location": "Authorization"
E                 }
E               ]
E             }
E           }
E           >

../../build/gradleenv/2050596098/lib/python3.10/site-packages/apitools/base/py/transfer.py:896:
 HttpUnauthorizedError
------------------------------ Captured log call -------------------------------
INFO     root:coders_it_test.py:48 Creating file: 
gs://temp-storage-for-end-to-end-tests/py-it-cloud/input/5aed1df9-36bb-476a-9fca-75758ad3fe70/input.txt
ERROR    apache_beam.io.gcp.gcsio:gcsio.py:767 Error in 
_start_upload while inserting file 
gs://temp-storage-for-end-to-end-tests/py-it-cloud/input/5aed1df9-36bb-476a-9fca-75758ad3fe70/input.txt:
 Traceback (most recent call last):
  File 
"<https://ci-beam.apache.org/job/beam_PostCommit_Python_Examples_Dataflow/ws/src/sdks/python/apache_beam/io/gcp/gcsio.py";,>
 line 763, in _start_upload
    self._client.objects.Insert(self._insert_request, upload=self._upload)
  File 
"<https://ci-beam.apache.org/job/beam_PostCommit_Python_Examples_Dataflow/ws/src/sdks/python/apache_beam/io/gcp/internal/clients/storage/storage_v1_client.py";,>
 line 1152, in Insert
    return self._RunMethod(
  File 
"<https://ci-beam.apache.org/job/beam_PostCommit_Python_Examples_Dataflow/ws/src/build/gradleenv/2050596098/lib/python3.10/site-packages/apitools/base/py/base_api.py";,>
 line 714, in _RunMethod
    http_response = upload.InitializeUpload(
  File 
"<https://ci-beam.apache.org/job/beam_PostCommit_Python_Examples_Dataflow/ws/src/build/gradleenv/2050596098/lib/python3.10/site-packages/apitools/base/py/transfer.py";,>
 line 896, in InitializeUpload
    raise exceptions.HttpError.FromResponse(http_response)
apitools.base.py.exceptions.HttpUnauthorizedError: HttpError accessing 
<https://www.googleapis.com/resumable/upload/storage/v1/b/temp-storage-for-end-to-end-tests/o?alt=json&name=py-it-cloud%2Finput%2F5aed1df9-36bb-476a-9fca-75758ad3fe70%2Finput.txt&uploadType=resumable>:
 response: <{'x-guploader-uploadid': 
'ADPycdssgOYOtXkuYkZx9e8dQPTry2dL3hu6gdMcwz--IFhyyq_EjSQOyr2xjqm6VtrcsQAJVtNa1-cqlxxjsJb6qwoUqQ',
 'date': 'Thu, 20 Oct 2022 14:41:43 GMT', 'vary': 'Origin, X-Origin', 
'www-authenticate': 'Bearer realm="https://accounts.google.com/";', 
'cache-control': 'no-cache, no-store, max-age=0, must-revalidate', 'expires': 
'Mon, 01 Jan 1990 00:00:00 GMT', 'pragma': 'no-cache', 'content-length': '438', 
'server': 'UploadServer', 'content-type': 'text/html; charset=UTF-8', 'status': 
'401'}>, content <{
  "error": {
    "code": 401,
    "message": "Anonymous caller does not have storage.objects.create access to 
the Google Cloud Storage object.",
    "errors": [
      {
        "message": "Anonymous caller does not have storage.objects.create 
access to the Google Cloud Storage object.",
        "domain": "global",
        "reason": "required",
        "locationType": "header",
        "location": "Authorization"
      }
    ]
  }
}
>
=============================== warnings summary 
===============================
../../build/gradleenv/2050596098/lib/python3.10/site-packages/hdfs/config.py:15
  
<https://ci-beam.apache.org/job/beam_PostCommit_Python_Examples_Dataflow/ws/src/build/gradleenv/2050596098/lib/python3.10/site-packages/hdfs/config.py>:15:
 DeprecationWarning: the imp module is deprecated in favour of importlib and 
slated for removal in Python 3.12; see the module's documentation for 
alternative uses
    from imp import load_source

../../build/gradleenv/2050596098/lib/python3.10/site-packages/google/api_core/operations_v1/abstract_operations_client.py:17
  
<https://ci-beam.apache.org/job/beam_PostCommit_Python_Examples_Dataflow/ws/src/build/gradleenv/2050596098/lib/python3.10/site-packages/google/api_core/operations_v1/abstract_operations_client.py>:17:
 DeprecationWarning: The distutils package is deprecated and slated for removal 
in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
    from distutils import util

../../build/gradleenv/2050596098/lib/python3.10/site-packages/tenacity/_asyncio.py:42
  
<https://ci-beam.apache.org/job/beam_PostCommit_Python_Examples_Dataflow/ws/src/build/gradleenv/2050596098/lib/python3.10/site-packages/tenacity/_asyncio.py>:42:
 DeprecationWarning: "@coroutine" decorator is deprecated since Python 3.8, use 
"async def" instead
    def call(self, fn, *args, **kwargs):

apache_beam/typehints/pandas_type_compatibility_test.py:66
  
<https://ci-beam.apache.org/job/beam_PostCommit_Python_Examples_Dataflow/ws/src/sdks/python/apache_beam/typehints/pandas_type_compatibility_test.py>:66:
 FutureWarning: pandas.Int64Index is deprecated and will be removed from pandas 
in a future version. Use pandas.Index with the appropriate dtype instead.
    }).set_index(pd.Int64Index(range(123, 223), name='an_index')),

apache_beam/typehints/pandas_type_compatibility_test.py:89
  
<https://ci-beam.apache.org/job/beam_PostCommit_Python_Examples_Dataflow/ws/src/sdks/python/apache_beam/typehints/pandas_type_compatibility_test.py>:89:
 FutureWarning: pandas.Int64Index is deprecated and will be removed from pandas 
in a future version. Use pandas.Index with the appropriate dtype instead.
    pd.Int64Index(range(123, 223), name='an_index'),

apache_beam/typehints/pandas_type_compatibility_test.py:90
  
<https://ci-beam.apache.org/job/beam_PostCommit_Python_Examples_Dataflow/ws/src/sdks/python/apache_beam/typehints/pandas_type_compatibility_test.py>:90:
 FutureWarning: pandas.Int64Index is deprecated and will be removed from pandas 
in a future version. Use pandas.Index with the appropriate dtype instead.
    pd.Int64Index(range(475, 575), name='another_index'),

apache_beam/examples/complete/autocomplete_it_test.py: 1 warning
apache_beam/examples/complete/game/hourly_team_score_it_test.py: 2 warnings
apache_beam/examples/complete/game/user_score_it_test.py: 6 warnings
apache_beam/examples/cookbook/bigquery_side_input_it_test.py: 4 warnings
apache_beam/examples/cookbook/coders_it_test.py: 1 warning
  
<https://ci-beam.apache.org/job/beam_PostCommit_Python_Examples_Dataflow/ws/src/build/gradleenv/2050596098/lib/python3.10/site-packages/httplib2/__init__.py>:147:
 DeprecationWarning: ssl.PROTOCOL_TLS is deprecated
    context = ssl.SSLContext(DEFAULT_TLS_VERSION)

apache_beam/examples/complete/game/hourly_team_score_it_test.py::HourlyTeamScoreIT::test_hourly_team_score_output_checksum_on_small_input
  
<https://ci-beam.apache.org/job/beam_PostCommit_Python_Examples_Dataflow/ws/src/sdks/python/apache_beam/io/gcp/tests/utils.py>:63:
 PendingDeprecationWarning: Client.dataset is deprecated and will be removed in 
a future version. Use a string like 'my_project.my_dataset' or a 
cloud.google.bigquery.DatasetReference object, instead.
    dataset_ref = client.dataset(unique_dataset_name, project=project)

apache_beam/examples/complete/game/hourly_team_score_it_test.py::HourlyTeamScoreIT::test_hourly_team_score_output_checksum_on_small_input
  
<https://ci-beam.apache.org/job/beam_PostCommit_Python_Examples_Dataflow/ws/src/sdks/python/apache_beam/io/gcp/bigquery.py>:1991:
 BeamDeprecationWarning: options is deprecated since First stable release. 
References to <pipeline>.options will not be supported
    is_streaming_pipeline = p.options.view_as(StandardOptions).streaming

apache_beam/examples/complete/game/hourly_team_score_it_test.py::HourlyTeamScoreIT::test_hourly_team_score_output_checksum_on_small_input
  
<https://ci-beam.apache.org/job/beam_PostCommit_Python_Examples_Dataflow/ws/src/sdks/python/apache_beam/io/gcp/bigquery.py>:1997:
 BeamDeprecationWarning: options is deprecated since First stable release. 
References to <pipeline>.options will not be supported
    experiments = p.options.view_as(DebugOptions).experiments or []

apache_beam/examples/complete/game/hourly_team_score_it_test.py::HourlyTeamScoreIT::test_hourly_team_score_output_checksum_on_small_input
  
<https://ci-beam.apache.org/job/beam_PostCommit_Python_Examples_Dataflow/ws/src/sdks/python/apache_beam/io/gcp/bigquery_file_loads.py>:1133:
 BeamDeprecationWarning: options is deprecated since First stable release. 
References to <pipeline>.options will not be supported
    temp_location = p.options.view_as(GoogleCloudOptions).temp_location

apache_beam/examples/complete/game/hourly_team_score_it_test.py::HourlyTeamScoreIT::test_hourly_team_score_output_checksum_on_small_input
  
<https://ci-beam.apache.org/job/beam_PostCommit_Python_Examples_Dataflow/ws/src/sdks/python/apache_beam/io/gcp/bigquery_file_loads.py>:1135:
 BeamDeprecationWarning: options is deprecated since First stable release. 
References to <pipeline>.options will not be supported
    p.options.view_as(GoogleCloudOptions).job_name or 'AUTOMATIC_JOB_NAME')

apache_beam/examples/cookbook/bigquery_side_input_it_test.py::BigQuerySideInputIT::test_bigquery_side_input_it
apache_beam/examples/cookbook/bigquery_side_input_it_test.py::BigQuerySideInputIT::test_bigquery_side_input_it
  
<https://ci-beam.apache.org/job/beam_PostCommit_Python_Examples_Dataflow/ws/src/sdks/python/apache_beam/io/gcp/bigquery.py>:2484:
 BeamDeprecationWarning: options is deprecated since First stable release. 
References to <pipeline>.options will not be supported
    temp_location = pcoll.pipeline.options.view_as(

apache_beam/examples/cookbook/bigquery_side_input_it_test.py::BigQuerySideInputIT::test_bigquery_side_input_it
apache_beam/examples/cookbook/bigquery_side_input_it_test.py::BigQuerySideInputIT::test_bigquery_side_input_it
  
<https://ci-beam.apache.org/job/beam_PostCommit_Python_Examples_Dataflow/ws/src/sdks/python/apache_beam/io/gcp/bigquery.py>:2486:
 BeamDeprecationWarning: options is deprecated since First stable release. 
References to <pipeline>.options will not be supported
    job_name = pcoll.pipeline.options.view_as(GoogleCloudOptions).job_name

apache_beam/examples/cookbook/bigquery_side_input_it_test.py::BigQuerySideInputIT::test_bigquery_side_input_it
apache_beam/examples/cookbook/bigquery_side_input_it_test.py::BigQuerySideInputIT::test_bigquery_side_input_it
  
<https://ci-beam.apache.org/job/beam_PostCommit_Python_Examples_Dataflow/ws/src/sdks/python/apache_beam/io/gcp/bigquery.py>:2510:
 BeamDeprecationWarning: options is deprecated since First stable release. 
References to <pipeline>.options will not be supported
    pipeline_options=pcoll.pipeline.options,

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html
- generated xml file: 
<https://ci-beam.apache.org/job/beam_PostCommit_Python_Examples_Dataflow/ws/src/sdks/python/pytest_postCommitIT-df-py310-no-xdist.xml>
 -
=========================== short test summary info ============================
FAILED 
apache_beam/examples/complete/autocomplete_it_test.py::AutocompleteIT::test_autocomplete_output_files_on_small_input
FAILED 
apache_beam/examples/complete/estimate_pi_it_test.py::EstimatePiIT::test_estimate_pi_output_file
FAILED 
apache_beam/examples/complete/game/hourly_team_score_it_test.py::HourlyTeamScoreIT::test_hourly_team_score_output_checksum_on_small_input
FAILED 
apache_beam/examples/complete/game/user_score_it_test.py::UserScoreIT::test_userscore_output_checksum_on_small_input
FAILED 
apache_beam/examples/cookbook/bigquery_side_input_it_test.py::BigQuerySideInputIT::test_bigquery_side_input_it
FAILED 
apache_beam/examples/cookbook/coders_it_test.py::CodersIT::test_coders_output_files_on_small_input
ERROR 
apache_beam/examples/complete/game/user_score_it_test.py::UserScoreIT::test_userscore_output_checksum_on_small_input
ERROR 
apache_beam/examples/cookbook/bigquery_side_input_it_test.py::BigQuerySideInputIT::test_bigquery_side_input_it
= 6 failed, 4 skipped, 6650 deselected, 
31 warnings, 2 errors in 4880.96s (1:21:20) 
=

> Task :sdks:python:test-suites:dataflow:py310:examples FAILED

FAILURE: Build failed with an exception.

* Where:
Script 
'<https://ci-beam.apache.org/job/beam_PostCommit_Python_Examples_Dataflow/ws/src/sdks/python/test-suites/dataflow/common.gradle'>
 line: 203

* What went wrong:
Execution failed for task ':sdks:python:test-suites:dataflow:py310:examples'.
> Process 'command 'sh'' finished with non-zero exit value 1

* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.

* Get more help at https://help.gradle.org

Deprecated Gradle features were used in this build, making it incompatible with 
Gradle 8.0.

You can use '--warning-mode all' to show the individual deprecation warnings 
and determine if they come from your own scripts or plugins.

See 
https://docs.gradle.org/7.5.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 1h 46m 19s
15 actionable tasks: 9 executed, 4 from cache, 2 up-to-date

Publishing build scan...
https://gradle.com/s/j55smgmquo7so

Build step 'Invoke Gradle script' changed build result to FAILURE
Build step 'Invoke Gradle script' marked build as failure

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to