Commit Graph
43 Commits
Author SHA1 Message Date
Reinhard Nägele b5c3e51568 Enable testing charts with test values (#4157)
* Refactor and fix shellcheck issues

* Make constants readonly and uppercase

* Remove .editorconfig

* Enable testing charts with test values

* Remove dummy chart
2018-03-22 06:57:07 -07:00
Matt Farina 0acc15eb83 When tests fail fetching description of each pod (#4278) 2018-03-19 07:12:58 -07:00
Matt Farina bcb65dff67 This fixes two testing issues (#4237)
1. BUILD_NUMBER is deprecated and needed to be replaced for prow jobs
2. PULL_NUMBER is not available when batch jobs, including merges,
   are executed. Need a fallback to avoid errors.
2018-03-16 15:27:36 -04:00
Matt Farina b72d033b0b Upgrading to Helm 2.8.2 (#4214) 2018-03-16 14:17:00 -04:00
Matt Farina f96469be73 Fix CI failures and orphaned releases (#3581)
* Fixing orphaned helm deploys left by CI

The CI system has cases where helm delete and namespace cleanup
are skipped if there is an error getting logs on a pod. This causes
the pod logs to always return true and avoid a premature exit before
cleanup is run

* Fixing issue where pods not yet running to not have delay before rechecking

When pods are not yet in a running state there is no delay before
rechecking. This is causing timeouts to happen waiting for pods.
2018-02-06 10:19:13 -08:00
Reinhard Nägele 65cdc689d5 [ci] Fix regression in changed.sh (#3498) 2018-01-31 06:15:09 -08:00
Matt Farina 70145fdb19 Updated log reporting on failed CI runs to include all pods for the PR (#3348)
This will report logs on all containers for all pods in a
namespace created for a pull request.
2018-01-26 10:58:40 -08:00
Matt Farina 68b8c655c7 Fix broken end to end tests resulting from cleanup code issues (#3168) 2017-12-27 12:50:35 -08:00
Matt Farina a3e5eae76c Add more verbose output when helm test fails (#2750)
This change does 3 things:
1. Gets the logs from the test pods
2. Prints the output of helm status
3. Gets the logs from the pods running for a release
2017-12-27 12:19:36 -08:00
Matt Farina e72f702fad Handling the case of a new chart in the e2e tests (#3083) 2017-12-18 14:15:35 -08:00
Matt Farina b69c46199b Adding a version comparison to the k8s CI tests
The bot that merges PRs re-runs the e2e job before merging a pull
request. By also having it here (circleci provides fast response
to PR authors) we make sure the version has been incremented in
the chart prior to it being merged.
2017-12-15 15:31:21 -05:00
Matt Farina 482f8b0f5b Update to Helm 2.7.2 (#2764)
Helm 2.7.2 contains a security fix for SSL CA with tiller. For
more information see the helm release notes.
2017-11-16 09:58:58 -08:00
Matt Farina 59472e8163 Make chart dependency builds immutable (#2706)
The previous version of the sync script ran `helm dep update` which
would recreate the requirements.lock file. This caused new builds
of charts as a total package with different versions of dependencies
but the same chart version. The package was mutating.

This change works towards our goal of immutable charts for a chart
at a version.
2017-11-14 18:35:15 +01:00
Matt Farina bbfa695607 Update CI to use Helm 2.6.2 (#2405) 2017-10-19 11:50:17 -07:00
Matt Farina 4baaa42525 Fixing broken tests caused by #2428 (#2461)
The changed.sh script tried to find the merge base but the merge
base branch was not available. This change provides it so that
a common ancestor can be found.
2017-10-12 11:15:23 +02:00
Matt Farina f8d3a1197e Update changed test to focus on changes introduced in current PR (#2428)
The previous diff was a comparison against master. If master had
changed since the current PR was created the changed charts would
be re-tested. This could create a problem when helm was upgraded
and lint changed causing previously passing charts to fail. Since
they were not associated with the current PR it was an outlier
problem for the PR author.

The new diff does a comparison to the merge-base which ties to look
for changes introduced by the current pull request.
2017-10-08 17:23:46 +01:00
Matt Farina 64fffcf600 Add support for linting of charts on every PR via CircleCI (#2404)
This change does the following:
- Adds a circleci config file
- Has 2 scripts. One for installing tools and a separate one for
  executing tests
- Removes lint testing from the changed.sh script since it is
  performed elsewhere
- For linting changes the git diff mechanism to look at the merge
  base rather than all differences from master. The intent is to
  look for changes in this request rather than including those
  in PRs that may have already been merged to master while this
  one lingered.

Ref #2337
2017-10-04 12:50:30 -07:00
Josh Dolitsky 4551593403 pull-charts-e2e should grab deps before running lint (#2313) 2017-09-22 10:11:29 +01:00
Adnan Abdulhussein e163767afc add common chart to incubator (#1611)
* add common chart to incubator

moving the common chart to incubator so we can actively work on it

* Excuse incubator/common from tests
2017-09-04 18:08:48 -05:00
Michael Goodness 0983f9539d Add release name to helm test (#1751) 2017-08-16 09:16:01 -07:00
Vic Iglesias f2c2c90184 Add helm test to CI (#1702) 2017-08-15 12:03:24 -07:00
Vic Iglesias 0af6cb13b3 Bump Helm to v2.5.1 in CI (#1701)
* Bump Helm to v2.5.1

* Update repo-sync to Helm 2.5.1
2017-08-15 12:03:00 -07:00
Anirudh Ramanathan 66135f0ed4 Bumping up CI version to use helm 2.4.2 (#1142) 2017-05-23 12:09:26 -07:00
Vic Iglesias b9f65604d6 Use helm 2.4.1 and set install timeout to 10m (#1003) 2017-05-04 11:12:46 -07:00
Michael Goodness d0064e596b fix test flake (#605) 2017-02-10 11:44:23 -06:00
Vic Iglesias a95b464c52 Fix CI scripts (#472)
* Fix CI GOOGLE_APPLICATION_CREDENTIALS

* Revert "spinnaker: fix minio service discovery"

This reverts commit 2e5d9565a9.
2017-01-20 16:06:20 -08:00
Vic Iglesias 788af1a270 Add light functional test and PR review helper script (#369)
* Add basic verification of release

* Set BUILD_NUMBER in pr-review.sh

* Set default verification pause if not set

* Work around default pause value with -u

* Fix default pause value in pr-review

* Use kubconfig for tests if possible

* Add basic verification of release

* Add basic verification of release

* Set BUILD_NUMBER in pr-review.sh

* Set default verification pause if not set

* Work around default pause value with -u

* Fix default pause value in pr-review

* Use kubconfig for tests if possible

* Add basic verification of release

* Ensure kubeconfig works standalone
2017-01-20 11:58:12 -08:00
Vic Iglesias f2cc992094 Bump helm version to 2.1.3 (#364) 2017-01-04 13:52:42 -08:00
Vic Iglesias c97d191581 Use correct env vars for CI 2016-11-29 19:31:20 -08:00
Adnan Abdulhussein 9f71950807 Update repository URLs in requirement files and ci scripts 2016-11-18 16:09:56 -08:00
Vic Iglesias a7c6a6a294 Update to helm 2.0.0 2016-11-18 13:39:18 -05:00
Adnan Abdulhussein 4c849cbc3d Switch to Helm rc.1 release 2016-11-02 19:44:33 -07:00
Adnan Abdulhussein bbd5ee2c25 switch from canary to helm beta.2 (#157) 2016-10-25 12:19:53 -07:00
Adnan Abdulhussein 4950785264 Use requirements.yaml to define dependencies (#136)
* Use requirements.yaml to define dependencies

Updates incubator/patroni, stable/redmine, stable/wordpress,
and stable/drupal to vendor dependencies using Helm's built-in
dependency management.

* bump patroni version

* remove vendored dependencies

* Add chart tarballs to gitignore

* ci: update scripts to fetch dependencies

* patroni: fix reference to namespace
2016-10-21 18:01:48 -07:00
Adnan Abdulhussein ebaa53b6aa ci(*): fix reference to master and bash options (#123)
* ci(*): fix reference to master and bash options

test-infra no longer has a reference to master so we need to fetch it to
see what's been changed

* Skip if no chart changes
2016-10-18 14:50:19 -07:00
Vic Iglesias a6fa631e9b Add cleanup_log to avoid false negative on cleanup (#103) 2016-10-08 14:30:18 -07:00
Vic Iglesias 410bbd612e Handle moves in CI (#96) 2016-09-27 09:19:29 -07:00
Vic Iglesias 637d05db65 CI: Ensure release name is under character limit (#85) 2016-09-26 11:55:39 -07:00
Vic Iglesias 9bdd02b60f Use helm canary (#76) 2016-09-14 13:59:30 -07:00
Vic Iglesias d9ffbd723e Add integration test: Install then Delete (#75)
* Add integration test

* Set proper vars on docker run
2016-09-13 10:33:46 -07:00
Vic Iglesias 8ff74bedca Update license headers 2016-08-31 01:21:09 -07:00
Vic Iglesias 13881c62ba Add license headers to test scripts 2016-08-31 01:10:15 -07:00
Vic Iglesias 8bdd009bbe Add linting for charts 2016-08-31 01:03:27 -07:00