-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Fix precommit flink container #34250
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
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's use
us.gcr.io/apache-beam-testing/github-actionswhich is private and used for testing in other places. gcr.io/apache-beam-testing is a public repository publishing snapshot containersUh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Abacn When changing the repository from public gcr.io to private us.gcr.io, there is an error:
RuntimeError: Pipeline flink-tests-python-0317062609_6454c5c2-eb5f-4fed-9c51-3d7e2df3e1bf failed in state FAILED: java.io.IOException: Received exit code 125 for command 'docker run -d --mount type=bind,src=/var/lib/hadoop-yarn/.config/gcloud,dst=/root/.config/gcloud --network=host --env=DOCKER_MAC_CONTAINER=null us.gcr.io/apache-beam-testing/github-actions/beam_python3.9_sdk:2.64.0-SNAPSHOT --id=1-1 --provision_endpoint=localhost:40945'. stderr: Unable to find image 'us.gcr.io/apache-beam-testing/github-actions/beam_python3.9_sdk:2.64.0-SNAPSHOT' locallydocker: Error response from daemon: Head "https://us.gcr.io/v2/apache-beam-testing/github-actions/beam_python3.9_sdk/manifests/2.64.0-SNAPSHOT": denied: Unauthenticated request. Unauthenticated requests do not have permission "artifactregistry.repositories.downloadArtifacts" on resource "projects/apache-beam-testing/locations/us/repositories/us.gcr.io" (or it may not exist). See 'docker run --help'.Tried different methods, including the command
gcloud auth configure-docker us.gcr.io --quiet.The same error occurred when trying to push a snapshot to the private repository, but adding that command to the workflow YAML helped. But now the error happens in the test itself when it tries to pull the image. I ran that command on all Dataproc workers in theflink_cluster.shfile, including for theyarnuser, because based onsrc=/var/lib/hadoop-yarn/.config/gcloudin the error message, it'syarnthat runs the test. But that didn't help. It's strange because when I connect to these Dataproc workers locally, they can do a docker pull fromus.gcr.io, but when the workflow runs on GitHub Actions, the test fails. Can we, for now, keep using gcr.io(we use beam-sdk-pr instead of beam-sdk and delete the container after tests finish) and create an issue for further investigation of this since it might take longer than expected?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Understand, artifact registry permission is not directly related to test misconfig, thanks for investigation. Then please add
beam-sdk-prtobeam/.test-infra/tools/stale_dataflow_prebuilt_image_cleaner.sh
Line 25 in 1bf14ad
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Abacn Done. Also created ticket to track the
Unauthenticatedissue