Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Failing Test]: XVR test flaky build python SDK container imager: "/target/launcher/linux_amd64/boot" not found #29220

Closed
1 of 16 tasks
Abacn opened this issue Oct 31, 2023 · 3 comments · Fixed by #29224 or #29256
Closed
1 of 16 tasks
Labels
awaiting triage bug cross-language done & done Issue has been reviewed after it was closed for verification, followups, etc. failing test flake P2 python tests

Comments

@Abacn
Copy link
Contributor

Abacn commented Oct 31, 2023

What happened?

Saw this a couple of times before.

e.g. https://ci-beam.apache.org/job/beam_PostCommit_XVR_Flink_PR/299/consoleFull

12:53:21 #2 [internal] load .dockerignore
12:53:21 #2 transferring context: 2B done
12:53:21 #2 DONE 0.5s
12:53:21 
12:53:21 #3 [internal] load metadata for docker.io/library/python:3.8-bullseye
12:53:21 #3 DONE 0.5s
12:53:21 
12:53:21 #4 [beam 1/5] FROM docker.io/library/python:3.8-bullseye@sha256:5598a0361e5a1e6fc0bcf942208ac47bf17b1865ea7767c2f1e6d572f7917736
12:53:21 #4 CACHED
12:53:21 
12:53:21 #5 [internal] load build context
12:53:21 #5 transferring context: 2.49MB 0.2s done
12:53:21 #5 DONE 0.3s
12:53:21 
12:53:21 #6 [beam 3/5] COPY target/apache-beam.tar.gz /opt/apache/beam/tars/
12:53:21 #6 CACHED
12:53:21 
12:53:21 #7 [beam 4/5] COPY target/launcher/linux_amd64/boot target/LICENSE target/NOTICE target/LICENSE.python /opt/apache/beam/
12:53:21 #7 ERROR: "/target/launcher/linux_amd64/boot" not found: not found
12:53:21 
12:53:21 #8 [beam 2/5] COPY target/base_image_requirements.txt /tmp/base_image_requirements.txt
12:53:21 #8 CANCELED
12:53:21 ------
12:53:21  > [beam 4/5] COPY target/launcher/linux_amd64/boot target/LICENSE target/NOTICE target/LICENSE.python /opt/apache/beam/:
12:53:21 ------
12:53:21 ERROR: failed to solve: failed to compute cache key: "/target/launcher/linux_amd64/boot" not found: not found

Issue Failure

Failure: Test is flaky

Issue Priority

Priority: 2 (backlog / disabled test but we think the product is healthy)

Issue Components

  • Component: Python SDK
  • Component: Java SDK
  • Component: Go SDK
  • Component: Typescript SDK
  • Component: IO connector
  • Component: Beam YAML
  • Component: Beam examples
  • Component: Beam playground
  • Component: Beam katas
  • Component: Website
  • Component: Spark Runner
  • Component: Flink Runner
  • Component: Samza Runner
  • Component: Twister2 Runner
  • Component: Hazelcast Jet Runner
  • Component: Google Cloud Dataflow Runner
@Abacn
Copy link
Contributor Author

Abacn commented Oct 31, 2023

The failed test has

Task :sdks:python:container:py38:copyLauncherDependencies NO-SOURCE

which means this copy job had no source, i.e. :sdks:python:container:goBuild not producing the launcher or it gets immediately deleted?

@Abacn
Copy link
Contributor Author

Abacn commented Nov 1, 2023

This is likely a gradle bug, see #23785 (comment)

It is now flaky on both Jenkins and GitHub Actions. It affects a couple of XVR jobs Flink,Spark,etc

A reproduce: https://ci-beam.apache.org/job/beam_PostCommit_XVR_Flink_PR/324/console

  • At gradle configuration time, configurations.pythonHarnessLauncher is indeed set:
13:04:47 > Configure project :sdks:python:container:py38
13:04:47 print----- /home/jenkins/jenkins-slave/workspace/beam_PostCommit_XVR_Flink_PR/src/sdks/python/container/build/target/launcher
13:04:48 System Go installation: /snap/bin/go is go version go1.16.15 linux/amd64; Preparing to use /home/jenkins/go/bin/go1.21.3
13:04:48 go1.21.3: already downloaded in /home/jenkins/sdk/go1.21.3
13:04:48 GOCMD=/home/jenkins/go/bin/go1.21.3
13:04:49 print+++++ /home/jenkins/jenkins-slave/workspace/beam_PostCommit_XVR_Flink_PR/src/sdks/python/container/build/target/launcher
  • Then, :sdks:python:container:goBuild indeed produced the binary:
13:05:39 > Task :sdks:python:container:goBuild
13:05:39 print:::::  /home/jenkins/jenkins-slave/workspace/beam_PostCommit_XVR_Flink_PR/src/sdks/python/container/build/target/launcher/linux_amd64/boot name:::: boot

However, sdks:python:container:py38:copyLauncherDependencies skipped as NO-SOURCE

13:05:39 > Task :sdks:python:container:py38:copyLauncherDependencies NO-SOURCE

which caused binary not copied into the folder for docker prepare

@Abacn
Copy link
Contributor Author

Abacn commented Nov 1, 2023

Possibly related to gradle/gradle#24368

@github-actions github-actions bot added this to the 2.53.0 Release milestone Nov 2, 2023
@damccorm damccorm added the done & done Issue has been reviewed after it was closed for verification, followups, etc. label Nov 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
awaiting triage bug cross-language done & done Issue has been reviewed after it was closed for verification, followups, etc. failing test flake P2 python tests
Projects
None yet
2 participants