-
Notifications
You must be signed in to change notification settings - Fork 26
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
[BUG] MERLIN_SPEC variables are not working properly #423
Comments
@bgunnar5, @lucpeterson, @koning: Any thoughts? |
Sorry for the delayed reply, I've been on vacation since last Wednesday. I just had a chance to look into this and I believe this could be changed in the
Since we pass in the filepath already, we could add a new special variable here called "ORIGINAL_FILEPATH" or something similar like so:
|
This filepath wouldn't have any of the variables expanded, it would just strictly point to the absolute path (I think it'd be the absolute path at least) of the file that was provided by the user |
I can see how that might present as a bug, but that is not the choice they made when implementing this feature. I think Dylan is asking for this:
But it will need to be changed in the code, and the basename may not be available: Line 371 in c8c6a44
|
@bgunnar5: No problem. It doesn't even have to be the full filepath (just as @koning pointed out). Especially since @koning: I presented it as a bug because I originally presented it as a new feature, but then @lucpeterson stated it may be a bug so I decided to report it here as well. I wasn't sure where the scripts for the MERLIN_SPEC variables were located, but having @bgunnar5 post them I can see that the original choice for implementing this feature was not what I was looking for. If that is the case, instead of changing the MERLIN_SPEC variables as you suggested (unless that's what everyone thinks is best) we can definitely go the other route and just add a new variable such as |
I think it’s a bug because you could have multiple yaml files with different base names but the same name in the yaml file. The new file would have that as its name. It’d have the correct contents but you wouldn’t know which file it came from |
As a piggy back. That was the main reason to why I originally proposed the new feature (and why Luc thinks it is a bug) is because, as Luc mentioned above, different specification files can have the same name in the description block and therefore in the merlin_info directory you wouldn't know which workflow the .orig, .partial, and .expanded files came from without investigating the contents. I'd rather just get the filename. |
@bgunnar5: Here's an idea (no matter if we make a new variable or change the MERLIN_SPEC variables) based on @koning's idea. What if we add |
These files are only for one specific study, so they are unique within a study even though they might not be unique across multiple studies. The study directory is unique. |
Even with the files being unique to a study I do think it makes more sense for these files to be named based on the original filename rather than the name of the study itself |
Yes I agree, I'm just clarifying the bug versus feature discussion. |
Bug Report
Describe the bug
$(MERLIN_SPEC_ORIGINAL_TEMPLATE)
,$(MERLIN_SPEC_EXECUTED_RUN)
, and$(MERLIN_SPEC_ARCHIVED_COPY)
do not rename the specification's filename with extension.orig.yaml
,.partial.yaml
, or.expanded.yaml
respectively. Instead, it is using thename:
given in thedescription:
block within the specification file.To Reproduce
Steps to reproduce the behavior:
In any workflow change the name in the description block to not be the filename of the specification file and type
echo <any of the Merlin variables given above>
in any of the workflow's steps.Expected behavior
In the output file for the step that contained the echo command, it should contain
<spec filename>.<orig or partial or expanded>.yaml
.Please answer these questions to help us pinpoint the problem
merlin run --local
mode, distributed or neither? BothPlease run
merlin info
and paste the results here:Merlin Configuration
config_file | /g/g15/cliche1/.merlin/app.yaml
is_debug | False
merlin_home | /g/g15/cliche1/.merlin
merlin_home_exists | True
broker server | amqps://cliche1:@rzrabbit.llnl.gov:5671/cliche1
broker ssl | True
results server | redis://mlsi:@rzrabbit.llnl.gov:6379/0
results ssl | False
Checking server connections:
broker server connection: OK
results server connection: OK
The text was updated successfully, but these errors were encountered: