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/20 18:45:07 UTC

Build failed in Jenkins: beam_PostCommit_Py_ValCont #8391

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

Changes:


------------------------------------------
[...truncated 1.21 MB...]
____ 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 0x7feccc80c7f0>
container_image_name = 'us.gcr.io/apache-beam-testing/jenkins/prebuild_python38_sdk/beam_python_prebuilt_sdk:cfcf0dc7-70ee-456e-99d7-89d99fbe586e'

    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 1482.71 seconds ===============
cleanup_container
Untagged: us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk:20211020-181814693573283
Untagged: us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk@sha256:f7926fe2195835ff093bb2736798a11fb26b317e58300700faf2170a387eabf3
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:94231c73-c175-44c4-b9fc-006963444229
Untagged: us.gcr.io/apache-beam-testing/jenkins/prebuild_python38_sdk/beam_python_prebuilt_sdk@sha256:c6c67425fd03171293b58c7114e974e87d30ae1479f1552b46231fbd5cf4ccc2
Deleted: sha256:46efbaa68510978e96f8130667e66fc70edd791c2e67a99236da2b95f6588b76
Deleted: sha256:906946fb082fa6abe1775fc62a87a776f355f8a46cbe470271c17b16ad087d81
Deleted: sha256:4479562132f962fce0d04b3005aa3d1a159255bf1ddee4a6cf05144232d4d0bd
Deleted: sha256:dc1dab85c0c7d8ed78efdd1ab6324839437a578b321a033dea3ae625bb7d7c6b
Deleted: sha256:f5590ddeb33ec6a0493450253824aca21938957418cbaeaad72c264737269d27
Deleted: sha256:979784929eb05e8195f2bf1306dd5da0be99fd5e581fd11668bf546d079915b1
Deleted: sha256:9c98e388d4aecc4fac847b84de068a3c417771224f0dcf09dbea6e713875b784
Deleted: sha256:76b76aa89587da3db1825ddb7dda07c77b013ac435e11f3be7a8fa811f524640
Deleted: sha256:55b00b2a59d3f633175dd1b0eaa3ec3d2cbb94a89a6fd971925452dfde465e69
Deleted: sha256:6f77b2adacf4bda493eaa9c0669134c1ebd04cb1b5bb99ced5b87f4f456924ea
Deleted: sha256:d22f6d888f5236286cf44c2064739398f0e308f6bcf06b016c829b2ebcc9efd8
Deleted: sha256:1570eb6dbe61ecd49b46d95df8ff2e4da0df4728a1097c89a3d8bccb9c465b61
Deleted: sha256:1a16d97bd79b22c0e37836962f63dd536b2bd396a978e2743265006a37bbae0c
Deleted: sha256:f45fd86cc95ffdbdb54a3cecf4107a38066c9a3ebd52e39e8975935e04d2834e
Deleted: sha256:c08ac7c929d3fd33c148e1891bc4026dc876354204d668c83409fc1856dd6123
Deleted: sha256:7fd1e47dfdf894975fd5f63caa7bb3a0ce5c012eaa008e26856bedb33401b8d9
Deleted: sha256:724d628821dcf1d80b17692f4c149c1442a7781c08885c8ce6364a917e2024af
Deleted: sha256:ff5074c25e085360ad490bfc0f6c2958e47010e1810559529d0a1de8699ba6e8
Deleted: sha256:a6fa4c592c761f0a1096f77ebbcd325e21cae77d26fe2b95c82429660f990c78
Deleted: sha256:a78b6f39b7e0b0997c1f8b3a106dfad50f12f8718d55f93ed423ad33d3384532
Deleted: sha256:5cdccecb46d639c40335813166a205797d5fb1a5143275a6d0453e86797da771
Deleted: sha256:819c73c3c57f006befd837e6d0dc8612e77823d47484d954a33a536f72400ecf
Deleted: sha256:96de9834c14786a0a0767591af6398bb16a3f488ba715f1fbfb2d020a82a5dbe
Deleted: sha256:4d749d505ae7fdd70f46095d11bfa6ec1c1a6d2bfdfcbe23b4d8fb77a2723084
Deleted: sha256:d81abc85aad1df11da1a882b106f45a77a12c586318a0d891394e79c589031d6
Deleted: sha256:4d26e23ef3c20cef8b917d440be840567e647889cd7ab4d575b1cff23099a4e4
Deleted: sha256:7c57cf601d59b8f938d70bc6b69f1794cd5cfd885bf42e6013dc785dc996e80c
Deleted: sha256:abdcff0cf9a1561bb8e98296da05ce8c980ba1c514a8f029955a3f40414f374c
Deleted: sha256:2429515eac348c7fcb1608e3485d85bef7ce653bddfd56568fd03aef0b86b23d
Deleted: sha256:1f45625bbda6e8d305ac429d4816ed4bd07f70e7b30eaa22d28c8a5a3b207a02
Deleted: sha256:46134c2e970e47acb16530ecfcb03cca5389066bb4f6aaf6e2636d0de589b7c8
Deleted: sha256:f9a9c136104e0b7c495144febb8de7a4fa40c3d69aa0d3a581ebb89abfde43e0
Deleted: sha256:d7c609ddcf4e2a06634e8255960b7b16adf1d3f236ecbc85134a35309ea96220
Deleted: sha256:0bd4b6dfcf2c4f0dd4187fbd82a874e79e78f5d4286cc7c8f12efe262d9b6ee8
Deleted: sha256:1bf03474e94619eaad9c42ffe16794d74e8c6beb0bde1d85342f859e02e14b23
Deleted: sha256:7c543f242764c1a96cb89460423ca0fc34765cace2c03fcef1a76f4840596cfc
Deleted: sha256:91c2d232fbe273c24b439153e03c0803087ca8fd7e300dc94e47d8b0f07d5ebd
Deleted: sha256:6af82cd6f60ce21cee2db47ab6f30654b60d4e42832e7aecd8a5e231204c0ed6
Deleted: sha256:b88d4c1987fc88f2cb1d8ae6a9b00151ee0494546b621b9c294c261b1b72b029
Deleted: sha256:7fb191685c66817b8afea2e44087783962432cc0f4fa38cd18aa73fa0ce09a6d
Deleted: sha256:7810e9b73f72be51ae9be8aec835c5deec478ecd29afe9ec8ea2cf5c52803a53
Deleted: sha256:ee4de2c02f9900217ebf51951d1a69a855957b36e9f5673460d155adc16bb061
Deleted: sha256:a952e29821151de73c0004e58ddd0c92d2d1ecdc31c0df02a9d31c041749d5de
Deleted: sha256:780361069d9a589a2950139469a16893d0417765a83a4e6e034f33f97f6b7fde
Deleted: sha256:4c1ab0a78121c75954576aea4b71bdc2ef8ece9ca3b9251d48e7678c454def7c
Deleted: sha256:2fb327259a38fbc4aa42e05ab6c45d4fb3ea979922bfd4294ee8adf17d7a8ab1
Deleted: sha256:3367da2674eefe4e234027c668ac2f2689368bcc4a8d13f9c23075010c5623f6
Deleted: sha256:0ad354793d4da7cd4be8aabca700ec253dea44dd41017317d996d36e57f974ce
Deleted: sha256:2f3bd91945767d3a44db6ad71b9ab9dab156813f6800f81ba31b1e8756532188
Deleted: sha256:b54ada0b50a8c697763678ec83e052d10078346fa5130b3337461f9e7dbe1a18
Deleted: sha256:0cdd5c3482b367eb8b43bf28fac9225c7b207906657a62a57c24c8a630b0ffa6
Digests:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk@sha256:f7926fe2195835ff093bb2736798a11fb26b317e58300700faf2170a387eabf3
  Associated tags:
 - 20211020-181814693573283
Tags:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk:20211020-181814693573283
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk:20211020-181814693573283].
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk@sha256:f7926fe2195835ff093bb2736798a11fb26b317e58300700faf2170a387eabf3].
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:c6c67425fd03171293b58c7114e974e87d30ae1479f1552b46231fbd5cf4ccc2
  Associated tags:
 - 94231c73-c175-44c4-b9fc-006963444229
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python38_sdk/beam_python_prebuilt_sdk:94231c73-c175-44c4-b9fc-006963444229].
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python38_sdk/beam_python_prebuilt_sdk@sha256:c6c67425fd03171293b58c7114e974e87d30ae1479f1552b46231fbd5cf4ccc2].
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: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.
==============================================================================

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

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

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

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


Build failed in Jenkins: beam_PostCommit_Py_ValCont #8407

Posted by Apache Jenkins Server <je...@builds.apache.org>.
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


Build failed in Jenkins: beam_PostCommit_Py_ValCont #8406

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

Changes:


------------------------------------------
[...truncated 111.41 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:py36: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.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 0x7f4b74da7630>
container_image_name = 'us.gcr.io/apache-beam-testing/jenkins/prebuild_python36_sdk/beam_python_prebuilt_sdk:a648edf9-7e88-4146-a38c-4ce4bf2f670d'

    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 1294.62 seconds ===============
cleanup_container
Untagged: us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk:20211024-121329927813503
Untagged: us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk@sha256:0ddce550cc0f53736dc5c0e5453f13ee392bd621264e0575c1605fcc3ffaea1f
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:d39a75df-b2be-4571-8dc9-f23e7b0ba2f2
Untagged: us.gcr.io/apache-beam-testing/jenkins/prebuild_python36_sdk/beam_python_prebuilt_sdk@sha256:f933236107524fd02295cf053ae0454cb90f54be2f9c89b07956c0bb63c1f36f
Deleted: sha256:7b8a7f02c757d45746797e490ffc2c17e3219a57f6c048caec794111831e274b
Deleted: sha256:1b4ecc2db14b2f68712b89d006a91c415481865b8e94c0a5c0e2c078b11c5126
Deleted: sha256:ee13c5ac0e1a7384cfeaee17dbaca40feda6b08f9d2d4cb19b220148471ceb90
Deleted: sha256:478c936e858563e01564f8000660dc16f3185f2db36a3ed93e6f8f192a284724
Deleted: sha256:a524bd0954f64a63c89ffd049422522287dab5f5fde95ca2e3303262f2b1bfb6
Deleted: sha256:15bfd761a66ed14cb856522785bafb71082f3d4eedc5c106ded36ad9514ac9bc
Digests:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk@sha256:0ddce550cc0f53736dc5c0e5453f13ee392bd621264e0575c1605fcc3ffaea1f
  Associated tags:
 - 20211024-121329927813503
Tags:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk:20211024-121329927813503
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk:20211024-121329927813503].
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk@sha256:0ddce550cc0f53736dc5c0e5453f13ee392bd621264e0575c1605fcc3ffaea1f].
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:f933236107524fd02295cf053ae0454cb90f54be2f9c89b07956c0bb63c1f36f
  Associated tags:
 - d39a75df-b2be-4571-8dc9-f23e7b0ba2f2
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python36_sdk/beam_python_prebuilt_sdk:d39a75df-b2be-4571-8dc9-f23e7b0ba2f2].
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python36_sdk/beam_python_prebuilt_sdk@sha256:f933236107524fd02295cf053ae0454cb90f54be2f9c89b07956c0bb63c1f36f].
Removed the container

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

> Task :sdks:python:test-suites:dataflow:py37:validatesContainer
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:e78cc945434041776c4fecf70d7f88fdf2a44cf5e2da92b8090d0c1b05fb8699
  Associated tags:
 - 20211024-121326536532467
Tags:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk:20211024-121326536532467
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk:20211024-121326536532467].
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk@sha256:e78cc945434041776c4fecf70d7f88fdf2a44cf5e2da92b8090d0c1b05fb8699].
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:131a0a1f96c182a6ad63d5e7f8ba752ce63289cd2e0319765b2050cb586c3564
  Associated tags:
 - 444ab96b-8e9c-475d-ab35-e41d1c02e753
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python37_sdk/beam_python_prebuilt_sdk:444ab96b-8e9c-475d-ab35-e41d1c02e753].
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python37_sdk/beam_python_prebuilt_sdk@sha256:131a0a1f96c182a6ad63d5e7f8ba752ce63289cd2e0319765b2050cb586c3564].

> 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:f0ebe44b33e47333e46341137b016e63e8a19c5202c00201ca2746455c08ef9c
  Associated tags:
 - 20211024-121340593916249
Tags:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk:20211024-121340593916249
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk:20211024-121340593916249].
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk@sha256:f0ebe44b33e47333e46341137b016e63e8a19c5202c00201ca2746455c08ef9c].
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:0ae23da5c5f51b6ab5989bf27e44c5a1bd09c008facb2a6c241b506aeffb0383
  Associated tags:
 - 5bae94c5-227e-4a7d-a75b-ab63858e422f
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python38_sdk/beam_python_prebuilt_sdk:5bae94c5-227e-4a7d-a75b-ab63858e422f].
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python38_sdk/beam_python_prebuilt_sdk@sha256:0ae23da5c5f51b6ab5989bf27e44c5a1bd09c008facb2a6c241b506aeffb0383].

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

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

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

Publishing build scan...
https://gradle.com/s/3oaxwq6wcyx26

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 #8405

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

Changes:


