You are viewing a plain text version of this content. The canonical link for it is here.
Posted to builds@beam.apache.org by Apache Jenkins Server <je...@builds.apache.org> on 2021/10/24 18:36:52 UTC

Build failed in Jenkins: beam_PostCommit_Py_ValCont #8407

See <https://ci-beam.apache.org/job/beam_PostCommit_Py_ValCont/8407/display/redirect>

Changes:


------------------------------------------
[...truncated 111.78 KB...]
[gw0] [ 75%] PASSED apache_beam/examples/wordcount_it_test.py::WordCountIT::test_wordcount_it_with_prebuilt_sdk_container_local_docker 
apache_beam/runners/dataflow/dataflow_exercise_metrics_pipeline_test.py::ExerciseMetricsPipelineTest::test_metrics_fnapi_it 
> Task :sdks:python:test-suites:dataflow:py37:validatesContainer

[gw0] [100%] PASSED apache_beam/runners/dataflow/dataflow_exercise_metrics_pipeline_test.py::ExerciseMetricsPipelineTest::test_metrics_fnapi_it 

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

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 0x7f3f22820f90>
container_image_name = 'us.gcr.io/apache-beam-testing/jenkins/prebuild_python37_sdk/beam_python_prebuilt_sdk:2accca16-115d-4a66-80a4-40a64108d127'

    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.7_sdk.xml> -
============== 1 failed, 3 passed, 2 warnings in 1269.08 seconds ===============
cleanup_container
Untagged: us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk:20211024-181158382384405
Untagged: us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk@sha256:633bcbbedad2b914103eba237fd407963850dd42fa52679f6ff8bb48f638b7de
docker images --format '{{.Repository}}:{{.Tag}}' | grep $PREBUILD_SDK_CONTAINER_REGISTRY_PATH
Untagged: us.gcr.io/apache-beam-testing/jenkins/prebuild_python37_sdk/beam_python_prebuilt_sdk:7c5442a1-f2be-4370-85bb-29de1100d4d9
Untagged: us.gcr.io/apache-beam-testing/jenkins/prebuild_python37_sdk/beam_python_prebuilt_sdk@sha256:e12279e9acbdef9b8813f5df9680bf57f7c39f40009b170066eaec64cc572d0c
Deleted: sha256:e52f7b41323a9beb3151f320e995fa420c0dbe4a04f35c8691c3d2890feda698
Deleted: sha256:14af72680d7c1da21caa56782eda45b72e7b8789ffd56172a2394c316e8efdc1
Deleted: sha256:66dfcbf3112d7fb7959186f4e2a6d560baea4074492ef8ac439e6f695f28858d
Deleted: sha256:dd9f757e882a8c68b971d59de611dafc5970fd7255f890115e363903547ed43f
Deleted: sha256:cf68ff844d0f66288e015e550e5164e4aedc8dd6dfb24e71a59e03a111a50d65
Deleted: sha256:87055f10614a78ebd6f333f72cb84dc175c2ad92fb5b19006991beae676b6bc2
Digests:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk@sha256:633bcbbedad2b914103eba237fd407963850dd42fa52679f6ff8bb48f638b7de
  Associated tags:
 - 20211024-181158382384405
Tags:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk:20211024-181158382384405
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk:20211024-181158382384405].
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk@sha256:633bcbbedad2b914103eba237fd407963850dd42fa52679f6ff8bb48f638b7de].
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:e12279e9acbdef9b8813f5df9680bf57f7c39f40009b170066eaec64cc572d0c
  Associated tags:
 - 7c5442a1-f2be-4370-85bb-29de1100d4d9
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python37_sdk/beam_python_prebuilt_sdk:7c5442a1-f2be-4370-85bb-29de1100d4d9].
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python37_sdk/beam_python_prebuilt_sdk@sha256:e12279e9acbdef9b8813f5df9680bf57f7c39f40009b170066eaec64cc572d0c].
Removed the container

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

> Task :sdks:python:test-suites:dataflow:py36:validatesContainer
cleanup_container
docker images --format '{{.Repository}}:{{.Tag}}' | grep $PREBUILD_SDK_CONTAINER_REGISTRY_PATH
Digests:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk@sha256:c1ff0088b09c605f48013a558c199010c0c5ee9a7f9d733a9f585d1e398b786d
  Associated tags:
 - 20211024-181158734526802
Tags:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk:20211024-181158734526802
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk:20211024-181158734526802].
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk@sha256:c1ff0088b09c605f48013a558c199010c0c5ee9a7f9d733a9f585d1e398b786d].
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:ff725166d24e5417e7931975546532e16e4650497a5fdd683d015d2a529da9e9
  Associated tags:
 - b39c148a-9b93-4814-8fe3-c48f99199690
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python36_sdk/beam_python_prebuilt_sdk:b39c148a-9b93-4814-8fe3-c48f99199690].
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python36_sdk/beam_python_prebuilt_sdk@sha256:ff725166d24e5417e7931975546532e16e4650497a5fdd683d015d2a529da9e9].

