Commit Graph

34 Commits

Author SHA1 Message Date
Vishnu kannan
2eecea1353 Move presubmit to a make rule. Update docs to not use make all unless necessary.
Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-07-11 17:27:24 -07:00
Vishnu kannan
c1f3340830 update jenkins script to use make
Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-07-11 13:22:18 -07:00
Vishnu kannan
38ea12a533 update scripts and docs to not mention godep for builds
Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-07-11 12:40:05 -07:00
Tim St. Clair
35f7bc5ee7 Move mocks to testing package to remove +build tags
Some go tools (e.g. godef, gorename) don't handle +build tags well, so
I refactored some packages to remove the test tags from cAdvisor.
2016-07-06 14:15:43 -07:00
Tim St. Clair
2c69c0b634 Detect race conditions in jenkins integration tests
Injected a race into cadvisor.go and verified this caught it. Also, fix
the runner to grab the logs even when the tests don't complete.
2016-06-30 19:10:08 -07:00
Tim St. Clair
42dda5ef64 Run the integration tests with the race detector enabled
The integration test script was changed so that it aborts the testing
when the cAdvisor binary exits with a non-zero error code.

Also in this PR:
- clean up makefile to print more informative output
- change make release to build the release binary
2016-06-30 17:29:24 -07:00
Tim St. Clair
4b80217dcc Update jenkins script to match job configs
Update jenkins_e2e.sh to match the up-to-date configurations of the
cAdvisor jenkins PR-builder and CI jobs. Once this is merged, we can
update those jobs to call this script instead.
2016-06-30 13:29:41 -07:00
Tim St. Clair
306854a42d Also check for dirty releases 2016-06-29 18:27:07 -07:00
Tim St. Clair
151d4912dc Simplify cAdvisor release versioning
- Eliminate version/VERSION in favor of parsing git versions
- Enforce that releases are built against tagged versions
- Delete the broken release script, change `make release` to build the release
2016-06-29 18:27:07 -07:00
Vishnu kannan
7f6127620a Link cAdvisor statically.
Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-05-20 13:39:13 -07:00
Tim St. Clair
e1af50bb63 Add 'release mode' to build script 2016-05-12 15:09:48 -07:00
Tim St. Clair
d624bcde0c Fix build for go 1.6 2016-05-03 10:32:04 -07:00
Tim St. Clair
4bebcc0e1f Merge pull request #1245 from ainsleyc/separate-templates
Moved html template into assets directory
2016-05-02 16:33:36 -07:00
Tim St. Clair
b635018655 Switch to for faster incremental builds 2016-05-02 11:35:42 -07:00
Ainsley Chong
b7faf83410 Moved html template into assets directory
Reformated to .html file, and added build commands to assets.sh
2016-04-28 13:54:15 -07:00
Tim St. Clair
468b7d10e4 Merge pull request #1217 from ainsleyc/seperate-assets
Separated asset files into their own folder
2016-04-26 11:35:48 -07:00
Ainsley Chong
700c3d1d4d Separated asset files into their own folder with the correct file
formats, and added a script to build them into required .go file using
go-bindata.
2016-04-21 15:16:08 -07:00
Tim St. Clair
9790a0d3f4 Fix docker GetSpec to include image, labels, and env vars 2016-04-15 15:34:24 -07:00
Tim St. Clair
d434a4e534 Improve local cAdvisor integration test script
- Poll localhost:8080/healthz to wait for cAdvisor to start
- Set the script exit code to the test exit status
- Fix bash formatting
- Check for sudo access at the start
2016-04-08 15:54:06 -07:00
Seth Jennings
5b3a4f5070 fix build for rhel7, go 1.4 2016-02-26 23:52:22 -06:00
Vish Kannan
e9739af184 Merge pull request #1110 from timstclair/httptest
Stop leaking testing dependencies (and flags) in non-testing builds
2016-02-12 14:43:45 -08:00
Vishnu kannan
d36991fb42 Fix integration test script.
Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-02-11 15:23:02 -08:00
Tim St. Clair
e726534f1f Specify to include test utilities when testing 2016-02-11 14:08:17 -08:00
Vishnu kannan
dee717ab9d Adding a script that will run e2e tests on our jenkins builder.
The script should make updates to the test infra explicit.

Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-02-08 17:19:56 -08:00
Vishnu kannan
c2a30dba3e Added integration tests for the new api/v2.1/machinestats API.
Updated the v2 client along the way.

Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-01-15 16:05:58 -08:00
Vishnu kannan
c285b726ef Adding a local integration test option in Makefile.
Signed-off-by: Vishnu kannan <vishnuk@google.com>
2016-01-15 15:39:17 -08:00
Tim St. Clair
1e1736ebc9 Fix shell scripts boilerplate 2016-01-12 12:35:46 -08:00
Tim St. Clair
a352633a17 Fix check_boilerplate.sh for 2016
Copied the kubernetes boilerplate checker from
https://github.com/kubernetes/kubernetes/tree/master/hack/boilerplate,
and updated templates for cAdvisor.
2016-01-12 12:35:38 -08:00
Jimmi Dyson
ee73baeef7 Make Go 1.5 a requirement 2016-01-07 10:01:29 +00:00
Jimmi Dyson
990ee0d714 Fix for go 1.4 build compat 2015-11-23 11:30:47 +00:00
Jimmi Dyson
aa6f80814b Fix up release process 2015-10-23 13:24:32 +01:00
Jimmi Dyson
b310a4c228 Add make release target 2015-10-22 11:53:33 +01:00
Jimmi Dyson
cf43fd2556 Expose git revision as well as version in version info, add Makefile 2015-10-02 10:26:33 +01:00
Victor Marmol
d584698f12 Make a presubmit script to run all checkswq 2015-05-20 10:56:17 -07:00