Closed Bug 1558764 Opened 2 years ago Closed 2 years ago

Log timestamp from page load recordings


(Testing :: Raptor, enhancement, P2)

Version 3


(firefox69 fixed)

Tracking Status
firefox69 --- fixed


(Reporter: davehunt, Assigned: ariakab)


(Blocks 1 open bug)



(2 obsolete files)

We'd like to increase the visibility of when page recordings are updated. A first step would be to extract and log the timestamp from the recording. For mitmproxy, the recordings have many matches for 'timestamp' so we should just find an appropriate and consistently available match to convert to date/time for logging.

Priority: -- → P2
Blocks: 1558055
Assignee: nobody → ariakab

This will require some changes in different places:

  1. Raptor studio:

Update raptor studio record plugin to save the current date in the json file it creates at record time.
This is added in pull:

the format of the json should be:

  "record_date": "",
  "protocol": {
    "": "HTTP/1.1"
  1. Update Alternate server replay to read the new json format
  2. In Raptor before starting the proxy check if the Json file is available and output the date the recording was made in the logs.

This will pave the way for accessing other information about the recordings

Pushed by
Log timestamp from page load recordings r=perftest-reviewers,Bebe
Pushed by
Fix linting failure. r=Bebe CLOSED TREE
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla69

The only message I have seen in the logs doing a quick manual inspection is:
16:41:04 INFO - raptor-main Info: Playback recording information not available.

Hi! Did you inspect a test that runs a recently recorded site? Old recordings don't have a json file from where the recording information is being taken.

Flags: needinfo?(mtrinkala)

No, I was just looking at the test runs associated with this patch as it is unclear to me what other runs should include this data. Is there a specific test in there I should be looking at with a recently recorded site?... In any case I will setup some automation to look at them all.

Flags: needinfo?(mtrinkala)

I think that there were no tests that had a json file, except the one for Netflix I guess. We started re-recording after this patch landed.

Here's an example from treeherder:

Attachment #9072130 - Attachment is obsolete: true
Attachment #9072788 - Attachment is obsolete: true
You need to log in before you can comment on or make changes to this bug.