> Task :sdks:python:test-suites:dataflow:py36: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:abf25505f0c5522d39764eaeada9abcefd165b1b7cca1daaf23ad95b16fbd96b
  Associated tags:
 - 20211024-181204947611805
Tags:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk:20211024-181204947611805
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk:20211024-181204947611805].
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk@sha256:abf25505f0c5522d39764eaeada9abcefd165b1b7cca1daaf23ad95b16fbd96b].
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:cac7f0233fdae4d7f599da1073a7017ee845610456eb9c7682e45fbd23fc62f4
  Associated tags:
 - 9ad6fe8a-395c-4bb4-9652-ab2d8babcc45
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python38_sdk/beam_python_prebuilt_sdk:9ad6fe8a-395c-4bb4-9652-ab2d8babcc45].
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python38_sdk/beam_python_prebuilt_sdk@sha256:cac7f0233fdae4d7f599da1073a7017ee845610456eb9c7682e45fbd23fc62f4].

> Task :sdks:python:test-suites:dataflow:py38: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: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.
==============================================================================

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

* 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 36m 23s
44 actionable tasks: 40 executed, 4 up-to-date

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

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

---------------------------------------------------------------------
To unsubscribe, e-mail: builds-unsubscribe@beam.apache.org
For additional commands, e-mail: builds-help@beam.apache.org


Jenkins build is back to normal : beam_PostCommit_Py_ValCont #8412

Posted by Apache Jenkins Server <je...@builds.apache.org>.
See <https://ci-beam.apache.org/job/beam_PostCommit_Py_ValCont/8412/display/redirect?page=changes>


---------------------------------------------------------------------
To unsubscribe, e-mail: builds-unsubscribe@beam.apache.org
For additional commands, e-mail: builds-help@beam.apache.org


Build failed in Jenkins: beam_PostCommit_Py_ValCont #8411

Posted by Apache Jenkins Server <je...@builds.apache.org>.
See <https://ci-beam.apache.org/job/beam_PostCommit_Py_ValCont/8411/display/redirect?page=changes>

Changes:

[noreply] Merge pull request #15772 from [BEAM-13032] [Playground] Implement the


------------------------------------------
[...truncated 105.85 KB...]
cleanup_container
docker images --format '{{.Repository}}:{{.Tag}}' | grep $PREBUILD_SDK_CONTAINER_REGISTRY_PATH
Digests:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk@sha256:439c4a4ac91e4a919c080a3c63ea668bd42562e0a0f4f932c02f3080a943a8e3
  Associated tags:
 - 20211025-181455756763627
Tags:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk:20211025-181455756763627
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk:20211025-181455756763627].
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk@sha256:439c4a4ac91e4a919c080a3c63ea668bd42562e0a0f4f932c02f3080a943a8e3].
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:e2eee69675271496187ff12691a0c2a5fadf8ce5ff7a5e74b5a718e7cbac14bd
  Associated tags:
 - 6556166e-338d-4e7e-b3a6-320143db2500
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python37_sdk/beam_python_prebuilt_sdk:6556166e-338d-4e7e-b3a6-320143db2500].
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python37_sdk/beam_python_prebuilt_sdk@sha256:e2eee69675271496187ff12691a0c2a5fadf8ce5ff7a5e74b5a718e7cbac14bd].

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

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


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

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:64: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
apache_beam/examples/wordcount_it_test.py:107: in _run_wordcount_it
    run_wordcount(
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:546: in run
    return Pipeline.from_runner_api(
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:340: in from_options
    prebuilt_container_image = SdkContainerImageBuilder.build_container_image(
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 0x7fc6e00bef40>
container_image_name = 'us.gcr.io/apache-beam-testing/jenkins/prebuild_python38_sdk/beam_python_prebuilt_sdk:95221076-7ee8-422b-b937-8886fe72b7c9'

    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:286: 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

<https://ci-beam.apache.org/job/beam_PostCommit_Py_ValCont/ws/src/build/gradleenv/-1734967051/lib/python3.8/site-packages/tenacity/_asyncio.py>:42
  <https://ci-beam.apache.org/job/beam_PostCommit_Py_ValCont/ws/src/build/gradleenv/-1734967051/lib/python3.8/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):

-- 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.8_sdk.xml> -
============== 1 failed, 3 passed, 3 warnings in 1458.70 seconds ===============
cleanup_container
Untagged: us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk:20211025-181503042124239
Untagged: us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk@sha256:88e7194e87f79727a8c6ba0d9d24d42d76fa5edfa199311c76cc218a5ee70f3d
docker images --format '{{.Repository}}:{{.Tag}}' | grep $PREBUILD_SDK_CONTAINER_REGISTRY_PATH
Untagged: us.gcr.io/apache-beam-testing/jenkins/prebuild_python38_sdk/beam_python_prebuilt_sdk:31b695b3-75e8-4456-97d7-fe3c65b5fb98
Untagged: us.gcr.io/apache-beam-testing/jenkins/prebuild_python38_sdk/beam_python_prebuilt_sdk@sha256:111540c3833f1a55e0e2050aeab33429c2c16cc56d359a3d941bdfdb739d472c
Deleted: sha256:9b37a32b4e9542c2bb93fa7d724264a467c58898aa74fd1913dbe1ee5452a480
Deleted: sha256:6287c7c6b99d18d93f88101a8eb4632b6aec13983000c12ff4ca1b4e8b94b072
Deleted: sha256:e0db7103fd22cad4c6a15e255391bf891fff2a17bf554741530fc4065f788102
Deleted: sha256:633c50e0cb4440031a4f21cc7563d2b098e0634e9eac1d14f90f4a07354e6a71
Deleted: sha256:6f935fa93905bd9c11ecb34aa4e663f198029cfff7d5dbab3bb378fe7ab78be6
Deleted: sha256:9a4deba8cf234b0624d6ddbbe5f1e60e2fb25d6ec2080dc997d168dd79403830
Digests:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk@sha256:88e7194e87f79727a8c6ba0d9d24d42d76fa5edfa199311c76cc218a5ee70f3d
  Associated tags:
 - 20211025-181503042124239
Tags:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk:20211025-181503042124239
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk:20211025-181503042124239].
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk@sha256:88e7194e87f79727a8c6ba0d9d24d42d76fa5edfa199311c76cc218a5ee70f3d].
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:111540c3833f1a55e0e2050aeab33429c2c16cc56d359a3d941bdfdb739d472c
  Associated tags:
 - 31b695b3-75e8-4456-97d7-fe3c65b5fb98
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python38_sdk/beam_python_prebuilt_sdk:31b695b3-75e8-4456-97d7-fe3c65b5fb98].
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python38_sdk/beam_python_prebuilt_sdk@sha256:111540c3833f1a55e0e2050aeab33429c2c16cc56d359a3d941bdfdb739d472c].
Removed the container

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

