Skip to content

Split TravisCI build into one job per variant #373

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

Merged
merged 1 commit into from
Nov 5, 2019

Conversation

henrygab
Copy link
Collaborator

@henrygab henrygab commented Nov 4, 2019

Fixes #371

TravisCI imposes a per-job time limit. This limit is fixed and non-configurable for free accounts as 50 minutes. This limit is configurable but cannot exceed 120 minutes for enterprise / paid accounts.

The builds are currently taking approximately 75 minutes, building all samples for three distinct boards (variants) in a single job. Because 75 minutes is greater than 50 minutes, this prevents users with only a free account from validating their changes using TravisCI prior to submitting their pull requests.

This change also dramatically reduces the (wall-clock) time for validation of a successful build (from ~75 minutes down to ~30 minutes).

This change allows TravisCI integration for forks on
free accounts.  Those would otherwise fail, due to a
hard-coded and non-configurable 50 minute job limt
imposed by TravisCI.

This will also help avoid the 120 minute job limit
that applies to non-free accounts, which the current
builds are quickly approaching....
fail_count += 1
exit_status = -1

else: # no environment variable specified, so build all variants
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice that you keep the build all option, I usually run this locally before pushing when doing major changes.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I noticed that you checked for travis, and so I thought this might be the case. 👍

Copy link
Member

@hathach hathach left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you very much for helping us out. Travis build takes too long now, due to the high number of example sketches. This will help to speed up PR

@hathach hathach merged commit 229997e into adafruit:master Nov 5, 2019
@henrygab henrygab deleted the TravisBuildMatrix branch November 5, 2019 05:36
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.

[Bug] TravisCI builds fail due exceeding maximum time
2 participants