------------------------------------------
[...truncated 1.21 MB...]
============== 1 failed, 3 passed, 2 warnings in 1305.50 seconds ===============
cleanup_container
Untagged: us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk:20211024-061540606534573
Untagged: us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk@sha256:9f6a78c4bd6dd47d5fe598e76ea3508a476d3aecab0f80a040af513bb635a0d2
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:f622c89c-1ab8-484e-97ab-af0d1ff63bbb
Untagged: us.gcr.io/apache-beam-testing/jenkins/prebuild_python37_sdk/beam_python_prebuilt_sdk@sha256:e9e175846dc43df411e3e451b7a43cd6e4801708f8dc0ffe0bda53835cee8bb3
Deleted: sha256:30e9f1720f6536ab0a85aa6b8eb8c1ca9a774974b736d4cf4ba85675eadef544
Deleted: sha256:7403c8ac3956b23cffb8ffcbbfccc8ab971c88cf317464a1f200a389b12e7a1c
Deleted: sha256:2dcaef904039544accff39b7c60844c1035cb5ec8109889b087728124ae154dd
Deleted: sha256:4d65718d5530280cfaeba601bbb3363c7df3ad777ab3c2f78bb0d4a951f47a70
Deleted: sha256:a9d5ddea2729bcf06d10caf8fcb27a2ffedaa9609220036c16ce438aeae28627
Deleted: sha256:a4909b8b501857e468a5d2a7992973f4d5c6d5541649ef3268b98b5b0359343e
Digests:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk@sha256:9f6a78c4bd6dd47d5fe598e76ea3508a476d3aecab0f80a040af513bb635a0d2
  Associated tags:
 - 20211024-061540606534573
Tags:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk:20211024-061540606534573
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk:20211024-061540606534573].
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk@sha256:9f6a78c4bd6dd47d5fe598e76ea3508a476d3aecab0f80a040af513bb635a0d2].
gcloud container images list-tags $PREBUILD_SDK_CONTAINER_REGISTRY_PATH/beam_python_prebuilt_sdk  --format="get(digest)"

> Task :sdks:python:test-suites:dataflow:py36: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.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 0x7fd0f859c630>
container_image_name = 'us.gcr.io/apache-beam-testing/jenkins/prebuild_python36_sdk/beam_python_prebuilt_sdk:497f6e5a-e42d-42dc-9973-b07ee240d6e5'

    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 1300.41 seconds ===============

> Task :sdks:python:test-suites:dataflow:py37:validatesContainer FAILED
Digests:
- us.gcr.io/apache-beam-testing/jenkins/prebuild_python37_sdk/beam_python_prebuilt_sdk@sha256:e9e175846dc43df411e3e451b7a43cd6e4801708f8dc0ffe0bda53835cee8bb3
  Associated tags:
 - f622c89c-1ab8-484e-97ab-af0d1ff63bbb
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python37_sdk/beam_python_prebuilt_sdk:f622c89c-1ab8-484e-97ab-af0d1ff63bbb].
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python37_sdk/beam_python_prebuilt_sdk@sha256:e9e175846dc43df411e3e451b7a43cd6e4801708f8dc0ffe0bda53835cee8bb3].
Removed the container

> 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:1b464a1fd0376403c027278b10486af035c51afa8da3487e4b757279a4a55e79
  Associated tags:
 - 20211024-061544785748365
Tags:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk:20211024-061544785748365
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk:20211024-061544785748365].
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk@sha256:1b464a1fd0376403c027278b10486af035c51afa8da3487e4b757279a4a55e79].
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:0e1fc81f64b26003f7d489dfa4a406345836567cafe1d35dab9047b33d69a586
  Associated tags:
 - 4cafe43e-5aca-40b1-ac69-f553017a1aaf
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python36_sdk/beam_python_prebuilt_sdk:4cafe43e-5aca-40b1-ac69-f553017a1aaf].
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python36_sdk/beam_python_prebuilt_sdk@sha256:0e1fc81f64b26003f7d489dfa4a406345836567cafe1d35dab9047b33d69a586].

> 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:0d67c37f3e2f65c5e67447b7006e32a88c8476a790fe772208b7c16ed1ed7fb7
  Associated tags:
 - 20211024-061547419764580
Tags:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk:20211024-061547419764580
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk:20211024-061547419764580].
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk@sha256:0d67c37f3e2f65c5e67447b7006e32a88c8476a790fe772208b7c16ed1ed7fb7].
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:9e485d863423da115a54969a5ba0e74c27781ff13d6b820b61bd5977f504a76b
  Associated tags:
 - a1dfe98a-6c24-42e7-ba47-e58206e1d513
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python38_sdk/beam_python_prebuilt_sdk:a1dfe98a-6c24-42e7-ba47-e58206e1d513].
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python38_sdk/beam_python_prebuilt_sdk@sha256:9e485d863423da115a54969a5ba0e74c27781ff13d6b820b61bd5977f504a76b].

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

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

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 #8404

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

Changes:


------------------------------------------
[...truncated 99.01 KB...]
  done
  gcloud --quiet container images delete $CONTAINER:$TAG || echo "Failed to delete container"
  for digest in $(gcloud container images list-tags $PREBUILD_SDK_CONTAINER_REGISTRY_PATH/beam_python_prebuilt_sdk  --format="get(digest)")
    do gcloud container images delete $PREBUILD_SDK_CONTAINER_REGISTRY_PATH/beam_python_prebuilt_sdk@$digest --force-delete-tags --quiet || echo "Failed to remove prebuilt sdk container image"
  done

  echo "Removed the container"
}
trap cleanup_container EXIT

echo ">>> Successfully built and push container $CONTAINER"

cd sdks/python
SDK_LOCATION=$2

# Run ValidatesRunner tests on Google Cloud Dataflow service
echo ">>> RUNNING DATAFLOW RUNNER VALIDATESCONTAINER TEST"
pytest -o junit_suite_name=$IMAGE_NAME \
  -m="it_validatescontainer" \
  --show-capture=no \
  --numprocesses=1 \
  --timeout=900 \
  --junitxml=$XUNIT_FILE \
  --ignore-glob '.*py3\d?\.py$' \
  --log-cli-level=INFO \
  --test-pipeline-options=" \
    --runner=TestDataflowRunner \
    --project=$PROJECT \
    --region=$REGION \
    --sdk_container_image=$CONTAINER:$TAG \
    --staging_location=$GCS_LOCATION/staging-validatesrunner-test \
    --temp_location=$GCS_LOCATION/temp-validatesrunner-test \
    --output=$GCS_LOCATION/output \
    --sdk_location=$SDK_LOCATION \
    --num_workers=1 \
    --prebuild_sdk_container_base_image=$CONTAINER:$TAG \
    --docker_registry_push_url=$PREBUILD_SDK_CONTAINER_REGISTRY_PATH"

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

function cleanup_container {
  # Delete the container locally and remotely
  docker rmi $CONTAINER:$TAG || echo "Failed to remove container image"
  for image in $(docker images --format '{{.Repository}}:{{.Tag}}' | grep $PREBUILD_SDK_CONTAINER_REGISTRY_PATH)
    do docker rmi $image || echo "Failed to remove prebuilt sdk container image"
  done
  gcloud --quiet container images delete $CONTAINER:$TAG || echo "Failed to delete container"
  for digest in $(gcloud container images list-tags $PREBUILD_SDK_CONTAINER_REGISTRY_PATH/beam_python_prebuilt_sdk  --format="get(digest)")
    do gcloud container images delete $PREBUILD_SDK_CONTAINER_REGISTRY_PATH/beam_python_prebuilt_sdk@$digest --force-delete-tags --quiet || echo "Failed to remove prebuilt sdk container image"
  done

  echo "Removed the container"
}
trap cleanup_container EXIT

echo ">>> Successfully built and push container $CONTAINER"

cd sdks/python
SDK_LOCATION=$2

# Run ValidatesRunner tests on Google Cloud Dataflow service
echo ">>> RUNNING DATAFLOW RUNNER VALIDATESCONTAINER TEST"
pytest -o junit_suite_name=$IMAGE_NAME \
  -m="it_validatescontainer" \
  --show-capture=no \
  --numprocesses=1 \
  --timeout=900 \
  --junitxml=$XUNIT_FILE \
  --ignore-glob '.*py3\d?\.py$' \
  --log-cli-level=INFO \
  --test-pipeline-options=" \
    --runner=TestDataflowRunner \
    --project=$PROJECT \
    --region=$REGION \
    --sdk_container_image=$CONTAINER:$TAG \
    --staging_location=$GCS_LOCATION/staging-validatesrunner-test \
    --temp_location=$GCS_LOCATION/temp-validatesrunner-test \
    --output=$GCS_LOCATION/output \
    --sdk_location=$SDK_LOCATION \
    --num_workers=1 \
    --prebuild_sdk_container_base_image=$CONTAINER:$TAG \
    --docker_registry_push_url=$PREBUILD_SDK_CONTAINER_REGISTRY_PATH"

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

function cleanup_container {
  # Delete the container locally and remotely
  docker rmi $CONTAINER:$TAG || echo "Failed to remove container image"
  for image in $(docker images --format '{{.Repository}}:{{.Tag}}' | grep $PREBUILD_SDK_CONTAINER_REGISTRY_PATH)
    do docker rmi $image || echo "Failed to remove prebuilt sdk container image"
  done
  gcloud --quiet container images delete $CONTAINER:$TAG || echo "Failed to delete container"
  for digest in $(gcloud container images list-tags $PREBUILD_SDK_CONTAINER_REGISTRY_PATH/beam_python_prebuilt_sdk  --format="get(digest)")
    do gcloud container images delete $PREBUILD_SDK_CONTAINER_REGISTRY_PATH/beam_python_prebuilt_sdk@$digest --force-delete-tags --quiet || echo "Failed to remove prebuilt sdk container image"
  done

  echo "Removed the container"
}
trap cleanup_container EXIT

echo ">>> Successfully built and push container $CONTAINER"

cd sdks/python
SDK_LOCATION=$2

# Run ValidatesRunner tests on Google Cloud Dataflow service
echo ">>> RUNNING DATAFLOW RUNNER VALIDATESCONTAINER TEST"
pytest -o junit_suite_name=$IMAGE_NAME \
  -m="it_validatescontainer" \
  --show-capture=no \
  --numprocesses=1 \
  --timeout=900 \
  --junitxml=$XUNIT_FILE \
  --ignore-glob '.*py3\d?\.py$' \
  --log-cli-level=INFO \
  --test-pipeline-options=" \
    --runner=TestDataflowRunner \
    --project=$PROJECT \
    --region=$REGION \
    --sdk_container_image=$CONTAINER:$TAG \
    --staging_location=$GCS_LOCATION/staging-validatesrunner-test \
    --temp_location=$GCS_LOCATION/temp-validatesrunner-test \
    --output=$GCS_LOCATION/output \
    --sdk_location=$SDK_LOCATION \
    --num_workers=1 \
    --prebuild_sdk_container_base_image=$CONTAINER:$TAG \
    --docker_registry_push_url=$PREBUILD_SDK_CONTAINER_REGISTRY_PATH"

> Task :sdks:python:test-suites:dataflow:py37:validatesContainer
cleanup_container
docker images --format '{{.Repository}}:{{.Tag}}' | grep $PREBUILD_SDK_CONTAINER_REGISTRY_PATH

> Task :sdks:python:test-suites:dataflow:py36:validatesContainer
cleanup_container
docker images --format '{{.Repository}}:{{.Tag}}' | grep $PREBUILD_SDK_CONTAINER_REGISTRY_PATH

> Task :sdks:python:test-suites:dataflow:py37:validatesContainer FAILED
Digests:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk@sha256:d2b8d144cb57aedcd310e533715e2557197f4f96d9301fa56cf5e1d5bdd44fff
  Associated tags:
 - 20211024-001228323305467
Tags:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk:20211024-001228323305467
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk:20211024-001228323305467].
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk@sha256:d2b8d144cb57aedcd310e533715e2557197f4f96d9301fa56cf5e1d5bdd44fff].
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:18e1ae4f0d2756172c19666bde447891b57a99f22c28db8c8d0cf11c1e445ab6
  Associated tags:
 - bee292e1-c088-49b3-a485-5c3eb5e2046e
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python37_sdk/beam_python_prebuilt_sdk:bee292e1-c088-49b3-a485-5c3eb5e2046e].
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python37_sdk/beam_python_prebuilt_sdk@sha256:18e1ae4f0d2756172c19666bde447891b57a99f22c28db8c8d0cf11c1e445ab6].

> Task :sdks:python:test-suites:dataflow:py36:validatesContainer
Digests:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk@sha256:510b4118f81b7007b44383beb57bac7a35be3fbc18bca85359d65b60b356b634
  Associated tags:
 - 20211024-001229431153109
Tags:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk:20211024-001229431153109
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk:20211024-001229431153109].
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk@sha256:510b4118f81b7007b44383beb57bac7a35be3fbc18bca85359d65b60b356b634].
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:7250f79ada5f546a6bcc5e6c12bb099d93df55e2336519de8f1ef5be76693dd0
  Associated tags:
 - eda693ac-2ec0-4dd2-a861-721e00361e87
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python36_sdk/beam_python_prebuilt_sdk:eda693ac-2ec0-4dd2-a861-721e00361e87].
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python36_sdk/beam_python_prebuilt_sdk@sha256:7250f79ada5f546a6bcc5e6c12bb099d93df55e2336519de8f1ef5be76693dd0].
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:b0d02e89fcb7ed184f3840d877dd040fdf791bf37ad1628f63d41928fef3f28a
  Associated tags:
 - 20211024-001236752381657