> Task :sdks:python:test-suites:dataflow:py36:validatesContainer
cleanup_container
docker images --format '{{.Repository}}:{{.Tag}}' | grep $PREBUILD_SDK_CONTAINER_REGISTRY_PATH
Digests:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk@sha256:d76c037b1856ce6b86cd2324aeabd3b537ba28c22d777b20151ae6a8f725f719
  Associated tags:
 - 20211025-181533390950298
Tags:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk:20211025-181533390950298
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk:20211025-181533390950298].
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk@sha256:d76c037b1856ce6b86cd2324aeabd3b537ba28c22d777b20151ae6a8f725f719].
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:3254d44b5fdaa0b8bba55284e66d53b3cd71236b2c17fd920e7304accb9fe438
  Associated tags:
 - d47fffef-0131-414e-a60d-f925b57865fd
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python36_sdk/beam_python_prebuilt_sdk:d47fffef-0131-414e-a60d-f925b57865fd].
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python36_sdk/beam_python_prebuilt_sdk@sha256:3254d44b5fdaa0b8bba55284e66d53b3cd71236b2c17fd920e7304accb9fe438].

> 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 43m 30s
44 actionable tasks: 40 executed, 4 up-to-date

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

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

---------------------------------------------------------------------
To unsubscribe, e-mail: builds-unsubscribe@beam.apache.org
For additional commands, e-mail: builds-help@beam.apache.org


Build failed in Jenkins: beam_PostCommit_Py_ValCont #8410

Posted by Apache Jenkins Server <je...@builds.apache.org>.
See <https://ci-beam.apache.org/job/beam_PostCommit_Py_ValCont/8410/display/redirect>

Changes:


------------------------------------------
[...truncated 107.61 KB...]
docker images --format '{{.Repository}}:{{.Tag}}' | grep $PREBUILD_SDK_CONTAINER_REGISTRY_PATH
Digests:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk@sha256:0a4ff25b3ab42bd37110be96f15d170153d17794071c44ee1452530ebc5e1757
  Associated tags:
 - 20211025-121148582953047
Tags:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk:20211025-121148582953047
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk:20211025-121148582953047].
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk@sha256:0a4ff25b3ab42bd37110be96f15d170153d17794071c44ee1452530ebc5e1757].
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:e9098f966678e1681017911e7b6830cfc925b77326e678af788e6b0a13607b14
  Associated tags:
 - 6051ab1c-70d6-4064-a0bc-3d2642eff510
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python37_sdk/beam_python_prebuilt_sdk:6051ab1c-70d6-4064-a0bc-3d2642eff510].
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python37_sdk/beam_python_prebuilt_sdk@sha256:e9098f966678e1681017911e7b6830cfc925b77326e678af788e6b0a13607b14].

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

> Task :sdks:python:test-suites:dataflow:py36:validatesContainer
cleanup_container
docker images --format '{{.Repository}}:{{.Tag}}' | grep $PREBUILD_SDK_CONTAINER_REGISTRY_PATH
Digests:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk@sha256:e1acf5ec4a20b6df174afa7cc0cb7f582436a749da117d9c0cbe6bb282704373
  Associated tags:
 - 20211025-121150014588928
