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

Don't wait for aborted builds forever #33

Merged
merged 4 commits into from
Nov 3, 2020
Merged

Conversation

IevgenRagulin
Copy link
Contributor

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

timestamp = response.data.timestamp;
} while (timestamp);

const attributes = await describeBuild({ appSlug, buildSlug, client });

if (attributes.status > 1) {
Copy link
Member

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

Copy link
Contributor Author

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?

Copy link
Member

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

mdlavin
mdlavin previously approved these changes Nov 3, 2020
timestamp = response.data.timestamp;
} while (timestamp);

const attributes = await describeBuild({ appSlug, buildSlug, client });

if (attributes.status > 1) {
Copy link
Member

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

@coveralls
Copy link

coveralls commented Nov 3, 2020

Pull Request Test Coverage Report for Build 220

  • 6 of 6 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage remained the same at 100.0%

Totals Coverage Status
Change from base Build 206: 0.0%
Covered Lines: 114
Relevant Lines: 114

💛 - Coveralls

@IevgenRagulin IevgenRagulin merged commit a233ac6 into master Nov 3, 2020
@IevgenRagulin IevgenRagulin deleted the AbortedBuildsIssue branch November 3, 2020 19:22
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.

None yet

3 participants