Skip to content
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

Feature/mk 0.8.1 #6

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Open

Feature/mk 0.8.1 #6

wants to merge 18 commits into from

Conversation

hellais
Copy link
Collaborator

@hellais hellais commented Jan 10, 2018

This branch includes integration for IM tests and updates to the latest version of Measurement Kit

@hellais hellais mentioned this pull request Jan 10, 2018
@@ -161,6 +167,7 @@ const main = async ctx => {
await exit(0)
} else {
await run({camelName, argv})
await exit(0)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does this mean? Does exit(0) return a promise? /me is confused


let ipcEnabled = false

export const enableIpc = () => {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggestion, why not making it idempotent?

}

export const notify = ({key, value}) =>{
if (ipcEnabled === true && process.send) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Curiosity: when could process.send() be null? (I'd also be happy with a "google is your friend" answer)

const ctx = {
argv: argv_
argv: argv._

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does this mean?

},
"dependencies": {
"measurement-kit": "^0.1.0-alpha.5"
"measurement-kit": "^0.1.0-alpha.8"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thing that wonders me: the versioning of Node bindings is not aligned with the version of MK. Do you think that this may be a problem? FTR for Android we use ${mk_version}-${bindings-version}.


PKG_TMPL = """
{
"name": "ooni-{{nettest_dash_case}}",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh, nice, so dash-case :)

['HTTP Invalid Request Line', 'http-invalid-request-line'],
['HTTP Header Field Manipulation', 'http-header-field-manipulation'],
#['NDT', 'ndt'],
['Dash', 'dash'],

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: this might probably be DASH

done: Sequelize.BOOLEAN
done: Sequelize.BOOLEAN,
dataUsageUp: Sequelize.INTEGER,
dataUsageDown: Sequelize.INTEGER

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, better to keep them separate

countryPath: geoipCountryPath,
asnPath: geoipAsnPath,
}
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I understand this file correctly, you download files if missing. Maybe you can add the version number to the file so that you know if you have the latest version (or find some other strategy)?


// These don't exist in MK
whatsapp: makeNettestLoader('whatsapp'),
captivePortal: makeNettestLoader('captive-portal'),

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CaptivePortal actually exists. (Maybe it's not wrapped?)

@@ -1,3 +1,4 @@

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You can probably tweak the template substitution to avoid adding an empty line here

Copy link

@bassosimone bassosimone left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did a read of the whole diff as of 760038e leaving comments and asking questions. Overall, I really like what I see. Good work 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants