-
Notifications
You must be signed in to change notification settings - Fork 12
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
Don't wait for aborted builds forever #33
Conversation
375a9eb
to
86d07c9
Compare
timestamp = response.data.timestamp; | ||
} while (timestamp); | ||
|
||
const attributes = await describeBuild({ appSlug, buildSlug, client }); | ||
|
||
if (attributes.status > 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.
Will this fail if the break
on line 50 is hit before fetching the attributes? This file needs TypeScript for safety
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.
Great catch! I've fixed this. Turns out one of the unit tests was failing because of this ("following a successful build that has already finished prints the log output"), but somehow I didn't notice this. Would you mind if I convert this to typescript in a follow-up PR?
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 like the idea of a TypeScript conversion
timestamp = response.data.timestamp; | ||
} while (timestamp); | ||
|
||
const attributes = await describeBuild({ appSlug, buildSlug, client }); | ||
|
||
if (attributes.status > 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.
I like the idea of a TypeScript conversion
This jenkins build keeps watching the bitrise build that has been aborted hours ago:
https://jenkins.infra.lifeomic.com/blue/organizations/jenkins/life-extend/detail/PR-4050/46/pipeline/140