See 
<https://ci-beam.apache.org/job/beam_PostCommit_Py_ValCont/8389/display/redirect?page=changes>

Changes:

[noreply] [BEAM-13079] Updates cross-language transform URNs to use the new


------------------------------------------
[...truncated 120.54 KB...]
Deleted: sha256:72b69ee4d2dce170759354ff1ab539e7afabff25fb2220b19e09027738dcb911
Deleted: sha256:de7e33c7cbca55c58e2c6fcfb9c7c3a784a36fb7de607484921db4f4f53b1378
Deleted: sha256:0348ff315f3d39a326d136e5accaab02c8a79556fb156aaf295c37cef0b7f880
Deleted: sha256:03547f0db0cd428a46e7abb40e167de94d99fbb84a53570a056f9675131597ed
Deleted: sha256:f62e813aa00ac723c7010c5668ebadb68af342b678322690e2fe0c47e5c748a9
Digests:
- 
us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk@sha256:1a26dd8bcc727a2d502bfcf6f42c8ebdaaf94f2d4e1fe707f31d45b1e26f5ba0
  Associated tags:
 - 20211020-061458278500965
Tags:
- 
us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk:20211020-061458278500965
Deleted 
[us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk:20211020-061458278500965].
Deleted 
[us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk@sha256:1a26dd8bcc727a2d502bfcf6f42c8ebdaaf94f2d4e1fe707f31d45b1e26f5ba0].
gcloud container images list-tags 
$PREBUILD_SDK_CONTAINER_REGISTRY_PATH/beam_python_prebuilt_sdk  
--format="get(digest)"
Digests:
- 
us.gcr.io/apache-beam-testing/jenkins/prebuild_python37_sdk/beam_python_prebuilt_sdk@sha256:4b62ccfba0a20c4f612f52c9707b329ba02f6c6722bb800977a85e50749c9cbc
  Associated tags:
 - 834fff6e-0821-4908-8812-1d646d71d427
Deleted 
[us.gcr.io/apache-beam-testing/jenkins/prebuild_python37_sdk/beam_python_prebuilt_sdk:834fff6e-0821-4908-8812-1d646d71d427].
Deleted 
[us.gcr.io/apache-beam-testing/jenkins/prebuild_python37_sdk/beam_python_prebuilt_sdk@sha256:4b62ccfba0a20c4f612f52c9707b329ba02f6c6722bb800977a85e50749c9cbc].
Removed the container

> Task :sdks:python:test-suites:dataflow:py37:validatesContainer FAILED

> Task :sdks:python:test-suites:dataflow:py38:validatesContainer
cleanup_container
docker images --format '{{.Repository}}:{{.Tag}}' | grep 
$PREBUILD_SDK_CONTAINER_REGISTRY_PATH
Digests:
- 
us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk@sha256:f8c2b206c1cd05848525873579a2985412d274cc4d4c8c18cf5e8cc51c3f12e5
  Associated tags:
 - 20211020-061503938505684
Tags:
- 
us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk:20211020-061503938505684
Deleted 
[us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk:20211020-061503938505684].
Deleted 
[us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk@sha256:f8c2b206c1cd05848525873579a2985412d274cc4d4c8c18cf5e8cc51c3f12e5].
gcloud container images list-tags 
$PREBUILD_SDK_CONTAINER_REGISTRY_PATH/beam_python_prebuilt_sdk  
--format="get(digest)"
Digests:
- 
us.gcr.io/apache-beam-testing/jenkins/prebuild_python38_sdk/beam_python_prebuilt_sdk@sha256:b82702881c1255822e82099804696a6ff6f79d9e80b905a8a450c575ceaa2737
  Associated tags:
 - 9f1d2c5d-59f4-4765-b6d2-4e98de476678
