Commit Graph

69 Commits

Author SHA1 Message Date
Saad Ali
ee89f55bb9 Merge pull request #12188 from eparis/godeps-clean-test
verify-godeps.sh script to make sure all of Godeps is easily reproducible
2015-08-19 16:57:22 -07:00
Eric Paris
823392e4e3 New test and commit hook to make sure changes to Godeps are reproducable
It is a pretty slow test (it downloads fresh) all of kube's Godeps, so only
run it when needed in pre-commit hook.

This also means that random changes to other non-kube repositories could
cause travis/shippable to just randomly stop working for all PRs which touch
Godeps after that moment (even though no changes have been made to Godeps by
us).  Examples would be things like other repos completely disappearing. Or
even the directory we include disappearing in master in the remote
project (even though the directory may exist at the commit we care
about) This is a bugwin godep, but it is a problem we have seen happen
with kube Godeps.
2015-08-14 14:21:43 -04:00
Eric Paris
b2fd56ca8e Remove goimports from travis and shippable
As it is not needed
2015-08-13 19:37:01 -04:00
Eric Paris
f54098fe00 Verify all flag usage does not use _
This works by defining two 'static' lists in hack. The first is the list
of all flags in the project which use a `-` or an `_` in their name. All
files being processed by verify-flags-underscore.py (or all files in the
repo if no filename arguments are given) will be searched for flag
declaration using a simple regex. Its not super smart. If a flag is
found which is not in the static list it will complain/reject the commit
until a human adds it to the list. If we do not keep a static list of
flags it takes >.2 seconds to find them 'all' at runtime. Since this is
run in pre-commit saving every part of a second helps.

After it finds all of the flags it runs all of the arguments (or all
files in repo if no arguments) looking for usage of those flags which
includes an `_`. There are lots of places where these are false
positives. For example we have a flag named oom-adj-score but the kernel
calls it oom_adj_score. To handle this we keep a second 'whitelist' of
lines which are allowed to use these flag names with an `_`.

Running the entire git repo looking for flags in every golang file and
looking in every single file for bad usage takes about 8.75 seconds.

