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

fix: don't remove obsolete files when synth raises exception #715

Merged

Conversation

SurferJeffAtGoogle
Copy link
Contributor

No description provided.

@google-cla google-cla bot added the cla: yes This human has signed the Contributor License Agreement. label Aug 6, 2020
@@ -216,6 +216,28 @@ def test_nothing_happens_when_disabled(source_tree, preserve_track_obsolete_file
assert os.path.exists("code/c")


def test_nothing_happens_when_exception(source_tree, preserve_track_obsolete_file_flag):
Copy link
Contributor

Choose a reason for hiding this comment

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

in the case of @google-cloud/logging what state would this leave us in once the run finishes, will we move towards being in a health up-to-date state with the metadata?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It will leave the old synth.metadata without updating it at all.

@SurferJeffAtGoogle SurferJeffAtGoogle merged commit 5f2f711 into googleapis:master Aug 6, 2020
@SurferJeffAtGoogle SurferJeffAtGoogle deleted the throw-no-obsolete branch August 6, 2020 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants