ACCESS-NRI / model-config-tests

Tests for checking model configurations
Apache License 2.0
0 stars 1 forks source link

Add Optional Additional Artifact Contents #67

Closed CodeGat closed 2 months ago

CodeGat commented 2 months ago

Background

This PR allows the option of adding additional paths from the repro-ci experiment run to the artifact. Used in https://github.com/ACCESS-NRI/access-om3-configs/pull/122

Testing

The PR

In this PR:

Closes #66

CodeGat commented 2 months ago

Might have to rethink a bit of this...rsyncs that give /some/archive/output000/MOM5_parameter_doc.* do not preserve the folder output000, it would instead dump the MOM5_parameter_doc.* in the root of the artifact, which might be a bit messy...see the last bit of https://github.com/ACCESS-NRI/model-config-tests/pull/67/files#diff-5be99750b9d23ced058ba14262f4d19aa19757167d7cbffe687d7def06ad2aedR160-R162

CodeGat commented 2 months ago

Maybe if I do a rsync --relative from $EXPERIMENT_LOCATION, it will preserve the archive/output000/MOM5_parameter_doc.* structure.

aidanheerdegen commented 2 months ago

Maybe if I do a rsync --relative from $EXPERIMENT_LOCATION, it will preserve the archive/output000/MOM5_parameter_doc.* structure.

Even better

https://askubuntu.com/a/552122

Just insert a dot /./ into the path where you want to break the path

CodeGat commented 2 months ago

Done it! :laughing: