summaryrefslogtreecommitdiff
path: root/scripts/review_apps
Commit message (Collapse)AuthorAgeFilesLines
* Merge branch '66428-make-review-app-deployment-use-wait' into 'master'Rémy Coutable2019-09-041-2/+3
|\ | | | | | | | | | | | | Make Review App deployment use `--wait` instead of `--atomic` for better debugging Closes #66428 See merge request gitlab-org/gitlab-ce!32223
| * Switch back to the '--wait' flag for the 'helm upgrade' command66428-make-review-app-deployment-use-waitRémy Coutable2019-09-031-2/+3
| | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Make download_chart function robust for its own Review AppTakuya Noguchi2019-09-041-1/+1
|/ | | | Signed-off-by: Takuya Noguchi <takninnovationresearch@gmail.com>
* Use new location for helm charts repolinks-use-new-locationBalasankar "Balu" C2019-09-031-1/+1
| | | | Signed-off-by: Balasankar "Balu" C <balasankar@gitlab.com>
* Remove the wait_for_review_app_to_be_accessible step from review-deploy65003-remove-wait_for_review_app_to_be_accessible-stepRémy Coutable2019-07-301-25/+0
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Use the --atomic flag when deploying Review Appsqa-use-tiller-2.14.2-for-review-appsRémy Coutable2019-07-301-7/+1
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Merge branch ↵Nick Thomas2019-07-251-2/+0
|\ | | | | | | | | | | | | 'qa-stop-printing-dots-while-retrieving-pod-names-in-review-deploy' into 'master' Stop printing dots while retrieving pod in review-apps.sh See merge request gitlab-org/gitlab-ce!31062
| * Stop printing dots while retrieving pod in review-apps.shqa-stop-printing-dots-while-retrieving-pod-names-in-review-deployRémy Coutable2019-07-231-2/+0
| | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Merge branch '64998-increase-helm-deploy-command-timeout' into 'master'Sean McGivern2019-07-241-1/+1
|\ \ | | | | | | | | | | | | | | | | | | Increase the Review App deploy command timeout to 15 minutes Closes #64998 See merge request gitlab-org/gitlab-ce!31061
| * | Increase the Review App deploy timeout to 15 minutes64998-increase-helm-deploy-command-timeoutRémy Coutable2019-07-231-1/+1
| |/ | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Fix Review App debugging64996-fix-review-app-debuggingRémy Coutable2019-07-231-1/+1
|/ | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* ReviewApps: CI pin external-dns to 2.x version64356-pin-external-dns-versionJason Plum2019-07-121-3/+4
| | | | | | | | | | | | | Pin the version of deployed external-dns to `2.y.z`, using SemVer matching. (`^2.2.1`) Update the properties for the service account keys per *Upgrading to 2.0.0* of the `stable/external-dns` README. Add `aws.batchChangeSize=400` to combat messages about RDATA being too large. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/64356
* Add resources requests and limits for all Review Apps resourcesRémy Coutable2019-07-041-23/+105
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Install Helm on dedicated nodesimprove-review-apps-cleanup-when-previous-deployment-failedRémy Coutable2019-06-251-2/+9
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Let Helm handle the cleanup and print logs when deployment failsRémy Coutable2019-06-251-45/+48
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Apply suggestion to scripts/review_apps/review-apps.sh62149-ci-review-apps-change-pullpolicy-sidekiq-and-unicornRémy Coutable2019-06-121-1/+1
|
* [Review Apps] Set `global.imagePullPolicy: Always`Rémy Coutable2019-06-121-0/+1
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Disable HTTP for the nginx-ingress Review App serviceRémy Coutable2019-04-301-0/+1
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Organize better Review Apps and QA jobsRémy Coutable2019-04-241-97/+0
| | | | | | | Also, play manual jobs once dependency jobs are done instead of polling for the dependent jobs to be finished. Signed-off-by: Rémy Coutable <remy@rymai.me>
* Make the Review App cleanup more efficientretry-review-deploy-twiceRémy Coutable2019-04-191-3/+3
| | | | | | Ensure that the cleanup starts right away. Signed-off-by: Rémy Coutable <remy@rymai.me>
* Don't fail the job if the Review App doesn't deploy properlyqa-fix-review-app-pingRémy Coutable2019-04-171-2/+2
| | | | | | | | | | | | It seems the deploy function causes the job to fail if it doesn't succeed. That wasn't the intent as we want to curl the Review App after the deploy finished (even if it failed) because sometimes the Review App is just a bit long to be ready. This change wraps the Review App deployment with "set +e"/"set -e" to ensure that the job doesn't fail right away if the deploy fails. Signed-off-by: Rémy Coutable <remy@rymai.me>
* Conform scripts/review_apps/review-apps.sh to shellcheckRémy Coutable2019-04-091-55/+31
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Poll Review App after it's deployed to ensure it's accessibleRémy Coutable2019-04-091-0/+25
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Add more logging in the Review Apps deployment steps59569-some-steps-are-missed-during-review-apps-deploymentsRémy Coutable2019-03-281-125/+161
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Fix the .review-deploy-base job so that env variables are passedRémy Coutable2019-03-191-0/+10
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Only use 2 replicas for nginx-ingress.controllerRémy Coutable2019-02-011-0/+1
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Don't install Prometheus in Review AppsRémy Coutable2019-02-011-0/+1
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Fine-tune Review Apps pod resource requestsRémy Coutable2019-02-011-0/+3
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Introduce echoinfo for informationLin Jen-Shin2019-01-241-13/+14
|
* Use $CI_COMMIT_REF_SLUG in review-apps.shRémy Coutable2019-01-241-5/+5
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* [Review Apps] Don't exit when dependable job failsRémy Coutable2019-01-171-1/+0
| | | | | | | | | | | | | The function that retrieves the dependable job is pretty basic and retrieves the first job found with the matching name, but this job can be failed but then successfully retried. In that case, we would exit the depending job even though the dependable job actually succeeded (the second time). Let's simplify things, be optimistic and continue with the depending job even if the dependable job fails. That reverts to the original behavior. Signed-off-by: Rémy Coutable <remy@rymai.me>
* Merge branch ↵Rémy Coutable2019-01-101-1/+3
|\ | | | | | | | | | | | | | | | | '55323-review-apps-use-2-replicas-for-the-tiller-deploy-deployment' into 'master' [Review Apps] Use 2 replicas for the `tiller-deploy` Deployment Closes #55323 See merge request gitlab-org/gitlab-ce!23806
| * Use 2 replicas for the Deployment55323-review-apps-use-2-replicas-for-the-tiller-deploy-deploymentRémy Coutable2018-12-191-1/+3
| | | | | | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* | Exit as error if job failsexit-error-if-job-waited-failsMark Lapierre2018-12-211-0/+1
|/ | | | | If a script is waiting for a job to be done and that job fails, exit with an error status so that the script doesn't continue with a prerequisite in an invalid state.
* Specify the 'sync' policy for the external-dns deploymentsRémy Coutable2018-12-181-1/+2
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Run gitlab:assets:compile on qa jobsMark Lapierre2018-12-171-2/+2
| | | | | | Optionally compiling assets when needed for qa jobs proved unworkable so instead we fall back on compiling them for all qa jobs.
* [QA] Better retrieve job ID for a retried jobRémy Coutable2018-12-061-5/+6
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Add a manual job to run QA against a Review App49570-add-review_qa-jobRémy Coutable2018-11-261-13/+132
| | | | | | | | | | | | | | | | | 1. Renames review to review-deploy. 2. Renames stop_review to review-stop. 3. Adds a build-qa-image job to the prepare stage and save the QA Docker image as artifact (example: https://gitlab.com/gitlab-org/gitlab-ce/-/jobs/120967019). 4. Adds a manual review-qa job to the test stage to run QA tests against the Review App (example: https://gitlab.com/gitlab-org/gitlab-ce/-/jobs/120967238). 5. Make the review-deploy job plays the review-qa job as soon as the Review App is deployed (example: https://gitlab.com/gitlab-org/gitlab-ce/-/jobs/120988775). 6. Updates the Review Apps documentation accordingly. Signed-off-by: Rémy Coutable <remy@rymai.me>
* Ensure we abort the cleanup if release is emptyRémy Coutable2018-11-131-6/+20
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Disable usage pings in review appsdisable-usage-ping-review-appsBalasankar "Balu" C2018-11-111-0/+1
|
* Ensure we create the secrets at the right time53621-review-app-credentials-does-not-reliably-workRémy Coutable2018-11-091-0/+3
| | | | | | | | | | | | In `deploy`, if the previous deployment failed, we delete/cleanup all the objects related to the release, including secrets. The problem is that if we create the root password before that, it will be then recreated during the deploy with a random value! By creatigng the secret just before actually deplying a new release, we ensure that it won't be overriden. Signed-off-by: Rémy Coutable <remy@rymai.me>
* Add omitted indentation fixIan Baum2018-10-231-4/+4
|
* Add review app to gitlab-ceIan Baum2018-10-231-4/+33
| | | | | | | | | | * Uses the same supporting code as used in EE * Includes automated cleanup * Install external-dns helm chart to review apps cluster if it isn't already * Adds variables REVIEW_APPS_AWS_SECRET_KEY and REVIEW_APPS_AWS_ACCESS_key * review-apps-ce uses a different cipher
* Improve automated Review Apps cleanupce-52112-fix-review-apps-cleanup-ceRémy Coutable2018-10-221-25/+77
| | | | Signed-off-by: Rémy Coutable <remy@rymai.me>
* Cleanup review apps more rapidlyRémy Coutable2018-10-011-2/+2
| | | | | | | | - Stop review app's environment after 2 days - Delete review app's environment after 3 days - Delete Helm release after 4 days Signed-off-by: Rémy Coutable <remy@rymai.me>
* [CE] Port review apps file to CEce-improve-review-appsRémy Coutable2018-09-252-0/+293
Signed-off-by: Rémy Coutable <remy@rymai.me>