Tags:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk:20211024-001236752381657
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk:20211024-001236752381657].
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk@sha256:b0d02e89fcb7ed184f3840d877dd040fdf791bf37ad1628f63d41928fef3f28a].
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:d7e80204d74d0d10ba1b7b87fa2a8be6dc1fe2b64f5729b34d34204b5c968992
  Associated tags:
 - 568b1913-0f49-4cab-ac41-da104ea27b8c
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python38_sdk/beam_python_prebuilt_sdk:568b1913-0f49-4cab-ac41-da104ea27b8c].
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python38_sdk/beam_python_prebuilt_sdk@sha256:d7e80204d74d0d10ba1b7b87fa2a8be6dc1fe2b64f5729b34d34204b5c968992].

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

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

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 #8403

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

Changes:


------------------------------------------
[...truncated 107.93 KB...]
    --docker_registry_push_url=$PREBUILD_SDK_CONTAINER_REGISTRY_PATH"

> 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:1bc59223f74364b8e9308729e3f5551a46e93769b17bca0a949cbdc37960b298
  Associated tags:
 - 20211023-181413284428088
Tags:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk:20211023-181413284428088
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk:20211023-181413284428088].
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk@sha256:1bc59223f74364b8e9308729e3f5551a46e93769b17bca0a949cbdc37960b298].
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:f0ac6045d13686686ce9751eb68dc39dbf16916b0b65cf66f3fdb6858e1d2a7f
  Associated tags:
 - 24b6a95e-5ade-472e-9bb9-4348567f9bfe
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python36_sdk/beam_python_prebuilt_sdk:24b6a95e-5ade-472e-9bb9-4348567f9bfe].
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python36_sdk/beam_python_prebuilt_sdk@sha256:f0ac6045d13686686ce9751eb68dc39dbf16916b0b65cf66f3fdb6858e1d2a7f].

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

> 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 0x7fd2457bad50>
container_image_name = 'us.gcr.io/apache-beam-testing/jenkins/prebuild_python37_sdk/beam_python_prebuilt_sdk:a559c464-e1a8-4ad9-90e6-f27a3c66fc29'

    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 1312.84 seconds ===============
cleanup_container
Untagged: us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk:20211023-181412199880646
Untagged: us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk@sha256:c1bbe540d6f0074c035e2d7c7576d831e3f6d26ae2d2cb2b5b922dee5bd4e89c
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:7123f2a1-945f-4746-8738-08bfca101946
Untagged: us.gcr.io/apache-beam-testing/jenkins/prebuild_python37_sdk/beam_python_prebuilt_sdk@sha256:a50d917fbc23dd14efaef0f8e823c9d020af3668cc9d342190d09e87781e8b89
Deleted: sha256:589ac328102c996314374db930ebbce7953935e791f5cba6d1874ff817a2560e
Deleted: sha256:94b7c31d3a8d5bdd1c5c0e07247d1f0dfb023c898c25228134d4bed0adbca715
Deleted: sha256:3efab5d3cb2e545d4b1ce6ff56871f345bb0ace07899bd180fd1f6d64ad458ef
Deleted: sha256:df4190932c9705a634cbd02a361078af9f9d0fadb9717624d214623efaf273b5
Deleted: sha256:4a113afd9e32d9281ae5e9ab1328ab441236d5fefe0376d9a8ebd690ae0ce918
Deleted: sha256:32393bd5f09a0631abad34da05961d2660c843b01fc8757265c4a005fc46a41c
Digests:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk@sha256:c1bbe540d6f0074c035e2d7c7576d831e3f6d26ae2d2cb2b5b922dee5bd4e89c
  Associated tags:
 - 20211023-181412199880646
Tags:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk:20211023-181412199880646
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk:20211023-181412199880646].
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk@sha256:c1bbe540d6f0074c035e2d7c7576d831e3f6d26ae2d2cb2b5b922dee5bd4e89c].
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:a50d917fbc23dd14efaef0f8e823c9d020af3668cc9d342190d09e87781e8b89
  Associated tags:
 - 7123f2a1-945f-4746-8738-08bfca101946
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python37_sdk/beam_python_prebuilt_sdk:7123f2a1-945f-4746-8738-08bfca101946].
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python37_sdk/beam_python_prebuilt_sdk@sha256:a50d917fbc23dd14efaef0f8e823c9d020af3668cc9d342190d09e87781e8b89].
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:a7fc4a3b082b32a9644722a67c8e9438adb3e73c04f389dbdae0dbe17caeb05c
  Associated tags:
 - 20211023-181418732338010
Tags:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk:20211023-181418732338010
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk:20211023-181418732338010].
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk@sha256:a7fc4a3b082b32a9644722a67c8e9438adb3e73c04f389dbdae0dbe17caeb05c].
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:6e437670cc6cbe6b40fb8c9aaedccd9d0229e6120fad4c69756725d583066c72
  Associated tags:
 - 38de1552-009b-4197-ba4c-0893fe457a34
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python38_sdk/beam_python_prebuilt_sdk:38de1552-009b-4197-ba4c-0893fe457a34].
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python38_sdk/beam_python_prebuilt_sdk@sha256:6e437670cc6cbe6b40fb8c9aaedccd9d0229e6120fad4c69756725d583066c72].

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

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

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

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

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 #8402

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

Changes:


------------------------------------------
[...truncated 122.94 KB...]
Untagged: us.gcr.io/apache-beam-testing/jenkins/prebuild_python36_sdk/beam_python_prebuilt_sdk:a9024ea8-d8eb-4215-be4b-4d8b0c1b9de4
Untagged: us.gcr.io/apache-beam-testing/jenkins/prebuild_python36_sdk/beam_python_prebuilt_sdk@sha256:0e04e7c3b97d95feaae7f456f685eee86c42c12a741a0a9cc01f42ca2f339dbd
Deleted: sha256:1abfa50778eaebc095add4b65d2c8137609ba4671671917adbb61d9088a4b70d
Deleted: sha256:da2a60a462a7997ceb392827fb02eb95daf7689f333cbf7b765d4a5df0ce1f92
Deleted: sha256:a63cc32ead541f1c6c905a07f01916ccb05f152737db797587eedb99a680dff9
Deleted: sha256:258530eb0c3ce91971de0fd96dd4d5724b26aedd284309f19c8a50ed594dc78a
Deleted: sha256:761d4acac5c9eee64d758219c86218013cb615cbb12b570ace95fa6807ed626c
Deleted: sha256:72905f306919c55e04f0e31ce42fad921303dafd0a7162693ddc372e9a92035c
Digests:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk@sha256:0e3fedef8a9040a85620405b6a3a9a23154c50e0dd6eb24ab3fc6f862fc1179a
  Associated tags:
 - 20211023-121530013690035
Tags:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk:20211023-121530013690035
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk:20211023-121530013690035].
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk@sha256:0e3fedef8a9040a85620405b6a3a9a23154c50e0dd6eb24ab3fc6f862fc1179a].
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:0e04e7c3b97d95feaae7f456f685eee86c42c12a741a0a9cc01f42ca2f339dbd
  Associated tags:
 - a9024ea8-d8eb-4215-be4b-4d8b0c1b9de4
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python36_sdk/beam_python_prebuilt_sdk:a9024ea8-d8eb-4215-be4b-4d8b0c1b9de4].

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


=================================== 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 0x7f4f8f223fd0>
container_image_name = 'us.gcr.io/apache-beam-testing/jenkins/prebuild_python37_sdk/beam_python_prebuilt_sdk:5c35cddf-c874-41bf-92ee-71f0df53cff9'

    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 1331.23 seconds ===============
cleanup_container
Untagged: us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk:20211023-121526226122876
Untagged: us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk@sha256:7476a5fd8eba1c1cf015946a12fa873c03cb88c479143f9d3dad7885b43739c5
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:54af4545-9036-435c-b7d0-eafdd6282a2c
Untagged: us.gcr.io/apache-beam-testing/jenkins/prebuild_python37_sdk/beam_python_prebuilt_sdk@sha256:a7a248f313882f8749ee569db12cd46f925f39e77251e8946f330eceb5e46fb4
Deleted: sha256:0b9dc2630b6b9db5e61ce8b1252d2ac057f6ad807ef223135d3c63575430a6d8
Deleted: sha256:ed5c0c85a2ff5d344d3b38ce8300a3ffd316a66eac0913c5b3c1290edd98d19f
Deleted: sha256:33d51dce5ecc0fd2b3e79231fe91153987c9e37249c981f3fbd0b5be1eb7094d
Deleted: sha256:b50eeccd995f216fd68d6544e1e5dd6dafd393ec9e8c73742591bdd82a002e19
Deleted: sha256:89f7aae26f8fd96150c4ea417092b03f9ec1111addbf178d625d6633ae2cfe9b
Deleted: sha256:8fdca80c16bd28e1cf7c09cf06b3b4faf23571096ee5edde344c761e9813ab59
Digests:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk@sha256:7476a5fd8eba1c1cf015946a12fa873c03cb88c479143f9d3dad7885b43739c5
  Associated tags:
 - 20211023-121526226122876
Tags:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk:20211023-121526226122876
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk:20211023-121526226122876].
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk@sha256:7476a5fd8eba1c1cf015946a12fa873c03cb88c479143f9d3dad7885b43739c5].
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:a7a248f313882f8749ee569db12cd46f925f39e77251e8946f330eceb5e46fb4
  Associated tags:
 - 54af4545-9036-435c-b7d0-eafdd6282a2c
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python37_sdk/beam_python_prebuilt_sdk:54af4545-9036-435c-b7d0-eafdd6282a2c].
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python37_sdk/beam_python_prebuilt_sdk@sha256:a7a248f313882f8749ee569db12cd46f925f39e77251e8946f330eceb5e46fb4].
Removed the container

> Task :sdks:python:test-suites:dataflow:py36:validatesContainer FAILED
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python36_sdk/beam_python_prebuilt_sdk@sha256:0e04e7c3b97d95feaae7f456f685eee86c42c12a741a0a9cc01f42ca2f339dbd].

> 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:d61829e3efca755fc93b048cf5d36d321e8519c0e484982e1c14afbee717b064
  Associated tags:
 - 20211023-121539413499275
Tags:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk:20211023-121539413499275
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk:20211023-121539413499275].
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk@sha256:d61829e3efca755fc93b048cf5d36d321e8519c0e484982e1c14afbee717b064].
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:ba1e7fdedda6598609955137d31216c606bde53d328ab6c2c5d2d91a62bc3ee8
  Associated tags:
 - 939ab8f4-cc69-45c6-847d-56ae36daf5fd
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python38_sdk/beam_python_prebuilt_sdk:939ab8f4-cc69-45c6-847d-56ae36daf5fd].
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python38_sdk/beam_python_prebuilt_sdk@sha256:ba1e7fdedda6598609955137d31216c606bde53d328ab6c2c5d2d91a62bc3ee8].

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

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

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 #8401

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

Changes:


------------------------------------------
[...truncated 121.44 KB...]
Deleted: sha256:74badfa513bf26921ce69bdf4e0b0ee1834c44aad82d6d0e8b23a6a6fff890cb
Deleted: sha256:3df51265ccef931f13150e3b4fa325b2d92f9c1d6c9378b7a037512bf816bef3
Deleted: sha256:b89d9d7a917e54bdf279a76de3f277cc855e1e7258d3bc6bdd78cc852c8aa0b9
Digests:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk@sha256:09580572a766182bc5e876ddbba0f3a91800bd333e89fad91a545b46aa370f23
  Associated tags:
 - 20211023-061144764022358
Tags:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk:20211023-061144764022358
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk:20211023-061144764022358].

> 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 0x7f06699f9dd0>
container_image_name = 'us.gcr.io/apache-beam-testing/jenkins/prebuild_python37_sdk/beam_python_prebuilt_sdk:7fcd58b6-d8b7-45a1-8cb7-0b503be7fc75'

    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 1307.19 seconds ===============
cleanup_container
Untagged: us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk:20211023-061143140179634
Untagged: us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk@sha256:cd688c9f7c64b43cbaebf2dd1348d269ea2de5c484d94c5ac50def7fb7e4b501
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:332bad48-3f66-471e-b7bf-d634f7067891
Untagged: us.gcr.io/apache-beam-testing/jenkins/prebuild_python37_sdk/beam_python_prebuilt_sdk@sha256:77c3a43212a2df9940f7fcf24d037b12f422e945d331b753f6b0dfd12c70573f
Deleted: sha256:e31803428b951d4046efe50e71a307fcfb6e6753914c41e94bf2bdb8673cd1d1
Deleted: sha256:cba0cc71ad131c332e90f790c131b959e4b9a70190f071c2d1f58b02a50a380f
Deleted: sha256:b309b49e28d0de941cd45ea5854d1385c30b91ecc25cea732ff5e77c402d5ddc
Deleted: sha256:6fb9c09be1b2fb565594c39a76d54aab3225968a8675ed90045d9e126ad24113
Deleted: sha256:d16f357952c8601ef4a0d3d32c389dc5ee3638f9f65009bf2f8bb341d485a962
Deleted: sha256:568432461c513756c264d89592993217df025fe013af0881516d6032cc8cfde2

