Commit Graph
95 Commits
Author SHA1 Message Date
Lingming Xia f04a361532 fix typo in test/circle/lint.sh (#3674) 2018-02-10 05:39:51 -08:00
TaoGe 4ab7343790 Typo fix: repostory -> [repository] (#3666) 2018-02-10 05:36:50 -08:00
chenjianhua e19ad0ce78 fix a typo in publish-docker.sh (#3630) 2018-02-09 14:07:51 -08: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 e2c7e831f3 [ci] Fix potential endless loop (#3529) 2018-02-02 07:00:10 -08:00
Reinhard Nägele 97bab65a1d Improve readiness check (#3509)
This fixes flaky readiness checks by double-checking readiness. It could
happen that the script deemed all pods ready when at the moment the
check is executed only ready pods are reported but not all replicas are
running yet.
2018-02-01 06:31:10 -08:00
Reinhard Nägele 09d514a953 [ci] Increase timeout by 1.5x (#3501) 2018-01-31 07:36: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
Reinhard Nägele ed12196be2 Double test timeout (#3048) 2017-12-17 07:56:34 -08:00
Matt Farina 7cbb848a75 Fixing edge case for patch version of 0 (#3063)
When the array splitting happen there are cases where the patch
(maj.min.patch) is 0. Using ++ to increment that 0 causes a
return code of 1. Using +=1 instead increments the value but has
a return code of 0.
2017-12-17 07:53:34 -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
Christoph Blecker a0a55dbb47 Fix kubectl/helm paths for real 2017-12-13 18:47:46 -08:00
Christoph Blecker 1da2e801a4 Use proper kubectl path 2017-12-13 16:43:58 -08:00
Christoph Blecker 7d139e282a Fix junit artifacts output dir 2017-12-13 15:22:49 -08:00
Christoph Blecker a5d9c7a33f Add debugging output to find PV errors in CI 2017-12-12 14:53:31 -08:00
Vic Iglesias 202a7ad8e8 Add sleep after ns so resources can be cleaned properly (#2992) 2017-12-11 11:45:29 -08:00
Vic Iglesias 9ffa508edb Remove Spinnaker from e2e tests (#2990) 2017-12-11 10:58:48 -06:00
Matt Farina 88f888bcd9 Fixing CI failures for charts with dependencies (#2934)
Closes #2896
2017-12-05 19:59:08 +01:00
Matt Farina 08cf223ba3 Revert "Run helm dep build in circle lint.sh (#2919)" (#2929)
This reverts commit 54f82ea525.
2017-12-04 14:59:58 -05:00
Josh Dolitsky 54f82ea525 Run helm dep build in circle lint.sh (#2919) 2017-12-04 14:11:12 -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 ec99fad17e Fix bug where semver increment handling does not handle new charts (#2499) 2017-10-17 05:34:49 +02:00
Matt Farina ffc3faa15d Remove comment indentation checking due to false errors (#2498)
Indentation checking was catching catching out the commenting of
whole sections of indented code in values.yaml files as being
errors. Yet, code editors and other tools automatically indented
to this level. Removing the check.
2017-10-17 05:31:39 +02:00
Matt Farina 8ca39ffce9 Adding a CI check for the NOTES.txt file (#2453)
Points to docs when file missing to point user to a fix

Ref #2373
2017-10-13 17:23:51 +01:00
Matt Farina f085700f96 CI Check that a chart version was incremented (#2462)
This commit does a couple things
1. It reformats the layout to have checks via self contained
   functions rather than all in one loop.
2  Adds a check that the chart.version was incremented

Ref #2373
2017-10-12 11:21:35 +02: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 2f12841300 Adding linting to Chart and values yaml files (#2429)
This does not lint yaml templates as they are templates rather
than valid yaml files. They cannot be linted with a normal linter

yamllint is used for linting. This is an existing Python project
https://github.com/adrienverge/yamllint

The rules are not the default rules and are stored in their
entirity so they can be controlled over time

The existance of a Chart.yaml file and values.yaml file is checked
and an error is thrown if one is missing. Helm lint will not
detect a chart if Chart.yaml is missing and if a values.yaml file
is missing it is noted as info.

The run function is introduced to enable running all the linters,
capturing non-zero exit codes, and exiting with a non-zdero code
if any of them fail. This is used instead of exiting when the
first failure happens to provide more feedback to chart developers.
2017-10-09 21:23:39 +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
Vic Iglesias 237caa0ea6 Add README to test folder (#2339)
* Add README to test folder

* Kubernetes members can trigger PR tests
2017-09-27 09:50:29 -07:00
Josh Dolitsky 4551593403 pull-charts-e2e should grab deps before running lint (#2313) 2017-09-22 10:11:29 +01:00
Anirudh Ramanathan 02a620f7b5 Fix testgrid (#2316) 2017-09-22 10:08:49 +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 481fc439b6 [testing] Wait for ready containers (#1923)
* Test container readiness

* Test Pods running & containers Ready

* Include container name in output
2017-09-04 09:24:45 -05:00
Anirudh Ramanathan bfecb49c63 Update the helm-test path (#1916) 2017-09-04 14:45:04 +01:00
Anirudh Ramanathan d8a4481a14 Trivial fix to make test-infra pass again 2017-09-01 11:45:12 -07: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
Dhilip fda6e45ebd Increase the verify retry from 2 mins to 3 mins (#1645) 2017-08-09 21:17:52 +05:30
Anirudh Ramanathan 8fe482e143 Add helm update deps step to CI (#1381)
* Update testing to install deps

* Add dep update step

* Addressed review comments
2017-06-30 09:32:41 +01:00
Adnan Abdulhussein 1ba823f7c3 Bump Helm version in repo-sync (#1378) 2017-06-26 21:19:14 +02:00
Anirudh Ramanathan 72c243cc89 Update to use helm service account as rbac is on by default (#1291) 2017-06-13 13:57:56 -07:00
Anirudh Ramanathan f88400931f Update test to start testing charts in e2e 2017-06-13 00:37:15 -07:00