Tags:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk:20211025-121150014588928
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk:20211025-121150014588928].
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk@sha256:e1acf5ec4a20b6df174afa7cc0cb7f582436a749da117d9c0cbe6bb282704373].
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:b894a0ce7992064342012520b8b92e2023ed6bb095ac300edbee586143508886
  Associated tags:
 - 5b0524a8-975d-4d75-9709-ca4c4eeee5c9
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python36_sdk/beam_python_prebuilt_sdk:5b0524a8-975d-4d75-9709-ca4c4eeee5c9].
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python36_sdk/beam_python_prebuilt_sdk@sha256:b894a0ce7992064342012520b8b92e2023ed6bb095ac300edbee586143508886].

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

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

[gw0] [100%] PASSED apache_beam/runners/dataflow/dataflow_exercise_metrics_pipeline_test.py::ExerciseMetricsPipelineTest::test_metrics_fnapi_it 

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

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:64: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
apache_beam/examples/wordcount_it_test.py:107: in _run_wordcount_it
    run_wordcount(
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:546: in run
    return Pipeline.from_runner_api(
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:340: in from_options
    prebuilt_container_image = SdkContainerImageBuilder.build_container_image(
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 0x7ff0ad1abfd0>
container_image_name = 'us.gcr.io/apache-beam-testing/jenkins/prebuild_python38_sdk/beam_python_prebuilt_sdk:ee108c95-d22c-4293-bd22-df00299dfed5'

    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:286: 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

<https://ci-beam.apache.org/job/beam_PostCommit_Py_ValCont/ws/src/build/gradleenv/-1734967051/lib/python3.8/site-packages/tenacity/_asyncio.py>:42
  <https://ci-beam.apache.org/job/beam_PostCommit_Py_ValCont/ws/src/build/gradleenv/-1734967051/lib/python3.8/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):

-- 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.8_sdk.xml> -
============== 1 failed, 3 passed, 3 warnings in 1361.81 seconds ===============
cleanup_container
Untagged: us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk:20211025-121156902686972
Untagged: us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk@sha256:c8ec330436c5535d7c7b564978badd0a378dc9e11a3bfa41e387c0feaf63ef42
docker images --format '{{.Repository}}:{{.Tag}}' | grep $PREBUILD_SDK_CONTAINER_REGISTRY_PATH
Untagged: us.gcr.io/apache-beam-testing/jenkins/prebuild_python38_sdk/beam_python_prebuilt_sdk:b3f67dc3-f20a-4e3a-8ca9-5aa95251d662
Untagged: us.gcr.io/apache-beam-testing/jenkins/prebuild_python38_sdk/beam_python_prebuilt_sdk@sha256:4f3ab77bb37d91ee9d353593eb83150fa521c3283fa44434d6c2ca90c4f56599
Deleted: sha256:bc6bdae36f4bed7c78809e04fa852209c07260fb46391df6439300d2a5bc7769
Deleted: sha256:bcf2fdef38283f6890df7b27b0498895f91fcaeb24aa08e3d815651137ef471d
Deleted: sha256:63c1f31b30168ea99eb2969a4d2edef36ea4bb722a4bef8c90368b68b4196c86
Deleted: sha256:d424417a6f7da7e37afde5fe1defa0f57ba66728b57be919e98e3fb9c9c38e21
Deleted: sha256:995014ee76c329ed35d543a5e8603af87bb16fb51bdb37555ffc7c04646674e4
Deleted: sha256:6c0d36c980b5a54ced06dc0b0a25dc2336654f3ff7443a551e8f5b12d734ee94
Digests:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk@sha256:c8ec330436c5535d7c7b564978badd0a378dc9e11a3bfa41e387c0feaf63ef42
  Associated tags:
 - 20211025-121156902686972
Tags:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk:20211025-121156902686972
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk:20211025-121156902686972].
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk@sha256:c8ec330436c5535d7c7b564978badd0a378dc9e11a3bfa41e387c0feaf63ef42].
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:4f3ab77bb37d91ee9d353593eb83150fa521c3283fa44434d6c2ca90c4f56599
  Associated tags:
 - b3f67dc3-f20a-4e3a-8ca9-5aa95251d662
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python38_sdk/beam_python_prebuilt_sdk:b3f67dc3-f20a-4e3a-8ca9-5aa95251d662].
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python38_sdk/beam_python_prebuilt_sdk@sha256:4f3ab77bb37d91ee9d353593eb83150fa521c3283fa44434d6c2ca90c4f56599].
Removed the container

> Task :sdks:python:test-suites:dataflow:py38: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: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.
==============================================================================

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

* 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 36m 27s
44 actionable tasks: 40 executed, 4 up-to-date

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

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

---------------------------------------------------------------------
To unsubscribe, e-mail: builds-unsubscribe@beam.apache.org
For additional commands, e-mail: builds-help@beam.apache.org


Build failed in Jenkins: beam_PostCommit_Py_ValCont #8409

