Closed
Bug 1148966
Opened 8 years ago
Closed 8 years ago
Use container based travis CI to improve test wait times
Categories
(Release Engineering :: General, defect)
Release Engineering
General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: rail, Assigned: rail)
References
Details
Attachments
(3 files)
1.33 KB,
patch
|
Callek
:
review+
rail
:
checked-in+
|
Details | Diff | Splinter Review |
1.65 KB,
patch
|
Callek
:
review+
rail
:
checked-in+
|
Details | Diff | Splinter Review |
6.35 KB,
patch
|
Callek
:
review+
rail
:
checked-in+
|
Details | Diff | Splinter Review |
Sometimes it takes a lot of time to get Travis test coverage. Per http://docs.travis-ci.com/user/workers/container-based-infrastructure/: * start up faster * allow the use of caches for public repositories Let's optimize a bit more!
Assignee | ||
Comment 1•8 years ago
|
||
Attachment #8585228 -
Flags: review?(bugspam.Callek)
Assignee | ||
Comment 2•8 years ago
|
||
Attachment #8585229 -
Flags: review?(bugspam.Callek)
Assignee | ||
Comment 3•8 years ago
|
||
* 3 chunks * s/pep8/flake8/
Attachment #8585230 -
Flags: review?(bugspam.Callek)
Assignee | ||
Comment 4•8 years ago
|
||
All 3 patches are tested in my user repos
Comment 5•8 years ago
|
||
Comment on attachment 8585230 [details] [diff] [review] faster_tests-buildbot-configs.diff Review of attachment 8585230 [details] [diff] [review]: ----------------------------------------------------------------- ::: .travis.yml @@ +5,5 @@ > +sudo: false > + > +env: > + global: > + - PIP_FIND_LINKS=file://$HOME/.cache/pip not sure I get why PIP_FIND_LINKS was needed... (even when looking at your git commit history and related travis jobs) ::: test-masters.sh @@ +27,5 @@ > + exit 1 > + fi > +} > + > +if [ "$1" == "--unittests-only" ]; then please allow (with deprecation warning) "run-tests" as the trigger for this at least in the short term. (I think some of the stuff armen was working on was using it) (I'm happy to be talked out of this opinion) @@ +63,5 @@ > FAILFILE=$(mktemp $WORK/tmp.failfile.XXXXXXXXXX) > atexit+=("rm $FAILFILE") > > # Construct the set of masters that we will test. > +MASTERS=($(./setup-master.py -l -j "$MASTERS_JSON" --tested-only --error-logs)) "$@" was used to allow us to specify additional input, I don't think anyone actively used it, but mentioning incase it will matter. ::: tox.ini @@ +45,5 @@ > + > +[flake8] > +exclude = .ropeproject,.tox > +show-source = True > +max-line-length=159 So I've been pretty much against flake8 (instead of seperate pyflakes and pep8 calls) until I read this hunk; including it in the tox.ini is *awesome* thanks.
Attachment #8585230 -
Flags: review?(bugspam.Callek) → review+
Comment 6•8 years ago
|
||
Comment on attachment 8585229 [details] [diff] [review] faster_tests-tools.diff Review of attachment 8585229 [details] [diff] [review]: ----------------------------------------------------------------- r+ if you undo the comment-out of irc notifs ::: .travis.yml @@ +7,3 @@ > env: > + global: > + - PIP_FIND_LINKS=file://$HOME/.cache/pip same find_links confusion @@ +46,5 @@ > + #template: > + #- "%{repository}#%{build_number} (%{branch} - %{commit} : %{author}): %{message}" > + #- "Change view : %{compare_url}" > + #- "Build details : %{build_url}" > + #- "Commit message : %{commit_message}" undo this hunk
Attachment #8585229 -
Flags: review?(bugspam.Callek) → review+
Comment 7•8 years ago
|
||
Comment on attachment 8585228 [details] [diff] [review] custom.diff Review of attachment 8585228 [details] [diff] [review]: ----------------------------------------------------------------- ::: .travis.yml @@ +5,5 @@ > +sudo: false > + > +env: > + global: > + - PIP_FIND_LINKS=file://$HOME/.cache/pip again .. ;-)
Attachment #8585228 -
Flags: review?(bugspam.Callek) → review+
Assignee | ||
Comment 8•8 years ago
|
||
(In reply to Justin Wood (:Callek) from comment #5) > Comment on attachment 8585230 [details] [diff] [review] > faster_tests-buildbot-configs.diff > > Review of attachment 8585230 [details] [diff] [review]: > ----------------------------------------------------------------- > > ::: .travis.yml > @@ +5,5 @@ > > +sudo: false > > + > > +env: > > + global: > > + - PIP_FIND_LINKS=file://$HOME/.cache/pip > > not sure I get why PIP_FIND_LINKS was needed... (even when looking at your > git commit history and related travis jobs) This is used by "pip install tox" inside .travis.yml. Tox ignores environment variables AFAIK. > ::: test-masters.sh > @@ +27,5 @@ > > + exit 1 > > + fi > > +} > > + > > +if [ "$1" == "--unittests-only" ]; then > > please allow (with deprecation warning) "run-tests" as the trigger for this > at least in the short term. (I think some of the stuff armen was working on > was using it) Let's ask Armen about this. I'd prefer to kill the old option without any deprecation warning (written in bash, eeew). > @@ +63,5 @@ > > FAILFILE=$(mktemp $WORK/tmp.failfile.XXXXXXXXXX) > > atexit+=("rm $FAILFILE") > > > > # Construct the set of masters that we will test. > > +MASTERS=($(./setup-master.py -l -j "$MASTERS_JSON" --tested-only --error-logs)) > > "$@" was used to allow us to specify additional input, I don't think anyone > actively used it, but mentioning incase it will matter. I didn't want to increase complexity of this script by separating its own options and options passed to to setup-master.py. This script should be used by CI only! :P > ::: tox.ini > @@ +45,5 @@ > > + > > +[flake8] > > +exclude = .ropeproject,.tox > > +show-source = True > > +max-line-length=159 > > So I've been pretty much against flake8 (instead of seperate pyflakes and > pep8 calls) until I read this hunk; including it in the tox.ini is *awesome* > thanks. Sweet! :)
Flags: needinfo?(armenzg)
Assignee | ||
Comment 9•8 years ago
|
||
Comment on attachment 8585228 [details] [diff] [review] custom.diff https://hg.mozilla.org/build/buildbotcustom/rev/6c2b489f2866
Attachment #8585228 -
Flags: checked-in+
Assignee | ||
Comment 10•8 years ago
|
||
Comment on attachment 8585229 [details] [diff] [review] faster_tests-tools.diff https://hg.mozilla.org/build/tools/rev/e4be714c4944
Attachment #8585229 -
Flags: checked-in+
Assignee | ||
Comment 12•8 years ago
|
||
Comment on attachment 8585230 [details] [diff] [review] faster_tests-buildbot-configs.diff https://hg.mozilla.org/build/buildbot-configs/rev/df468d1dc88d
Attachment #8585230 -
Flags: checked-in+
Assignee | ||
Updated•8 years ago
|
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Comment 13•8 years ago
|
||
In production: https://hg.mozilla.org/build/buildbot-configs/rev/df468d1dc88d
Comment 14•8 years ago
|
||
In production: https://hg.mozilla.org/build/buildbotcustom/rev/6c2b489f2866
Updated•5 years ago
|
Component: General Automation → General
You need to log in
before you can comment on or make changes to this bug.
Description
•