Closed
Bug 1470532
Opened 7 years ago
Closed 7 years ago
fixed by commit classification is buggy
Categories
(Tree Management :: Treeherder, defect, P1)
Tree Management
Treeherder
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"
Reporter | ||
Comment 1•7 years ago
|
||
As an update, checked also by selecting fixed by commit and the commit from the "Recent commits" tab, it doesn't work either.
Reporter | ||
Comment 2•7 years ago
|
||
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.
Comment 4•7 years ago
|
||
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).
Comment 5•7 years ago
|
||
Production rollback completed a few minutes ago.
Reporter | ||
Comment 6•7 years 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"
Assignee | ||
Comment 7•7 years ago
|
||
Yeah, this one is pretty bad, alright. Working on this now.
Assignee: nobody → cdawson
Status: NEW → ASSIGNED
Flags: needinfo?(cdawson)
Comment 8•7 years ago
|
||
Assignee | ||
Updated•7 years ago
|
Attachment #8987702 -
Flags: review?(emorley)
Assignee | ||
Updated•7 years ago
|
Attachment #8987702 -
Flags: review?(sclements313)
Updated•7 years ago
|
Attachment #8987702 -
Flags: review?(emorley) → review+
Comment 9•7 years ago
|
||
Commit pushed to master at https://github.com/mozilla/treeherder
https://github.com/mozilla/treeherder/commit/b89cc161e24465a1a2c3166c28103eb644a95ce2
Bug 1470532 - Fix 'fixed by commit' classification (#3715)
Assignee | ||
Comment 10•7 years ago
|
||
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)
Assignee | ||
Comment 11•7 years ago
|
||
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
Reporter | ||
Comment 12•7 years ago
|
||
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)
Reporter | ||
Comment 13•7 years ago
|
||
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)
Comment 14•7 years ago
|
||
Assignee | ||
Updated•7 years ago
|
Flags: needinfo?(cdawson)
Attachment #8988589 -
Flags: review?(emorley)
Assignee | ||
Comment 15•7 years ago
|
||
Thanks for finding that Andreea. This latest PR should fix that.
Updated•7 years ago
|
Attachment #8988589 -
Flags: review?(emorley) → review+
Comment 16•7 years ago
|
||
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``.
Reporter | ||
Comment 17•7 years ago
|
||
(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
Updated•3 years ago
|
Component: Treeherder: Log Parsing & Classification → TreeHerder
You need to log in
before you can comment on or make changes to this bug.
Description
•