Posted by Apache Jenkins Server <je...@builds.apache.org>.
See <https://ci-beam.apache.org/job/beam_PostCommit_Py_ValCont/8409/display/redirect?page=changes>

Changes:

[noreply] Fixing BigQueryIO request too big corner case for streaming inserts


------------------------------------------
[...truncated 107.57 KB...]
    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 0x7fa3a3f06ac8>
container_image_name = 'us.gcr.io/apache-beam-testing/jenkins/prebuild_python36_sdk/beam_python_prebuilt_sdk:b609f279-e064-43cb-9250-ef397b61136b'

    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 1289.29 seconds ===============
cleanup_container
Untagged: us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk:20211025-061538659902022
Untagged: us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk@sha256:3876b41c0cbd55e7b6839209c2ed4b9646a54fa4bee4945de1edcf2f4eef1598
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:b0e5a8d5-1fc6-4cef-b5ef-ac93aa525a26
Untagged: us.gcr.io/apache-beam-testing/jenkins/prebuild_python36_sdk/beam_python_prebuilt_sdk@sha256:de15acafe5181fa7790113ce63593ce8f76adf688a6bb38982af0e4c09b6cbf2
Deleted: sha256:58a933b867c4bc145172b32a115f559fef771de8fd4a0f511b2a023732d217b4
Deleted: sha256:2ae2c82ddd71fcbec3c53ab3fa4d7113313a14a6f6b46c088aaf41075a8e179b
Deleted: sha256:ac845b2efdbdb3daa0f1f4b4c60552cf8d50cce17ecf99fbcd52e10628fef9aa
Deleted: sha256:e31486d2e4ab63b6edb402393c71e3a3a02f6cf236627fc79a10150b5e6fdb0f
Deleted: sha256:eef27c289ab59fbfa6c01fea1e4a61486f4e34e2681c6efd3ef1db41d0492d10
Deleted: sha256:8de510415ba224ee4e3628842d8064ef42b3d88b8c72dcd98e033ffa9d836cc1
Deleted: sha256:fb0f8f90fa58c30a50466ccc101ae24f7b7105a0415b7afd3c5d022e9cb16f21
Deleted: sha256:f4cbe33a20fd0149616cdf6518e2a4774ba115a051c8cc3da77d6b64d5b2e2ac
Deleted: sha256:93a04db611c1f5829f61633445ba5eed5942879509d2514576091f4c61b38ccb
Deleted: sha256:5ffe31c4f43689f319e6333c0c333dc6145db61ddf9e83a1b4a27d38331510e5
Deleted: sha256:012cce032ec48f10c8e082a196ed976ce1022b4ae5ee075226856c74c1d21f5d
Deleted: sha256:eec6fec9974dce6af41fe7c96290cf9088ec36146b7b4ca2e99b188546e6d319
Deleted: sha256:ef2499c318a1f39f2314c80b16aab1123d95060b56271fefc23ccf7f8ac489a6
Deleted: sha256:c689a6059be9a3a948c4ed1c0e11835dbc910ba66e38f06a289bc8bb3b14b922
Deleted: sha256:c1feb7fb6ddd8139c8e81f22c16abb25a205f963097ea23dd64c501e6008b0e7
Deleted: sha256:e556c76801c604985f19b0d8fe35dd6f45c1208912241f6af1bb7aa2ad92cc8e
Deleted: sha256:cc12d3e966b6daa5944d6b62a5d048afcbe0f6667e6c994c9551e69bd4b92b39
Deleted: sha256:34d4f957c6d1e046481926beff2f9e6fc4feada0b4245e4e0a98031e4ab9a7e9
Deleted: sha256:264c1df281ecb757a35f637a81cdfbfbcb8fa981ecd19c22da38b24181171aa9
Deleted: sha256:62a41178107bb957aa525c75695125b13b51313a5b9bb03e6126dc07037b616c
Deleted: sha256:13fbb4fb296a844e2fed7d88aac5a98b0a544897f873460dfaea499c8eb423c9
Deleted: sha256:32ffd91993c4679c32721590a5159e435e01bab675140ac6b96e286a6eab1889
Deleted: sha256:471cc209d726bc5f4ce9d6d6b5cbdd5c8182cbcc41c49c2eade519ae1839046f
Deleted: sha256:67bfd5936f89a4163a96afc0eb16889fd23943251fba7c56951db1a8004eb20e
Deleted: sha256:ff81648956dd8cb2719ad258356c729726eb0d0924850a0ef819064262c44f4b
Deleted: sha256:52a7446c14d9639982952fb51ead52a6f4f7b15208845d69fe014c62899f26b7
Deleted: sha256:d78812954dbc54d0f3082d91f4aaa3efc59903fdfcd9d8cee546b19dd61798aa
Deleted: sha256:bba01d4564aeb007b39661cfce7cdf35dc21c2adb87cdff57ce777d608993721
Deleted: sha256:19633dbbdffea59a5b39061bc358e0b03f1ed2ae3867bc43d85c8a7f18d42188
Deleted: sha256:a9e2617cc6cd62f79819cb30acf0d945512d18e1a7a706205571b094078ac94a
Deleted: sha256:66e900f6c20f09aa21e24c2dd33d16a5817fda3c185db88a04f6d936619915f6
Deleted: sha256:c83907b7931a0cd71ca583fc3fb071ef808392f72300f5bb2b5688822a424fcc
Deleted: sha256:e5cc5545015eaf3aa35b37381242ecb500d6514b22896946644772aa10f756ee
Deleted: sha256:90550931db8dc570b8af8ba48c111839aafc4fd72966bca85788457fd4e9c0d7
Deleted: sha256:c810ddbd23f9e20a159d23fc1dc2467cc1ba913680ef4e53462770eed4b4b8a6
Deleted: sha256:6adfd84cace6c7e7dd77ba0eeff45e9cd9ec884e440f883a3d2f0966967638d1
Deleted: sha256:c1c570ab24ac3e61c553c58cf4a928b450641075a331928885f190c01759b9cf
Deleted: sha256:9e346c6cbe103d825180f719fd6cf0d42d737775070d4ef48c14ca982e7598d1
Deleted: sha256:0013106ea2956b2d90ce4cefa8e9c447211b4cc90c663426f5ff0a12dd8c0964
Deleted: sha256:5c6173857940106c1ab44794175a52af096e309fb5dac5c41698e05be1a352ac
Deleted: sha256:7d3f42cec70bac9f328b14032fe293769c939148c5f776beffb609aaa4880ca2
Deleted: sha256:b8765545b48b3d3d6dc19de1d17c47977ac3a9ddcf8d40dce830e8b965670688
Deleted: sha256:2039edd92e901e0a91b84435941a54ff51b0ec21586243ee287d0be06d929e87
Deleted: sha256:d84f0fef9a3027f285322b67fc04aee338fb63d502fe9a7936ff3d7721d756dc
Deleted: sha256:bb709dd4c8607895a550918c052dfaaf227060bae8dc9edcf03438680a4a14f1
Deleted: sha256:37060df8fd153bdb8061473a5a1a07fa7144889a16497b2c1bff98c1a7fece7d
Deleted: sha256:1a9e2de5e13509507800438c244680ba8ab99512c86aa064377926b702e08f23
Deleted: sha256:04c73ac1856ad7a11aab5f93ddb448ab2b9c9a3ebcdc9ce4ada2557d5aa8b13d
Deleted: sha256:7bcd503128fbcd517bd0d38437b19495876c7eb381243f745b80a357cc495acc
Deleted: sha256:f5db4263ab95397234be1eec802f346e57b703b67b13fc038bdb88f66eaff3bc
Deleted: sha256:c24700b71dacece76dbeeb09a89db9f76e4b911abe568708dfbc57e0992cbeea
Digests:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk@sha256:3876b41c0cbd55e7b6839209c2ed4b9646a54fa4bee4945de1edcf2f4eef1598
  Associated tags:
 - 20211025-061538659902022
