Commit Graph

42 Commits (de4f29f1f5c456bb9ca7ae8d68b7fb20e00a88fd)

Author SHA1 Message Date
Jeff Grafton 28314c79ce Move hack/travis/install-etcd.sh to hack/ 2015-10-13 16:04:44 -07:00
Chao Xu 43fcb22427 shippable 2015-10-09 15:20:13 -07:00
Chao Xu ae1293418b move experimental/v1 to experimental/v1alpha1;
use "group/version" in many places where used to expect "version" only.
2015-09-24 15:32:11 -07:00
Eric Paris c50cad105c Check hack/verify-generated-swagger-docs.sh in CI
We weren't. And shockingly it's gotten out of date.
2015-09-19 18:37:15 -04:00
Chao Xu 9fc79e9d99 refactor testapi and test scripts to prepare for multiple API groups. 2015-09-04 18:01:32 -07:00
Jeff Grafton da0ab43b08 Save integration test results in junit-style XML report on Shippable 2015-09-03 17:28:29 -07:00
k8s-merge-robot fc5604e23f Merge pull request #13300 from soltysh/make_verify2
Auto commit by PR queue bot
2015-08-30 23:03:58 -07:00
Maciej Szulik 053b6731c0 Use make verify in Travis and Shippable instead of invoking a list of scripts by hand 2015-08-28 11:14:35 +02:00
Jeff Grafton 75294b7a38 Add option to save unit test results as JUnit XML for Shippable 2015-08-26 15:26:51 -07:00
Zach Loafman 86a10a142c Merge pull request #12950 from ixdy/coveralls
Enable reporting test coverage to Coveralls from Shippable and disable per-PR coverage
2015-08-21 11:45:55 -07:00
Jeff Grafton 6f548cf5be Enable reporting test coverage to Coveralls from Shippable
However, enable coverage collection only on merges - not on pull
requests.
2015-08-20 15:34:20 -07:00
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 9cfecb78df Remove more unnecessary cruft from shippable 2015-08-12 18:29:30 -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 da0d8102fc point shippable to new repository 2015-08-12 09:52:21 -07: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
Mike Danese fb02b33e99 fix build 2015-08-05 17:52:56 -07:00
Brendan Burns a546a2979c Merge pull request #11726 from caesarxuchao/fix-types-link
Auto commit by PR queue bot
2015-07-28 13:24:11 -07:00
Daniel Smith 3fc46a2f7f Merge pull request #11897 from brendandburns/shippable
Remove base image from shippable.yml, it's specified in project settings now.
2015-07-27 13:52:48 -07:00
Brendan Burns 0a20df671f Remove base image from shippable.yml, it's specified in project settings now. 2015-07-27 12:38:08 -07:00
Chao Xu 464385281b add a tool in cmd/ to check links in go file. Currently it's only used to check the links in api descriptions (pkg/api/.../types.go). 2015-07-24 20:21:16 -07:00
Mike Danese ae1c8e55ef Merge pull request #11737 from thockin/cleanup-remove-v1beta3
Remove v1beta3
2015-07-24 10:25:56 -07:00
Mike Danese a3dcf0bd61 move spammy notifications to #kubernetes-dev 2015-07-23 17:30:06 -07:00
Tim Hockin 1c3233a1d4 Remove v1beta3 2015-07-23 17:21:27 -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
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
devashish 7e2532c5a7 rebasing with latest master and updating shippable.yml 2015-03-25 14:34:45 -07:00
devashish 675a369682 adding shippable.yml 2015-03-25 14:30:18 -07:00