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

Add fix and test for metadata enable false bug #427

Merged
merged 2 commits into from
Apr 4, 2024

Conversation

jo-basevi
Copy link
Collaborator

@jo-basevi jo-basevi commented Mar 15, 2024

This PR fixes the config option to disable metadata bug #426.
I’ve added a test that replicates the error.

Closes #426

@pep8speaks
Copy link

pep8speaks commented Mar 15, 2024

Hello @jo-basevi! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! 🍻

Comment last updated at 2024-04-02 23:27:24 UTC

@jo-basevi
Copy link
Collaborator Author

As discussed, with @aidanheerdegen, have modified the the config.yaml, metadata: enable: false to set the experiment name for archival to either to the legacy control directory name or the configured experiment value in config.yaml. So payu will effectively behave as it did before UUID+Branching changes, i.e. no branching and no updating/generating metadata with UUIDs.

@jo-basevi jo-basevi marked this pull request as ready for review April 2, 2024 23:40
Copy link
Collaborator

@aidanheerdegen aidanheerdegen left a comment

Choose a reason for hiding this comment

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

Trying to untangle the code paths for various possibilities does my head in. It seems fine, and I prefer the clearer logic of no metadata == legacy (no UUID).

@jo-basevi jo-basevi merged commit c5d82cc into payu-org:master Apr 4, 2024
7 checks passed
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.

Metadata/UUIDs disable config option bug
3 participants