-
Notifications
You must be signed in to change notification settings - Fork 746
Move task hashing logic to separate class #6572
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
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Ben Sherman <[email protected]>
✅ Deploy Preview for nextflow-docs-staging canceled.
|
| } | ||
|
|
||
|
|
||
| def 'should get bin files in the script command' () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this test has been removed. It doesn't seem to be related to TaskHasher.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Both of these tests were moved to the TaskHasherTest and refactored. This is because the bin scripts and task directive vars are only used to calculate the task hash.
I believe the only other place these methods are used is in the LinObserver, and that's only to preserve the hash components in the TaskRun lineage record
|
|
||
| } | ||
|
|
||
| def 'should get task directive vars' () { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as before, it doesn't seem to be related with task hasher.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bit against reshuffling code without a clear motivation.
|
The motivation is in the PR description |
This PR moves the task hashing logic from
TaskProcessorto a separate classTaskHasher