Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat:
generate_library.sh
with postprocessing (#1951)
* feat: add * generate gapic and proto folder * refactor utilities * add an action to verify * checkout googleapis-gen * setup repo name * add commit hash of googleapis-gen * change secret * change token * change to git clone * change user name * add input list * include resources folder in main * remove grpc version in `*ServiceGrpc.java` * change destination path * compare generation result with googleapis-gen * fix type in diff command * checkout repo using checkout action * checkout repos as nested repo * sparse checkout googleapis * Revert "sparse checkout googleapis" This reverts commit 3d612f8. * change library * change step name * add a readme * make grpc version optional * make protobuf version optional * checkout master branch, rather than a commit hash * allow snapshot version of generator * download snapshot of generator parent pom * update README * download generator and grpc using mvn * change error message * add maven central mirror * add comments in utilities * add comments * add an integration test * fail fast if no file is found * do not delete google/ * get protobuf version from WORKSPACE * add instructions on download `google/` from googleapis * add comments * update description of `destination_path` * update comments * download dependencies using `curl` * increase download time * remove comment * add samples directory in readme * remove prerequisite about `proto_path` * add explanation in prerequisite * add example to generate showcase * add a comment * wip adaptations * add owlbot.py template * run owlbot docker image * fix consolidate config * move owlbot call to its own function * move postprocessing logic * prepare integration test for gh workflow * fix local dev script * post-merge fixes * fix test script and IT * fix parent poms * start fixing samples problem * fix samples folder transfer * cleanup, prepare IT workflow * cleanup ii, sparse clone monorepo * delete preserve script * clean unnecessary lines * infer owlbot sha * add template file * remove newline from owlbot template * chore: newline correction * use stderr for error messages * fix script documentation * function comments * quoting variables * format constant * fix sparse checkout of monorepo * include location to googleapis sparse clone * remove unnecessary parent pom setting * remove consolidate_config.sh * exclude changelog and owlbot copy files from diff check * fixes after merge * include .github in monorepo sparse clone * restore `set_parent_pom.sh` * restore `consolidate_config.sh` * correct parameter resolution * use separate variable for version * postprocessing to use separate versions * remove old IT file * post-merge fixes * enable post-processing by default * post-merge fixes * post-merge fixes * post merge fixes * add script to compare poms * post-merge fixes * post-merge fixes ii * fix pom comparison * include pre-existing poms before running owlbot * change owlbot-staging suffix folder to run owlbot.py * fix newline removal in owlbot.py * split git diff command * enable tests for HW libraries * generate all hw libs except bigtable * all libraries passing * fix unit tests * repo metadata json logic cleanup * remove new library scripts * fix googleapis-gen tests * fix post-processing it * magic empty commit * correct conflict string * use os agnostic string replacement * comments and cleanup on postprocessing * cleanup of IT * temp: use custom gapic library name * use owl-bot-copy * remove api_version logic * remove custom_gapic_name in favor of owl-bot-copy * remove unnecessary new library flag * fix folder name test * remove unnecessary util function * remove unnecessary utils script dir var * rename postprocessing folder, apply_current_versions comment * fix postprocessing comments * correct popd folder name to its variable name * unnecessary sed command * skip generation if more versions coming * do not stage previous versions in owl-bot-staging * do not use custom repo metadatas * reset workspace folder * remove unnecessary owlbot yaml copy * modify readme * expand README instructions * examples for both pre and post processing * exclude new library owlbot.py template * do not process HW libraries * success message, folder navigation fix * set git author * add docker to workflow * lint fix * custom docker step for macos * do not postprocess showcase * os-dependent pom comparison * add python to workflow * explicit python version * add debugging output for compare_poms * correct xargs for macos * remove debug checkpoints * clean compare_poms.py * concise else logic * infer destination_path * add generation times * remove unused transport and include_samples from postprocessing * use versions.txt at root of owlbot postprocessor fs * modify success message * remove unused version processing script * remove owlbot_sha and repo_metadata args * use built-in docker images * manual install of docker ii * manual install of docker iii * manual install of docker iv * manual install of docker v * manual install of docker vi * manual install of docker vii * manual install of docker viii * manual install of docker ix * versions.txt as an argument * fix exit code in time tracking * fix readme * remove unused options * fix macos docker install * do not use cask to install docker * test custom user id in docker run * correct time tracking entry * change postprocessing file structture * move helper postprocess funcs to utilities.sh * add unit tests for postprocess utils * remove repository_path * fix workspace creation logic * fix readme * transfer from workspace to destination path * include folder structure for p.p. libs in readme * omit pre-processed folders * omit package-info.java * fix documentation argument order * fix preparation of copy-code source folder * add unit test for copy_directory_if_exists * fix wrong args to cp * change test monorepo folder names --------- Co-authored-by: JoeWang1127 <[email protected]>
- Loading branch information