summaryrefslogtreecommitdiff
path: root/spec/requests/ci
Commit message (Collapse)AuthorAgeFilesLines
* Pre-create all builds for Pipeline when a trigger is receivedKamil Trzcinski2016-08-112-89/+77
| | | | | | | | | | | This change simplifies a Pipeline processing by introducing a special new status: created. This status is used for all builds that are created for a pipeline. We are then processing next stages and queueing some of the builds (created -> pending) or skipping them (created -> skipped). This makes it possible to simplify and solve a few ordering problems with how previously builds were scheduled. This also allows us to visualise a full pipeline (with created builds). This also removes an after_touch used for updating a pipeline state parameters. Right now in various places we explicitly call a reload_status! on pipeline to force it to be updated and saved.
* adds second batch of tests changed to active tenseactive-tense-test-coveragetiagonbotelho2016-08-092-26/+26
|
* Fix testsKatarzyna Kobierska2016-07-261-1/+1
|
* Update all exposed variables to CI buildsKamil Trzcinski2016-07-201-5/+5
|
* Use describe rather than context for this:save-artifacts_sizesLin Jen-Shin2016-07-041-1/+1
| | | | | | | | | | Feedback: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4964/diffs#note_12867416 Guidelines: https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/development/testing.md#general-guidelines > Use `context` to test branching logic.
* Use describe rather than context, feedback from:Lin Jen-Shin2016-07-041-1/+1
| | | | https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4964#note_12861588
* Rename to "successful artifacts upload", feedback:Lin Jen-Shin2016-07-041-4/+4
| | | | https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4964#note_12861577
* Rename shared_examples, feedback:Lin Jen-Shin2016-07-011-4/+4
| | | | https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4964#note_12817406
* Use nil for non-existing files rather than 0Lin Jen-Shin2016-07-011-1/+1
|
* Use AR callbacks as suggested by:Lin Jen-Shin2016-06-291-2/+6
| | | | https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4964#note_12744656
* Also remove ci_builds.artifacts_size when erasedLin Jen-Shin2016-06-281-0/+1
|
* Just save the size in total rather than individual filesLin Jen-Shin2016-06-281-11/+3
| | | | | Feedback: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/4964#note_12741046
* Introduce ci_builds.artifacts_sizes as JSON:Lin Jen-Shin2016-06-281-2/+12
| | | | | | | | | | | | | | | We store the sizes as a hash from path to bytes like: ``` ruby {'ci_artifacts.txt' => 27, 'other_artifacts_0.1.2/another-subdirectory/banana_sample.gif' => 71759, 'other_artifacts_0.1.2/doc_sample.txt' => 1314, 'rails_sample.jpg' => 35255, 'tests_encoding/utf8 test dir ✓/regular_file_2' => 7} ``` So that it's easier to access than reading gzip file again.
* Cleanup the tests a bit in order to extend itLin Jen-Shin2016-06-281-15/+34
|
* Use HTTP matchers if possibleZ.J. van de Weg2016-06-272-37/+37
|
* Improve testsKamil Trzcinski2016-06-131-2/+2
|
* Improve design based on reviewKamil Trzcinski2016-06-131-3/+3
|
* Support expiration date in CI API when uploading artifactsKamil Trzcinski2016-06-131-0/+36
|
* Rename commit to pipeline in TriggerRequestKamil Trzcinski2016-06-091-1/+1
|
* Merge branch 'rename-ci-commit' into rename-ci-commit-phase-2Kamil Trzcinski2016-06-061-1/+1
|\ | | | | | | | | | | # Conflicts: # features/steps/shared/builds.rb # spec/requests/ci/api/builds_spec.rb
| * Fix tests offenses: use `pipeline` of Ci::Build and rename viewsKamil Trzcinski2016-06-061-1/+1
| |
* | Rename all `[ci_]commit` to `[ci_]pipeline` in specs and featuresKamil Trzcinski2016-06-032-30/+30
|/
* Rename Ci::Build commit to pipelineKamil Trzcinski2016-06-031-6/+6
|
* Rename Ci::Commit to Ci::Pipeline and rename some of the ci_commit to pipelineKamil Trzcinski2016-06-021-1/+1
|
* Enable RSpec/NotToNot cop and auto-correct offensesrs-rubocop-nottonotRobert Speicher2016-05-241-2/+2
| | | | Also removes the note from the development/testing.md guide
* Minor runner-related code refactoringsGrzegorz Bizon2016-05-191-10/+10
|
* Set run untagged option when registering a runnerGrzegorz Bizon2016-05-191-3/+32
|
* Refactor CI API specs for creating runnerGrzegorz Bizon2016-05-191-17/+29
|
* Add CI API tests for runner config and untagged jobsGrzegorz Bizon2016-05-191-0/+32
|
* Codestyle: make sure we have space around operatorsGabriel Mazetto2016-05-131-2/+2
|
* Merge branch 'ci-commit-as-pipeline' into 'master' Kamil Trzciński2016-04-211-10/+10
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Ci::Commit becomes a Pipeline object 1. Ci::Commit receives context: ref, :tag. 1. One Ci::Commit describes a one Pipeline 1. Pipeline is created from `.gitlab-ci.yml` 1. Pipeline is a ordered group of builds 1. We test MR against Pipeline 1. Pipelines have a separate view (https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/3703) 1. Pipeline can be triggered from UI (https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/3703) 1. Later we change `Trigger -> TriggerRequest -> Build` to `Trigger -> Pipeline` (future) 1. We add a Pipeline Hook that will be triggered on Pipeline status change (future) 1. We extend notifications to use `Pipeline Hook` to send summary on pipeline changes (future) After merging that I'll prepare a separate MR that will unify naming, database columns, table names: ``` Ci::Commit -> Pipeline Ci::Build -> Build CommitStatus -> Job GenericCommitStatus -> ExternalJob ci_commits -> pipelines ci_builds -> jobs ``` This MR implements first 5 points. This is made to solve this issue https://gitlab.com/gitlab-org/gitlab-ce/issues/14149. See merge request !3653
| * Fix specsKamil Trzcinski2016-04-111-10/+10
| |
* | Make sure that appending is done on a valid lengthTomasz Maczukin2016-04-201-1/+1
| |
* | Add range checkingTomasz Maczukin2016-04-201-7/+31
| |
* | Add incremental build trace update APITomasz Maczukin2016-04-201-0/+22
|/
* Fix ci_build trace traitKamil Trzcinski2016-02-191-1/+1
|
* Move build eraseable API to proper API contextGrzegorz Bizon2016-02-191-12/+0
|
* Do not allow to modify build if it has been erasedGrzegorz Bizon2016-02-191-21/+35
|
* Use DELETE verb for erasing a build contentGrzegorz Bizon2016-02-191-0/+18
| | | | Also added API specs for that
* Extract shared context level up in build specsci/improve-ci-build-apiGrzegorz Bizon2016-02-041-56/+17
| | | | Also improve performance of specs by joining some of examples.
* Improve CI API specs related to operations on buildGrzegorz Bizon2016-02-041-21/+34
| | | | | Conflicts: spec/factories/ci/builds.rb
* Fix CI runner version not being properly updated when asking for a buildfix-ci-runners-version-updateKamil Trzcinski2016-01-272-0/+29
| | | | | | Due to broken implementation of attribute_for_keys the runner information was not updated correctly. This MR adds test to check that such scenario will never happen again.
* Change dependencies.builds to depends_on_buildsKamil Trzcinski2016-01-151-2/+2
|
* Let the CI runner know about builds that this build depends onci/build_dependenciesKamil Trzcinski2016-01-141-0/+12
| | | | This allows us to implement artifacts passing: runner will download artifacts from all prior builds
* Refactor build artifacts upload API endpointGrzegorz Bizon2016-01-141-6/+5
|
* Update build artifacts APIGrzegorz Bizon2016-01-141-13/+35
| | | | | We do not want to allow runners to upload a metadata file. This needs to be generated by Workhorse only.
* Modify artifacts upload API endpoint, add artifacts metadataGrzegorz Bizon2016-01-141-0/+25
|
* Use method that creates runners registration tokenGrzegorz Bizon2015-12-231-1/+0
| | | | `runners_registration_token` now creates a new token if it is blank.
* Merge branch 'master' into ci/persist-registration-tokenGrzegorz Bizon2015-12-145-354/+31
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (66 commits) Fix runners admin view Fix migrations Rename mention of gitlab-git-http-server to gitlab-workhorse Bump Redis requirement to 2.8 for Sidekiq 4 requirements Fix wording on runner setup page add details on how to change saml button label Fix tests Move awards back to gray panel and few improvements to sidebar Few UI improvements to new sidebar implementation Fix tests for new issuable sidebar Update changelog Implement new sidebar for merge request page Make edit link on issuable sidebar works Redesign issue page for new sidebar Move awards css to separate file Implement issuable sidebar partial Update CHANGELOG Clarify cache behavior Run builds from projects with enabled CI Use Gitlab::Git instead of Ci::Git ... Conflicts: db/schema.rb
| * Fix after column renameKamil Trzcinski2015-12-112-9/+9
| |