GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — chore: update hermetic build docker volume usage by diegomarquezp · Pull Request #10770 · googleapis/google-cloud-java

Conversation

@diegomarquezp

@diegomarquezp diegomarquezp commented May 1, 2024 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Follow up of googleapis/sdk-platform-java#2615
The way we use the docker image changed with that pull request. Here we adapt to those changes.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@diegomarquezp
chore: update hermetic build docker volume usage
812d515
@diegomarquezp
diegomarquezp requested a review from a team May 1, 2024 17:36
diegomarquezp added 3 commits May 1, 2024 17:37
@diegomarquezp
remove redundant entrypoint sppecification
8255e65
@diegomarquezp
test config change
cbc2ec6
@diegomarquezp
fix docker image call
167850d
@diegomarquezp
diegomarquezp marked this pull request as draft May 1, 2024 17:42
diegomarquezp added 2 commits May 1, 2024 17:46
@diegomarquezp
add another test for config change
1d3caed
@diegomarquezp
chore: generate libraries at Wed May 1 05:54:59 PM UTC 2024
e01a95d
@diegomarquezp

diegomarquezp commented May 1, 2024

Copy link
Copy Markdown
Contributor Author

Confirmed locally that generation/hermetic_library_generation.sh worked:

Library postprocessing finished successfully
Regenerating root pom.xml
Regenerating gapic-libraries-bom
Configuration diff:
28c28
<     personnel. - test2
---
>     personnel. -test2
[update-library-generation-docker-volume-usage e01a95db362] chore: generate libraries at Wed May  1 05:54:59 PM UTC 2024
 2 files changed, 3 insertions(+), 3 deletions(-)
Enumerating objects: 9, done.
Counting objects: 100% (9/9), done.
Delta compression using up to 24 threads
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 486 bytes | 486.00 KiB/s, done.
Total 5 (delta 4), reused 0 (delta 0), pack-reused 0 (from 0)
remote: Resolving deltas: 100% (4/4), completed with 4 local objects.
To https://github.com/googleapis/google-cloud-java
   1d3caed6359..e01a95db362  update-library-generation-docker-volume-usage -> update-library-generation-docker-volume-usage
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

diegomarquezp added 5 commits May 1, 2024 17:58
@diegomarquezp
use current user
6e4eb24
@diegomarquezp
restore test changes
34577f8
@diegomarquezp
test change
c4014d7
@diegomarquezp
test change
60ef176
@diegomarquezp
restore test changes
30c697d
@diegomarquezp

diegomarquezp commented May 1, 2024

Copy link
Copy Markdown
Contributor Author

From https://github.com/googleapis/google-cloud-java/actions/runs/8913106957/job/24477945575?pr=10770

docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "--baseline-generation-config-path=/workspace/baseline_generation_config.yaml": stat --baseline-generation-config-path=/workspace/baseline_generation_config.yaml: no such file or directory: unknown.

This is because 2.39.0 has a different interface. We need to wait until 2.40 is released to perform this change

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

diegomarquezp added 3 commits May 1, 2024 18:18
@diegomarquezp
restore test changes 2
d065f89
@diegomarquezp
prepare for next release of library_generation
23fce07
@diegomarquezp
restore test changes 3
592204f
@diegomarquezp diegomarquezp added the do not merge Indicates a pull request not ready for merge, due to either quality or timing. label May 1, 2024
@diegomarquezp
diegomarquezp marked this pull request as ready for review May 1, 2024 18:20
JoeWang1127
JoeWang1127 reviewed May 1, 2024
View reviewed changes
Comment thread generation/new_client_hermetic_build/README.md
--target-library-names=<library_name if specified; otherwise api_shortname>
docker run --rm -u $(id -u):$(id -g) -v $(pwd):/workspace --entrypoint \
python gcr.io/cloud-devrel-public-resources/java-library-generation:latest \
/src/generate_repo.py generate \

@JoeWang1127 JoeWang1127 May 1, 2024

Copy link
Copy Markdown
Contributor

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.

Could you change this command to use entry_point.py because the cli in generate_repo.py will be removed soon.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
blakeli0
blakeli0 reviewed May 1, 2024
View reviewed changes
Comment thread generation/hermetic_library_generation.sh
-v /var/run/docker.sock:/var/run/docker.sock \
-e "RUNNING_IN_DOCKER=true" \
-e "REPO_BINDING_VOLUMES=-v ${repo_volumes}" \
-u "$(id -u):$(id -g)" \

@blakeli0 blakeli0 May 1, 2024

Copy link
Copy Markdown
Contributor

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.

I guess this is the command enables us to modify/delete the docker generated files?

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions

@diegomarquezp diegomarquezp May 3, 2024

Copy link
Copy Markdown
Contributor Author

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.

yes, including ownership takeover performed by the container

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@JoeWang1127

JoeWang1127 commented May 3, 2024

Copy link
Copy Markdown
Contributor

Included in #10758

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@diegomarquezp diegomarquezp closed this May 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@blakeli0 blakeli0 blakeli0 left review comments
@JoeWang1127 JoeWang1127 JoeWang1127 left review comments

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

do not merge Indicates a pull request not ready for merge, due to either quality or timing.

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@diegomarquezp @JoeWang1127 @blakeli0
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.