diff --git a/.generator/cli.py b/.generator/cli.py index 3c65de148274..c4c2fe4c5bed 100644 --- a/.generator/cli.py +++ b/.generator/cli.py @@ -741,7 +741,7 @@ def _stage_gapic_library(tmp_dir: str, staging_dir: str) -> None: """ # For GAPIC, the generator output is flat in `tmp_dir` and includes all # necessary files like setup.py, client library, etc. - shutil.copytree(tmp_dir, staging_dir) + shutil.copytree(tmp_dir, staging_dir, dirs_exist_ok=True) def _generate_api( @@ -775,7 +775,9 @@ def _generate_api( _run_protoc_command(command, source) # 3. Determine staging location - staging_child_directory = _get_staging_child_directory(api_path, is_proto_only_library) + staging_child_directory = _get_staging_child_directory( + api_path, is_proto_only_library + ) staging_dir = os.path.join( output, "owl-bot-staging", library_id, staging_child_directory ) diff --git a/.generator/test_cli.py b/.generator/test_cli.py index f7047e181568..1a9b8e934759 100644 --- a/.generator/test_cli.py +++ b/.generator/test_cli.py @@ -1440,4 +1440,6 @@ def test_stage_gapic_library(mocker): _stage_gapic_library(tmp_dir, staging_dir) # Assertion: Check copytree was called exactly once with the correct arguments - mock_shutil_copytree.assert_called_once_with(tmp_dir, staging_dir) + mock_shutil_copytree.assert_called_once_with( + tmp_dir, staging_dir, dirs_exist_ok=True + ) diff --git a/.librarian/state.yaml b/.librarian/state.yaml index 4ad9cd01b2c4..256b364b7607 100644 --- a/.librarian/state.yaml +++ b/.librarian/state.yaml @@ -1756,3 +1756,24 @@ libraries: remove_regex: - packages/google-cloud-data-fusion tag_format: '{id}-v{version}' + - id: google-cloud-workflows + version: 1.18.2 + last_generated_commit: d300b151a973ce0425ae4ad07b3de957ca31bec6 + apis: + - path: google/cloud/workflows/executions/v1 + - path: google/cloud/workflows/executions/v1beta + - path: google/cloud/workflows/v1 + - path: google/cloud/workflows/v1beta + source_roots: + - packages/google-cloud-workflows + preserve_regex: + - packages/google-cloud-workflows/CHANGELOG.md + - docs/CHANGELOG.md + - docs/README.rst + - samples/README.txt + - scripts/client-post-processing + - samples/snippets/README.rst + - tests/system + remove_regex: + - packages/google-cloud-workflows + tag_format: '{id}-v{version}' diff --git a/scripts/configure_state_yaml/packages_to_onboard.yaml b/scripts/configure_state_yaml/packages_to_onboard.yaml index 1d9af82264e9..c80370c0df61 100644 --- a/scripts/configure_state_yaml/packages_to_onboard.yaml +++ b/scripts/configure_state_yaml/packages_to_onboard.yaml @@ -105,6 +105,7 @@ packages_to_onboard: [ "google-cloud-vpc-access", "google-cloud-webrisk", "google-cloud-websecurityscanner", + "google-cloud-workflows", "google-cloud-workstations", "googleapis-common-protos", ]