-
Notifications
You must be signed in to change notification settings - Fork 54
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
fix(oonimkall): use richer-input-aware target loader #1620
Merged
Merged
Changes from 72 commits
Commits
Show all changes
76 commits
Select commit
Hold shift + click to select a range
4ea29ff
refactor: make TargetLoader using ExperimentBuilder
bassosimone 4beba37
x
bassosimone 775c836
x
bassosimone 4eb8147
x
bassosimone e38678d
x
bassosimone 06d300f
x
bassosimone d490448
x
bassosimone a97bcd8
dnscheck
bassosimone 1a57fd3
x
bassosimone c5b2d02
Merge remote-tracking branch 'origin/master' into issue/2607g
bassosimone 399cf78
x
bassosimone 34fe88f
x
bassosimone ed89561
x
bassosimone c9e55e7
x
bassosimone 68f806d
x
bassosimone 21baba0
x
bassosimone 6a86d43
x
bassosimone 8b710f6
cleanup(pkg/oonimkall): simplify test code
bassosimone c4f28d2
x
bassosimone a6bdeb7
x
bassosimone 066c888
Merge branch 'master' into issue/2607h
bassosimone 9c169e4
x
bassosimone c9c87a8
Merge branch 'issue/2607h' into issue/2607i
bassosimone 5b71682
x
bassosimone 6ba566c
Merge branch 'master' into issue/2607i
bassosimone f3c41bb
feat(oonirun): allow true JSON richer input
bassosimone 4f183bd
x
bassosimone c6e19fe
Merge branch 'master' into issue/2607i
bassosimone 52fe297
x
bassosimone b9390cf
x
bassosimone ca1cdc7
feat: correctly set options from richer input
bassosimone 45a18b7
x
bassosimone 50d1909
chore: add more tests for new code I wrote
bassosimone cf55bfb
x
bassosimone c6dacf7
x
bassosimone 7621643
x
bassosimone 4575f5e
x
bassosimone d1f243d
x
bassosimone 21c62db
fix: make sure with testing experiment config is always a struct
bassosimone b8d219b
x
bassosimone d49c4db
x
bassosimone eed4d02
x
bassosimone 0dd4e67
x
bassosimone 8f507eb
x
bassosimone 168e9bf
x
bassosimone bfc184f
x
bassosimone b94b224
Merge branch 'ri-multi-input' into ri-correctly-set-options
bassosimone eb94cc6
x
bassosimone 43ef9bf
x
bassosimone 6ca260c
x
bassosimone 653e54b
x
bassosimone c5a70e8
x
bassosimone 7f1a0c7
x
bassosimone bae5076
x
bassosimone 9eeb1aa
x
bassosimone 0005f1e
x
bassosimone 620d4f9
x
bassosimone 7b82000
x
bassosimone ddf00a7
x
bassosimone 5229771
Merge remote-tracking branch 'origin/master' into ri-correctly-set-op…
bassosimone 418ebbd
chore: update the living design document
bassosimone 68496c4
Merge branch 'master' into issue/2607i
bassosimone d3e3b09
Merge branch 'master' into issue/2607i
bassosimone 3aadc2a
chore: start addressing already-identified TODOs
bassosimone 206eec2
Merge branch 'ri-correctly-set-options' into issue/2607i
bassosimone 4ccbce3
doc: update the living design document
bassosimone 325cf08
doc: document changes in this pull request
bassosimone 5d8e033
Merge branch 'master' into issue/2607i
bassosimone c4675c5
doc: document the measurement algorithm
bassosimone 6f1c8e9
chore: attempt to upgrade all tests
bassosimone 59ee9ab
x
bassosimone 9fdc61f
x
bassosimone 5d34280
x
bassosimone d0f680a
x
bassosimone f736751
fix the test that was failing
bassosimone 536f423
reference open issues
bassosimone File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -215,10 +215,10 @@ var dnsCheckDefaultInput = []string{ | |
|
||
var stunReachabilityDefaultInput = stuninput.AsnStunReachabilityInput() | ||
|
||
// StaticBareInputForExperiment returns the list of strings an | ||
// staticBareInputForExperiment returns the list of strings an | ||
// experiment should use as static input. In case there is no | ||
// static input for this experiment, we return an error. | ||
func StaticBareInputForExperiment(name string) ([]string, error) { | ||
func staticBareInputForExperiment(name string) ([]string, error) { | ||
// Implementation note: we may be called from pkg/oonimkall | ||
// with a non-canonical experiment name, so we need to convert | ||
// the experiment name to be canonical before proceeding. | ||
|
@@ -239,7 +239,7 @@ func StaticBareInputForExperiment(name string) ([]string, error) { | |
// staticInputForExperiment returns the static input for the given experiment | ||
// or an error if there's no static input for the experiment. | ||
func staticInputForExperiment(name string) ([]model.ExperimentTarget, error) { | ||
return stringListToModelExperimentTarget(StaticBareInputForExperiment(name)) | ||
return stringListToModelExperimentTarget(staticBareInputForExperiment(name)) | ||
} | ||
|
||
// loadOrStaticDefault implements the InputOrStaticDefault policy. | ||
|
@@ -364,15 +364,6 @@ func (il *Loader) checkIn( | |
return &reply.Tests, nil | ||
} | ||
|
||
// fetchOpenVPNConfig fetches vpn information for the configured providers | ||
func (il *Loader) fetchOpenVPNConfig(ctx context.Context, provider string) (*model.OOAPIVPNProviderConfig, error) { | ||
reply, err := il.Session.FetchOpenVPNConfig(ctx, provider, "XX") | ||
if err != nil { | ||
return nil, err | ||
} | ||
return reply, nil | ||
} | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We can remove this function, since no-one else is using it. |
||
// preventMistakes makes the code more robust with respect to any possible | ||
// integration issue where the backend returns to us URLs that don't | ||
// belong to the category codes we requested. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
This function can become private because
./pkg/oonimkall
does not need it anymore.