> Task :sdks:python:test-suites:dataflow:py36:validatesContainer FAILED
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk@sha256:09580572a766182bc5e876ddbba0f3a91800bd333e89fad91a545b46aa370f23].
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:f0e9ecd81880d7a653dffaae64350e643140b040824f7d5465b6303d50ef87d0
  Associated tags:
 - 7496490d-b13f-47d6-9df9-500fed43e42a
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python36_sdk/beam_python_prebuilt_sdk:7496490d-b13f-47d6-9df9-500fed43e42a].
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python36_sdk/beam_python_prebuilt_sdk@sha256:f0e9ecd81880d7a653dffaae64350e643140b040824f7d5465b6303d50ef87d0].
Removed the container

> Task :sdks:python:test-suites:dataflow:py37:validatesContainer
Digests:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk@sha256:cd688c9f7c64b43cbaebf2dd1348d269ea2de5c484d94c5ac50def7fb7e4b501
  Associated tags:
 - 20211023-061143140179634
Tags:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk:20211023-061143140179634
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk:20211023-061143140179634].
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk@sha256:cd688c9f7c64b43cbaebf2dd1348d269ea2de5c484d94c5ac50def7fb7e4b501].
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:77c3a43212a2df9940f7fcf24d037b12f422e945d331b753f6b0dfd12c70573f
  Associated tags:
 - 332bad48-3f66-471e-b7bf-d634f7067891
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python37_sdk/beam_python_prebuilt_sdk:332bad48-3f66-471e-b7bf-d634f7067891].
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python37_sdk/beam_python_prebuilt_sdk@sha256:77c3a43212a2df9940f7fcf24d037b12f422e945d331b753f6b0dfd12c70573f].

> 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:0df01533fec7e921be2b042201b0283cc6715abf7d38e9c214ca1757419b67cc
  Associated tags:
 - 20211023-061151817977359
Tags:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk:20211023-061151817977359
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk:20211023-061151817977359].
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk@sha256:0df01533fec7e921be2b042201b0283cc6715abf7d38e9c214ca1757419b67cc].
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:1ce1bf075fe964f4085ef9373f5f622ac238ae87561b0aabab767149764a1a02
  Associated tags:
 - c7d1358c-959d-40c4-84a2-faf1302b2500
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python38_sdk/beam_python_prebuilt_sdk:c7d1358c-959d-40c4-84a2-faf1302b2500].
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python38_sdk/beam_python_prebuilt_sdk@sha256:1ce1bf075fe964f4085ef9373f5f622ac238ae87561b0aabab767149764a1a02].

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

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

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

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

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 #8400

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

Changes:


------------------------------------------
[...truncated 130.94 KB...]
____ 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 0x7ff6fe82bf70>
container_image_name = 'us.gcr.io/apache-beam-testing/jenkins/prebuild_python38_sdk/beam_python_prebuilt_sdk:c4c05fdd-a95a-471c-a4fb-2e253b026d5f'

    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 1313.64 seconds ===============
cleanup_container
Untagged: us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk:20211023-001511253856072
Untagged: us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk@sha256:9f592302afb3f604a7dd2ed8b00933a7b42ae741e72928432272f56df9fa844c
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:85bc8109-eb3c-473b-bb91-793ca1570785
Untagged: us.gcr.io/apache-beam-testing/jenkins/prebuild_python38_sdk/beam_python_prebuilt_sdk@sha256:f01a117f19725ab6d703695f2b317f13db0dfb0f0955be4cce59f4995a2cfaa2
Deleted: sha256:09bd4f01acbf7a6e1a140ff831585ac1e092f519a1608bdae422fecba1925312
Deleted: sha256:f614642dbcd5f0a378c56c7ed1284cb81feccd62590c1c65f16e749ef8711ea1
Deleted: sha256:a882c2cd1f6a6a2cee70715e93773069d353d300286eaff8e4896d4e6131dc4e
Deleted: sha256:7d26d278fbd9913377c953a782e4d810f9520e27ad633679401761f371ae65aa
Deleted: sha256:bc007790cf819fd851ea828f27468b358707a88cf6694bcc2959c75a2add49bc
Deleted: sha256:4ad3ba680e52ea16d646759857b38db698b7c24b93379a77606dc0ace6b1aa4e
Deleted: sha256:5401093315db610c0f507d04c41648a91d371dd799bb54b235586934ec633801
Deleted: sha256:d156ffeacfc5dd610eb2a4563952b862cc90366884db3f3ee9c62adc49fe9eb1
Deleted: sha256:98cb42e0fac320f4f6583ac08bd78e1b9a6c9ef51e1dd9dad7e35b6a774f0d39
Deleted: sha256:77895580a441febba2beb34fb81aa754cfccbee5ca4761ab7ea1a7324cbbc5e9
Deleted: sha256:42f19ce57ceaef85b9d35f63ad9ebf2fb74e9dd9256fa296a83d1d0942448860
Deleted: sha256:a4738b326fad0c34edac1f9ad229d01af3a6d37c771f8132869d36b5bd23b14f
Deleted: sha256:79aa7682c676811979a24e46dfc42bf791f43958952a17dc16895209f3c841de
Deleted: sha256:6b40a5dd61d756df0136bc41ed902e5f53c5de70ac476e9cff8b4a43c1371f8e
Deleted: sha256:11647ab4cf5bf9ff501d2c2a67e11231773ec0c4d31d3c61afea89fd39a73e5f
Deleted: sha256:63854dc424dee1903e6ee9ec4e3fceb4e482def941b54728f69ea1fab0f0e511
Deleted: sha256:7e22c86d289aad352c55387f0e9d824c0414d7742bca799c72512142032fa779
Deleted: sha256:c7ad70dbbee2c9dcb316dfa5101a692045760153b68a79e804564aa9a7f1d0fe
Deleted: sha256:a5d8a5e4866786553818d94bb1bc4a9db3f0dc38678997bd7855d33fca50dff0
Deleted: sha256:73de8d8901cb5ad22de2d73fc82b08d45300cceaca6e1caa8dd5419cdc1ecff4
Deleted: sha256:2b3b070614f57d14d1080ec9cc55a6be5ca3406eaba3b0aba7095877d67231b7
Deleted: sha256:61cefbb6859c0904fb01cea04eea4adc318ffd578ec774aadf5c4fb81f4f6921
Deleted: sha256:bd9d04a401762798d5d1c0670a2bf68274b27f475060a36e77a0a84eae3dab5b
Deleted: sha256:d7925fdfdd73fd60f0f48b90b87a40cebb2af2bcc0de6853327e5056de523509
Deleted: sha256:2846b76e874d6d65c707e30120578a5e3c266f0bafc2eeb68f5907dca059bb80
Deleted: sha256:2a1afcd636ac3bcf5015781f1270fceb38dc6138942d28e971c0b187ca9e7465
Deleted: sha256:b6f954a8d83660391c0a091e8ed91be1dc093427eebbe8d6a980efad972e8e66
Deleted: sha256:54a1ed98910a0f7ab54b919df369bcce2ba9e86e4b035abf34dc7e9691805314
Deleted: sha256:95f4b8b7b9c59d6da0e1e2f1ccc84d342b13749d9148a0e1a09f2bf905123f42
Deleted: sha256:ac6dc564472de319768221f5c1359edf5ac22564c7c761ba502ff717f64b641a
Deleted: sha256:08e327d4aaa11fa4b6f8b25cf766670d909b380389d3aa5155594a6d314bd442
Deleted: sha256:48376b771a53daf5128dd1bd268e3e8cbd1b99af1c767c4e2835619fa68a517f
Deleted: sha256:1c6caf4baba07271b17754b446021546bae3d5b0e0c9057927881fbea29888cc
Deleted: sha256:b047c26f9051f5dd752be417d8560add5ff94629b5dfb5efe6fe55d63b057776
Deleted: sha256:66412be5a3a03fe0f1d0eb7ef1b99b458085450d30d42cc061ac613f2ac858de
Deleted: sha256:758dfe5d915b4e92e83369a3f5ce504540d76c1d7190913e7ebc6a9871e8405a
Deleted: sha256:4c18386e83f9abf846cf4b489758f33a941a7961972f977bb151b3526343c0d9
Deleted: sha256:514dfcab087f3d0798bb5b43047f861079507aa529f6d11033c4c388a3ffa820
Deleted: sha256:48eb9f5b88532016b7d30da74b022f5d49858a0c409cd110b21740c88821a2e7
Deleted: sha256:58347e9ab2bac45b48cd4f0ba837ac73989435a0f408cf2217093305269a4ca1
Deleted: sha256:679681fbd38af2d5b12e5289bac9495be1e9e1670caed147f5b2d957aecab13e
Deleted: sha256:1aa522f23c8beb847ee8b86172f4d745b00bafd8b8f383d6b0efa2c213617bbf
Deleted: sha256:981ca68fe9c982553c1afbf67679575592914655c16f43d874dd131166492e01
Deleted: sha256:96cae33abe52b5b166240fa69aa34dabb2ec3b2729b4c926e05c461aa2dbad0d
Deleted: sha256:751dd42365f124bbfe90f0a3d3b8623108eb49a721b1f3649f5b7dd879b59ad0
Deleted: sha256:3aaec16b89ff864faca1b29bc34239ca8478909e2b116aae9e98d7d588bdccda
Deleted: sha256:fe2f7c65df54879168719d6b87a6ccbfda8218007cb218eac26aba5987b3c4a0
Deleted: sha256:ce226d19f776ecfee048851e7183ff122675d132c504e0218d3e8ead73385d08
Deleted: sha256:a97e28dee19241153515d91db133d7860dee23aeefe78475476f8b35aa46fa74
Deleted: sha256:b70ec57dcec98d5e153b079c573a5b1bb81eda191535dea1910023a1d0d879d2
Deleted: sha256:4b7c522d400ec4a0f7a7045fd7a2b68823728e988f17f57213ce4d034d6df1b9
Digests:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk@sha256:9f592302afb3f604a7dd2ed8b00933a7b42ae741e72928432272f56df9fa844c
  Associated tags:
 - 20211023-001511253856072
Tags:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk:20211023-001511253856072
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk:20211023-001511253856072].
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk@sha256:9f592302afb3f604a7dd2ed8b00933a7b42ae741e72928432272f56df9fa844c].
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:f01a117f19725ab6d703695f2b317f13db0dfb0f0955be4cce59f4995a2cfaa2
  Associated tags:
 - 85bc8109-eb3c-473b-bb91-793ca1570785
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python38_sdk/beam_python_prebuilt_sdk:85bc8109-eb3c-473b-bb91-793ca1570785].
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python38_sdk/beam_python_prebuilt_sdk@sha256:f01a117f19725ab6d703695f2b317f13db0dfb0f0955be4cce59f4995a2cfaa2].
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 39m 19s
44 actionable tasks: 40 executed, 4 up-to-date

Publishing build scan...
https://gradle.com/s/37ode35zx2nwq

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 #8399

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

Changes:


------------------------------------------
[...truncated 114.43 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 0x7f53a1fbc650>
container_image_name = 'us.gcr.io/apache-beam-testing/jenkins/prebuild_python37_sdk/beam_python_prebuilt_sdk:cfaddcdb-dc41-4f51-b9a6-b06ff8aa2699'

    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 1328.15 seconds ===============
cleanup_container
Untagged: us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk:20211022-181624904321234
Untagged: us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk@sha256:05440a1cecac231544f2160f40edc4081f90ea437a2b3726e943e31990db46b5
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:8e90997a-4278-49ff-9b02-01c7e2f58026
Untagged: us.gcr.io/apache-beam-testing/jenkins/prebuild_python37_sdk/beam_python_prebuilt_sdk@sha256:291f09d33eaaea3bd04fc7e91f268088edcb39fc30165a226f275b5f1f90254b
Deleted: sha256:fd59b9119a16df05d89504d2f0dec872ddf8134ad4784e2ed671709794d6737e
Deleted: sha256:05ea0e8fa275418b9bfc13d097cf170afe48f8aa7dbe9a7614c9993270bb6b08
Deleted: sha256:0fee1feca849e6e55520662f28dbd7af2eabb4711764e0e71e0292b6d56042a7
Deleted: sha256:54d085a253333eb999822fe7ee7edf87f9f9597b1375f196f1ad2d09d8474e8b
Deleted: sha256:6116e699b96dabbf6467be342b8e178189675565246263996801b2cd5898db47
Deleted: sha256:89f433089739341b4a69bc77c71bc4ab3af127bc0844bd5f32d49bf24ac1c0f3
Digests:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk@sha256:05440a1cecac231544f2160f40edc4081f90ea437a2b3726e943e31990db46b5
  Associated tags:
 - 20211022-181624904321234
Tags:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk:20211022-181624904321234
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk:20211022-181624904321234].
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk@sha256:05440a1cecac231544f2160f40edc4081f90ea437a2b3726e943e31990db46b5].
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:291f09d33eaaea3bd04fc7e91f268088edcb39fc30165a226f275b5f1f90254b
  Associated tags:
 - 8e90997a-4278-49ff-9b02-01c7e2f58026
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python37_sdk/beam_python_prebuilt_sdk:8e90997a-4278-49ff-9b02-01c7e2f58026].
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python37_sdk/beam_python_prebuilt_sdk@sha256:291f09d33eaaea3bd04fc7e91f268088edcb39fc30165a226f275b5f1f90254b].
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:46e108259bca4a4a759f39179d6622be71d4beeb1784388f10cb45db18df3a99
  Associated tags:
 - 20211022-181628895886523
