-
Notifications
You must be signed in to change notification settings - Fork 34
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
fix(utils): update failed workflows duration using finished time #387
fix(utils): update failed workflows duration using finished time #387
Conversation
…nahub#387) Fix the way in which the duration of failed workflows is calculated, to use the time at which the run was finished rather than the current time. Closes reanahub#386.
fc87a2f
to
4300008
Compare
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.
Looks good!
What about the fix(utils)
scope? @tiborsimko
reana-ui/src/util.test.js
Outdated
}, | ||
}; | ||
|
||
advanceTo(new Date(2024, 0, 18, 8, 50, 0)); |
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.
minor: maybe we can use setSystemTime
of jest, to avoid a new dependency? Unless the new library has more features that we need https://jestjs.io/docs/jest-object#jestsetsystemtimenow-number--date
…nahub#387) Fix the way in which the duration of failed workflows is calculated, to use the time at which the run was finished rather than the current time. Closes reanahub#386.
4300008
to
3cbd481
Compare
…nahub#387) Fix the way in which the duration of failed workflows is calculated, to use the time at which the run was finished rather than the current time. Closes reanahub#386
3cbd481
to
4b0ff59
Compare
…anahub#387) Fix the way in which the duration of failed workflows is calculated, to use the time at which the run was finished rather than the current time. Closes reanahub#386
4b0ff59
to
032ada2
Compare
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.
LGTM, but it needs a rebase!
…anahub#387) Fix the way in which the duration of failed workflows is calculated, to use the time at which the run was finished rather than the current time. Closes reanahub#386
032ada2
to
e5a4af3
Compare
run-tests.sh
Outdated
@@ -29,7 +29,7 @@ check_commitlint () { | |||
} | |||
|
|||
check_shellcheck () { | |||
find . -name "*.sh" -exec shellcheck {} \+ | |||
find . -name "*.sh" ! -path "./reana-ui/node_modules/*" -exec shellcheck {} \; |
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.
find . -name "*.sh" ! -path "./reana-ui/node_modules/*" -exec shellcheck {} \; | |
find . -name "*.sh" ! -path "./reana-ui/node_modules/*" -exec shellcheck {} \+ |
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.
See 7b5f29e
e5a4af3
to
8913e4d
Compare
fix(utils): update failed workflows duration using finished time
Fix the way in which the duration of failed workflows is calculated, to
use the time at which the run was finished rather than the current time.
Closes ui: workflow duration keeps changing for failed workflows #386
ci(shellcheck): exclude node_modules from the analyzed paths