googleapis / googleapis/google-cloud-java

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

未关闭
#12,382 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
priority: p3
主要语言
Java
星标
2.1k
派生
1.2k
平均合并
1 天 23 小时
30 天内合并 PR
154

描述

_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

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。