Tags:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk:20211022-181628895886523
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk:20211022-181628895886523].
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk@sha256:46e108259bca4a4a759f39179d6622be71d4beeb1784388f10cb45db18df3a99].
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:48b996fe847a570743bee19475fc5c6993bbf6235d68f4aedcaede483a04e31f
  Associated tags:
 - fe613ed7-62c7-48bc-acc3-c5fb617fe760
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python36_sdk/beam_python_prebuilt_sdk:fe613ed7-62c7-48bc-acc3-c5fb617fe760].
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python36_sdk/beam_python_prebuilt_sdk@sha256:48b996fe847a570743bee19475fc5c6993bbf6235d68f4aedcaede483a04e31f].

> 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:93327fed14fcb3d41e9063af031496a54092f58d1391d62b2c04d783f50532f8
  Associated tags:
 - 20211022-181639117332391
Tags:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk:20211022-181639117332391
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk:20211022-181639117332391].
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk@sha256:93327fed14fcb3d41e9063af031496a54092f58d1391d62b2c04d783f50532f8].
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:dfebc61e9a083e64c0015d3e6047b79be46b4c08f6d2dfb839947f2148bdd3df
  Associated tags:
 - b99c36ab-6887-4f6e-9d92-851a2c267693
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python38_sdk/beam_python_prebuilt_sdk:b99c36ab-6887-4f6e-9d92-851a2c267693].
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python38_sdk/beam_python_prebuilt_sdk@sha256:dfebc61e9a083e64c0015d3e6047b79be46b4c08f6d2dfb839947f2148bdd3df].

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

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

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 #8398

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

Changes:


------------------------------------------
[...truncated 95.96 KB...]
  docker rmi $CONTAINER:$TAG || echo "Failed to remove container image"
  for image in $(docker images --format '{{.Repository}}:{{.Tag}}' | grep $PREBUILD_SDK_CONTAINER_REGISTRY_PATH)
    do docker rmi $image || echo "Failed to remove prebuilt sdk container image"
  done
  gcloud --quiet container images delete $CONTAINER:$TAG || echo "Failed to delete container"
  for digest in $(gcloud container images list-tags $PREBUILD_SDK_CONTAINER_REGISTRY_PATH/beam_python_prebuilt_sdk  --format="get(digest)")
    do gcloud container images delete $PREBUILD_SDK_CONTAINER_REGISTRY_PATH/beam_python_prebuilt_sdk@$digest --force-delete-tags --quiet || echo "Failed to remove prebuilt sdk container image"
  done

  echo "Removed the container"
}
trap cleanup_container EXIT

echo ">>> Successfully built and push container $CONTAINER"

cd sdks/python
SDK_LOCATION=$2

# Run ValidatesRunner tests on Google Cloud Dataflow service
echo ">>> RUNNING DATAFLOW RUNNER VALIDATESCONTAINER TEST"
pytest -o junit_suite_name=$IMAGE_NAME \
  -m="it_validatescontainer" \
  --show-capture=no \
  --numprocesses=1 \
  --timeout=900 \
  --junitxml=$XUNIT_FILE \
  --ignore-glob '.*py3\d?\.py$' \
  --log-cli-level=INFO \
  --test-pipeline-options=" \
    --runner=TestDataflowRunner \
    --project=$PROJECT \
    --region=$REGION \
    --sdk_container_image=$CONTAINER:$TAG \
    --staging_location=$GCS_LOCATION/staging-validatesrunner-test \
    --temp_location=$GCS_LOCATION/temp-validatesrunner-test \
    --output=$GCS_LOCATION/output \
    --sdk_location=$SDK_LOCATION \
    --num_workers=1 \
    --prebuild_sdk_container_base_image=$CONTAINER:$TAG \
    --docker_registry_push_url=$PREBUILD_SDK_CONTAINER_REGISTRY_PATH"

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

function cleanup_container {
  # Delete the container locally and remotely
  docker rmi $CONTAINER:$TAG || echo "Failed to remove container image"
  for image in $(docker images --format '{{.Repository}}:{{.Tag}}' | grep $PREBUILD_SDK_CONTAINER_REGISTRY_PATH)
    do docker rmi $image || echo "Failed to remove prebuilt sdk container image"
  done
  gcloud --quiet container images delete $CONTAINER:$TAG || echo "Failed to delete container"
  for digest in $(gcloud container images list-tags $PREBUILD_SDK_CONTAINER_REGISTRY_PATH/beam_python_prebuilt_sdk  --format="get(digest)")
    do gcloud container images delete $PREBUILD_SDK_CONTAINER_REGISTRY_PATH/beam_python_prebuilt_sdk@$digest --force-delete-tags --quiet || echo "Failed to remove prebuilt sdk container image"
  done

  echo "Removed the container"
}
trap cleanup_container EXIT

echo ">>> Successfully built and push container $CONTAINER"

cd sdks/python
SDK_LOCATION=$2

# Run ValidatesRunner tests on Google Cloud Dataflow service
echo ">>> RUNNING DATAFLOW RUNNER VALIDATESCONTAINER TEST"
pytest -o junit_suite_name=$IMAGE_NAME \
  -m="it_validatescontainer" \
  --show-capture=no \
  --numprocesses=1 \
  --timeout=900 \
  --junitxml=$XUNIT_FILE \
  --ignore-glob '.*py3\d?\.py$' \
  --log-cli-level=INFO \
  --test-pipeline-options=" \
    --runner=TestDataflowRunner \
    --project=$PROJECT \
    --region=$REGION \
    --sdk_container_image=$CONTAINER:$TAG \
    --staging_location=$GCS_LOCATION/staging-validatesrunner-test \
    --temp_location=$GCS_LOCATION/temp-validatesrunner-test \
    --output=$GCS_LOCATION/output \
    --sdk_location=$SDK_LOCATION \
    --num_workers=1 \
    --prebuild_sdk_container_base_image=$CONTAINER:$TAG \
    --docker_registry_push_url=$PREBUILD_SDK_CONTAINER_REGISTRY_PATH"

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

function cleanup_container {
  # Delete the container locally and remotely
  docker rmi $CONTAINER:$TAG || echo "Failed to remove container image"
  for image in $(docker images --format '{{.Repository}}:{{.Tag}}' | grep $PREBUILD_SDK_CONTAINER_REGISTRY_PATH)
    do docker rmi $image || echo "Failed to remove prebuilt sdk container image"
  done
  gcloud --quiet container images delete $CONTAINER:$TAG || echo "Failed to delete container"
  for digest in $(gcloud container images list-tags $PREBUILD_SDK_CONTAINER_REGISTRY_PATH/beam_python_prebuilt_sdk  --format="get(digest)")
    do gcloud container images delete $PREBUILD_SDK_CONTAINER_REGISTRY_PATH/beam_python_prebuilt_sdk@$digest --force-delete-tags --quiet || echo "Failed to remove prebuilt sdk container image"
  done

  echo "Removed the container"
}
trap cleanup_container EXIT

echo ">>> Successfully built and push container $CONTAINER"

cd sdks/python
SDK_LOCATION=$2

# Run ValidatesRunner tests on Google Cloud Dataflow service
echo ">>> RUNNING DATAFLOW RUNNER VALIDATESCONTAINER TEST"
pytest -o junit_suite_name=$IMAGE_NAME \
  -m="it_validatescontainer" \
  --show-capture=no \
  --numprocesses=1 \
  --timeout=900 \
  --junitxml=$XUNIT_FILE \
  --ignore-glob '.*py3\d?\.py$' \
  --log-cli-level=INFO \
  --test-pipeline-options=" \
    --runner=TestDataflowRunner \
    --project=$PROJECT \
    --region=$REGION \
    --sdk_container_image=$CONTAINER:$TAG \
    --staging_location=$GCS_LOCATION/staging-validatesrunner-test \
    --temp_location=$GCS_LOCATION/temp-validatesrunner-test \
    --output=$GCS_LOCATION/output \
    --sdk_location=$SDK_LOCATION \
    --num_workers=1 \
    --prebuild_sdk_container_base_image=$CONTAINER:$TAG \
    --docker_registry_push_url=$PREBUILD_SDK_CONTAINER_REGISTRY_PATH"

> 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:f6d159c619103f0c11a68126a522ad3b05337d3fe63996514cf13a1781b46793
  Associated tags:
 - 20211022-121133494419266
Tags:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk:20211022-121133494419266
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk:20211022-121133494419266].
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk@sha256:f6d159c619103f0c11a68126a522ad3b05337d3fe63996514cf13a1781b46793].
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:8ec6bc9ab737c86c8d3e4322afde9eee968e8de3402be80b86a752bd1b9cecba
  Associated tags:
 - b98e2ce6-cfe6-4f72-9883-6274c5e2b4d0
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python38_sdk/beam_python_prebuilt_sdk:b98e2ce6-cfe6-4f72-9883-6274c5e2b4d0].
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python38_sdk/beam_python_prebuilt_sdk@sha256:8ec6bc9ab737c86c8d3e4322afde9eee968e8de3402be80b86a752bd1b9cecba].

> 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:2295985898a9173b8b0c0dd9c122dc3a94a71bad937a93036c7a6b23bec60910
  Associated tags:
 - 20211022-121133988877052
Tags:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk:20211022-121133988877052
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk:20211022-121133988877052].
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk@sha256:2295985898a9173b8b0c0dd9c122dc3a94a71bad937a93036c7a6b23bec60910].
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:4a73e66695318335afead025697fb1b0e7247247a3fa9c04037f0323366b0b4f
  Associated tags:
 - 85e3e3a4-722c-4239-9bb7-5d87686e34ff
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python36_sdk/beam_python_prebuilt_sdk:85e3e3a4-722c-4239-9bb7-5d87686e34ff].
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python36_sdk/beam_python_prebuilt_sdk@sha256:4a73e66695318335afead025697fb1b0e7247247a3fa9c04037f0323366b0b4f].

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

> Task :sdks:python:test-suites:dataflow:py37:validatesContainer
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:0c41e6c2591187f600c229b1a6143e50ef5505bc58e4bda5cb1f060a6d9ff783
  Associated tags:
 - 20211022-121133727469068
Tags:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk:20211022-121133727469068
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk:20211022-121133727469068].
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk@sha256:0c41e6c2591187f600c229b1a6143e50ef5505bc58e4bda5cb1f060a6d9ff783].
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:d50a0b9e61cdecba5ee5c7d4b21e4665048dac87fc83be0d9740e8964304f300
  Associated tags:
 - fe3a0fb8-a2f5-46d2-8631-3e61a1d5985a
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python37_sdk/beam_python_prebuilt_sdk:fe3a0fb8-a2f5-46d2-8631-3e61a1d5985a].
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python37_sdk/beam_python_prebuilt_sdk@sha256:d50a0b9e61cdecba5ee5c7d4b21e4665048dac87fc83be0d9740e8964304f300].

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

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

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

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

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 #8397

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

Changes:

[noreply] [BEAM-13015] Create a multiplexer that sends Elements based upon


------------------------------------------
[...truncated 104.35 KB...]
  docker rmi $CONTAINER:$TAG || echo "Failed to remove container image"
  for image in $(docker images --format '{{.Repository}}:{{.Tag}}' | grep $PREBUILD_SDK_CONTAINER_REGISTRY_PATH)
    do docker rmi $image || echo "Failed to remove prebuilt sdk container image"
  done
  gcloud --quiet container images delete $CONTAINER:$TAG || echo "Failed to delete container"
  for digest in $(gcloud container images list-tags $PREBUILD_SDK_CONTAINER_REGISTRY_PATH/beam_python_prebuilt_sdk  --format="get(digest)")
    do gcloud container images delete $PREBUILD_SDK_CONTAINER_REGISTRY_PATH/beam_python_prebuilt_sdk@$digest --force-delete-tags --quiet || echo "Failed to remove prebuilt sdk container image"
  done

  echo "Removed the container"
}
trap cleanup_container EXIT

echo ">>> Successfully built and push container $CONTAINER"

cd sdks/python
SDK_LOCATION=$2

# Run ValidatesRunner tests on Google Cloud Dataflow service
echo ">>> RUNNING DATAFLOW RUNNER VALIDATESCONTAINER TEST"
pytest -o junit_suite_name=$IMAGE_NAME \
  -m="it_validatescontainer" \
  --show-capture=no \
  --numprocesses=1 \
  --timeout=900 \
  --junitxml=$XUNIT_FILE \
  --ignore-glob '.*py3\d?\.py$' \
  --log-cli-level=INFO \
  --test-pipeline-options=" \
    --runner=TestDataflowRunner \
    --project=$PROJECT \
    --region=$REGION \
    --sdk_container_image=$CONTAINER:$TAG \
    --staging_location=$GCS_LOCATION/staging-validatesrunner-test \
    --temp_location=$GCS_LOCATION/temp-validatesrunner-test \
    --output=$GCS_LOCATION/output \
    --sdk_location=$SDK_LOCATION \
    --num_workers=1 \
    --prebuild_sdk_container_base_image=$CONTAINER:$TAG \
    --docker_registry_push_url=$PREBUILD_SDK_CONTAINER_REGISTRY_PATH"

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

