Closed Bug 1307947 Opened 8 years ago Closed 7 years ago

Improve network event update stub generation

Categories

(DevTools :: Console, enhancement)

enhancement
Not set
normal

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: linclark, Unassigned)

References

(Blocks 1 open bug)

Details

Originally posted by:linclark see https://github.com/devtools-html/gecko-dev/issues/312 Network event update stubs are hard to generate. We have a good start in place in #283, but there are a couple of flaws still. 1. It's hard to come up with a unique name for update stubs. Currently we do a pretty good job, but there are still places where we use the same key for multiple stubs. 2. It's hard to determine how many packets we should listen for. Currently it's hardcoded to 8, but that number could easily change on the backend. Perhaps we should listen for a set amount of time in the stub generator instead. 3. Because the object being sent from the client is mutated in the client when new packets come in, it's likely that the stubs for certain messages are inaccurate... the object will have been mutated before we write it. We could potentially solve this by changing the client. In the client, we could break out the code that formats the packet in `_onNetworkEvent`/`_onNetworkEventUpdate`. Then it could be reused in the test. Eventually, I think we might want to rearrange the client so that it doesn't handle this at all, but that will impact net monitor so will require more planning.
Priority: -- → P2
Whiteboard: new-console
Flags: qe-verify-
Priority: P2 → P3
Whiteboard: new-console → [reserve-new-console]
Blocks: 1333131
Whiteboard: [reserve-new-console] → [reserve-console-html]
Priority: P3 → P4
Flags: qe-verify-
Priority: P4 → P2
Whiteboard: [reserve-console-html] → [newconsole-mvp]
Priority: P2 → P3
Whiteboard: [newconsole-mvp] → [newconsole-reserve]
We don't have issues with network update stubs anymore
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → INVALID
Priority: P3 → --
Whiteboard: [newconsole-reserve]
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.