summaryrefslogtreecommitdiff
path: root/spec/lib/ci
Commit message (Collapse)AuthorAgeFilesLines
* Use state machine for pipeline event processingfix-pipeline-processingKamil Trzcinski2016-08-111-1/+0
| | | | | | Conflicts: app/models/ci/pipeline.rb spec/models/ci/pipeline_spec.rb
* Pre-create all builds for Pipeline when a trigger is receivedKamil Trzcinski2016-08-112-7/+8
| | | | | | | | | | | 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.
* fixes part1 of files to start using active tensetiagonbotelho2016-08-091-2/+2
|
* Remove empty context from CI config processor specsrubocop/enable-more-cops-for-empty-linesGrzegorz Bizon2016-08-051-3/+0
|
* Enable some Rubocop cops related to new linesGrzegorz Bizon2016-08-031-1/+0
|
* Move job dependencies entry to the new CI configGrzegorz Bizon2016-07-201-1/+1
|
* Merge branch 'master' into refactor/ci-config-move-job-entriesGrzegorz Bizon2016-07-201-66/+83
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (321 commits) Fix the Sentry spam from CSP violations by disabling it. Limit git rev-list output count to one in forced push check Ensure Owners are included in the scope for authorized_projects Fix alignment of icons on project page Fix ci_status_helper_spec to look for new SVGs use 2.0.5, actually (2.0.4 was a bad release) upgrade rouge to 2.0.4 Fix help page paths to make sure shortcuts and the UI help page work. fixes an issue cause by a bad merge Vertically align status icon within table Add new icons for every CI status Add global style for running icon Align running icon in merge request Add new running icon; add a bunch of styles to get svg to match existing fa icons Improve code design Fix broken builds_for_ref Move when tests before to make it no conflict with manual-actions Use value of `yaml_variables` and `when` from config_processor if undefined Add CHANGELOG entry CHANGELOG item ... Conflicts: lib/ci/gitlab_ci_yaml_processor.rb spec/lib/ci/gitlab_ci_yaml_processor_spec.rb
| * Add implementation of manual actionsKamil Trzcinski2016-07-181-1/+1
| |
| * Refactor gitlab_ci_yaml_processor variables testsKamil Trzcinski2016-07-171-52/+76
| |
| * Fix gitlab_ci_yaml_processor_spec.rbKamil Trzcinski2016-07-161-5/+5
| |
| * Fix gitlab_ci_yaml_processor_spec.rbKamil Trzcinski2016-07-161-1/+1
| |
| * Store when and yaml variables in builds tableKamil Trzcinski2016-07-161-14/+7
| |
* | Move job environment validation to new CI configGrzegorz Bizon2016-07-191-3/+3
| |
* | Move tags and allow_failure CI entries to new configGrzegorz Bizon2016-07-181-2/+2
| |
* | Move job artifacts configuration new CI config codeGrzegorz Bizon2016-07-181-6/+6
| |
* | Move job variables config entry to new CI configGrzegorz Bizon2016-07-181-1/+1
| |
* | Move except and only job nodes to new CI configGrzegorz Bizon2016-07-181-2/+2
| |
* | Move job image and services nodes to new CI configGrzegorz Bizon2016-07-181-4/+4
| |
* | Merge branch 'master' into refactor/ci-config-move-job-entriesGrzegorz Bizon2016-07-181-2/+2
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (522 commits) Fix CI yaml example Align cancel and retry buttons Remove deploy to production button Fix a bug where the project's repository path was returned instead of the wiki path Don't fail to highlight when Rouge doesn't have a lexer Revert "Merge branch 'gl-dropdown-issuable-form' into 'master'" Update tests Don't fail when Ci::Pipeline doesn't have a project Don't fail when a LegacyDiffNote didn't store the right diff Update CHANGELOG Use cattr_accessor instead duplicating code on NoteOnDiff concern Fix mentioned users list on diff notes Don't ask Heather to review documentation MR's add project name and namespace to filename on project export navbar_icon was renamed to custom_icon in: use %(...) and %[...] in favor of %<...> Fix spec Don't attempt to disable statement timeout on a MySQL DB Disable statement timeout outside of transaction and during adding concurrent index Disable PostgreSQL statement timeout during migrations Add visibility icon ...
| * Avoid `describe`-ing symbols in specsrs-describe-symbolsRobert Speicher2016-07-121-2/+2
| |
* | Remove job cache configfrom legacy yaml processorGrzegorz Bizon2016-07-141-3/+3
| |
* | Revert logical validation in CI job stage entryGrzegorz Bizon2016-07-141-2/+2
| |
* | Improve CI job entry validations in new configGrzegorz Bizon2016-07-141-2/+2
| |
* | Prevalidate CI entries recursively on processedGrzegorz Bizon2016-07-121-1/+1
| |
* | Move after script CI job confg to new processorGrzegorz Bizon2016-07-101-1/+1
| |
* | Add before_script node to CI job entry configGrzegorz Bizon2016-07-101-1/+1
| |
* | Integrate CI job stage entry into CI configurationGrzegorz Bizon2016-07-091-3/+3
| |
* | Move CI job config validations to new classesGrzegorz Bizon2016-07-061-1/+8
| |
* | Create composite job entries in new CI configGrzegorz Bizon2016-07-051-2/+2
|/
* Merge branch 'refactor/ci-config-move-global-entries' into 'master' Rémy Coutable2016-07-051-17/+30
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Move global ci entries handling from legacy to new config ## What does this MR do? This MR moves responsibility of handling global CI config entries (like `image`, `services`), from legacy `GitlabCiYamlProcessor` to new CI Config ## Why was this MR needed? This is the next iteration of CI configuration refactoring ## What are the relevant issue numbers? #15060 ## Does this MR meet the acceptance criteria? - Tests - [x] Added for this feature/bug - [x] All builds are passing - [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides) - [x] Branch has no merge conflicts with `master` (if you do - rebase it please) See merge request !4820
| * Add minor improvements in readability in CI configrefactor/ci-config-move-global-entriesGrzegorz Bizon2016-07-041-2/+2
| |
| * Add global cache config entry to new CI configGrzegorz Bizon2016-06-291-13/+13
| |
| * Merge branch 'master' into refactor/ci-config-move-global-entriesGrzegorz Bizon2016-06-281-0/+12
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (352 commits) Display last commit of deleted branch in push events (!4699) add changelog add missing attribute to attr_encrypted so it is fully backwards-compatible Add "GitLab team members only" to diagram link doc: note that .gitattributes uses default branch use the conf lexer so we have highlighted comments first draft of docs support cgi style options, such as erb?parent=json move the path alias to a more appropriate location make #custom_language private appease rubocop add an alias for Snippet#path appease rubocop check the tag so that an instance will pass too fix the spec, using project.change_head Revert "bump the master sha for gitlab-test!9" bump the master sha for gitlab-test!9 add custom highlighting via .gitattributes Rename Licenses API to License Templates API Check for conflict with wiki projects when creating a new project. ...
| * | Fix ci config cache validation in legacy processorGrzegorz Bizon2016-06-241-1/+14
| | |
| * | Move CI stages configuration to new CI configGrzegorz Bizon2016-06-231-4/+4
| | |
| * | Assume that unspecified CI config is undefinedGrzegorz Bizon2016-06-231-4/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We assume that when someone adds a key for the configuration entry, but does not provide a valid value, which causes entry to be `nil`, then entry should be considered as the undefined one. We also assume this is semantically correct, this is also backwards compatible with legacy CI config processor. See issue #18775 for more details.
| * | Handle CI environment variables in a new CI configGrzegorz Bizon2016-06-221-2/+2
| | |
| * | Handle after script CI config in new classesGrzegorz Bizon2016-06-211-1/+1
| | | | | | | | | | | | | | | This also makes Script to return an array of commands instead of concatented command, which is our current direction.
| * | Handle CI services config in new CI config classesGrzegorz Bizon2016-06-211-2/+2
| | |
| * | Move CI image configuration entry to new CI configGrzegorz Bizon2016-06-211-1/+1
| | |
* | | Enable Style/EmptyLines cop, remove redundant onesrubocop/enable-cops-for-empty-linesGrzegorz Bizon2016-07-012-2/+0
| |/ |/|
* | Merge branch 'test-gitlab-ci-ymls' into 'master' Rémy Coutable2016-06-271-0/+12
|\ \ | |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test templates and GitLabCI parser againts each other ## What does this MR do? Test the available templates against the preprocessor and vice versa ## Are there points in the code the reviewer needs to double check? The dynamic creation of tests seems a little hacked. Is there a cleaner way? ## Does this MR meet the acceptance criteria? - [ ] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added -- Seems unneeded - [x] All builds are passing - [ ] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides) - [ ] Branch has no merge conflicts with `master` (if you do - rebase it please) See merge request !4898
| * Test templates and GitLabCI parser againts each othertest-gitlab-ci-ymlsZ.J. van de Weg2016-06-271-0/+12
| |
* | Merge branch 'master' into refactor/ci-config-add-entry-errorrefactor/ci-config-add-entry-errorGrzegorz Bizon2016-06-201-18/+97
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (345 commits) use rails root join fixed a couple of errors spotted in production Fix RangeError exceptions when referring to issues or merge requests outside of max database values Fix bug in `WikiLinkFilter`. Small frontend code fixes and restore 8a2d88f commit Warn about admin privilege to disable GitHub Webhooks Listing GH Webhooks doesn't stop import process for non GH admin users fixup! updated docs for api endpoint award emoji Update CHANGELOG Ensure Todos counters doesn't count Todos for projects pending delete Add endpoints for award emoji on notes Sort API endpoints and implement feedback Add endpoints for Award Emoji Fixed issue with assignee dropdown not selecting correctly Removed update method Re-structured controller spec Renamed issuable param to issuable_id Fix clibpoard buttons on "Check out branch" modal. Track method call times/counts as a single metric Cache todo counters (pending/done) Fix a 'wrong number of arguments' error Added missing mount point for Sidekiq Metrics API, after it got lost on rebase. ...
| * Merge branch 'fix/error-when-job-variables-not-defined-but-specified' into ↵Rémy Coutable2016-06-171-17/+39
| |\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 'master' Fix error when CI job variables key used but not specified ## What does this MR do? This MR fixes a an error when CI job variables specified, but not defined: ```yaml image: ruby:2.2 test: variables: script: - rspec ``` ## What are the relevant issue numbers? Closes #18764 Follow up discussion in: #18775 ## Does this MR meet the acceptance criteria? - [x] [CHANGELOG](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CHANGELOG) entry added - [x] Tests - [x] Added for this feature/bug - [x] All builds are passing - [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides) - [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits) See merge request !4745
| | * Fix error when CI job variables not specifiedGrzegorz Bizon2016-06-171-17/+39
| | |
| * | Validate only and except regexpvalidate-only-except-regexpKamil Trzcinski2016-06-171-1/+58
| |/ | | | | | | | | Currently the RegexpError can be raised when processing next stage which leads to 500 in different places of code base. This adds early check that regexps used in only and except are valid.
* | Merge branch 'master' into refactor/ci-config-add-entry-errorGrzegorz Bizon2016-06-171-7/+59
|\ \ | |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * master: (189 commits) Update CHANGELOG for !4659 Center the header logo for all Devise emails Add previews for all customized Devise emails Customize the Devise `unlock_instructions` email Customize the Devise `reset_password_instructions` email Customize the Devise `password_change` emails Use gitlab-git 10.2.0 Use Git cached counters on project show page Fix indentation scss-lint errors Added title attribute to enties in tree view Closes #18353 Banzai::Filter::ExternalLinkFilter use XPath Reduce queries in IssueReferenceFilter Use gitlab_git 10.1.4 Fixed ordering in Project.find_with_namespace Fix images in emails Banzai::Filter::UploadLinkFilter use XPath Turn Group#owners into a has_many association Make project_id nullable ...
| * Merge remote-tracking branch 'origin/master' into environments-and-deploymentsKamil Trzcinski2016-06-141-2/+22
| |\ | | | | | | | | | | | | # Conflicts: # db/schema.rb
| * | Validate environment name with regexKamil Trzcinski2016-06-141-7/+59
| | |