Commit Graph

244 Commits

Author SHA1 Message Date
Jeff Vance
0a08ab436c
Update format.sh 2018-08-27 15:25:24 -07:00
Jon Cope
238f896143 Update hack readme (#369)
* Update hack readme

* Added example

* Added some missing make targets
2018-08-24 12:15:39 -07:00
j-griffith
ee839f9884 Add checkformat to Makefile and add Travis check
This adds a super simple gofmt check for Travis to run.  If there are
files that gofmt recommends updating, the check fails, if there aren't
it passes.
2018-08-24 11:18:21 -06:00
Lukas Bednar
bb2ba122ce Add option to generate junit and polarion report (#342)
It is necessary to close a loop for QE life-cycle .

Signed-off-by: Lukas Bednar <lbednar@redhat.com>
2018-08-24 08:40:58 -07:00
Alexander Wels
62e477a143
Fix default CDI namespace typo (#364)
- The default was set to kubesystem, instead of kube-system.

Signed-off-by: Alexander Wels <awels@redhat.com>
2018-08-23 14:10:11 -04:00
Jon Cope
695a41b956 Unify redundant test scripts under test target and aliases (#353)
* Unify redundant test scripts under test target and aliases

Remove func tests from travis - unsupported env

* func tests wrap generic test script

* address comments
2018-08-22 16:08:18 -07:00
Alexander Wels
8c1bbd8067 Sync test http server to cluster in make cluster-sync (#356)
- Added init/http docker images creation during sync
- Sync init/http image to cluster registry.
- Start http server service during sync.
- Clean up old install before sync.

Signed-off-by: Alexander Wels <awels@redhat.com>
2018-08-22 08:53:53 -05:00
Jon Cope
5a19e55341 Colocated high level unit tests with their respective packages (#348) 2018-08-21 12:56:38 -07:00
Michael Henriksen
bcc2f5dfb9 fix make cluster-up hang (#358) 2018-08-21 08:30:57 -07:00
Jon Cope
7fda05c33e Run script in container (#351) 2018-08-17 10:01:06 -07:00
Scott Creeley
2a651c8725 rename in-docker with proper extension (#345) 2018-08-16 13:21:53 -07:00
Jon Cope
15891b5a52 Add containerized file host (http & s3) for functional testing (#315) 2018-08-16 10:10:15 -07:00
Scott Creeley
8f48078673 add e2e functional test steps to hack/README.md (#332)
* add e2e functional test steps

* addressing comments
2018-08-14 09:16:22 -07:00
David Vossel
5c43e6653e Update k8s 1.10.4 image to the updated version that has local storage enabled
Signed-off-by: David Vossel <davidvossel@gmail.com>
2018-08-13 17:13:12 -04:00
Alexander Wels
4ca250a167 funtional test framework (serial runs only)
- Added functional test framework similar to kubevirt one.
- Added basic sanity test to demonstrate framework.
- Updated some vendor packages.

Signed-off-by: Alexander Wels <awels@redhat.com>
2018-08-08 13:08:26 -04:00
David Vossel
0ad625636e Add hash to cluster images (#320)
* Add hash to cluster images

Signed-off-by: David Vossel <davidvossel@gmail.com>

* Set k8s-1.10.4 as default KUBEVIRT_PROVIDER

Signed-off-by: David Vossel <davidvossel@gmail.com>
2018-08-08 08:54:18 -07:00
Shiyang Wang
6c785ca40b [WIP] Provide a jinja2 template for the cdi manifest (#321)
* change build-manifests.sh to generate jinjia template

* change verbosity to string

* add file to travis
2018-08-07 08:46:25 -07:00
Alexander Wels
0eef382081 Add kubevirt cluster environment with sync
- Added ability to call make cluster-up to start a kubevirt cluster.
- Added ability to call make cluster-down to stop a kubevirt cluster.
- Added ability to call make cluster-sync to build CDI and sync it with
  the running cluster. This allows for testing during development.
- Added cli.sh and kubectl.sh just like kubevirt, in the CDI project to
  manipulate a running cluster.
- You can use k8s or OCP providers like kubevirt.

Signed-off-by: Alexander Wels <awels@redhat.com>
2018-08-03 09:54:44 -04:00
David Vossel
c6e33f1bea add namespace template parameter for cdi manifests (#305)
Signed-off-by: David Vossel <davidvossel@gmail.com>
2018-08-01 10:36:41 -07:00
Michael Henriksen
cde24a7cc7 move binaries to /usr/bin (#283) 2018-07-30 15:28:06 -07:00
Jeff Vance
000ae16c0c
size.Size() tests (#256)
* Size unit test

* add exceptions to Size functional tests

* rebase and minor

* exclude gz and xz

* fix unit tests

* no Printf in framework, new datastream subdir
2018-07-30 14:22:07 -07:00
Atul Bhosale
6e280690e5 [277] Change the name of the cloner startup script (#278)
* Change the name of the cloner startup script

* Change the name of the cloner startup script
2018-07-30 11:11:12 -07:00
Jonathan Cope
eb2190eb0d Add release note generator; tweak test coverage reporting, fixup docs (#276)
Tweak script, add make target

refactored makefile

removed redundanty vendor exclusion

Updated dev readme and release doc

eval when non-docker

review comment changes

spelling
2018-07-26 15:20:41 -07:00
Jonathan Cope
b37b2fed2c Add goveralls support to makefile (#274)
* Added goveralls support for CI

* Add goveralls install to build container

* Small fix for manifest generation

* Fix symlinking bins

* goveralls only for PR merges
2018-07-25 13:37:28 -07:00
Jon Cope
02e9d55138 fix make publish 2018-07-24 16:56:17 -05:00
Jon Cope
8f953afd96 Add dynamic manifest generation
Adds go templated controller manifest

Adds make targets for template generation

Removes hard coded version values

Enables template generation and publishing in CI
2018-07-24 16:19:20 -05:00
Jonathan Cope
75f2086cd8 Refactor makefile into scripts (#246)
* Use bash scripts to handle build workflow in docker containers

Added working docker builder/runner

Added _out to gitignore, stub script files

Added build and test scripts

small tweaks

Remove install opt, no need and create perm issues

Do func test for 'test' recipe, add non-docker option

Added QoL recipe alias, refactored test and build loops

centralized dockerfiles under hack/build/docker, renamed check/pre-check to format

Prefixed cmd/cdi- to main func files, added clean up scipt

simplified controller and importer dockerfiles, removed os/arch from bin name

DOCKER=1 - use docker

Travis and makefile changes

Don't go vet project in 'all' target (error in generated code), finished image builds

Small optimization to cdi-cloner image build

renamed build-images to build-docker; added make image aliases

testing version.sh

travis script calls new make targets, dropped version func (overly engineered for what we need)

deleted shift-tag.sh because it's just bad practice

Fix travis sed command

release :latest on PR merge

* Functional test refactoring

Removed test output files

renamed file vars to reflect purpose

Condensed test table definition, create tmp dir per test iteration

Refactored convertion funcs to write to a given directory, changed datastream test to create a temp dir and pass to file conversion, removed unused func

use randAlpahNum for tmp dir suffix, pepper in debug code

Must copy source file to tmp dir, then gzip/xzip, added debug code, package URL is deforming the file:// path by treating path[0] element as the server root

Fixed xz, gzip, tar, and noop test file generation; added copy of src to test dir if not present

Fixed typo in qemu-img cmd

Removed commented out line

* Added vet make target, updated hack/README

Make recipe call vet recipe

Updated hack/README

Makefile alias fix, clean all bin and _out except .gitignore, reverted 'vet' go_opt behavior

pulled 'vet' references from readme until it is fixed later

Don't delete the entire repo if _out doesn't exist,

* Moved clone script to cmd/ to make build flow smoother, now copy Dockerfiles to respective _out/cmd/* dirs for building container, delete old.Makefile

* Solidify build scripts

Text typos and comment additions

change cp glob to Dockerfile

Added push target to push images to non-kubevirt repo, updated README

Added license blocks, updated README with make vars, deleted empty script files

Added license to Makefile

Tweaked travis.yaml, removed version file (unused)

Fixed source paths

Fixing travis script sourcing

Moved shebang to line 1

Fixed shfmt install

Changed cloner script path in format.sh

Filter our vendor and pkg/client on go vet

Fix shfmt install in container, containerized clean target

Re-added Z opt to bind-mount

removed duplicate source line

Fix shfmt var expansion

formatting

Add non-docker cleanup optino
2018-07-20 09:25:53 -07:00
Jeff Vance
d34205168b
[WIP] introspect file formats (#220)
* wip: infer file formats

* add some of jon's code

* outer for loop; compiles

* closer... fix panic, rm processed known hdrs

* tar magic # fix

* nested rdrs,tar,qcow2 size work

* go-ify code

* size works for standalone test but not func-tests

* func test run

* gofmt and validate.go cleanup

* fix my bad rebase against 198

* review comments

* review2
2018-06-26 18:29:01 -07:00
David Vossel
7106bf73dc Conform with top level kubevirt github project (#198)
* Place cdi packages under the top level kubevirt.io project path

Signed-off-by: David Vossel <davidvossel@gmail.com>

* Change all references to cdi.io to cdi.kubevirt.io

Signed-off-by: David Vossel <davidvossel@gmail.com>

* Add go_import_path to travis config

Signed-off-by: David Vossel <davidvossel@gmail.com>

* update test package imports

Signed-off-by: David Vossel <davidvossel@gmail.com>
2018-06-21 15:44:52 -07:00
Jon Cope
7910c5ec8b Add 'g' to sed command for global substitutions 2018-06-18 12:41:38 -05:00
Jon Cope
e4471e023c exit 1 on user abort 2018-06-13 11:18:32 -05:00
Jon Cope
9cc1e12e4c Allow non-master branch as long as there is no diff with UPSTREAM master 2018-06-13 10:23:45 -05:00
David Vossel
fcab71d798 add generate scripts
Signed-off-by: David Vossel <davidvossel@gmail.com>
2018-06-11 21:58:15 -04:00
Jon Cope
263863e53e Release images after setting version 2018-06-05 10:09:08 -05:00
Jon Cope
aed0b1bbfa Fix automated git push 2018-06-04 17:39:28 -05:00
Jon Cope
b072264b3f Fix typo'd var 2018-06-04 16:40:46 -05:00
Jon Cope
7ff1ae7232 rename shift-version.sh to shift-tag.sh 2018-06-04 16:27:01 -05:00
Jon Cope
15ee9966fb Add Makefile recipe to increment verions
Update version from makefile
2018-06-04 16:10:21 -05:00
Jonathan Cope
9e4ca4cc91
Update auto-version.sh
use readlink -f instead of autoversion
2018-05-31 17:15:19 -05:00
Jon Cope
40f021e3d5 Parse git tag for ci skip string
Skip deployment on ci skip tag

move tag checking to before_deploy
2018-05-31 16:22:25 -05:00
Jon Cope
34f72fe173 Comments, pass TARGET_FILES instead of accessing global 2018-05-30 14:04:38 -05:00
Jon Cope
b3aa0fb542 Script to update version and git tags 2018-05-30 13:40:14 -05:00
Jon Cope
d9ced554c9 Moved dev section to hack 2018-03-02 12:57:00 -06:00
Jon Cope
7fe5195d8b restructure docs 2018-03-02 12:57:00 -06:00