integrations / microsoft-teams

Bringing your code and work to the conversations you care about with the GitHub and Microsoft integration
449 stars 101 forks source link

Workflow subscriptions cards report incorrect duration on re-runs #354

Open jj-obrien opened 9 months ago

jj-obrien commented 9 months ago

Describe the bug Workflow subscriptions cards report incorrect duration of the workflow run on re-runs (Attempt #n)

To Reproduce Steps to reproduce the behavior:

  1. In team subscribe to specific workflow events only for a repository by running the following command: subscribe owner/repo workflows:{name:"worklfow-name"} followed by unsubscribe owner/repo issues pulls commits comments releases deployments
  2. Run the workflow
  3. Wait several hours / a day and run the workflow again
  4. See that the card in GitHub app in teams reports the Duration as the total time between start of the fist run and end of last run, resulting in absurd durations.

Expected behavior The duration on the card should match the total duration in GitHub UI

Screenshots Duration reported in the GitHub app integration in teams: Screenshot from 2024-02-12 10-50-39 Duration reported in the GitHub UI for the very same run: Screenshot from 2024-02-12 10-56-23

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context Add any other context about the problem here.