function cleanup_container {
  # Delete the container locally and remotely
  docker rmi $CONTAINER:$TAG || echo "Failed to remove container image"
  for image in $(docker images --format '{{.Repository}}:{{.Tag}}' | grep $PREBUILD_SDK_CONTAINER_REGISTRY_PATH)
    do docker rmi $image || echo "Failed to remove prebuilt sdk container image"
  done
  gcloud --quiet container images delete $CONTAINER:$TAG || echo "Failed to delete container"
  for digest in $(gcloud container images list-tags $PREBUILD_SDK_CONTAINER_REGISTRY_PATH/beam_python_prebuilt_sdk  --format="get(digest)")
    do gcloud container images delete $PREBUILD_SDK_CONTAINER_REGISTRY_PATH/beam_python_prebuilt_sdk@$digest --force-delete-tags --quiet || echo "Failed to remove prebuilt sdk container image"
  done

  echo "Removed the container"
}
trap cleanup_container EXIT

echo ">>> Successfully built and push container $CONTAINER"

cd sdks/python
SDK_LOCATION=$2

# Run ValidatesRunner tests on Google Cloud Dataflow service
echo ">>> RUNNING DATAFLOW RUNNER VALIDATESCONTAINER TEST"
pytest -o junit_suite_name=$IMAGE_NAME \
  -m="it_validatescontainer" \
  --show-capture=no \
  --numprocesses=1 \
  --timeout=900 \
  --junitxml=$XUNIT_FILE \
  --ignore-glob '.*py3\d?\.py$' \
  --log-cli-level=INFO \
  --test-pipeline-options=" \
    --runner=TestDataflowRunner \
    --project=$PROJECT \
    --region=$REGION \
    --sdk_container_image=$CONTAINER:$TAG \
    --staging_location=$GCS_LOCATION/staging-validatesrunner-test \
    --temp_location=$GCS_LOCATION/temp-validatesrunner-test \
    --output=$GCS_LOCATION/output \
    --sdk_location=$SDK_LOCATION \
    --num_workers=1 \
    --prebuild_sdk_container_base_image=$CONTAINER:$TAG \
    --docker_registry_push_url=$PREBUILD_SDK_CONTAINER_REGISTRY_PATH"

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

function cleanup_container {
  # Delete the container locally and remotely
  docker rmi $CONTAINER:$TAG || echo "Failed to remove container image"
  for image in $(docker images --format '{{.Repository}}:{{.Tag}}' | grep $PREBUILD_SDK_CONTAINER_REGISTRY_PATH)
    do docker rmi $image || echo "Failed to remove prebuilt sdk container image"
  done
  gcloud --quiet container images delete $CONTAINER:$TAG || echo "Failed to delete container"
  for digest in $(gcloud container images list-tags $PREBUILD_SDK_CONTAINER_REGISTRY_PATH/beam_python_prebuilt_sdk  --format="get(digest)")
    do gcloud container images delete $PREBUILD_SDK_CONTAINER_REGISTRY_PATH/beam_python_prebuilt_sdk@$digest --force-delete-tags --quiet || echo "Failed to remove prebuilt sdk container image"
  done

  echo "Removed the container"
}
trap cleanup_container EXIT

echo ">>> Successfully built and push container $CONTAINER"

cd sdks/python
SDK_LOCATION=$2

# Run ValidatesRunner tests on Google Cloud Dataflow service
echo ">>> RUNNING DATAFLOW RUNNER VALIDATESCONTAINER TEST"
pytest -o junit_suite_name=$IMAGE_NAME \
  -m="it_validatescontainer" \
  --show-capture=no \
  --numprocesses=1 \
  --timeout=900 \
  --junitxml=$XUNIT_FILE \
  --ignore-glob '.*py3\d?\.py$' \
  --log-cli-level=INFO \
  --test-pipeline-options=" \
    --runner=TestDataflowRunner \
    --project=$PROJECT \
    --region=$REGION \
    --sdk_container_image=$CONTAINER:$TAG \
    --staging_location=$GCS_LOCATION/staging-validatesrunner-test \
    --temp_location=$GCS_LOCATION/temp-validatesrunner-test \
    --output=$GCS_LOCATION/output \
    --sdk_location=$SDK_LOCATION \
    --num_workers=1 \
    --prebuild_sdk_container_base_image=$CONTAINER:$TAG \
    --docker_registry_push_url=$PREBUILD_SDK_CONTAINER_REGISTRY_PATH"

> Task :sdks:python:test-suites:dataflow:py37:validatesContainer
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:0f4c23d2dec9ad2d2c46eba6768cb471f9dddd2a621d9d5d1d8c2d8f06b19968
  Associated tags:
 - 20211022-061350219526333
Tags:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk:20211022-061350219526333
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk:20211022-061350219526333].
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk@sha256:0f4c23d2dec9ad2d2c46eba6768cb471f9dddd2a621d9d5d1d8c2d8f06b19968].
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:fae72590e49289fb14a55b821af68b9bc059a79bcf963e943d8a3a6d9f67dda9
  Associated tags:
 - c3ad7803-373f-4eb7-870c-fe15e68704cf
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python37_sdk/beam_python_prebuilt_sdk:c3ad7803-373f-4eb7-870c-fe15e68704cf].
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python37_sdk/beam_python_prebuilt_sdk@sha256:fae72590e49289fb14a55b821af68b9bc059a79bcf963e943d8a3a6d9f67dda9].

> 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:fffe6d0f77c0023832399a9362f5d8e0c984e5a74096c6021e7eaaffe4ac22c4
  Associated tags:
 - 20211022-061359350155216
Tags:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk:20211022-061359350155216
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk:20211022-061359350155216].
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk@sha256:fffe6d0f77c0023832399a9362f5d8e0c984e5a74096c6021e7eaaffe4ac22c4].
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:e14835863f88c8be7533396788dbae681737a493ca8176746c73202119768e1b
  Associated tags:
 - eafaecd5-cf92-4166-9dfd-f793eb0c6265
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python38_sdk/beam_python_prebuilt_sdk:eafaecd5-cf92-4166-9dfd-f793eb0c6265].
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python38_sdk/beam_python_prebuilt_sdk@sha256:e14835863f88c8be7533396788dbae681737a493ca8176746c73202119768e1b].

> 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:be0a670a1bb79c2b093aa9a7d1721ae704439231d633f9d7ee90c6e515c66609
  Associated tags:
 - 20211022-061350780618373
Tags:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk:20211022-061350780618373
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk:20211022-061350780618373].
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk@sha256:be0a670a1bb79c2b093aa9a7d1721ae704439231d633f9d7ee90c6e515c66609].
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:2f343e0cba573ee98a730be8915b242b911b5832ac041a2d729dbcae957afeaa
  Associated tags:
 - b81e43b5-27d3-4281-abeb-95cec34f2be3
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python36_sdk/beam_python_prebuilt_sdk:b81e43b5-27d3-4281-abeb-95cec34f2be3].
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python36_sdk/beam_python_prebuilt_sdk@sha256:2f343e0cba573ee98a730be8915b242b911b5832ac041a2d729dbcae957afeaa].

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

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

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 #8396

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

Changes:

[noreply] [BEAM-13096] Double test timeout. (#15774)

[noreply] [BEAM-13019] Add `containsInAnyOrder` with matchers to the

[Daniel Oliveira] Avoiding read-only Go module cache in Gradle config.

[noreply] [BEAM-11758] Update basics page: Pipeline, PCollection, PTransform

[noreply] Test SetState addIfAbsent with no read (#15776)

[noreply] lazy creation of source splits for export-based ReadFromBigQuery

[noreply] [BEAM-11275] Support remote package download from remote filesystems in


------------------------------------------
[...truncated 111.18 KB...]
    --docker_registry_push_url=$PREBUILD_SDK_CONTAINER_REGISTRY_PATH"

> 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:900aa976126936510ce7c6bfc888d43628d215f1e230b36a2d927251638736bf
  Associated tags:
 - 20211022-001329737056142
Tags:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk:20211022-001329737056142
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk:20211022-001329737056142].
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk@sha256:900aa976126936510ce7c6bfc888d43628d215f1e230b36a2d927251638736bf].
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:87f332574b60f03ff16587aec332d8bc66dcbf17f3852f12969a9bf78f8a56e9
  Associated tags:
 - ea6780a3-a614-4d89-9cef-2227f5399fd0
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python36_sdk/beam_python_prebuilt_sdk:ea6780a3-a614-4d89-9cef-2227f5399fd0].
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python36_sdk/beam_python_prebuilt_sdk@sha256:87f332574b60f03ff16587aec332d8bc66dcbf17f3852f12969a9bf78f8a56e9].

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

> 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 0x7fbe638fe7d0>
container_image_name = 'us.gcr.io/apache-beam-testing/jenkins/prebuild_python37_sdk/beam_python_prebuilt_sdk:44ad48a0-c041-4222-966a-88397b98b767'

    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 1341.78 seconds ===============
cleanup_container
Untagged: us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk:20211022-001328753561021
Untagged: us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk@sha256:99443c058d2f5c3df90083bb4d78f559a27a431c1cb5816e8536aa4d9beaa106
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:da0a9ad8-e33e-432d-a71f-2d92e0040909
Untagged: us.gcr.io/apache-beam-testing/jenkins/prebuild_python37_sdk/beam_python_prebuilt_sdk@sha256:0b46e58d94ed7cc623aacfddac061ea0cc30083a0da03596245e37312e26a9fa
Deleted: sha256:6d4faf24d42983c6e22c40d4db35ec68c8de1e9f54e0da677754953025249a92
Deleted: sha256:069cf5ff69366a3606975ee2f749cfda3bd92cc342978082a81e05f068e4b8b1
Deleted: sha256:a157d2fa3c89560d1c5b4ff982e24336a8ded5d9be78ff47f2438cc7af80b006
Deleted: sha256:72d13589db76dd2d30ab48c9f2bfe591bf492386a39eeb26d3e20eabb21e27ae
Deleted: sha256:9c76f7d037776d58f366831eb332de3995fab2bb372272d884163818c4697f32
Deleted: sha256:9c64ab95ac47b887b6e797a62b2a7ed5e83e6a96b2df68a0b72eae887e37b8a1
Digests:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk@sha256:99443c058d2f5c3df90083bb4d78f559a27a431c1cb5816e8536aa4d9beaa106
  Associated tags:
 - 20211022-001328753561021
Tags:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk:20211022-001328753561021
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk:20211022-001328753561021].
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk@sha256:99443c058d2f5c3df90083bb4d78f559a27a431c1cb5816e8536aa4d9beaa106].
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:0b46e58d94ed7cc623aacfddac061ea0cc30083a0da03596245e37312e26a9fa
  Associated tags:
 - da0a9ad8-e33e-432d-a71f-2d92e0040909
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python37_sdk/beam_python_prebuilt_sdk:da0a9ad8-e33e-432d-a71f-2d92e0040909].
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python37_sdk/beam_python_prebuilt_sdk@sha256:0b46e58d94ed7cc623aacfddac061ea0cc30083a0da03596245e37312e26a9fa].
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:9f8c48d06ac80a8ca6d152d829f3aedb7fbd9571a36ff99262bae9612784ded9
  Associated tags:
 - 20211022-001341063789993
Tags:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk:20211022-001341063789993
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk:20211022-001341063789993].
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk@sha256:9f8c48d06ac80a8ca6d152d829f3aedb7fbd9571a36ff99262bae9612784ded9].
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:53421ed0c7ec4e9fead21765ac2e5d92d1e7283da27c1a11e6b55dc9e4183d19
  Associated tags:
 - 88ab6e6e-2396-4228-bf44-80d60f59ffd3
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python38_sdk/beam_python_prebuilt_sdk:88ab6e6e-2396-4228-bf44-80d60f59ffd3].
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python38_sdk/beam_python_prebuilt_sdk@sha256:53421ed0c7ec4e9fead21765ac2e5d92d1e7283da27c1a11e6b55dc9e4183d19].

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

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

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

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

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 #8395

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

Changes:

[noreply] Merge pull request #15761 from [BEAM-13008] Create gradle tasks for the


------------------------------------------
[...truncated 100.51 KB...]
  docker rmi $CONTAINER:$TAG || echo "Failed to remove container image"
  for image in $(docker images --format '{{.Repository}}:{{.Tag}}' | grep $PREBUILD_SDK_CONTAINER_REGISTRY_PATH)
    do docker rmi $image || echo "Failed to remove prebuilt sdk container image"
  done
  gcloud --quiet container images delete $CONTAINER:$TAG || echo "Failed to delete container"
  for digest in $(gcloud container images list-tags $PREBUILD_SDK_CONTAINER_REGISTRY_PATH/beam_python_prebuilt_sdk  --format="get(digest)")
    do gcloud container images delete $PREBUILD_SDK_CONTAINER_REGISTRY_PATH/beam_python_prebuilt_sdk@$digest --force-delete-tags --quiet || echo "Failed to remove prebuilt sdk container image"
  done

  echo "Removed the container"
}
trap cleanup_container EXIT

echo ">>> Successfully built and push container $CONTAINER"

cd sdks/python
SDK_LOCATION=$2