Tags:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk:20211025-061538659902022
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk:20211025-061538659902022].
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk@sha256:3876b41c0cbd55e7b6839209c2ed4b9646a54fa4bee4945de1edcf2f4eef1598].
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:de15acafe5181fa7790113ce63593ce8f76adf688a6bb38982af0e4c09b6cbf2
  Associated tags:
 - b0e5a8d5-1fc6-4cef-b5ef-ac93aa525a26
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python36_sdk/beam_python_prebuilt_sdk:b0e5a8d5-1fc6-4cef-b5ef-ac93aa525a26].
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python36_sdk/beam_python_prebuilt_sdk@sha256:de15acafe5181fa7790113ce63593ce8f76adf688a6bb38982af0e4c09b6cbf2].
Removed the container

> Task :sdks:python:test-suites:dataflow:py36: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:994b6641cac1c2ad112c6ee4a9807fc0a3158f6b0a35ac87f178d20e9b3af616
  Associated tags:
 - 20211025-061552046074833
Tags:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk:20211025-061552046074833
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk:20211025-061552046074833].
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk@sha256:994b6641cac1c2ad112c6ee4a9807fc0a3158f6b0a35ac87f178d20e9b3af616].
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:a9bcb06737376adb88027fca36ee663cf540daee3ef6bbcb4ed54c166ffdb823
  Associated tags:
 - 008fc315-df02-4ae5-9547-6ab7647326f0
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python38_sdk/beam_python_prebuilt_sdk:008fc315-df02-4ae5-9547-6ab7647326f0].
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python38_sdk/beam_python_prebuilt_sdk@sha256:a9bcb06737376adb88027fca36ee663cf540daee3ef6bbcb4ed54c166ffdb823].

> Task :sdks:python:test-suites:dataflow:py38: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: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.
==============================================================================

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

* 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 40m 17s
44 actionable tasks: 40 executed, 4 up-to-date

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

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

---------------------------------------------------------------------
To unsubscribe, e-mail: builds-unsubscribe@beam.apache.org
For additional commands, e-mail: builds-help@beam.apache.org


