-
Notifications
You must be signed in to change notification settings - Fork 5
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
Don't require globally unique output patterns #180
Comments
This would be a hilariously devious one to assign to a new starter as their first bug |
I've realised it's actually relatively straightforward to determine if any of a job's input files end up as part of its outputs and to make that an error, so we should be able to prevent this specific problem in future. I think we should abandon the uniqueness requirement for output patterns: it doesn't actually solve the problem and it leads to silly workarounds like having It would be nice to make overwriting the outputs of one action with those of another action an error, but we can't quite do that because when developing a pipeline it's common to rename actions, or split them up and move them around and want to support this kind of iterative workflow both locally and on the server. But maybe we could make it error to overwrite the outputs of another action with the same commit sha. This would catch problems in test and when doing a full |
yes
Could work... and it perhaps ties in with @bloodearnest's observations about the persistence of old output files and the need to rejig the base directories of respective output runs. |
related issue: #155 |
OK, so this task becomes:
|
Closing in favour of this option in our pipeline. |
This causes much confusion.
Excerpt from Slack:
Here's the project YAML in question: https://github.com/opensafely/hospital-disruption-research/blob/bd04ed2eca4f1beceaaf73fcd6778492d1e10c70/project.yaml
Here's the job succeeding the first time it's run:
http://jobs.opensafely.org/jobs/6ozte5mnve4pxxk7/
And failing the second:
http://jobs.opensafely.org/jobs/obn7q4gpxt7srdzb/
The text was updated successfully, but these errors were encountered: