Skip to content

Commit

Permalink
refactor(minipipeline): tweak HTTP code (ooni#1414)
Browse files Browse the repository at this point in the history
The general idea here is to have more orthogonal metrics and to have
simpler code to implement them.

Part of ooni/probe#2634
  • Loading branch information
bassosimone authored and Murphy-OrangeMud committed Feb 13, 2024
1 parent 98d066b commit 784495d
Show file tree
Hide file tree
Showing 70 changed files with 486 additions and 875 deletions.
13 changes: 5 additions & 8 deletions internal/cmd/minipipeline/testdata/analysis.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,16 @@
"TLSHandshakeUnexplainedFailureDuringWebFetch": [],
"TLSHandshakeUnexplainedFailureDuringConnectivityCheck": [],
"HTTPRoundTripUnexpectedFailure": [],
"DNSExperimentFailure": null,
"DNSPossiblyNonexistingDomains": {},
"HTTPFinalResponseSuccessTLSWithoutControl": null,
"HTTPFinalResponseSuccessTLSWithControl": 4,
"HTTPFinalResponseSuccessTCPWithControl": null,
"HTTPDiffBodyProportionFactor": 1,
"HTTPDiffStatusCodeMatch": true,
"HTTPDiffTitleDifferentLongWords": {},
"HTTPDiffUncommonHeadersIntersection": {
"x-drupal-cache": true,
"x-generator": true
},
"HTTPFinalResponsesWithControl": {
"4": true
},
"HTTPFinalResponsesWithTLS": {
"4": true
}
"DNSExperimentFailure": null,
"DNSPossiblyNonexistingDomains": {}
}
13 changes: 5 additions & 8 deletions internal/cmd/minipipeline/testdata/analysis_classic.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,16 @@
"TLSHandshakeUnexplainedFailureDuringWebFetch": [],
"TLSHandshakeUnexplainedFailureDuringConnectivityCheck": [],
"HTTPRoundTripUnexpectedFailure": [],
"DNSExperimentFailure": null,
"DNSPossiblyNonexistingDomains": null,
"HTTPFinalResponseSuccessTLSWithoutControl": null,
"HTTPFinalResponseSuccessTLSWithControl": 4,
"HTTPFinalResponseSuccessTCPWithControl": null,
"HTTPDiffBodyProportionFactor": 1,
"HTTPDiffStatusCodeMatch": true,
"HTTPDiffTitleDifferentLongWords": {},
"HTTPDiffUncommonHeadersIntersection": {
"x-drupal-cache": true,
"x-generator": true
},
"HTTPFinalResponsesWithControl": {
"4": true
},
"HTTPFinalResponsesWithTLS": {
"4": true
}
"DNSExperimentFailure": null,
"DNSPossiblyNonexistingDomains": null
}
Loading

0 comments on commit 784495d

Please sign in to comment.