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: Negative time reported for "time label applied" measurement #283

Merged
merged 2 commits into from
May 19, 2024

Conversation

smstone
Copy link
Contributor

@smstone smstone commented May 17, 2024

Pull Request

Address case where negative time for "time label applied" is reported for labels that have at some point been both "labeled" and "unlabeled" on a given issue (#282)

Proposed Changes

Readiness Checklist

Author/Contributor

  • If documentation is needed for this change, has that been included in this pull request
  • run make lint and fix any issues that you have introduced
  • run make test and ensure you have test coverage for the lines you are introducing

Reviewer

  • Label as either fix, documentation, enhancement, infrastructure, maintenance, or breaking

@zkoppert
Copy link
Member

Thanks for finding and fixing this bug! I'm able to take a look at this on Tuesday and plan to review then unless @jmeridth has time before then.

@jmeridth
Copy link
Member

Tested locally and confirmed fix works. Thank you @smstone

On latest

Originally labelled:

Title URL Author Time to first response Time to close Time to answer Time spent in bug
[bug] test bug https://github.com/redacted/issues/6 jmeridth None None None 0:02:05.862071

Unlabelled:

Title URL Author Time to first response Time to close Time to answer Time spent in bug
[bug] test bug https://github.com/redacted/issues/6 jmeridth None None None 0:02:28

Relabelled:

Title URL Author Time to first response Time to close Time to answer Time spent in bug
[bug] test bug https://github.com/redacted/issues/6 jmeridth None None None -1 day, 23:59:01

With fix

Title URL Author Time to first response Time to close Time to answer Time spent in bug
[bug] test bug https://github.com/redacted/issues/6 jmeridth None None None 0:07:25.845498

@jmeridth jmeridth merged commit 7b1aa4c into github:main May 19, 2024
8 checks passed
jmeridth added a commit that referenced this pull request May 19, 2024
Release fails if pull request is from a fork currently because
we can't access the labels on the forked pull request which
helps us determine semver for next release.

Saw this after merging #283 (from a fork)

Add pull_request_target to release action workflow

I am not worried about the security implications with us checking
out the forked pull requests code.  This action only fires after
a merge to main so this means the pull request code has been reviewed
by a maintainer.  We are post-CI/code run.

Signed-off-by: jmeridth <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants