-
Notifications
You must be signed in to change notification settings - Fork 2
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
base: master
Are you sure you want to change the base?
Conversation
* feature/ipc: [chore] update yarn.lock Start fleshing out the IPC system
@@ -161,6 +167,7 @@ const main = async ctx => { | |||
await exit(0) | |||
} else { | |||
await run({camelName, argv}) | |||
await exit(0) |
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.
What does this mean? Does exit(0)
return a promise? /me is confused
|
||
let ipcEnabled = false | ||
|
||
export const enableIpc = () => { |
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.
Suggestion, why not making it idempotent?
} | ||
|
||
export const notify = ({key, value}) =>{ | ||
if (ipcEnabled === true && process.send) { |
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.
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._ |
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.
What does this mean?
}, | ||
"dependencies": { | ||
"measurement-kit": "^0.1.0-alpha.5" | ||
"measurement-kit": "^0.1.0-alpha.8" |
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.
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}}", |
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.
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'], |
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.
Nit: this might probably be DASH
done: Sequelize.BOOLEAN | ||
done: Sequelize.BOOLEAN, | ||
dataUsageUp: Sequelize.INTEGER, | ||
dataUsageDown: Sequelize.INTEGER |
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.
Yeah, better to keep them separate
countryPath: geoipCountryPath, | ||
asnPath: geoipAsnPath, | ||
} | ||
} |
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 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'), |
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.
CaptivePortal actually exists. (Maybe it's not wrapped?)
@@ -1,3 +1,4 @@ | |||
|
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.
You can probably tweak the template substitution to avoid adding an empty line here
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.
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 👍
This branch includes integration for IM tests and updates to the latest version of Measurement Kit