Running it in the precommit hook where we only check things that changed
takes about .06 seconds.
2015-08-12 16:17:02 -04:00
Mike Danese
9c4811b9f5 export path in shippable and travis 2015-08-11 20:46:32 -07:00
CJ Cullen
72ff11778d Merge pull request #12553 from eparis/travis-shippable-cleanup
Update travis and shippable to have less needless cruft
2015-08-11 18:08:24 -07:00
Muhammed Uluyol
567bb15432 Generate conversions/deep-copies for experimental. Currently we make (and register) duplicate functions but this is benign. 2015-08-11 17:12:24 -07:00
Eric Paris
df988704db Update travis and shippable to have less needless cruft
It looks like there are places where things were needed for one command
were being just needlessly copied. Which made the files harder to
recognize what mattered and what didn't...
2015-08-11 17:42:46 -04:00
Eric Paris
3b7c39656c Split hack/{verify,update}-* files so we don't always go build
Right now some of the hack/* tools use `go run` and build almost every
time. There are some which expect you to have already run `go install`.
And in all cases the pre-commit hook, which runs a full build wouldn't
want to do either, since it just built!

This creates a new hack/after-build/ directory and has the scripts which
REQUIRE that the binary already be built. It doesn't test and complain.
It just fails miserably. Users should not be in this directory. Users
should just use hack/verify-* which will just do the build and then call
the "after-build" version. The pre-commit hook or anything which KNOWS
the binaries have been built can use the fast version.
2015-08-11 14:20:46 -04:00
Chao Xu
70a29c1a3a address comments, wait for travis pass 2015-07-27 21:08:02 -07:00
Mike Danese
a3dcf0bd61 move spammy notifications to #kubernetes-dev 2015-07-23 17:30:06 -07:00
Daniel Smith
283435ab12 run the mungedoc tests in travis 2015-07-17 18:01:58 -07:00
Daniel Smith
28236a25c9 make travis only run linters/auto-gen checkers. 2015-07-14 11:36:16 -07:00
Tim Hockin
8dff1b5e34 Verify generated stuff in CI 2015-07-13 10:09:14 -07:00
krousey
69d321e9de Merge pull request #9400 from nikhiljindal/travis
Start running v1 tests on travis and shippable
2015-06-09 10:12:23 -07:00
nikhiljindal
e76140ad28 Start running v1 tests on travis and shippable 2015-06-08 10:03:38 -07:00
nikhiljindal
a89d2da249 Adding a script to verify that swagger spec is updated 2015-06-08 04:04:57 -07:00
Kris
f4e2c738f6 Delete deprecated API versions
pkg/service:

There were a couple of references here just as a reminder to change the
behavior of findPort. As of v1beta3, TargetPort was always defaulted, so
we could remove findDefaultPort and related tests.

pkg/apiserver:

The tests were using versioned API codecs for some of their encoding
tests. Necessary API types had to be written and registered with the
fake versioned codecs.

pkg/kubectl:

Some tests were converted to current versions where it made sense.
2015-05-29 17:17:35 -07:00
nikhiljindal
fa9f864782 Adding a script to update etcd objects 2015-05-15 16:20:35 -07:00
nikhiljindal
0e9d7d1451 Fixing the number of times our unit tests are run 2015-05-13 09:56:13 -07:00
Hector Virgen
1a784cd489 Adds Karma to TravisCI
- Updates travis to run karma
- Adds some actual tests

Sample build success: https://travis-ci.org/djvirgen/kubernetes/jobs/61567253

Note: My branch is currently up to date with master but all the Go stuff is failing in Travis. Not sure why Go is failing, but the Karma stuff is running OK. I've also verified that when a Jasmine test fails, Travis will fail the build (see [this build](https://travis-ci.org/djvirgen/kubernetes/jobs/61567666) here).
2015-05-11 21:54:04 -07:00
Prashanth Balasubramanian
080bc5b3dd Configurable log levels for integration tests. 2015-04-23 18:12:48 -07:00
Yu-Ju Hong
faf47b6f0b Limit the number of concurrent tests in integration.go
Integration test often time out because the machine is loaded. Instead of
increasing timeout, this change hopes to address the issue by limiting the
number of tests running simultaneously.

Add a new flag in integration.go to specify the maximum number of concurrent
tests. Set the default in travis and shippable configurations to be 4.
2015-04-09 16:54:23 -07:00
Clayton Coleman
6830d0df0d Move gendocs earlier in the travis chain so users know they forgot a "standard" step 2015-03-26 13:56:01 -04:00
nikhiljindal
5e4ab8e045 Updating test-go.sh to be able to run tests twice - for v1beta1 and 3 2015-03-25 12:51:22 -07:00
Aly Fulton
6cd493849a Updated .travis.yml
This lets you use the Docker container infrastructure on Travis which has a much faster queue and performance. :)
2015-03-23 17:46:34 -04:00
Daniel Smith
936122bea0 test a travis change 2015-03-11 10:41:24 -07:00
Alex Mohr
389bf55966 Increase KUBE_TIMEOUT from 60s to 300s in .travis.yml. Our passing coverage runs
take 30-60s, but a number of them reach the 60s timeout and are
aborted.  It seems our Travis (and Shippable?) flakiness is
self-inflicted due to too-short timeouts?
2015-03-09 15:25:50 -07:00
Jeff Grafton
fbd11a1a23 Renable code coverage collection in unit tests, including on Travis.
When code coverage is not being collected, just issue a single 'go test'
command, as is already done. Go will internally parallize execution.

When code coverage is being collected, it is necessary to issue separate
'go test' commands for each package, since Go does not support
collecting coverage across packages. Using xargs -P will parallelize
these invocations, however, speeding up test execution.
The number of simultaneous processes to use can be specified with
KUBE_COVERPROCS.

Update Travis config to pass along the number of CPUs to use for running
tests.
2015-03-02 13:04:13 -08:00
Jeff Grafton
0f2e9dbac8 Revert "Use goveralls to report coverage results from Travis."
Revert "Produce a combined coverage report when running Go unit tests."

These caused unit tests to run very slowly, causing problems with
Travis.
2015-02-23 14:35:48 -08:00
Jeff Grafton
c669c63ff3 Use goveralls to report coverage results from Travis. 2015-02-19 17:49:42 -08:00
Clayton Coleman
a28d028cce Set max parallel builds on travis 2015-01-30 19:41:53 -05:00
Jeff Lowdermlk
250c948ae7 Autogenerate markdown docs for kubectl
Add test to verify generated docs are up to date.
2015-01-14 13:21:14 -08:00
Daniel Smith
6cd37637f5 Merge pull request #3365 from smarterclayton/test_coverage
Reenable coverage and race detection on Travis
2015-01-09 16:35:18 -08:00
Dawn Chen
386f23acff Remove go 1.2 from travis-ci 2015-01-09 15:03:24 -08:00
Clayton Coleman
dcd11761e7 Reenable Coverage and Race detection for travis and integration test 2015-01-09 13:16:30 -05:00
Dawn Chen
239f25c30a Remove dependency of podex from travis config 2015-01-06 15:42:12 -08:00
Daniel Smith
aca3a96246 Add go1.4; fix cover path for real. 2014-12-11 16:11:04 -08:00
Brian Grant
2ac8400cb2 Add API documentation pre-commit hook. 2014-11-20 20:25:44 +00:00
Brendan Burns
115869c0c7 Stop running benchmarks for every travis run. They're flaky. 2014-11-03 13:39:16 -08:00
Joe Beda
5d33ce46cc Rework hack/ and build/ directories.
* Rewrite a bunch of the hack/ directory with modular reusable bash libraries.
* Have 'build/*' build on 'hack/*'.  The stuff in build now just runs hack/* in a docker container.
* Use a docker data container to enable faster incremental builds.
* Standardize output to _output/{local,dockerized}/bin/OS/ARCH/*.  This regularized placement makes cross compilation work.
* Move travis specific scripts under hack/travis

With new dockerized incremental builds, I can do a no-op `make quick-release` in ~30s.  This is a significant improvement.
2014-11-01 17:56:41 -07:00
Johan Euphrosine
8f40d603f9 podex: add build to travis 2014-10-02 18:02:19 -07:00
Brendan Burns
a981ae5480 Merge pull request #1433 from lavalamp/fixVerifyFmt
Fix verify gofmt
2014-09-24 15:44:38 -07:00
Daniel Smith
78e7a18fd6 disable travis at tip 2014-09-24 15:34:49 -07:00
Daniel Smith
50eb2cf59c fix verify-gofmt's version detection 2014-09-24 14:25:21 -07:00
Clayton Coleman
9bbc572f36 Add benchmarks to Travis 2014-09-19 17:17:54 -04:00
Clayton Coleman
23307344ee Add round trip tests for default encoding
Turn down iterations a bit for speed
2014-09-16 17:27:59 -04:00
Brendan Burns
4a934427db Exclude vendored etcd. 2014-09-04 12:05:34 -07:00
Brendan Burns
3864cf453a Fix travis and cluster installs. 2014-09-04 10:31:09 -07:00
Brendan Burns
53e3bff464 Re-enable travis for Go tip 2014-09-04 09:56:28 -07:00