Build failed in Jenkins: beam_PostCommit_Py_ValCont #8408

Posted by Apache Jenkins Server <je...@builds.apache.org>.
See <https://ci-beam.apache.org/job/beam_PostCommit_Py_ValCont/8408/display/redirect>

Changes:


------------------------------------------
[...truncated 109.30 KB...]
    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 0x7f4f4df9b860>
container_image_name = 'us.gcr.io/apache-beam-testing/jenkins/prebuild_python36_sdk/beam_python_prebuilt_sdk:e15e21be-7a6e-493b-bc1c-4b3c5a81ce87'

    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 1334.18 seconds ===============
cleanup_container
Untagged: us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk:20211025-001435638137091
Untagged: us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk@sha256:d98a01856491734dd754433b805bbee9df0c5adc01ea0841b11525d54a9f6137
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:e3e1e3ea-f68f-4fd7-b2eb-c95f86373bdd
Untagged: us.gcr.io/apache-beam-testing/jenkins/prebuild_python36_sdk/beam_python_prebuilt_sdk@sha256:421c3997f60426643e9bcf9eacf27c3f67518a88ee383d1594c7345484280d8e
Deleted: sha256:2adce77e608e7a3539084ac9d3a4d2593451c4005b95a69702ca3ce4299f827e
Deleted: sha256:927f52d81686396a5508cd6dcda80bc4ac9638bff16c5c91bbac81022dfd27b3
Deleted: sha256:0476e1fed49d2d23bc88678882b500f5dc8750e19a08ac95a8cc947a81057a61
Deleted: sha256:74d834371eeb87e41bb44f402cf67e52171ec0c0b2edc7cce1647d8e9eee4087
Deleted: sha256:d1c2f2fde3c815e616452b0bd0bf9fa044427341a668b66c674140865d940678
Deleted: sha256:2aae5ef82736df20122db4ab353062e1a126bb5ef0751924df8f6f3f38c1e4fb
Deleted: sha256:94b8c011d17db8885079bd8ccc6dde304398954065f4e19a8f7e279691cde245
Deleted: sha256:925fe825d2efbceb7985054efae1f143d16b09f5bb11e3f5d4cf136e0e0798bd
Deleted: sha256:91c01eae51cfc7d99bb41d6689dd0e5aa5bfa21e3cd071fe8f973382869175e0
Deleted: sha256:ba9e64b73e198896398a51b0d8711090627f6dbaa8d2483c21a985ccbc37ec46
Deleted: sha256:3e9f90ce6a6f1608c4f0e8afb0e1c7a0a73b9f653926080a2984df8f2bb0869f
Deleted: sha256:641de73974dab55eb174bedb70acf7527f548e9746b85ae5dcaf0cd695da3d6e
Deleted: sha256:32ff0536045f0d9b2c8125632632537e4f243cc4ddc6464431c5e45aa11d837e
Deleted: sha256:5713402ccea9f6fcef05021b9ac0d17a977ca6c4073c441ff29c857f30278791
Deleted: sha256:a84cade2e54cd5feb59b93b34ea9a83ca55cc40d7655d02a413a2799c8215b79
Deleted: sha256:73fcb2ea93dc76dcfcada42433938fd797995607e4b14d25009c74635156c49a
Deleted: sha256:f66e41e19f89cda7594bf969e6c369030688e71616eee5039e097786fcfe8d07
Deleted: sha256:f1ddd7209ef2852816b7f5e86a3e734b06382fa995fdb591ece35752f71f1e2e
Deleted: sha256:c5081b04579acafaff65f1945c8965a4c4f03af2fd4ee9049b3fbbbad03ebc8f
Deleted: sha256:38154c46d5320850bf3be8376dfddadcd2cd03152309fc0c1f4b795c17c05725
Deleted: sha256:d0df386ee60453eb2b75ad73a0e9998cc05184a6c49fb9debb1ebb25240917f8
Deleted: sha256:4ec8250888cd306f073ff86e4c118ab08d123fea2c901a7dc86176a466dc57ea
Deleted: sha256:2507bff5cd5813c9266967f4fcd8f6e593fdb1356f34969ee39c579b377eff3f
Deleted: sha256:2914e5f517b3b73947846c9415a4e39649d01e4f47ae030c8f42aea3906dd7a7
Deleted: sha256:d3fce9a9e7e85dd852ec42e0e5e212921da8e49c9276ddbca0df2be5d942ccd3
Deleted: sha256:0b877a14f6d37e9d13a0a4a6e40dd9c6bbc14fb36476bc9fd1dffc7e08aa8d31
Deleted: sha256:254742466ff364b731dcf3271672830075944a83c2513136347d46c2bb72da43
Deleted: sha256:f8dc1e80b2d467bc45152e925b6335d0ed45a31bbbba85c406bb49d6024d687a
Deleted: sha256:79710723acbe304459ac00264f8d772562c13c3a6b9f3226d7095f83a2f5cfaa
Deleted: sha256:11de1f767f62eca79b7b1d4bc0ead7e12fb60767a657dbf627d3966d5b84acc7
Deleted: sha256:5deea6284accedc9b6ac74a4048c2443c7399bb38786e7716e2bd9a1f5d0dac2
Deleted: sha256:53d60757e1983ce6739115735ccec5cf20bb8d6149e0e47c79048345d6053ca9
Deleted: sha256:03fefc7203807ab7212316c629add623737e7d2fe55fe4b1bf7f123b46af2935
Deleted: sha256:8084495e2ea83680cef59a045d3a0408d8e9cb2b374a16aeebd8314089232ace
Deleted: sha256:8e15534237b80d91d9f88637dddbc5a4ed526af502cc7f6bec6b65f2b10aec45
Deleted: sha256:cc43cc8e99c164c2137cbd6453e7eee041deb93a834ae9bc6e9a72067462b637
Deleted: sha256:fc6b82d69cf82205a7c0414ad2ccd3004c01ff316bcf60120069e315aecdc485
Deleted: sha256:5fa0b7a85c2a67b6a20516331459db36c2cbf29fa669f0ef7522bad45f8cb743
Deleted: sha256:7364810012d05758f93b1a0fc5da48cf900dca4a0ffcb0266d26cc4b8b86a9f3
Deleted: sha256:a08c1787f36857d30bbf422a0684f416c505e2f1f6e002277f6baf2a966cff42
Deleted: sha256:ee401d83ddaf4541be43aaa9320e0e1b8683afb4ac12c4ba8bdeddfcfc0ec3e3
Deleted: sha256:f70e7f9c5489544fef90ddd02113baefa8950b233a22c348f3f6474db138130a
Deleted: sha256:c65f989bc0f86546e158a39c775bb5b25840925f5c0d9f5af785f1d5577e9c20
Deleted: sha256:b1442eaba94a0cbe34ea65a8e9a679a0458631b0a0262f5c91aa34ff9b80fa3a
Deleted: sha256:a34cada4b79c0a81d1870e01a8c8e5f8d7d76be9787bc080ac1b53c5ed5e55ee
Deleted: sha256:68f03157f72d068b901cc58e795b33074fa29ac05b0910920b9714d2aec0f665
Deleted: sha256:0d6b921b74e973ef076e853416dae031dee95e951e7475f6cd66839a5e71146c
Deleted: sha256:5e6163200959f9059472d7d329452a263805cc1fee68cefd08f29c4fae14d8aa
Deleted: sha256:11ce500b65d316935aea0fd02747dec2abebbc080d124ee32242fe4c78e3e2af
Deleted: sha256:a8141ceabbaa183de4370e1dc0a2049dce49448c256cadd101523269d49d3559
Deleted: sha256:8c957a65822a764befbb42c5d06675eb3ed9f184a321829684f6c9a485093aa7
Digests:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk@sha256:d98a01856491734dd754433b805bbee9df0c5adc01ea0841b11525d54a9f6137
  Associated tags:
 - 20211025-001435638137091
