Commit Graph

163 Commits

Author SHA1 Message Date
Maxim Rydkin f364cc34ea
move `lib/ci/charts.rb` into `lib/gitlab/ci/charts.rb` 2017-09-12 22:32:01 +03:00
Douwe Maan fe13f11041 Create and use project path helpers that only need a project, no namespace 2017-07-05 11:11:59 -05:00
Z.J. van de Weg 9b2ae90d2c Remove references to build in pipeline charts
Being the good boyscouts, but mainly because of [the comment in the
review](https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/12378#note_33302115)
the words used for classes and variables are changed to not use builds
anymore.
2017-06-23 14:50:03 +02:00
Z.J. van de Weg 13d39971f3 Improve performance for pipeline charts
Achieved by using another table, which both has better indexes and
is smaller. Now the data provided for the user is more valueable too.
2017-06-23 11:46:55 +02:00
Kamil Trzcinski a4a3da764a Allow to access pipelines even if they are disabled, but only present jobs and commit statuses without giving ability to access them 2017-06-13 09:52:48 +02:00
Grzegorz Bizon 79380fe5fb Merge branch 'master' into feature/gb/persist-pipeline-stages
* master: (524 commits)
  Improve user experience around slash commands in instant comments
  Fix LFS timeouts when trying to save large files
  retryable? is now available for CommitStatus
  Resolve "Documentation of `.gitlab-ci.yml` states incorrect example for variables"
  Fix test failures
  Add slugify project path to CI enviroment variables
  Fixed typo: craeted -> created
  32118 Make New environment empty state btn lowercase
  Expose import_status in Projects API
  32832 Remove overflow from comment form for confidential issues and vertically aligns confidential issue icon
  Fix test failures
  Allow manual bypass of auto_sign_in_with_provider
  Fix keys seed
  Allow users to be hard-deleted from the API
  fixup some classnames and media queries
  Enable the Style/PreferredHashMethods cop
  Lint our factories creation in addition to their build
  Don’t schedule workers from inside transactions
  Allow scheduling from after_commit hooks
  Forbid Sidekiq scheduling in transactions
  ...

Conflicts:
	app/serializers/pipeline_entity.rb
	db/schema.rb
	spec/factories/ci/stages.rb
	spec/lib/gitlab/import_export/safe_model_attributes.yml
	spec/services/ci/create_pipeline_service_spec.rb
	spec/spec_helper.rb
2017-06-05 12:51:59 +02:00
Grzegorz Bizon c00d72b6f3 Rename pipeline methods related to legacy stages 2017-06-01 11:55:18 +02:00
Kamil Trzcinski 161af17c1b Introduce source to pipeline entity 2017-05-31 14:17:49 +02:00
Rémy Coutable d40e1f547e Enable the Style/TrailingCommaInLiteral cop
Use the EnforcedStyleForMultiline: no_comma option.

Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-05-10 18:25:45 +02:00
Fatih Acet 0151325dac Merge request widget redesign 2017-05-09 04:15:34 +00:00
Zeger-Jan van de Weg c17e6a6c68 Real time pipeline show action 2017-05-06 16:45:46 +00:00
Phil Hughes 9caa7e7a54 Merge branch '24883-build-failure-summary-page' into 'master'
Build failures summary page for pipelines

Closes #24883

See merge request !10719
2017-05-05 18:58:01 +00:00
James Edwards-Jones acd9cd0906 Hides pipeline ‘Failed Jobs’ tab when no jobs have failed 2017-05-05 15:41:36 +01:00
James Edwards-Jones 4c0adb9ee9 Build failures summary page for pipelines 2017-05-05 15:01:50 +01:00
Grzegorz Bizon c68bf4327b Use wrap_parameters in pipelines controller
This makes it possible to workaround a bug in `safe_constantize` which
caused a `LoadError` exception when doing

```
"Pipeline".safe_constantize
LoadError: Unable to autoload constant Pipeline, expected
/home/grzesiek/gdk/gitlab/app/models/ci/pipeline.rb to define it
```

See https://github.com/rails/rails/issues/28854 for more details.
2017-05-05 09:32:13 +02:00
Grzegorz Bizon b8960354fe Respond with no content for pipeline JSON actions 2017-05-05 09:32:13 +02:00
Filipa Lacerda a1debf5cf0 Retry and cancel endpoints send 204 json response. Request is made with type json 2017-05-05 09:32:13 +02:00
Shinya Maeda e9d9445195 - Add new parameters for Pipeline API
- Expand PipelinesFinder functions
2017-05-03 02:11:50 +09:00
Kamil Trzciński 15e87cea3a Merge branch '8998_skip_pending_commits_if_not_head' into 'master'
Add auto-cancel for pending pipelines on branch, if they are not HEAD

See merge request !9362
2017-04-07 08:30:32 +00:00
Toon Claes 26e24bbe53
Set the Etag cache polling interval 2017-04-06 23:50:36 +02:00
Rydkin Maxim 2d4fd769a7 replaced one more helper with presenter 2017-04-04 22:21:12 +03:00
Shinya Maeda 38b1ec2cc0 Fix rspec failure 2017-03-23 17:11:49 +09:00
Shinya Maeda 2b33e9eeb6 with_status to only_status 2017-03-23 17:11:49 +09:00
Shinya Maeda ba27f1b954 Expose only status. ci_cd_status to status. Support abstract class. 2017-03-23 17:11:48 +09:00
Shinya Maeda 0e06cfc059 Add api points for ci cd status. Add favicon. 2017-03-23 17:11:48 +09:00
Kushal Pandya 52352be6be Cleaning up navigational order - Project 2017-03-02 17:57:01 +00:00
Filipa Lacerda 0f36cfd7f5 Adds Pending and Finished tabs to pipelines page
Fix broken test
2017-02-16 22:25:01 +00:00
Grzegorz Bizon b5dfd03efc Include resources to speed up pipelines serializer 2017-01-05 14:23:49 +01:00
Grzegorz Bizon 3deaf1342e Merge branch 'master' into auto-pipelines-vue
* master: (367 commits)
  Set “Remove branch” button to default size
  remove unused helper method
  reduce common code even further to satisfy rake flay
  remove button class size alteration from revert and cherry pick links
  factor out common code to satisfy rake flay
  homogenize revert and cherry-pick button styles generated by commits_helper
  apply margin on alert banners only when there is one or more alerts
  Rename MattermostNotificationService back to MattermostService
  Rename SlackNotificationService back to SlackService
  Fix stage and pipeline specs and rubocop offenses
  Added QueryRecorder to test N+1 fix on Milestone#show
  Use gitlab-workhorse 1.2.1
  Make 'unmarked as WIP' message more consistent
  Improve specs for Files API
  Allow unauthenticated access to Repositories Files API GET endpoints
  Add isolated view spec for pipeline stage partial
  Move test for HTML stage endpoint to controller specs
  Fix sizing of avatar circles; add border
  Fix broken test
  Fix broken test Changes after review
  ...

Conflicts:
	app/assets/stylesheets/pages/pipelines.scss
	app/controllers/projects/pipelines_controller.rb
	app/views/projects/pipelines/index.html.haml
	spec/features/projects/pipelines/pipelines_spec.rb
2016-12-21 12:09:06 +01:00
Kamil Trzcinski 2b0b53cddd
Add tests for stage API endpoint 2016-12-20 11:00:56 +01:00
Kamil Trzcinski 083e185cda
Render stage dropdown in separate API call as HTML
```
Endpoint: /group/project/pipelines/id/stage.json?stage=name

Call: stage_namespace_project_pipeline_path(pipeline.project.namespace, pipeline.project, pipeline, stage: stage.name)
```
2016-12-19 13:20:17 +01:00
Kamil Trzcinski a85235b824
Remove unused updated_at 2016-12-15 22:06:59 +01:00
Grzegorz Bizon 70c0a76cad Fix rubocop offenses in code related to pipelines 2016-12-15 13:41:46 +01:00
Grzegorz Bizon f55fcef3db Add prototype of pipelines serializer with pagination 2016-12-07 15:23:07 +01:00
Regis 9d1fd16ab1 fix conflict 2016-12-02 11:46:47 -07:00
Grzegorz Bizon 2791226c6b Remove support from incremental pipeline updates 2016-12-01 17:31:49 +01:00
Filipa Lacerda 640062abdb Adds tests for tabs in the rspec for pipelines
Adds tests for the Linked Tabs class

Removes event listener

Adds builds
2016-11-30 17:06:46 +00:00
Filipa Lacerda 43e5009a30 Pipelines tabs 2016-11-30 17:06:46 +00:00
Kamil Trzcinski c07180f379 Fix broken pipeline rendering [ci skip] 2016-11-15 15:20:37 +01:00
Regis 634e92720f Merge branch 'master' into auto-pipelines-vue 2016-11-10 19:36:24 -07:00
Regis ac6b988e86 fix conflict 2016-11-10 13:48:23 -07:00
Regis b49a3f1ef1 fix conflict 2016-11-10 13:48:15 -07:00
Grzegorz Bizon 6b52adc661 Refine incremental pipeline serializer 2016-11-10 21:33:03 +01:00
Grzegorz Bizon b0c6037a3a Refine incremental pipeline serializer 2016-11-10 21:18:39 +01:00
Kamil Trzcinski 6f6119b738 Support pipelines API
Pass `updated_at` to get only incremental changes since last update
2016-11-10 15:32:23 +01:00
Grzegorz Bizon c8e8a1bb77 Improve code readability in pipelines controller 2016-11-07 13:33:04 +01:00
Z.J. van de Weg 3152477114 Use PipelinesFinder in Pipelines API 2016-09-07 15:38:03 +02:00
Kamil Trzcinski 39203f1adf Pre-create all builds for Pipeline when a trigger is received
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.
2016-08-11 15:22:35 +02:00
Grzegorz Bizon 92984783db Rename commit_data in Pipeline to commit 2016-06-21 14:43:37 +02:00
Kamil Trzcinski 3656a6edf3 Make retry action on pipeline to save a user 2016-06-14 13:04:10 +02:00
Kamil Trzcinski 021d3810c3 Rename Ci::Commit to Ci::Pipeline and rename some of the ci_commit to pipeline 2016-06-02 16:59:04 +02:00
Kamil Trzcinski 4f1c636831 Create pipeline objects with parameters 2016-05-18 17:01:42 -05:00
Kamil Trzcinski ef60b8e168 Use pipelines.errors when communicating the error 2016-05-18 13:02:10 -05:00
Kamil Trzcinski bf4dc75801 Improve the pipelines design 2016-05-16 16:48:27 -05:00
Kamil Trzcinski 2566c89a32 Remove testing delegate 2016-05-14 15:55:00 -05:00
Kamil Trzcinski a6b8d36ae9 Fix specs 2016-05-14 09:46:38 -05:00
Kamil Trzcinski 0d43b92706 Fix CI tests 2016-05-12 13:08:18 -05:00
Kamil Trzcinski fe2137d871 Improve pipelines design 2016-05-10 02:26:13 +03:00
Kamil Trzcinski cb6f035141 Improve pipeline view 2016-04-13 17:05:17 +02:00
Kamil Trzcinski f5d24e60f8 Pipeline view 2016-04-13 13:01:08 +02:00
Kamil Trzcinski 406a796f76 Make Pipeline view work 2016-04-13 11:03:39 +02:00
Kamil Trzcinski e84c155f09 WIP 2016-04-13 11:03:39 +02:00
Kamil Trzcinski 5d69f5b46d Use Ci::Commit as Pipeline 2016-04-11 23:32:54 +02:00