Skip to content
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

Merged

Conversation

giuseppe-steduto
Copy link
Member

@giuseppe-steduto giuseppe-steduto commented Jan 18, 2024

  • 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

giuseppe-steduto added a commit to giuseppe-steduto/reana-ui that referenced this pull request Jan 18, 2024
…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.
giuseppe-steduto added a commit to giuseppe-steduto/reana-ui that referenced this pull request Jan 18, 2024
Copy link
Member

@mdonadoni mdonadoni left a 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

},
};

advanceTo(new Date(2024, 0, 18, 8, 50, 0));
Copy link
Member

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

giuseppe-steduto added a commit to giuseppe-steduto/reana-ui that referenced this pull request Jan 24, 2024
…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.
giuseppe-steduto added a commit to giuseppe-steduto/reana-ui that referenced this pull request Jan 24, 2024
giuseppe-steduto added a commit to giuseppe-steduto/reana-ui that referenced this pull request Jan 24, 2024
…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
giuseppe-steduto added a commit to giuseppe-steduto/reana-ui that referenced this pull request Jan 24, 2024
giuseppe-steduto added a commit to giuseppe-steduto/reana-ui that referenced this pull request Jan 25, 2024
…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
giuseppe-steduto added a commit to giuseppe-steduto/reana-ui that referenced this pull request Jan 25, 2024
Copy link
Member

@mdonadoni mdonadoni left a 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
giuseppe-steduto added a commit to giuseppe-steduto/reana-ui that referenced this pull request Feb 12, 2024
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 {} \;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
find . -name "*.sh" ! -path "./reana-ui/node_modules/*" -exec shellcheck {} \;
find . -name "*.sh" ! -path "./reana-ui/node_modules/*" -exec shellcheck {} \+

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See 7b5f29e

@mdonadoni mdonadoni merged commit 8913e4d into reanahub:master Feb 13, 2024
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

ui: workflow duration keeps changing for failed workflows
2 participants