Closed Bug 1470532 Opened 7 years ago Closed 7 years ago

fixed by commit classification is buggy

Categories

(Tree Management :: Treeherder, defect, P1)

defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: apavel, Assigned: camd)

References

Details

Attachments

(3 files)

When trying to classify a failure with fixed by commit and adding the commit in the comment, the "fixed by commit" classification is no longer added automatically. Also, if i only add the commit in the comment and manually select fixed by commit, the save button is grayed out and i receive " Please classify this failure before saving"
As an update, checked also by selecting fixed by commit and the commit from the "Recent commits" tab, it doesn't work either.
Attached image fixed_by_commit.JPG
If we clear the classification, refresh the page, then redo the steps (pin the failure, add fixed by commit, select the commit from recent commits) then the classification is saved, however if we move on to an intermittent failure, after saving the fixed by commit failure, that fixed by commit remains active (see screenshot) when we pin the intermittent failure.
: emorley can you please take a look?
Flags: needinfo?(emorley)
I can't reproduce the issue in comment 0 (could you add the steps to reproduce as a complete list of numbered steps, with all steps from start to finish, rather than as sentences/paragraphs?). However I can reproduce the issue in comment 2. The comment 2 issue seems pretty bad, in that it presumably will lead people to classifying later jobs as the wrong thing, because the text field is pre-filled. This along with bug 1470554 seems worthy of rolling back today's deploy - which I'll do now. (On the plus side we now have this bug and bug 1470554 filed, which we didn't as of bug 1470517 comment 1 -- hopefully we're closer to having shaken out all of the bugs ready for re-deploying next week).
Blocks: 1450022
Flags: needinfo?(emorley) → needinfo?(cdawson)
Priority: -- → P1
Production rollback completed a few minutes ago.
(In reply to Ed Morley [:emorley] from comment #4) > I can't reproduce the issue in comment 0 (could you add the steps to > reproduce as a complete list of numbered steps, with all steps from start to > finish, rather than as sentences/paragraphs?). > 1. Click on a failure 2. Go to the failure classification and in the comment section paste a revision number (see the failure clasification does not automatically change to fixed by commit) 3. select "fixed by commit" manually, click on save -> "Please classify this failure before saving" 4. select "fixed by commit" and add a revision from "Recent commits", click save -> "Please classify this failure before saving"
Yeah, this one is pretty bad, alright. Working on this now.
Assignee: nobody → cdawson
Status: NEW → ASSIGNED
Flags: needinfo?(cdawson)
Attachment #8987702 - Flags: review?(emorley)
Attachment #8987702 - Flags: review?(sclements313)
Attachment #8987702 - Flags: review?(emorley) → review+
Comment on attachment 8987702 [details] [review] Link to GitHub pull-request: https://github.com/mozilla/treeherder/pull/3715 Clearing Sarah's review here since she's on vacation.
Attachment #8987702 - Flags: review?(sclements313)
Andrea-- This should deploy to our staging server shortly. Would you please test this there to verify the fix? Thanks!! https://treeherder.allizom.org/#/jobs?repo=mozilla-inbound
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Flags: needinfo?(apavel)
Resolution: --- → FIXED
Cameron: tested and everything is working properly, fixed by commit is selected automatically once you paste a revision number in the comment section. Also, the Save button is working.
Flags: needinfo?(apavel)
Cameron: apparently there is an issue where the save button is still inactive for fixed by commit 1. go to a failure, classify it as intermittent - the failure is saved 2. move on to the next failure, pin it, copy a revision and paste it in the comment section: Expected: the fixed by commit is automatically selected, save button is active Result: - the fixed by commit is automatically selected, the save button is inactive and returns: Please classify this failure before saving
Flags: needinfo?(cdawson)
Flags: needinfo?(cdawson)
Attachment #8988589 - Flags: review?(emorley)
Thanks for finding that Andreea. This latest PR should fix that.
Attachment #8988589 - Flags: review?(emorley) → review+
Commit pushed to master at https://github.com/mozilla/treeherder https://github.com/mozilla/treeherder/commit/dc96f82b9c5b965c5ec61e04b4634a4129b5a201 Bug 1470532 - Fix fixed by commit after intermittent (#3729) Ends up I had some cruft in there from the Angular days. Saving a ``classification`` in the state was wrong. We store the values for it (id and comment) in the state, then create a ``classification`` object based on those values for ``POST``ing back to the API during ``save``.
(In reply to Cameron Dawson [:camd] from comment #15) > Thanks for finding that Andreea. This latest PR should fix that. No problem. Checked and everything is fine now. thank you
Component: Treeherder: Log Parsing & Classification → TreeHerder
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: