googleapis / googleapis/google-cloud-java

[sdk-platform-java] Hermetic Build does not support `.OwlBot-hermetic.yaml` for _new_ standalone libraries

Đang mở
#12,382 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
priority: p3
Ngôn ngữ chính
Java
Star
2.1k
Fork
1.2k
Merge trung bình
1 ngày 23 giờ
Pull request đã merge (30 ngày)
154

Mô tả

_standalone == non-monorepo_

Inside an empty folder with a single `generation_config.yaml`, the generated library fails to be fully "unpacked" (part of postprocessing) due to the default `.OwlBot-hermetic.yaml` assuming a monorepo structure:

https://github.com/googleapis/sdk-platform-java/blob/49a7ae50071e75fe0d161a4eb9360a4fe4e6147b/hermetic_build/library_generation/templates/owlbot.yaml.monorepo.j2#L17

Where `module_name` is the monorepo folder (e.g. `java-alloydb`).

This results in the wrong folder structure:

```
hi on] diegomarquezp:test-new-library$ ls
total 44K
drwxr-x--- 5 diegomarquezp primarygroup 4.0K May 27 20:54 .
drwxr-x--- 75 diegomarquezp primarygroup 4.0K May 23 19:17 ..
-rw-r----- 1 diegomarquezp primarygroup 402 May 23 19:37 generation_config.yaml
drwxr-xr-x 2 diegomarquezp primarygroup 4.0K May 27 19:30 .github
drwx------ 7 diegomarquezp primarygroup 4.0K May 27 19:30 output
-rw-r--r-- 1 diegomarquezp primarygroup 1.1K May 27 19:30 owlbot.py
-rw-r--r-- 1 diegomarquezp primarygroup 8.8K May 27 19:30 README.md
-rw-r--r-- 1 diegomarquezp primarygroup 699 May 27 19:30 .repo-metadata.json
drwxr-xr-x 6 diegomarquezp primarygroup 4.0K May 27 19:30 v1alpha
-rw-r--r-- 1 diegomarquezp primarygroup 0 May 27 19:30 versions.txt
```

Notice the `v1alpha` folder. This folder is meant to be "unpacked" by the postprocessing workflow.

The expected output is similar to what we see in HW repos.

cc: @zhumin8

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.