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

Pass build tags to unit tests #2618

Merged
merged 5 commits into from
Jul 22, 2017
Merged

Pass build tags to unit tests #2618

merged 5 commits into from
Jul 22, 2017

Conversation

bboreham
Copy link
Collaborator

On master, just after make:

$ time make tests
real	1m18.575s

On this branch:

$ time make tests
real	1m1.074s

Note this relies on weaveworks/build-tools#103

@bboreham
Copy link
Collaborator Author

I realised those timings were skewed by TestPipeRouter taking 10 seconds longer in the second run.

This turns out to be because the mock Consul inside that test has a 10-second timeout that it may or may not hit at the end of the test. I ran out of energy to fix that, alongside the 1-second timeout that it pretty much always hits retrying a closed connection.

Anyway, a fair comparison is 78 to 51 seconds.

@rade
Copy link
Member

rade commented Jun 26, 2017

I had a go at re-basing this but ran away.

bboreham added 5 commits July 13, 2017 16:08
74dc626 Merge pull request #108 from weaveworks/disable-apt-daily
b4f1d91 Merge pull request #107 from weaveworks/docker-17-update
7436aa1 Override apt daily job to not run immediately on boot
7980f15 Merge pull request #106 from weaveworks/document-docker-install-role
f741e53 Bump to Docker 17.06 from CE repo
61796a1 Update Docker CE Debian repo details
0d86f5e Allow for Docker package to be named docker-ce
065c68d Document selection of Docker installation role.
3809053 Just --porcelain; it defaults to v1
11400ea Merge pull request #105 from weaveworks/remove-weaveplugin-remnants
b8b4d64 remove weaveplugin remnants
35099c9 Merge pull request #104 from weaveworks/pull-docker-py
cdd48fc Pull docker-py to speed tests/builds up.
e1c6c24 Merge pull request #103 from weaveworks/test-build-tags
d5d71e0 Add -tags option so callers can pass in build tags
8949b2b Merge pull request #98 from weaveworks/git-status-tag
ac30687 Merge pull request #100 from weaveworks/python_linting
4b125b5 Pin yapf & flake8 versions
7efb485 Lint python linting function
444755b Swap diff direction to reflect changes required
c5b2434 Install flake8 & yapf
5600eac Lint python in build-tools repo
0b02ca9 Add python linting
c011c0d Merge pull request #79 from kinvolk/schu/python-shebang
6577d07 Merge pull request #99 from weaveworks/shfmt-version
00ce0dc Use git status instead of diff to add 'WIP' tag
411fd13 Use shfmt v1.3.0 instead of latest from master.
31d069d Change Python shebang to `#!/usr/bin/env python`

git-subtree-dir: tools
git-subtree-split: 74dc626b6de3ffb38591510f7cb7bc2db33743c4
@rade
Copy link
Member

rade commented Jul 19, 2017

@bboreham looks like your re-base didn't work :(

@bboreham
Copy link
Collaborator Author

@rade I am unclear what you are referring to. CI tests passed when I clicked 'rebuild'.

@rade
Copy link
Member

rade commented Jul 21, 2017

CI tests passed when I clicked 'rebuild'.

It wasn't obvious that was going to happen.

LGTM

@bboreham bboreham merged commit 3c16c41 into master Jul 22, 2017
@bboreham bboreham deleted the unit-test-tags branch September 30, 2017 17:55
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.

3 participants