# Run ValidatesRunner tests on Google Cloud Dataflow service
echo ">>> RUNNING DATAFLOW RUNNER VALIDATESCONTAINER TEST"
pytest -o junit_suite_name=$IMAGE_NAME \
  -m="it_validatescontainer" \
  --show-capture=no \
  --numprocesses=1 \
  --timeout=900 \
  --junitxml=$XUNIT_FILE \
  --ignore-glob '.*py3\d?\.py$' \
  --log-cli-level=INFO \
  --test-pipeline-options=" \
    --runner=TestDataflowRunner \
    --project=$PROJECT \
    --region=$REGION \
    --sdk_container_image=$CONTAINER:$TAG \
    --staging_location=$GCS_LOCATION/staging-validatesrunner-test \
    --temp_location=$GCS_LOCATION/temp-validatesrunner-test \
    --output=$GCS_LOCATION/output \
    --sdk_location=$SDK_LOCATION \
    --num_workers=1 \
    --prebuild_sdk_container_base_image=$CONTAINER:$TAG \
    --docker_registry_push_url=$PREBUILD_SDK_CONTAINER_REGISTRY_PATH"

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

function cleanup_container {
  # Delete the container locally and remotely
  docker rmi $CONTAINER:$TAG || echo "Failed to remove container image"
  for image in $(docker images --format '{{.Repository}}:{{.Tag}}' | grep $PREBUILD_SDK_CONTAINER_REGISTRY_PATH)
    do docker rmi $image || echo "Failed to remove prebuilt sdk container image"
  done
  gcloud --quiet container images delete $CONTAINER:$TAG || echo "Failed to delete container"
  for digest in $(gcloud container images list-tags $PREBUILD_SDK_CONTAINER_REGISTRY_PATH/beam_python_prebuilt_sdk  --format="get(digest)")
    do gcloud container images delete $PREBUILD_SDK_CONTAINER_REGISTRY_PATH/beam_python_prebuilt_sdk@$digest --force-delete-tags --quiet || echo "Failed to remove prebuilt sdk container image"
  done

  echo "Removed the container"
}
trap cleanup_container EXIT

echo ">>> Successfully built and push container $CONTAINER"

cd sdks/python
SDK_LOCATION=$2

# Run ValidatesRunner tests on Google Cloud Dataflow service
echo ">>> RUNNING DATAFLOW RUNNER VALIDATESCONTAINER TEST"
pytest -o junit_suite_name=$IMAGE_NAME \
  -m="it_validatescontainer" \
  --show-capture=no \
  --numprocesses=1 \
  --timeout=900 \
  --junitxml=$XUNIT_FILE \
  --ignore-glob '.*py3\d?\.py$' \
  --log-cli-level=INFO \
  --test-pipeline-options=" \
    --runner=TestDataflowRunner \
    --project=$PROJECT \
    --region=$REGION \
    --sdk_container_image=$CONTAINER:$TAG \
    --staging_location=$GCS_LOCATION/staging-validatesrunner-test \
    --temp_location=$GCS_LOCATION/temp-validatesrunner-test \
    --output=$GCS_LOCATION/output \
    --sdk_location=$SDK_LOCATION \
    --num_workers=1 \
    --prebuild_sdk_container_base_image=$CONTAINER:$TAG \
    --docker_registry_push_url=$PREBUILD_SDK_CONTAINER_REGISTRY_PATH"

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

function cleanup_container {
  # Delete the container locally and remotely
  docker rmi $CONTAINER:$TAG || echo "Failed to remove container image"
  for image in $(docker images --format '{{.Repository}}:{{.Tag}}' | grep $PREBUILD_SDK_CONTAINER_REGISTRY_PATH)
    do docker rmi $image || echo "Failed to remove prebuilt sdk container image"
  done
  gcloud --quiet container images delete $CONTAINER:$TAG || echo "Failed to delete container"
  for digest in $(gcloud container images list-tags $PREBUILD_SDK_CONTAINER_REGISTRY_PATH/beam_python_prebuilt_sdk  --format="get(digest)")
    do gcloud container images delete $PREBUILD_SDK_CONTAINER_REGISTRY_PATH/beam_python_prebuilt_sdk@$digest --force-delete-tags --quiet || echo "Failed to remove prebuilt sdk container image"
  done

  echo "Removed the container"
}
trap cleanup_container EXIT

echo ">>> Successfully built and push container $CONTAINER"

cd sdks/python
SDK_LOCATION=$2

# Run ValidatesRunner tests on Google Cloud Dataflow service
echo ">>> RUNNING DATAFLOW RUNNER VALIDATESCONTAINER TEST"
pytest -o junit_suite_name=$IMAGE_NAME \
  -m="it_validatescontainer" \
  --show-capture=no \
  --numprocesses=1 \
  --timeout=900 \
  --junitxml=$XUNIT_FILE \
  --ignore-glob '.*py3\d?\.py$' \
  --log-cli-level=INFO \
  --test-pipeline-options=" \
    --runner=TestDataflowRunner \
    --project=$PROJECT \
    --region=$REGION \
    --sdk_container_image=$CONTAINER:$TAG \
    --staging_location=$GCS_LOCATION/staging-validatesrunner-test \
    --temp_location=$GCS_LOCATION/temp-validatesrunner-test \
    --output=$GCS_LOCATION/output \
    --sdk_location=$SDK_LOCATION \
    --num_workers=1 \
    --prebuild_sdk_container_base_image=$CONTAINER:$TAG \
    --docker_registry_push_url=$PREBUILD_SDK_CONTAINER_REGISTRY_PATH"

> Task :sdks:python:test-suites:dataflow:py37:validatesContainer
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:9ff043f37fa336a19a0defaca15f28e43732ff5e55ac6648a1b649ba42e0c64f
  Associated tags:
 - 20211021-181508212660865
Tags:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk:20211021-181508212660865
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk:20211021-181508212660865].
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk@sha256:9ff043f37fa336a19a0defaca15f28e43732ff5e55ac6648a1b649ba42e0c64f].
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:9511880b16c9d01d1c007f01445fdecdc89b0b8dde7b7a1a257136fc4cdbab0b
  Associated tags:
 - 7a8a9f69-2d8e-4e24-a7f4-a9361df298ae
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python37_sdk/beam_python_prebuilt_sdk:7a8a9f69-2d8e-4e24-a7f4-a9361df298ae].
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python37_sdk/beam_python_prebuilt_sdk@sha256:9511880b16c9d01d1c007f01445fdecdc89b0b8dde7b7a1a257136fc4cdbab0b].

> 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:a0721a3c253b2e14e26b1d0f2b3ce558be78c1cb42f40d5b9fd0edcb3fc71aa5
  Associated tags:
 - 20211021-181515247102321
Tags:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk:20211021-181515247102321
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk:20211021-181515247102321].
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk@sha256:a0721a3c253b2e14e26b1d0f2b3ce558be78c1cb42f40d5b9fd0edcb3fc71aa5].
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:868e213f248a37f0b18117eab976bc6c6244508a75f23809b0edc5020f18be63
  Associated tags:
 - 1fc3925f-b20e-4753-afc5-8114f8a38d1b
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python38_sdk/beam_python_prebuilt_sdk:1fc3925f-b20e-4753-afc5-8114f8a38d1b].
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python38_sdk/beam_python_prebuilt_sdk@sha256:868e213f248a37f0b18117eab976bc6c6244508a75f23809b0edc5020f18be63].

> 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:2a54b8a76eaee4ea44ceab122a5e740c137f2713ba00e30d46f7928aa050b399
  Associated tags:
 - 20211021-181511036837034
Tags:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk:20211021-181511036837034
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk:20211021-181511036837034].
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk@sha256:2a54b8a76eaee4ea44ceab122a5e740c137f2713ba00e30d46f7928aa050b399].
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:34ae141351ee47feaa0c8dc3ddf04fa3faeb886bd5fea033602c7b05a47223c7
  Associated tags:
 - 059985c8-6fdd-4dca-ba2c-5f7151d4bd06
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python36_sdk/beam_python_prebuilt_sdk:059985c8-6fdd-4dca-ba2c-5f7151d4bd06].
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python36_sdk/beam_python_prebuilt_sdk@sha256:34ae141351ee47feaa0c8dc3ddf04fa3faeb886bd5fea033602c7b05a47223c7].

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

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

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 #8394

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

Changes:


------------------------------------------
[...truncated 101.39 KB...]
    --docker_registry_push_url=$PREBUILD_SDK_CONTAINER_REGISTRY_PATH"

> 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:6f0bce04a704ca97ee842b57cea9cab36034a6e11ca7ffa9002efdc93419d981
  Associated tags:
 - 20211021-121518895853289
Tags:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk:20211021-121518895853289
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk:20211021-121518895853289].
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk@sha256:6f0bce04a704ca97ee842b57cea9cab36034a6e11ca7ffa9002efdc93419d981].
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:f321fc10b7d5bec3786ea6f1928e49bbfbb0f34e77f771654a022a0c54c4695c
  Associated tags:
 - 3f80cf61-6009-4d04-b744-419f0c143f0b
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python36_sdk/beam_python_prebuilt_sdk:3f80cf61-6009-4d04-b744-419f0c143f0b].
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python36_sdk/beam_python_prebuilt_sdk@sha256:f321fc10b7d5bec3786ea6f1928e49bbfbb0f34e77f771654a022a0c54c4695c].

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

> 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 0x7fda1d5fcf50>
container_image_name = 'us.gcr.io/apache-beam-testing/jenkins/prebuild_python37_sdk/beam_python_prebuilt_sdk:5f149dca-32cc-4d70-8199-2f1567bbf286'

    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 1410.59 seconds ===============
cleanup_container
Untagged: us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk:20211021-121516879950670
Untagged: us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk@sha256:faef2c82983d30eb52574f19315ba8e09d6250f95c22e11bd463263172e3e610
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:52567e6a-c1a4-420d-8080-29c0aee05238
Untagged: us.gcr.io/apache-beam-testing/jenkins/prebuild_python37_sdk/beam_python_prebuilt_sdk@sha256:c73c74b71ae445d113a9d775f825992d181c3f83c1245610468aeb2fd1f260ea
Deleted: sha256:ad908b182c610248a497255dbb7a6d17a29a280b1dbdf5b2f2be9dbef6c1212c
Deleted: sha256:250ecf4d38479acd5af7d9411c37e0dcb8704eb372fff804269cdc7035684ac7
Deleted: sha256:73015562faa3a4602bdd342c87a76e89281425558fb5d477bd7d1ef4f05ba844
Deleted: sha256:89d3d42c6a52ebbbb74a56c5f93e84d40494b73d12ac36fc2b0de58eabe36bb1
Deleted: sha256:091b0b85e4932a4392a1c3831487d0d2ba5f10c7189634663fa5abfa850e4f8e
Deleted: sha256:7b15d52bbc1d7e152ef7eda23a1f8b4a9a17210361990c7db005be4011b4d893
Digests:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk@sha256:faef2c82983d30eb52574f19315ba8e09d6250f95c22e11bd463263172e3e610
  Associated tags:
 - 20211021-121516879950670
Tags:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk:20211021-121516879950670
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk:20211021-121516879950670].
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk@sha256:faef2c82983d30eb52574f19315ba8e09d6250f95c22e11bd463263172e3e610].
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:c73c74b71ae445d113a9d775f825992d181c3f83c1245610468aeb2fd1f260ea
  Associated tags:
 - 52567e6a-c1a4-420d-8080-29c0aee05238
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python37_sdk/beam_python_prebuilt_sdk:52567e6a-c1a4-420d-8080-29c0aee05238].
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python37_sdk/beam_python_prebuilt_sdk@sha256:c73c74b71ae445d113a9d775f825992d181c3f83c1245610468aeb2fd1f260ea].
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:91590d7020dc35aa6b7f4fe2a7f425a798df517c2a8df43525f7305071f1f553
  Associated tags:
 - 20211021-121519277326126
Tags:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk:20211021-121519277326126
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk:20211021-121519277326126].
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk@sha256:91590d7020dc35aa6b7f4fe2a7f425a798df517c2a8df43525f7305071f1f553].
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:8b42284383fbcb0324b7167dc9aba32c0651a13ad3edb6677406eba02ba145b1
  Associated tags:
 - eb5c7db7-a5cd-4a33-a5f2-1c1fa437321f
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python38_sdk/beam_python_prebuilt_sdk:eb5c7db7-a5cd-4a33-a5f2-1c1fa437321f].
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python38_sdk/beam_python_prebuilt_sdk@sha256:8b42284383fbcb0324b7167dc9aba32c0651a13ad3edb6677406eba02ba145b1].

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

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

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

Publishing build scan...
https://gradle.com/s/2qn64ihktxero

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 #8393

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

Changes:

