Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2019-09-10Remove ignore_column occurence in CE codeDmitriy Zaporozhets
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2019-09-09Passing job:rules downstream and E2E specs for job:rules configurationdrew
2019-09-06Merge branch 'ce-detect-github-pull-requests' into 'master'Kamil Trzciński
Port CreateGithubPullRequestEvents migration from EE See merge request gitlab-org/gitlab-ce!31802
2019-09-05CE port for pipelines for external pull requestsFabio Pitino
Detect if pipeline runs for a GitHub pull request When using a mirror for CI/CD only we register a pull_request webhook. When a pull_request webhook is received, if the source branch SHA matches the actual head of the branch in the repository we create immediately a new pipeline for the external pull request. Otherwise we store the pull request info for when the push webhook is received. When using "only/except: external_pull_requests" we can detect if the pipeline has a open pull request on GitHub and create or not the job based on that.
2019-09-05New interruptible attribute supported in YAML parsing.Cédric Tabin
Since it is not possible to dynamically detect if a job is automatically cancellable or not, a this new attribute is necessary. Moreover, it let the maintainer of the repo to adjust the behaviour of the auto cancellation feature to match exactly what he needs.
2019-09-04Persist `needs:` validation as config errorKamil Trzciński
In case when `needs:` is missing, but when requested by service, we would not save the pipeline with config_error. This makes it explicit that we want to persist the error as `config_error` failure reason.
2019-08-22Optimise build queue serviceKamil Trzciński
This makes BuildQueueService to force refresh runners that are considered to have recent queue. Such runners are the ones that connected within online interval + time to expire runner cache.
2019-08-13Require `needs:` to be presentKamil Trzciński
This changes the `needs:` logic to require that all jobs to be present. Instead of skipping do fail the pipeline creation if `needs:` dependency is not found.
2019-08-05Merge branch 'properly-process-all-needs' into 'master'Sean McGivern
Properly process all needs Closes #65488 See merge request gitlab-org/gitlab-ce!31415
2019-08-02Properly process `needs:` with `when:`Kamil Trzciński
Currently, some of the jobs with `needs:` would be processed in stages, it means that `when:` for such jobs would not be respected. This changes the behavior to have a separate execution paths for jobs with `needs:`.
2019-08-02Make needs: to require previous jobsKamil Trzciński
This changes `needs:` from weak reference to have a strong reference. This means that job will not be created unless all needs are present as part of a pipeline.
2019-08-01Add support for DAGKamil Trzciński
This implements the support for `needs:` keyword as part of GitLab CI. That makes some of the jobs to be run out of order.
2019-07-29Add Job specific variablesMatija Čupić
Adds Job specific variables to facilitate specifying variables when running manual jobs.
2019-07-23Validate the existence of archived traces before removing live traceShinya Maeda
Often live traces are removed even though the archived trace doesn't exist. This commit checkes the existence strictly.
2019-06-18Revert concurrent pipeline schedule creationShinya Maeda
This commit reverts the previously introduced concurrent pipeline schedule creation which was a viable solution for mitigating inconsistent pipeline schedule by Sidekiq Memory Killer.
2019-06-17Backport the EE schema and migrations to CEYorick Peterse
This backports all EE schema changes to CE, including EE migrations, ensuring both use the same schema. == Updated tests A spec related to ghost and support bot users had to be modified to make it pass. The spec in question assumes that the "support_bot" column exists when defining the spec. In the single codebase setup this is not the case, as the column is backported in a later migration. Any attempt to use a different schema version or use of "around" blocks to conditionally disable specs won't help, as reverting the backport migration would also drop the "support_bot" column. Removing the "support_bot" tests entirely appears to be the only solution. We also need to update some foreign key tests now that we have backported the EE columns. Fortunately, these changes are very minor. == Backporting migrations This commit moves EE specific migrations (except those for the Geo tracking database) and related files to CE, and also removes any traces of the ee/db directory. Some migrations had to be modified or removed, as they no longer work with the schema being backported. These migrations were all quite old, so we opted for removing them where modifying them would take too much time and effort. Some old migrations were modified in EE, while also existing in CE. In these cases we took the EE code, and in one case removed them entirely. It's not worth spending time trying to merge these changes somehow as we plan to remove old migrations around the release of 12.0, see https://gitlab.com/gitlab-org/gitlab-ce/issues/59177 for more details.
2019-06-17Merge branch 'error-pipelines-for-blocked-users' into 'master'Grzegorz Bizon
Preventing blocked users and their PipelineSchdules from creating new Pipelines Closes #47756 See merge request gitlab-org/gitlab-ce!27318
2019-06-11Fix pipeline schedule when owner is nilShinya Maeda
Fixing the bug
2019-06-05preventing blocked users and their PipelineSchdules from creating new Pipelinesdrew cimino
updated several specs and factories to accomodate new permissions
2019-06-04Merge branch ↵Kamil Trzciński
'set-real-next-run-at-for-preventing-duplciate-pipeline-creations' into 'master' Make pipeline schedule worker resilient Closes gitlab-com/gl-infra/production#805 and #61955 See merge request gitlab-org/gitlab-ce!28407
2019-06-03Merge dev.gitlab.org master into GitLab.com masterYorick Peterse
2019-06-03Merge branch 'security-60039' into 'master'GitLab Release Tools Bot
Disallow invalid MR branch name See merge request gitlab/gitlabhq!3052
2019-06-03Make pipeline schedule worker resilientShinya Maeda
Currently, pipeline schedule worker is unstable because it's sometimes killed by excessive memory consumption. In order to improve the performance, we add the following fixes: 1. next_run_at is always real_next_run, which means the value always takes into account of worker's cron schedule 1. Remove exlusive lock. This is already covered by real_next_run change. 1. Use RunPipelineScheduleWorker for avoiding memory killer. Memory consumption is spread to the multiple sidekiq worker.
2019-05-31Remove legacy artifact related codeShinya Maeda
We've already migrated all the legacy artifacts to the new realm, which is ci_job_artifacts table. It's time to remove the old code base that is no longer used.
2019-05-06Fix schedule head pipeline updateShinya Maeda
Currently, schedule head pipeline update method which executed after pipeline creation does not take into account of merge reqeust pipelines. We should use dedicated `all_merge_requests` method in this case.
2019-05-02Use full ref when creating MR pipeline in specsMark Chao
Continuation of 426488b7218e85ce69868ae4628801af2322b74a
2019-05-02Adds a way to start multiple manual jobs in stageMayra Cabrera
- Adds an endpoint on PipelinesController - Adds a service that iterates over every build in a stage and plays it. - Includes 'play_manual' details on EntitySerializer - Builds a new Stage state: PlayManual. An stage can take this status if it has manual builds or an skipped, scheduled or manual status - Includes FE modifications and specs
2019-04-30Fix environment automatic on_stop triggerShinya Maeda
Due to the nature of pipelines for merge requests, deployments.ref can be a merge request ref instead of a branch name. We support the environment auto-stop hook for this case
2019-04-16Merge branch 'mc/feature/custom-metrics-ce' into 'master'Kamil Trzciński
Backport metrics report type See merge request gitlab-org/gitlab-ce!26798
2019-04-16Backport changes from EEMatija Čupić
This backports the changes from https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/10452
2019-04-16Rewind IID on Ci::PipelinesKamil Trzciński
If no pipeline is created we currently have IID gap. This is due to fact that we generate IID not on save, but rather ahead of time. This results, us, losing IIDs.
2019-04-15Merge branch 'sh-fix-pipeline-delete-caching' into 'master'Lin Jen-Shin
Properly expire all pipeline caches when pipeline is deleted Closes #60469 See merge request gitlab-org/gitlab-ce!27334
2019-04-15Properly expire all pipeline caches when pipeline is deletedStan Hu
When deleting a pipeline, only some of the cache structures were being expired, but not the full pipeline list. We have to synchronously schedule a pipeline cache expiration because the pipeline will be deleted if the Sidekiq expiration job picks it up. To do this, properly extract all the logic buried in the Sidekiq worker into a service, and then call the service. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/60469
2019-04-15Rescue and log errors raised when preparing buildsTiger
https://gitlab.com/gitlab-org/gitlab-ce/issues/60480
2019-04-12Add frozen_string_literal to spec/servicesThong Kuah
Probably useful as we often move these files to "new" files.
2019-04-10Add optional IGNORE_ACCESSORS in RetryBuildServiceMatija Čupić
2019-04-09Use Gitlab::PushOptions for `ci.skip` push optionLuke Duncalfe
Previously the raw push option Array was sent to Pipeline::Chain::Skip. This commit updates this class (and the chain of classes that pass the push option parameters from the API internal `post_receive` endpoint to that class) to treat push options as a Hash of options parsed by GitLab::PushOptions. The GitLab::PushOptions class takes options like this: -o ci.skip -o merge_request.create -o merge_request.target=branch and turns them into a Hash like this: { ci: { skip: true }, merge_request: { create: true, target: 'branch' } } This now how Pipeline::Chain::Skip is determining if the `ci.skip` push option was used.
2019-04-03Add port section to CI Image objectFrancisco Javier López
In order to implement https://gitlab.com/gitlab-org/gitlab-ee/issues/10179 we need several modifications on the CI config file. We are adding a new ports section in the default Image object. Each of these ports will accept: number, protocol and name. By default this new configuration will be only enabled in the Web IDE config file.
2019-03-26Clear pipeline status cache after destruction of pipelineStan Hu
`project.pipeline_status.has_status?` is cached, which can lead to Error 500s in the UI if the this condition is used to check whether a pipeline exists for a commit. We now expire the cache to ensure that the information is consistent. Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/59453
2019-03-20Create framework for build prerequisitesTiger
Introduces the concept of Prerequisites for a CI build. If a build has unmet prerequisites it will go through the :preparing state before being made available to a runner. There are no actual prerequisites yet, so current behaviour is unchanged.
2019-03-01Add suffix for merge request eventShinya Maeda
Fix ok Add spec Fix ok Fix Add changelog Fix Add memoization a fix
2019-02-27Persist source sha and target sha for merge pipelinesShinya Maeda
source_sha and target_sha are used for merge request pipelines
2019-01-24Remove expired artifacts periodicallyShinya Maeda
Rename Introduce Destroy expired job artifacts service Revert a bit Add changelog Use expired Improve Fix spec Fix spec Use bang for destroy Introduce iteration limit Update comment Simplify more Refacor Remove unnecessary thing Fix comments Fix coding offence Make loop helper exception free
2019-01-11Fix deprecation: Passing an argument to force an association to reload is ↵Jasper Maes
now deprecated
2019-01-10Disable audit event logging for pipeline destructionStan Hu
AuditEventService isn't equipped to handle logging of the destruction of entities such as CI pipelines. It's a project-level event that operates on a pipeline. The current log doesn't even indicate that the pipeline is being destroyed. This is a CE backport of https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/9105. We're removing the auditing call because it breaks the EE implementation.
2019-01-07Merge branch 'user-update-head-pipeline-worker-2' into 'master'Grzegorz Bizon
Refactor the logic of updating head pipelines for merge requests See merge request gitlab-org/gitlab-ce!23502
2019-01-04Add config_options|variables to BuildMetadataKamil Trzciński
These are data columns that store runtime configuration of build needed to execute it on runner and within pipeline. The definition of this data is that once used, and when no longer needed (due to retry capability) they can be freely removed. They use `jsonb` on PostgreSQL, and `text` on MySQL (due to lacking support for json datatype on old enough version).
2019-01-04Refactor the logic of updating head pipelinesShinya Maeda
Sort out some logic
2019-01-04Merge branch 'dm-git-access-any-ce' into 'master'Sean McGivern
[CE] Don't run checks for changed refs when specific changes are unknown See merge request gitlab-org/gitlab-ce!23990
2019-01-02Merge branch '18667-handle-push-opts' into 'master'Douwe Maan
Handle 'git push -o ci.skip' Closes #18667 See merge request gitlab-org/gitlab-ce!15643