-
Notifications
You must be signed in to change notification settings - Fork 72
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
Add info
airnode-deployer command
#1477
Conversation
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.
Did a quick look, I agree that cleanup is necessary, but can be done later.
const goDeploymentInfo = await go(() => deploymentInfo(args.deploymentId as string)); | ||
if (!goDeploymentInfo.success) { | ||
// eslint-disable-next-line functional/immutable-data | ||
process.exitCode = 1; |
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.
Isn't this too harsh? Will there be a message logged out?
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.
Yes, there will be https://github.com/api3dao/airnode/blob/deployment-info/packages/airnode-deployer/src/infrastructure/index.ts#L694
I think it should end up with the non-zero exit code when it can't find the deployment. It's the same thing as when you call docker inspect <ID>
with an invalid/non-existent ID.
consoleLog(`Airnode version: ${airnodeVersion}`); | ||
consoleLog(`Deployment ID: ${id}`); | ||
const tableString = table.toString(); | ||
const tableStringWithCurrent = tableString.replace(new RegExp(`(?<=${currentVersionId}.*?)\n`), ' (current)\n'); |
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.
👍
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.
2b27315
to
522c5e2
Compare
2a78011
to
f32cdcd
Compare
Close #1404
As I noted in the code, there will be some refactoring once #1473 is done (or rather as part of that)