-
Notifications
You must be signed in to change notification settings - Fork 2k
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: inso collection runner #7700
feat: inso collection runner #7700
Conversation
6083765
to
db642a8
Compare
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.
Just added some minor comments.
const options = { | ||
reporter: defaultReporter, | ||
...__configFile?.options || {}, | ||
...commandOptions, |
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: just double check that command options will be overridden by the config file? Original I thought command options might have highest priority.
return process.exit(1); | ||
} | ||
|
||
const db = await loadDb({ |
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.
Probably we could be a bit defensive here and check loadDb
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.
I agree the db load logic is over complex I'm thinking of a better way to abstract it. Will follow up with a pr soon
logger.log(`Running request: ${req.name} ${req._id}`); | ||
const res = await sendRequest(req._id); | ||
logger.trace(res); | ||
if (res.status !== 200) { |
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: Just a todo item that we might check test results to decide if it is failed in the future.
inso run collection
future work
thoughts