Tags:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk:20211025-001435638137091
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk:20211025-001435638137091].
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk@sha256:d98a01856491734dd754433b805bbee9df0c5adc01ea0841b11525d54a9f6137].
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:421c3997f60426643e9bcf9eacf27c3f67518a88ee383d1594c7345484280d8e
  Associated tags:
 - e3e1e3ea-f68f-4fd7-b2eb-c95f86373bdd
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python36_sdk/beam_python_prebuilt_sdk:e3e1e3ea-f68f-4fd7-b2eb-c95f86373bdd].
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python36_sdk/beam_python_prebuilt_sdk@sha256:421c3997f60426643e9bcf9eacf27c3f67518a88ee383d1594c7345484280d8e].
Removed the container

> Task :sdks:python:test-suites:dataflow:py36: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:021ed179c16acc81ad5cdb7e8f9e305270b9928434ac7fe4a08af62dcbbf6454
  Associated tags:
 - 20211025-001435631922794
Tags:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk:20211025-001435631922794
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk:20211025-001435631922794].
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk@sha256:021ed179c16acc81ad5cdb7e8f9e305270b9928434ac7fe4a08af62dcbbf6454].
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:685440d5a4f14b08d3ae401d5f2f61aa89af29b659c9e3c7abba8af5f92f3028
  Associated tags:
 - 8adeac96-3f8c-4470-91a4-734dccfe5f39
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python38_sdk/beam_python_prebuilt_sdk:8adeac96-3f8c-4470-91a4-734dccfe5f39].
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python38_sdk/beam_python_prebuilt_sdk@sha256:685440d5a4f14b08d3ae401d5f2f61aa89af29b659c9e3c7abba8af5f92f3028].

> Task :sdks:python:test-suites:dataflow:py38: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: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.
==============================================================================

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

* 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 38m 51s
44 actionable tasks: 40 executed, 4 up-to-date

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

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

---------------------------------------------------------------------
To unsubscribe, e-mail: builds-unsubscribe@beam.apache.org
For additional commands, e-mail: builds-help@beam.apache.org