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

chore: add a generation configuration #10357

Merged
merged 23 commits into from
Feb 20, 2024
Merged

Conversation

JoeWang1127
Copy link
Contributor

@JoeWang1127 JoeWang1127 commented Feb 9, 2024

In this PR:

  • Add a generation configuration file

To generate libraries in the config file,

  1. copy library_generation folder from sdk-platform-java main branch to google-cloud-java root directory.
  2. in the root of google-cloud-java, run
python library_generation/generate_repo.py generate --generation-config-yaml=/usr/local/google/home/joewa/workspace/google-cloud-java/generation_config.yaml --repository-path=.

Total generation time is 1 hour 4 mins on a gLinux Cloudtop.

Note that the path of the config file has to be absolute.

Four libraries (java-alloydb-connects, java-bigquery-data-exchange, java-securitycenter, java-shopping-merchant-inventories) are commented out because they have the same api-shortname with other libraries and it will cause conflicts when generating libraries with the same api-shortname (googleapis/sdk-platform-java#2494). I will remove the comment once the problem is fixed.

This is step 3 of milestone 2 in hermetic build project.

@JoeWang1127 JoeWang1127 marked this pull request as ready for review February 20, 2024 15:41
@JoeWang1127 JoeWang1127 requested a review from a team as a code owner February 20, 2024 15:41
@JoeWang1127 JoeWang1127 added the owlbot:run Add this label to trigger the Owlbot post processor. label Feb 20, 2024
@gcf-owl-bot gcf-owl-bot bot removed the owlbot:run Add this label to trigger the Owlbot post processor. label Feb 20, 2024
@suztomo
Copy link
Member

suztomo commented Feb 20, 2024

You should have run some command to generate this file. Would you write what command you ran in the pull request description?


- api_shortname: accesscontextmanager
name_pretty: Identity Access Context Manager
product_documentation: n/a
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

YAML has null.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is because product_documentation is n/a.

We should verify the correctness of a field for new libraries.

- license-checks.xml
- renovate.json
- .gitignore
libraries:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you explicitly define the order of the entries in libraries field? It will help where to add a new entry.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added as comment.

@JoeWang1127
Copy link
Contributor Author

You should have run some command to generate this file. Would you write what command you ran in the pull request description?

I created a script to generate the config file and I removed the script before sending the PR to review (3b763c3)

@suztomo
Copy link
Member

suztomo commented Feb 20, 2024

Thank you

@JoeWang1127 JoeWang1127 enabled auto-merge (squash) February 20, 2024 16:58
@JoeWang1127 JoeWang1127 merged commit 14b7346 into main Feb 20, 2024
30 of 31 checks passed
@JoeWang1127 JoeWang1127 deleted the chore/add-generation-config branch February 20, 2024 17:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants