Closed
Bug 463323
Opened 17 years ago
Closed 17 years ago
create flatline effect in graphs by repeating last recorded value
Categories
(Webtools Graveyard :: Graph Server, defect, P2)
Webtools Graveyard
Graph Server
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: joduinn, Assigned: anodelman)
References
()
Details
Attachments
(1 file, 1 obsolete file)
|
5.69 KB,
patch
|
coop
:
review+
|
Details | Diff | Splinter Review |
For a given maintenance branch, and o.s., once we stop producing new data on that branch, can we keep repeating the last recorded value? This would give a "flatline" effect in the graphs, and would easily allow people to compare results between different branches even if one branch is not generating new test runs today.
This came up during discussions about mothballing the talos machines on maintenance branches. The concern was about how developers on FF3.next would easily do perf comparison in graph server between FF3.next and the most recent FF3.0 or FF2.0 values. Is this doable?
(Not sure if this the right component, please reassign as needed.)
Comment 1•17 years ago
|
||
Pretty sure this belongs in the Webtools::Graph Server component...
Component: Release Engineering: Talos → Graph Server
Product: mozilla.org → Webtools
QA Contact: release → graph.server
| Reporter | ||
Comment 2•17 years ago
|
||
Can we make this flatline be a dotted line, so people dont get confused between "real live data", and "extrapolated historical data" ?
| Assignee | ||
Comment 4•17 years ago
|
||
I think that we can approach this pretty simply by extending all graph lines to the end of the display box, perhaps in a different colour/dotted line to indicate that it doesn't correspond to actual test results. This would make life easier as we wouldn't have to differentiate between active/inactive boxes, we'd just extend all lines.
We wouldn't want this to appear as individual point, especially as that would break the interlink between discrete/continuous graphs that occurs when you right click on a given dot in a continuous graph.
| Reporter | ||
Comment 5•17 years ago
|
||
If making this "dotted line" change will take too much time, another quick option could be using some SQL:
- read the most recent value for a to-be-killed-machine
- insert new records with the same most-recent value. Repeat twice a day for 365 days into the future.
It doesnt give us a nice dotted line, but it does give us a quick solution in an already busy Q4.
Comment 6•17 years ago
|
||
(In reply to comment #5)
> If making this "dotted line" change will take too much time, another quick
> option could be using some SQL:
>
> - read the most recent value for a to-be-killed-machine
> - insert new records with the same most-recent value. Repeat twice a day for
> 365 days into the future.
>
> It doesnt give us a nice dotted line, but it does give us a quick solution in
> an already busy Q4.
+1 for this idea.
Comment 7•17 years ago
|
||
(In reply to comment #5)
> - read the most recent value for a to-be-killed-machine
- ensure that this most recent result for a given machine isn't bogus as they sometimes are
> - insert new records with the same most-recent value. Repeat twice a day for
> 365 days into the future.
- profit!!!
Comment 8•17 years ago
|
||
(In reply to comment #7)
> (In reply to comment #5)
> > - read the most recent value for a to-be-killed-machine
>
> - ensure that this most recent result for a given machine isn't bogus as they
> sometimes are
This can be solved by grabbing the most recent continuous value, which is averaged and contains bogus values removed.
| Assignee | ||
Comment 9•17 years ago
|
||
I've got most of a patch working that extends the first/last data points in a given set out to the edges of the graph. Just fixing that last few issues with snap-to and popups.
Bonus here is not having to mess with the db at all - it ended up being just as simple (if not simpler) to fix the display.
Assignee: nobody → anodelman
Priority: -- → P2
| Assignee | ||
Comment 10•17 years ago
|
||
This will need to do a little baking on stage but from testing on my home set up it correctly extends the lines of stopped machines - including adding information to the pop-up status when hovering over the graph.
Attachment #348919 -
Flags: review?(ccooper)
Comment 11•17 years ago
|
||
Comment on attachment 348919 [details] [diff] [review]
extend lines to edges of displayed graph
The results look good, and I see you've got the popup working since last night too.
How does this code deal with a single data point? My assumption is that for any machines we obsolete, we would only keep the final data point. Will this single point be correctly converted into a line? Lines like this scare me a bit in the single point scenario:
> + if (this.data[this.data.length-2] < startTime) {
Comment 12•17 years ago
|
||
(In reply to comment #11)
> How does this code deal with a single data point? My assumption is that for any
> machines we obsolete, we would only keep the final data point.
Also, we'll obviously have to revisit our data archiving/expiration procedures to make sure we're not just deleting all data past a certain date.
| Assignee | ||
Comment 13•17 years ago
|
||
Our archiving procedures removes discrete data older than 60 days, but the continuous data remains intact - so we shouldn't have to worry about these types of graphs disappearing. The continuous data is compact enough that I can't think of a good argument for throwing it away.
But yes, in case there is some pathological graph of a single point we should handle it correctly. :)
Updated•17 years ago
|
Attachment #348919 -
Flags: review?(ccooper) → review+
| Assignee | ||
Comment 14•17 years ago
|
||
Some issues cropped up during graphs-stage testing having to do with the styling of the line and the start/end points of the extended lines - especially when highlighting a subsection of a graph.
I have it up and running on graphs-stage so you can poke at it there.
Attachment #348919 -
Attachment is obsolete: true
Attachment #349095 -
Flags: review?(ccooper)
| Assignee | ||
Updated•17 years ago
|
Updated•17 years ago
|
Attachment #349095 -
Flags: review?(ccooper) → review+
| Assignee | ||
Comment 15•17 years ago
|
||
Comment on attachment 349095 [details] [diff] [review]
[Checked in]extend lines to edges of displayed graph, take 2
changeset: 137:559ff07b2e90
Attachment #349095 -
Attachment description: extend lines to edges of displayed graph, take 2 → [Checked in]extend lines to edges of displayed graph, take 2
Comment 16•17 years ago
|
||
So is this ready to be pushed to prod? I can merge the change to the production branch and we can probably get it out tomorrow.
| Assignee | ||
Comment 17•17 years ago
|
||
I had filed bug 466229 to get this pushed to production - but it sounds like that isn't the correct route to pushing code anymore.
If there is a production branch to be merged into than please do so, and if that bug is not necessary feel free to close it out.
Comment 18•17 years ago
|
||
(In reply to comment #17)
> I had filed bug 466229 to get this pushed to production - but it sounds like
> that isn't the correct route to pushing code anymore.
>
> If there is a production branch to be merged into than please do so, and if
> that bug is not necessary feel free to close it out.
Ok, I can merge the change to the production branch and I'll update the bug with the status.
Comment 19•17 years ago
|
||
Done.
| Assignee | ||
Comment 20•17 years ago
|
||
In production and looks good.
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Updated•9 years ago
|
Product: Webtools → Webtools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•