Deleted 
[us.gcr.io/apache-beam-testing/jenkins/prebuild_python38_sdk/beam_python_prebuilt_sdk:9f1d2c5d-59f4-4765-b6d2-4e98de476678].
Deleted 
[us.gcr.io/apache-beam-testing/jenkins/prebuild_python38_sdk/beam_python_prebuilt_sdk@sha256:b82702881c1255822e82099804696a6ff6f79d9e80b905a8a450c575ceaa2737].

> Task :sdks:python:test-suites:dataflow:py38:validatesContainer FAILED

> Task :sdks:python:test-suites:dataflow:py36:validatesContainer


=================================== FAILURES ===================================
____ WordCountIT.test_wordcount_it_with_prebuilt_sdk_container_cloud_build _____
[gw0] linux -- Python 3.6.8 
<https://ci-beam.apache.org/job/beam_PostCommit_Py_ValCont/ws/src/build/gradleenv/-1734967053/bin/python3.6>

self = <apache_beam.examples.wordcount_it_test.WordCountIT 
testMethod=test_wordcount_it_with_prebuilt_sdk_container_cloud_build>

    @pytest.mark.it_validatescontainer
    def test_wordcount_it_with_prebuilt_sdk_container_cloud_build(self):
      self._run_wordcount_it(
          wordcount.run,
          experiment='beam_fn_api',
>         prebuild_sdk_container_engine='cloud_build')

apache_beam/examples/wordcount_it_test.py:67: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
apache_beam/examples/wordcount_it_test.py:109: in _run_wordcount_it
    save_main_session=False,
apache_beam/examples/wordcount.py:89: in run
    output | 'Write' >> WriteToText(known_args.output)
apache_beam/pipeline.py:596: in __exit__
    self.result = self.run()
apache_beam/pipeline.py:549: in run
    self._options).run(False)
apache_beam/pipeline.py:573: in run
    return self.runner.run_pipeline(self, self._options)
apache_beam/runners/dataflow/test_dataflow_runner.py:53: in run_pipeline
    self.result = super().run_pipeline(pipeline, options)
apache_beam/runners/dataflow/dataflow_runner.py:459: in run_pipeline
    environments.DockerEnvironment.from_options(options))
apache_beam/transforms/environments.py:341: in from_options
    options)
apache_beam/runners/portability/sdk_container_builder.py:139: in 
build_container_image
    return builder._build()
apache_beam/runners/portability/sdk_container_builder.py:90: in _build
    self._invoke_docker_build_and_push(container_image_name)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = 
<apache_beam.runners.portability.sdk_container_builder._SdkContainerImageCloudBuilder
 object at 0x7f5f8a045438>
container_image_name = 
'us.gcr.io/apache-beam-testing/jenkins/prebuild_python36_sdk/beam_python_prebuilt_sdk:9f9c1ed6-af45-480d-90d1-78d76755a199'

    def _invoke_docker_build_and_push(self, container_image_name):
      project_id = self._google_cloud_options.project
      temp_location = self._google_cloud_options.temp_location
      # google cloud build service expects all the build source file to be
      # compressed into a tarball.
      tarball_path = os.path.join(self._temp_src_dir, '%s.tgz' % SOURCE_FOLDER)
      self._make_tarfile(tarball_path, self._temp_src_dir)
      _LOGGER.info(
          "Compressed source files for building sdk container at %s" %
          tarball_path)
    
      container_image_tag = container_image_name.split(':')[-1]
      gcs_location = os.path.join(
          temp_location, '%s-%s.tgz' % (SOURCE_FOLDER, container_image_tag))
      self._upload_to_gcs(tarball_path, gcs_location)
    
      build = cloudbuild.Build()
      build.steps = []
      step = cloudbuild.BuildStep()
      step.name = 'gcr.io/kaniko-project/executor:latest'
      step.args = ['--destination=' + container_image_name, '--cache=true']
      step.dir = SOURCE_FOLDER
    
      build.steps.append(step)
    
      source = cloudbuild.Source()
      source.storageSource = cloudbuild.StorageSource()
      gcs_bucket, gcs_object = self._get_gcs_bucket_and_name(gcs_location)
      source.storageSource.bucket = os.path.join(gcs_bucket)
      source.storageSource.object = gcs_object
      build.source = source
      # TODO(zyichi): make timeout configurable
      build.timeout = '7200s'
    
      now = time.time()
      # operation = client.create_build(project_id=project_id, build=build)
      request = cloudbuild.CloudbuildProjectsBuildsCreateRequest(
          projectId=project_id, build=build)
      build = self._cloudbuild_client.projects_builds.Create(request)
      build_id, log_url = self._get_cloud_build_id_and_log_url(build.metadata)
      _LOGGER.info(
          'Building sdk container with Google Cloud Build, this may '
          'take a few minutes, you may check build log at %s' % log_url)
    
      # block until build finish, if build fails exception will be raised and
      # stops the job submission.
      response = self._cloudbuild_client.projects_builds.Get(
          cloudbuild.CloudbuildProjectsBuildsGetRequest(
              id=build_id, projectId=project_id))
      while response.status in [cloudbuild.Build.StatusValueValuesEnum.QUEUED,
                                cloudbuild.Build.StatusValueValuesEnum.WORKING]:
        time.sleep(10)
        response = self._cloudbuild_client.projects_builds.Get(
            cloudbuild.CloudbuildProjectsBuildsGetRequest(
                id=build_id, projectId=project_id))
    
      if response.status != cloudbuild.Build.StatusValueValuesEnum.SUCCESS:
        raise RuntimeError(
>           'Failed to build python sdk container image on google cloud build, '
            'please check build log for error.')
E       RuntimeError: Failed to build python sdk container image on google 
cloud build, please check build log for error.

apache_beam/runners/portability/sdk_container_builder.py:287: RuntimeError
=============================== warnings summary ===============================
apache_beam/io/filesystems_test.py:54
  
<https://ci-beam.apache.org/job/beam_PostCommit_Py_ValCont/ws/src/sdks/python/apache_beam/io/filesystems_test.py>:54:
 DeprecationWarning: invalid escape sequence \c
    self.assertIsNone(FileSystems.get_scheme('c:\\abc\cdf'))  # pylint: 
disable=anomalous-backslash-in-string

apache_beam/io/filesystems_test.py:62
  
<https://ci-beam.apache.org/job/beam_PostCommit_Py_ValCont/ws/src/sdks/python/apache_beam/io/filesystems_test.py>:62:
 DeprecationWarning: invalid escape sequence \d
    self.assertTrue(isinstance(FileSystems.get_filesystem('c:\\abc\def'),  # 
pylint: disable=anomalous-backslash-in-string

-- Docs: https://docs.pytest.org/en/latest/warnings.html
- generated xml file: 
<https://ci-beam.apache.org/job/beam_PostCommit_Py_ValCont/ws/src/sdks/python/pytest-beam_python3.6_sdk.xml>
 -
============== 1 failed, 3 passed, 2 warnings in 1356.30 seconds ===============
cleanup_container
Untagged: 
us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk:20211020-061500975165914
Untagged: 
us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk@sha256:7bdaacb7c1ebb52f6d236b2542cfa787199cc5a4dc8e97acfea8c4d379537ce7
docker images --format '{{.Repository}}:{{.Tag}}' | grep 
$PREBUILD_SDK_CONTAINER_REGISTRY_PATH
Untagged: 
us.gcr.io/apache-beam-testing/jenkins/prebuild_python36_sdk/beam_python_prebuilt_sdk:1fbd704a-7071-4081-83ec-ea7195f89af2
Untagged: 
us.gcr.io/apache-beam-testing/jenkins/prebuild_python36_sdk/beam_python_prebuilt_sdk@sha256:e4a1b00a4d16d31eb5be36940e0dab614eda257de5967a480f171f990c3ec08d
Deleted: sha256:6ac9410ebc7a2ba8d9dad537f9e38ed9cf5074db2b879a6007c5a894642f29dc
Deleted: sha256:5b35d88373bfd999f633b840d0edb2840df51bbc6e781b97a57641fe601593d3
Deleted: sha256:b7c56ae12ba47b982350cf636d86265e4c457d3c1cde7030ef7c6f16db03dae0
Deleted: sha256:e1eb5b949587bd5e9ea1a82ba406d8fd63dc7a62a1422ed30c1bf7e5edd1d3bd
Deleted: sha256:235303219e6612aa4501bdd3d010cbe1f907ccfdea079ea05587b39e1ddaac07
Deleted: sha256:d083dc51f7898e18def219ab37d6f93013bbb06dbf10af44ed678e455815c185
Digests:
- 
us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk@sha256:7bdaacb7c1ebb52f6d236b2542cfa787199cc5a4dc8e97acfea8c4d379537ce7
  Associated tags:
 - 20211020-061500975165914
Tags:
- 
us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk:20211020-061500975165914
Deleted 
[us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk:20211020-061500975165914].
Deleted 
[us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk@sha256:7bdaacb7c1ebb52f6d236b2542cfa787199cc5a4dc8e97acfea8c4d379537ce7].
gcloud container images list-tags 
$PREBUILD_SDK_CONTAINER_REGISTRY_PATH/beam_python_prebuilt_sdk  
--format="get(digest)"
Digests:
- 
us.gcr.io/apache-beam-testing/jenkins/prebuild_python36_sdk/beam_python_prebuilt_sdk@sha256:e4a1b00a4d16d31eb5be36940e0dab614eda257de5967a480f171f990c3ec08d
  Associated tags:
 - 1fbd704a-7071-4081-83ec-ea7195f89af2
Deleted 
[us.gcr.io/apache-beam-testing/jenkins/prebuild_python36_sdk/beam_python_prebuilt_sdk:1fbd704a-7071-4081-83ec-ea7195f89af2].
Deleted 
[us.gcr.io/apache-beam-testing/jenkins/prebuild_python36_sdk/beam_python_prebuilt_sdk@sha256:e4a1b00a4d16d31eb5be36940e0dab614eda257de5967a480f171f990c3ec08d].
Removed the container

> Task :sdks:python:test-suites:dataflow:py36:validatesContainer FAILED

FAILURE: Build completed with 3 failures.

1: Task failed with an exception.
-----------
* Where:
Script 
'<https://ci-beam.apache.org/job/beam_PostCommit_Py_ValCont/ws/src/sdks/python/test-suites/dataflow/common.gradle'>
 line: 276

* What went wrong:
Execution failed for task 
':sdks:python:test-suites:dataflow:py37:validatesContainer'.
> 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. Run with --scan to get full insights.
==============================================================================

2: Task failed with an exception.
-----------
* Where:
Script 
'<https://ci-beam.apache.org/job/beam_PostCommit_Py_ValCont/ws/src/sdks/python/test-suites/dataflow/common.gradle'>
 line: 276

* What went wrong:
Execution failed for task 
':sdks:python:test-suites:dataflow:py38:validatesContainer'.
> 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. Run with --scan to get full insights.
==============================================================================

3: Task failed with an exception.
-----------
* Where:
Script 
'<https://ci-beam.apache.org/job/beam_PostCommit_Py_ValCont/ws/src/sdks/python/test-suites/dataflow/common.gradle'>
 line: 276

* What went wrong:
Execution failed for task 
':sdks:python:test-suites:dataflow:py36:validatesContainer'.
> 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. Run with --scan to get full insights.
==============================================================================

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

Deprecated Gradle features were used in this build, making it incompatible with 
Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See 
https://docs.gradle.org/6.9.1/userguide/command_line_interface.html#sec:command_line_warnings

BUILD FAILED in 39m 21s
44 actionable tasks: 40 executed, 4 up-to-date

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

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