-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
measurement with null test_keys #1002
Comments
Implemented this functionality and immediately found the corresponding failure:
There's clearly a need to investigate what could be producing this result. Perhaps the testing backend? |
We can reproduce this problem by running:
|
This issue is also likely related to #1101 |
This is the diff I used to reveal the problem: commit 3bf93a6301958bfdff75f8c6dea67ee48990ba40
Author: Simone Basso <[email protected]>
Date: Thu Feb 4 11:45:58 2021 +0100
fix(e2epostprocess): fail if we see nil test keys
Closes https://github.com/ooni/probe-engine/issues/1002
diff --git a/internal/cmd/e2epostprocess/main.go b/internal/cmd/e2epostprocess/main.go
index 06eacc4..337fb48 100644
--- a/internal/cmd/e2epostprocess/main.go
+++ b/internal/cmd/e2epostprocess/main.go
@@ -20,10 +20,11 @@ func fatalOnError(err error) {
// Measurement contains a OONI measurement.
type Measurement struct {
- ReportID string `json:"report_id"`
- Input *string `json:"input"`
- SoftwareName string `json:"software_name"`
- SoftwareVersion string `json:"software_version"`
+ ReportID string `json:"report_id"`
+ Input *string `json:"input"`
+ SoftwareName string `json:"software_name"`
+ SoftwareVersion string `json:"software_version"`
+ TestKeys interface{} `json:"test_keys"`
}
func main() {
@@ -57,6 +58,11 @@ func main() {
var entry Measurement
err = json.Unmarshal(measurement, &entry)
fatalOnError(err)
+ if entry.TestKeys == nil {
+ // See https://github.com/ooni/probe-engine/issues/1002
+ log.Printf("%s\n", string(measurement))
+ log.Fatal("found measurement with nil TestKeys")
+ }
log.Printf("processing: %+v", entry)
options := []string{
"run", Diff applied on top of ooni/probe-cli#220. |
It appears to be a misconfiguration issue on the domain front, because I am seeing the following error output:
|
@hellais yes, we're not forwarding the correct headers, I suspect! |
I've just fixed the configuration of the testing cloudfront. The issue is that it was not forwarding |
See ooni/backend#456 (comment). To debug, the idea is to modify the e2etesting repository such that the CI fails when such a measurement occurs, so we can investigate what happens.
The text was updated successfully, but these errors were encountered: