Commit Graph
104 Commits
Author SHA1 Message Date
Vic Iglesiasandk8s-ci-robot e32de0bbeb Add info about Jenkins sync (#4477) 2018-03-27 10:40:03 -07:00
Ilya Kislenkoandk8s-ci-robot bd8016c536 Enhancing lint.sh with additional checks for Chart.yaml (#4161)
* Enhancing lint.sh with additional checks

* reverting post local testing changes

* addressing reviews.

removing yq installetion
chaning yq with yaml for Chart.yaml parsing.
modifing Erro message for not github account check.

also modifing lint.sh so it can be used locally
2018-03-27 09:30:03 -07:00
Reinhard Nägeleandk8s-ci-robot 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 Farinaandk8s-ci-robot 0acc15eb83 When tests fail fetching description of each pod (#4278) 2018-03-19 07:12:58 -07:00
Matt FarinaandGitHub 30728448eb Fixing for the unset case by supplying a default value for batch test (#4238) 2018-03-16 15:39:58 -04:00
Matt FarinaandGitHub 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 FarinaandGitHub b72d033b0b Upgrading to Helm 2.8.2 (#4214) 2018-03-16 14:17:00 -04:00
Ilya KislenkoandMatt Farina 72c8d48235 helm version upgrade (#4158)
upgrading helm version for circleci testing
2018-03-16 14:14:29 -04:00
Lachlan Evensonandk8s-ci-robot 1bf5c4eca5 Bumped helm release for e2e tests (#3907) 2018-02-27 11:17:47 -08:00
Lingming Xiaandk8s-ci-robot f04a361532 fix typo in test/circle/lint.sh (#3674) 2018-02-10 05:39:51 -08:00
TaoGeandk8s-ci-robot 4ab7343790 Typo fix: repostory -> [repository] (#3666) 2018-02-10 05:36:50 -08:00
chenjianhuaandk8s-ci-robot e19ad0ce78 fix a typo in publish-docker.sh (#3630) 2018-02-09 14:07:51 -08:00
Matt Farinaandk8s-ci-robot 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ägeleandk8s-ci-robot e2c7e831f3 [ci] Fix potential endless loop (#3529) 2018-02-02 07:00:10 -08:00
Reinhard Nägeleandk8s-ci-robot 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ägeleandk8s-ci-robot 09d514a953 [ci] Increase timeout by 1.5x (#3501) 2018-01-31 07:36:13 -08:00
Reinhard Nägeleandk8s-ci-robot 65cdc689d5 [ci] Fix regression in changed.sh (#3498) 2018-01-31 06:15:09 -08:00
Matt Farinaandk8s-ci-robot 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 Farinaandk8s-ci-robot 68b8c655c7 Fix broken end to end tests resulting from cleanup code issues (#3168) 2017-12-27 12:50:35 -08:00
Matt Farinaandk8s-ci-robot 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 Farinaandk8s-ci-robot e72f702fad Handling the case of a new chart in the e2e tests (#3083) 2017-12-18 14:15:35 -08:00
Reinhard Nägeleandk8s-ci-robot ed12196be2 Double test timeout (#3048) 2017-12-17 07:56:34 -08:00
Matt Farinaandk8s-ci-robot 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 BleckerandGitHub a5d9c7a33f Add debugging output to find PV errors in CI 2017-12-12 14:53:31 -08:00
Vic IglesiasandGitHub 202a7ad8e8 Add sleep after ns so resources can be cleaned properly (#2992) 2017-12-11 11:45:29 -08:00
Vic IglesiasandMatt Farina 9ffa508edb Remove Spinnaker from e2e tests (#2990) 2017-12-11 10:58:48 -06:00
Matt FarinaandReinhard Nägele 88f888bcd9 Fixing CI failures for charts with dependencies (#2934)
Closes #2896
2017-12-05 19:59:08 +01:00
Matt FarinaandGitHub 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 DolitskyandMatt Farina 54f82ea525 Run helm dep build in circle lint.sh (#2919) 2017-12-04 14:11:12 -05:00
Matt FarinaandVic Iglesias 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 FarinaandReinhard Nägele 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 FarinaandVic Iglesias bbfa695607 Update CI to use Helm 2.6.2 (#2405) 2017-10-19 11:50:17 -07:00
Matt FarinaandReinhard Nägele ec99fad17e Fix bug where semver increment handling does not handle new charts (#2499) 2017-10-17 05:34:49 +02:00
Matt FarinaandReinhard Nägele 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 FarinaandAdnan Abdulhussein 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 FarinaandAdnan Abdulhussein 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 FarinaandAdnan Abdulhussein 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 FarinaandReinhard Nägele 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 FarinaandAdnan Abdulhussein 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 FarinaandVic Iglesias 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 IglesiasandGitHub 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 DolitskyandAdnan Abdulhussein 4551593403 pull-charts-e2e should grab deps before running lint (#2313) 2017-09-22 10:11:29 +01:00
Anirudh RamanathanandAdnan Abdulhussein 02a620f7b5 Fix testgrid (#2316) 2017-09-22 10:08:49 +01:00
Adnan AbdulhusseinandMichael Goodness 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 GoodnessandGitHub 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 RamanathanandAdnan Abdulhussein bfecb49c63 Update the helm-test path (#1916) 2017-09-04 14:45:04 +01:00