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

Ignore skipped steps in stage duration computation #27

Merged

Conversation

namoscato
Copy link
Collaborator

Intermediate stage duration still incorporates a lastCompletedSlackStep within the current job as described in #11 (comment). This change excludes skipped steps from that set to mitigate this incorrect 0 seconds duration.

See List jobs for a workflow run response schema for other possible conclusion values:

  • success
  • failure
  • neutral
  • cancelled
  • skipped
  • timed_out
  • action_required

@shortcut-integration
Copy link

This pull request has been linked to Shortcut Story #14548: Fix intermediate deploy stage duration.

@namoscato namoscato merged commit b0fe81e into main Oct 2, 2022
@namoscato namoscato deleted the namoscato/sc-14548/fix-intermediate-deploy-stage-duration branch October 2, 2022 23:18
namoscato added a commit that referenced this pull request Oct 2, 2022
…ine into namoscato/sc-13901/configure-new-slack-deploy-notifications-schedule

* 'main' of github.com:namoscato/action-slack-deploy-pipeline:
  Ignore skipped steps in stage duration computation (#27)
namoscato added a commit that referenced this pull request Oct 24, 2022
…ine into dependabot/npm_and_yarn/date-fns-2.29.3

* 'main' of github.com:namoscato/action-slack-deploy-pipeline:
  Support schedule event; expose event icon (#28)
  Ignore skipped steps in stage duration computation (#27)
  Omit commit message descriptions (#23)
  Move to Fieldguide organization (#20)
namoscato added a commit that referenced this pull request Oct 24, 2022
…ine into dependabot/npm_and_yarn/actions/core-1.10.0

* 'main' of github.com:namoscato/action-slack-deploy-pipeline:
  Bump date-fns from 2.29.2 to 2.29.3 (#15)
  Support schedule event; expose event icon (#28)
  Ignore skipped steps in stage duration computation (#27)
namoscato added a commit that referenced this pull request Oct 24, 2022
…ine into dependabot/npm_and_yarn/typescript-4.8.4

* 'main' of github.com:namoscato/action-slack-deploy-pipeline:
  Bump @actions/core from 1.9.1 to 1.10.0 (#25)
  Bump date-fns from 2.29.2 to 2.29.3 (#15)
  Support schedule event; expose event icon (#28)
  Ignore skipped steps in stage duration computation (#27)
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.

2 participants