Skip to content

Conversation

@eerii
Copy link
Contributor

@eerii eerii commented Nov 5, 2025

A recent change in tshark makes it emit timestamps in ISO 8601 format (https://gitlab.com/wireshark/wireshark/-/merge_requests/17273), which breaks the existing parser. Simplify the code to simply print the new timestamp as is.

The captured messages were not being filtered correctly by the devtools port, which could result in messy logs. The -f "tcp port ..." option filters the port, while -d "tcp.port==...,http" just specifies how the messages from that port should be treated.

Simplify the tshark command function and some variable names.

Testing: Using mach test-scripts.

A recent change in tshark makes it emit timestamps in ISO 8601 format
(https://gitlab.com/wireshark/wireshark/-/merge_requests/17273), which
breaks the existing parser. Simplify the code to simply print the new
timestamp as is.

The captured messages were not being filtered correctly by the devtools
port, which could result in messy logs. The `-f "tcp port ..."` option
filters the port, while `-d "tcp.port==...,http"` just specifies how the
messages from that port should be treated.

Simplify the tshark command function and some variable names.

Signed-off-by: eri <eri@igalia.com>
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Nov 5, 2025
@servo-highfive servo-highfive removed the S-awaiting-review There is new code that needs to be reviewed. label Nov 5, 2025
Signed-off-by: eri <eri@igalia.com>
@servo-highfive servo-highfive added the S-awaiting-review There is new code that needs to be reviewed. label Nov 5, 2025
@mrobinson mrobinson changed the title Devtools parser: use ISO 8601 timestamps and filter ports correctly tools: Use ISO8601 timestamps and filter ports correctly in the Devtools parser Nov 5, 2025
@mrobinson mrobinson added this pull request to the merge queue Nov 5, 2025
@servo-highfive servo-highfive added the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Nov 5, 2025
Merged via the queue into servo:main with commit 8433bda Nov 5, 2025
36 checks passed
@servo-highfive servo-highfive removed the S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. label Nov 5, 2025
@eerii eerii deleted the fix-devtools-parser branch November 10, 2025 11:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-awaiting-review There is new code that needs to be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants