See
<https://ci-beam.apache.org/job/beam_PostCommit_Python_Examples_Dataflow/1012/display/redirect?page=changes>
Changes:
[noreply] Fix python log_level_overrides cannot be used on flink and other
[noreply] Better error for disabling runner v2 with cross language pipelines.
[noreply] Update scopes to match the existing set and update test to clear
------------------------------------------
[...truncated 174.22 KB...]
client_secret = 'x_Tw5K8nnjoRAqULM9PFAC2b'
user_agent = 'x_Tw5K8nnjoRAqULM9PFAC2b'
credentials_filename = '/home/jenkins/.apitools.token', api_key = None
client =
<apache_beam.runners.dataflow.internal.clients.dataflow.dataflow_v1b3_client.DataflowV1b3
object at 0x7f3df280e250>
oauth2client_args = None, kwds = {}
client_info = {'client_id': '1042881264118.apps.googleusercontent.com',
'client_secret': 'x_Tw5K8nnjoRAqULM9PFAC2b', 'scope':
'https...is.com/auth/compute.readonly
https://www.googleapis.com/auth/userinfo.email', 'user_agent':
'x_Tw5K8nnjoRAqULM9PFAC2b'}
method = <function _GetApplicationDefaultCredentials at 0x7f3dc66e8040>
credentials = None
def GetCredentials(package_name, scopes, client_id, client_secret,
user_agent,
credentials_filename=None,
api_key=None, # pylint: disable=unused-argument
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')
[1m[31mE apitools.base.py.exceptions.CredentialsError: Could not create
valid credentials[0m
[1m[31m../../build/gradleenv/-1734967050/lib/python3.9/site-packages/apitools/base/py/credentials_lib.py[0m:157:
CredentialsError
------------------------------ Captured log call -------------------------------
[32mINFO [0m 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/-1734967050/bin/python3.9',>
'-m', 'pip', 'download', '--dest', '/tmp/dataflow-requirements-cache', '-r',
'/tmp/tmp1s08o42l/tmp_requirements.txt', '--exists-action', 'i', '--no-deps',
'--implementation', 'cp', '--abi', 'cp39', '--platform', 'manylinux2014_x86_64']
[32mINFO [0m 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.
[32mINFO [0m
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
[32mINFO [0m root:environments.py:376 Default Python SDK image for
environment is apache/beam_python3.9_sdk:2.43.0.dev
[32mINFO [0m root:environments.py:295 Using provided Python SDK container
image: gcr.io/cloud-dataflow/v1beta3/python39-fnapi:beam-master-20220914
[32mINFO [0m root:environments.py:302 Python SDK container image set to
"gcr.io/cloud-dataflow/v1beta3/python39-fnapi:beam-master-20220914" for Docker
environment
[32mINFO [0m
apache_beam.runners.portability.fn_api_runner.translations:translations.py:714
==================== <function pack_combiners at 0x7f3da345e550>
====================
[32mINFO [0m
apache_beam.runners.portability.fn_api_runner.translations:translations.py:714
==================== <function sort_stages at 0x7f3da345ed30>
====================
[33mWARNING [0m
oauth2client.contrib.multiprocess_file_storage:multiprocess_file_storage.py:141
Credentials file could not be loaded, will ignore and overwrite.
[33mWARNING [0m
oauth2client.contrib.multiprocess_file_storage:multiprocess_file_storage.py:141
Credentials file could not be loaded, will ignore and overwrite.
[31m[1m_______________ CodersIT.test_coders_output_files_on_small_input
_______________[0m
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)))
[1m[31mapache_beam/examples/cookbook/coders_it_test.py[0m:90:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
[1m[31mapache_beam/examples/cookbook/coders_it_test.py[0m:51: in
create_content_input_file
f.write(str.encode(contents, 'utf-8'))
[1m[31mapache_beam/io/filesystemio.py[0m:215: in close
self._uploader.finish()
[1m[31mapache_beam/io/gcp/gcsio.py[0m:790: in finish
raise self._upload_thread.last_error # pylint: disable=raising-bad-type
[1m[31mapache_beam/io/gcp/gcsio.py[0m:763: in _start_upload
self._client.objects.Insert(self._insert_request, upload=self._upload)
[1m[31mapache_beam/io/gcp/internal/clients/storage/storage_v1_client.py[0m:1152:
in Insert
return self._RunMethod(
[1m[31m../../build/gradleenv/-1734967050/lib/python3.9/site-packages/apitools/base/py/base_api.py[0m:714:
in _RunMethod
http_response = upload.InitializeUpload(
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
self = Upload (uninitialized)
http_request = <apitools.base.py.http_wrapper.Request object at 0x7f3df28d7ee0>
http = <httplib2.Http object at 0x7f3df2eeed90>
client =
<apache_beam.io.gcp.internal.clients.storage.storage_v1_client.StorageV1 object
at 0x7f3df2eeed00>
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)
[1m[31mE 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%2F12c5e1a1-6fd7-40a3-b429-11f6ef6912b7%2Finput.txt&uploadType=resumable>:
response: <{'x-guploader-uploadid':
'ADPycdt63FdVsNADID97JknjSQ3-hTj5iBp0OMMBrWINXBP5b9I8mJaaIGFEMuX2a4OLbCDRvPpF1Xy4nDozZfWle5Fpd3GZYAgk',
'date': 'Tue, 18 Oct 2022 08:45:14 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 <{[0m
[1m[31mE "error": {[0m
[1m[31mE "code": 401,[0m
[1m[31mE "message": "Anonymous caller does not have
storage.objects.create access to the Google Cloud Storage object.",[0m
[1m[31mE "errors": [[0m
[1m[31mE {[0m
[1m[31mE "message": "Anonymous caller does not have
storage.objects.create access to the Google Cloud Storage object.",[0m
[1m[31mE "domain": "global",[0m
[1m[31mE "reason": "required",[0m
[1m[31mE "locationType": "header",[0m
[1m[31mE "location": "Authorization"[0m
[1m[31mE }[0m
[1m[31mE ][0m
[1m[31mE }[0m
[1m[31mE }[0m
[1m[31mE >[0m
[1m[31m../../build/gradleenv/-1734967050/lib/python3.9/site-packages/apitools/base/py/transfer.py[0m:896:
HttpUnauthorizedError
------------------------------ Captured log call -------------------------------
[32mINFO [0m root:coders_it_test.py:48 Creating file:
gs://temp-storage-for-end-to-end-tests/py-it-cloud/input/12c5e1a1-6fd7-40a3-b429-11f6ef6912b7/input.txt
[31m[1mERROR [0m 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/12c5e1a1-6fd7-40a3-b429-11f6ef6912b7/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/-1734967050/lib/python3.9/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/-1734967050/lib/python3.9/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%2F12c5e1a1-6fd7-40a3-b429-11f6ef6912b7%2Finput.txt&uploadType=resumable>:
response: <{'x-guploader-uploadid':
'ADPycdt63FdVsNADID97JknjSQ3-hTj5iBp0OMMBrWINXBP5b9I8mJaaIGFEMuX2a4OLbCDRvPpF1Xy4nDozZfWle5Fpd3GZYAgk',
'date': 'Tue, 18 Oct 2022 08:45:14 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"
}
]
}
}
>
[33m=============================== warnings summary
===============================[0m
../../build/gradleenv/-1734967050/lib/python3.9/site-packages/hdfs/config.py:15
<https://ci-beam.apache.org/job/beam_PostCommit_Python_Examples_Dataflow/ws/src/build/gradleenv/-1734967050/lib/python3.9/site-packages/hdfs/config.py>:15:
DeprecationWarning: the imp module is deprecated in favour of importlib; see
the module's documentation for alternative uses
from imp import load_source
../../build/gradleenv/-1734967050/lib/python3.9/site-packages/tenacity/_asyncio.py:42
<https://ci-beam.apache.org/job/beam_PostCommit_Python_Examples_Dataflow/ws/src/build/gradleenv/-1734967050/lib/python3.9/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/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-py39-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
[31m= [31m[1m6 failed[0m, [33m3 skipped[0m, [33m6649 deselected[0m,
[33m16 warnings[0m, [31m[1m2 errors[0m[31m in 4877.65s (1:21:17)[0m[31m
=[0m
> Task :sdks:python:test-suites:dataflow:py39: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:py39: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 49m 52s
15 actionable tasks: 9 executed, 4 from cache, 2 up-to-date
Publishing build scan...
https://gradle.com/s/73rgwnljeuuom
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]