[noreply] [BEAM-13082] Re-use dataWriter buffer. (#15762)


------------------------------------------
[...truncated 111.85 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:py36: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.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 0x7f221fb5f860>
container_image_name = 'us.gcr.io/apache-beam-testing/jenkins/prebuild_python36_sdk/beam_python_prebuilt_sdk:fcf358c5-3924-4209-b57c-32f374563f38'

    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 1274.95 seconds ===============
cleanup_container
Untagged: us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk:20211021-061434677852563
Untagged: us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk@sha256:8315dffb11c6069f9474309562a18c59e18fc11b335dafb3dface690a9e023ee
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:7d4a5716-7a9d-43e2-bce7-e307758424d0
Untagged: us.gcr.io/apache-beam-testing/jenkins/prebuild_python36_sdk/beam_python_prebuilt_sdk@sha256:1dd38bf1a462a0075401cf65dc855922ba45b57fecccd6261c34f6d5dd7573ec
Deleted: sha256:5811cfe8bec2ddefeecc72fff880c9c6e897e5e39d4925446017854b38c8fe92
Deleted: sha256:e145aeec4c415d20c911ccf8c55314ede69e6b360298bea1c704299c3ab23619
Deleted: sha256:199ee13bc8a5e85ff055b1e1dbd7a95419e93b2b487bb92032bc96c367953da8
Deleted: sha256:e9544284c59622deb3e3edec29a6051d412b05ddda1e85493ddf7b615d1f4ee0
Deleted: sha256:98b093fedf63c2344360798c255da2850af9fd8fb44906bd2007209ee79017a3
Deleted: sha256:3afbead782537c4a2c2c317dea3e1911f17f9d340d77f088d49729321ab0a409
Digests:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk@sha256:8315dffb11c6069f9474309562a18c59e18fc11b335dafb3dface690a9e023ee
  Associated tags:
 - 20211021-061434677852563
Tags:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk:20211021-061434677852563
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk:20211021-061434677852563].
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk@sha256:8315dffb11c6069f9474309562a18c59e18fc11b335dafb3dface690a9e023ee].
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:1dd38bf1a462a0075401cf65dc855922ba45b57fecccd6261c34f6d5dd7573ec
  Associated tags:
 - 7d4a5716-7a9d-43e2-bce7-e307758424d0
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python36_sdk/beam_python_prebuilt_sdk:7d4a5716-7a9d-43e2-bce7-e307758424d0].
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python36_sdk/beam_python_prebuilt_sdk@sha256:1dd38bf1a462a0075401cf65dc855922ba45b57fecccd6261c34f6d5dd7573ec].
Removed the container

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

> Task :sdks:python:test-suites:dataflow:py37:validatesContainer
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:220d13bf215fd791b99c95cdfe4b0bc84848432c0f276f03bde6ece0378e209f
  Associated tags:
 - 20211021-061433776417400
Tags:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk:20211021-061433776417400
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk:20211021-061433776417400].
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.7_sdk@sha256:220d13bf215fd791b99c95cdfe4b0bc84848432c0f276f03bde6ece0378e209f].
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:b7eb52de4204b094a6b18fb499294d42b09c5420ad24e17aafabd99fef04beed
  Associated tags:
 - bd4830c7-4ff9-4463-a93c-3ec97b389d2d
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python37_sdk/beam_python_prebuilt_sdk:bd4830c7-4ff9-4463-a93c-3ec97b389d2d].
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python37_sdk/beam_python_prebuilt_sdk@sha256:b7eb52de4204b094a6b18fb499294d42b09c5420ad24e17aafabd99fef04beed].

> 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:dc3c6a191e666ebd841241ed7acef20cbd69393ff9689573d96ad03223fe46f1
  Associated tags:
 - 20211021-061440256577558
Tags:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk:20211021-061440256577558
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk:20211021-061440256577558].
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk@sha256:dc3c6a191e666ebd841241ed7acef20cbd69393ff9689573d96ad03223fe46f1].
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:736e8e358667e93120854a19ccedff714bdbb2a9661fe36e372e9684efa100f8
  Associated tags:
 - 1184c484-1669-4db3-9ef0-b566c0bf49b5
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python38_sdk/beam_python_prebuilt_sdk:1184c484-1669-4db3-9ef0-b566c0bf49b5].
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python38_sdk/beam_python_prebuilt_sdk@sha256:736e8e358667e93120854a19ccedff714bdbb2a9661fe36e372e9684efa100f8].

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

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

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

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

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 #8392

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

Changes:

[noreply] Add -XX:+AlwaysActAsServerClassMachine to Java SDK container

[moritz] adhoc: Minor update to flink runner docs

[noreply] [BEAM-11087] Add default WindowMappingFn from Main to Side Input


------------------------------------------
[...truncated 107.77 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 0x7f92d144d898>
container_image_name = 'us.gcr.io/apache-beam-testing/jenkins/prebuild_python36_sdk/beam_python_prebuilt_sdk:e2f67b5e-24b8-469f-a15d-acea93cdc2cd'

    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.24 seconds ===============
cleanup_container
Untagged: us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk:20211021-001451800227461
Untagged: us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk@sha256:dc7b9e77676ce47d971b9e81ef8f924d788be2103b33a21b60cc18ecf96c623f
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:4fb644b8-2069-494f-a04c-8c6dad229f5c
Untagged: us.gcr.io/apache-beam-testing/jenkins/prebuild_python36_sdk/beam_python_prebuilt_sdk@sha256:66275e7a79b0df79be5da10cb0940782651efdff836a68781a8084460d51b47a
Deleted: sha256:29cee70b7562cfb75f5255795aa443a6376a4f79752b5318cf963f4ae06861b3
Deleted: sha256:aa86b7fbef3ae25f28de29e99464950eef200c3db2c3ee14c5005175bf44b933
Deleted: sha256:d7ec18a0f7b66201ffd9745b38cc88f22bf7c6be7091c33faabf7634b69a2a25
Deleted: sha256:02e68957410a568611ffba851de63cd30a62721c0a339438efae5ceb9185fc4a
Deleted: sha256:b7d393d4d5699dc0a3ef812eaf7467b8c5c7c5e22477ea2a73fc6f2ee19f2eb6
Deleted: sha256:a85a5450dddf9fb6f1b7e565413d56aa532a60dfbc3c1759d703dfa723a768cb
Deleted: sha256:5073dd409401da66c317fbdee4695893bce1dec63ae05c686c98db61fe930d35
Deleted: sha256:bf4570e632dd73a1ddb8f2e05982304b65da87ff701308f4df2cb6f3713fbdb2
Deleted: sha256:e89e61120d46ac7ebdd9a87fdea6467e1b09630c5abe18053cfa13a023479a65
Deleted: sha256:96c67165877a3371a91210d676a6af5a03ca489bf4cf3ab07d479d00217cfaa4
Deleted: sha256:99544ec40510735cf8f4e162a327d8793072fc5e11ef2ca3440da820437c0e79
Deleted: sha256:1245954d4efd978d1173697d166aa8fdb4bca7f583807b4f1230109bb421e0f6
Deleted: sha256:fe08d06265490d6032cea70ea4ff894ec98924303b3abc978dd3eafcddf0ba97
Deleted: sha256:5454582e6c021e40c722b3a444beca517d5c3f0656e950ba4cd12db08087705a
Deleted: sha256:4f23ccb9177c6c2749d125d08788882460836765d5b24ef4e0d94ff9c0da33ef
Deleted: sha256:46ebbd63bcecf46d2abda1cf20c0cd75896f0af833428828cdca2051af124f14
Deleted: sha256:05221f797d6651876e58503b9dadfdb6918dbd6d0eefa2f4405e234cab7fd027
Deleted: sha256:dd1b186e5ee3de679dd53a50552f8180e4403580053283037eae886a1d6e59f2
Deleted: sha256:d4ee4f6eb5980cb899a953d3dd3fa37738d215c47ac4f2e0965cc5957237470c
Deleted: sha256:3aa46e9a4434fbf76eaa5d884b31de3cd2a9dbd07748110309b03e5d0ce2e656
Deleted: sha256:ebbb056b1d2e68f3e8b7f9d2bfd7372a68dda6aee8932b90bd3dcb574bce9784
Deleted: sha256:467414b38a38ac567ad4c895437b4081b21eb1d2254074cf307bfd7153ed5ad4
Deleted: sha256:472b130e65e5847654ab4876438b434b91588d445baa346ef2b7768d1a4527b5
Deleted: sha256:7ba745204aa7d8252f1cfcff03aca14714a1b5419032b88ec09333a6a66164bd
Deleted: sha256:96b7dea0848a491f6834e2b375d2b98cdc7fb68507dc84d3041c2cee20c6b4ef
Deleted: sha256:8639918e0c3667eb2694d8af919fa6c2b0e0321746c7c285ff19710d72ab5e77
Deleted: sha256:ce7d224044c8ab812b224a17b295bef3df7c3135e63fd2bb0c7ba427cf9df65d
Deleted: sha256:250318c0e46f4295735ca690b53036d95372cec9c1c43cf6921e32297d4796fb
Deleted: sha256:5925e173bb7f066e907c4af6ca165dde900c3c4acc9f2bdd9a4bd723013bdd76
Deleted: sha256:0d4276002b9cdf44daaa6e6800e9be1ad91d6abe4a343ed2becd4b578bd82df1
Deleted: sha256:74a90f9df849405243f1269f567b2f10ac0ec00f03e2e53842a12e0ed19c6659
Deleted: sha256:88a25aaed60a391c03f722124e62adb161bd0fcb871755c40f527cea5bc373a5
Deleted: sha256:2c2b6d664ea6ba95613fb5859d5445270266dd5ec3f5604cf1c71e8cad41d7e2
Deleted: sha256:87434988d5a533d22456cdafb37bcb6ef13e412ad93aa9f50f833784775646cb
Deleted: sha256:5a7490a9efced16971b824d1e1b72442b2267f60abbed4c491d9d5560c4ef780
Deleted: sha256:3fb20cb6820c9566fd45dbb0e1088ce70f889e1437ecfdd6ced547afef75a1f7
Deleted: sha256:2e683ddf22fb6779c10e1fce877759ad23aa5272e85dedf95323554988b01cbc
Deleted: sha256:22ee425af80694ac0e24df48d4531edbbfeedfc078e734a6587ded5093304859
Deleted: sha256:8a872c2b1d018dcad0cb5e4a2a7ff30f00a7dfe7f631b1a76bce51fb4715fc56
Deleted: sha256:0d85e84feb056b9a1a8f38e8e2faf5b7392ab2fca281fda781d8456fcf29f9a3
Deleted: sha256:8b121d6d876180616ccb02902b702d0c369dd198d951781e3068d4e347f697ef
Deleted: sha256:5758f95252161d743be082b567ff891557e00a092edb5b56ea0625fa87f7568e
Deleted: sha256:d3c94c6630b7363d0bb098bbb623c979fae8494bbc9249c95634ea21668af816
Deleted: sha256:8012b544a210c57f7ba00125446f52d63dd3de7174a4704ac23057a7ec091edf
Deleted: sha256:6d93dfb8e196a97dacdbf1fd20a3277199205ef3eb54108e97da1e8de44a0c5c
Deleted: sha256:ac030888dc9652c075dd4bbe81fd5311268e5630e4215786ff27fceec326f628
Deleted: sha256:895a5f3f248d12895509034ec93d39286d5ec8440e98166575ca591e5d5c4200
Deleted: sha256:93f7ceb1b7902ad9d7de4b48923862b073c88c14c2aab7cc7845a765fac96d0f
Deleted: sha256:0057117badf77f6cb5ee04292fba13ef37588cb0e96d66fe75245a488296c2bd
Deleted: sha256:5e1482191b308284dcd99aa335ebf97d2f134f98fb2c997fad6be3c28f5b4e45
Deleted: sha256:68a668c40e42e442f5433d70947113fd6fcc4ef96450ba474b0b2a8d0e240f9e
Digests:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk@sha256:dc7b9e77676ce47d971b9e81ef8f924d788be2103b33a21b60cc18ecf96c623f
  Associated tags:
 - 20211021-001451800227461
Tags:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk:20211021-001451800227461
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk:20211021-001451800227461].
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.6_sdk@sha256:dc7b9e77676ce47d971b9e81ef8f924d788be2103b33a21b60cc18ecf96c623f].
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:66275e7a79b0df79be5da10cb0940782651efdff836a68781a8084460d51b47a
  Associated tags:
 - 4fb644b8-2069-494f-a04c-8c6dad229f5c
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python36_sdk/beam_python_prebuilt_sdk:4fb644b8-2069-494f-a04c-8c6dad229f5c].
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python36_sdk/beam_python_prebuilt_sdk@sha256:66275e7a79b0df79be5da10cb0940782651efdff836a68781a8084460d51b47a].
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:3d8dbde23db1720b65ba896e5a26dd5926859413942536c3189850ab8312eddf
  Associated tags:
 - 20211021-001500841703341
Tags:
- us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk:20211021-001500841703341
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk:20211021-001500841703341].
Deleted [us.gcr.io/apache-beam-testing/jenkins/beam_python3.8_sdk@sha256:3d8dbde23db1720b65ba896e5a26dd5926859413942536c3189850ab8312eddf].
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:d4cd4787d6c45daa38c2941c87656a8e271cb595e4f15f3eb08643ff3419dbf8
  Associated tags:
 - 504f546f-8580-457c-9101-bbe3c78bff45
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python38_sdk/beam_python_prebuilt_sdk:504f546f-8580-457c-9101-bbe3c78bff45].
Deleted [us.gcr.io/apache-beam-testing/jenkins/prebuild_python38_sdk/beam_python_prebuilt_sdk@sha256:d4cd4787d6c45daa38c2941c87656a8e271cb595e4f15f3eb08643ff3419dbf8].

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

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

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