-
Notifications
You must be signed in to change notification settings - Fork 51
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
feat: add fallback domain names for openvpn experiment #1654
base: master
Are you sure you want to change the base?
Conversation
while working on this, I also gave more priority to possible oonirun descriptors passed in the command line. - Related: #2805
changed the logic after 1:1 with @hellais, ready for review |
} | ||
return defaultOONITargetURL(ip) + "&transport=tcp", nil | ||
return nil, fmt.Errorf("cannot find any usable endpoint") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this result in a hard failure of the test? Is there some way we can ensure that's not the case? For example we might want for certain runs in particular countries to not run the vpn tests and it would be ideal if that results in a noop as opposed to the test being considered a failure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if this function returns error, we simply return an empty targets list, see:
if inputs, err := pickOONIOpenVPNTargets(addrs); err == nil { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
see the comment below
e5411af
to
78ac661
Compare
To clarify, I've added a few more comments to the docstring of the Load() function. An error is ignored (logged now); returning the empty list (in case of all bogons) is equivalent of passing an empty input list to the experiment. @hellais: here I've pointed both domains to localhost in /etc/hosts, see:
To trace the execution path, and reason about it, I think the right place to go is the the call to In turn, inputprocessor.Run calls inputprocessor.run, which loops over the array of inputs. I think this ensures that an empty array runs the experiment zero times. |
while working on this, I also gave more priority to possible oonirun descriptors passed in the command line.
Checklist
Description
Add fallback domains for openvpn default endpoints to be probed.