Commit Graph

395 Commits

Author SHA1 Message Date
Nick Thomas 4bda5b502d Short-circuit build coverage extraction for empty regexes 2017-07-22 07:12:19 +01:00
Nick Thomas 000ddc96c5 Fix the gcovr coverage regex by removing line separators before scanning
RE2 differs from Ruby in handling multiple-line strings. The string "foo\n"
will not match the regular expression "foo$" unless multi-line mode is enabled
(and it's off by default).

Since we're already scanning the build trace line by line (and so multi-line
coverage regular expressions won't work), we can fix this by removing the line
separator before scanning the string.
2017-07-21 22:08:23 +01:00
Kamil Trzciński 4766a77b1d Merge branch 'feature/gb/auto-retry-failed-ci-job' into 'master'
Make it possible to auto retry a failed CI/CD job

Closes #3442

See merge request !12909
2017-07-20 11:25:54 +00:00
Douwe Maan ba60d4f6e4 Merge branch '24570-use-re2-for-user-supplied-regexp-9-3' into 'security-9-3'
24570 use re2 for user supplied regexp 9 3

See merge request !2129
2017-07-19 22:28:41 -05:00
Grzegorz Bizon 23223ba64e Do not allow to auto-retry a job more than 2 times 2017-07-19 11:27:49 +02:00
Grzegorz Bizon c1918fb10b Add a new `retry` CI/CD configuration keyword 2017-07-17 12:05:07 +02:00
Kamil Trzcinski 6d272f8e7d Pass before_script and script as-is preserving arrays 2017-07-07 14:42:54 +02:00
Kamil Trzciński 7f500acb5f Merge branch '33772-readonly-gitlab-ci-cache' into 'master'
Introduce cache policies for CI jobs

Closes #33772

See merge request !12483
2017-07-06 07:40:43 +00: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
Nick Thomas 35f4a00f37 Introduce cache policies for CI jobs 2017-07-05 15:39:26 +01:00
Tomasz Maczukin dcdf2a8bc5 Make entrypoint and command keys to be array of strings 2017-07-02 14:48:11 +02:00
Grzegorz Bizon 0430b76441 Enable Style/DotPosition Rubocop 👮 2017-06-21 13:48:12 +00:00
Grzegorz Bizon b29bf62602 Merge branch 'feature/add-support-for-services-configuration' into 'master'
Add support for services configuration in .gitlab-ci.yml

See merge request !8578
2017-06-14 07:57:47 +00:00
Kamil Trzcinski 25b99a5b3b Update tests and application 2017-06-13 16:05:38 +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
Tomasz Maczukin 645c865141
Remove Gitlab::Ci::Config::Entry::DockerImage 2017-06-12 14:27:17 +02:00
Tomasz Maczukin c70e9f2ed1
Send new configuration options with job's payload 2017-06-12 12:58:35 +02:00
Tomasz Maczukin 8c6e2bada2
Add support for docker image configuration in .gitlab-ci.yml 2017-06-12 12:58:35 +02:00
Bob Van Landuyt bdebe849b8 Translate project & repository pages 2017-06-07 20:13:44 +00: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 fe0b2f81c7 Refine implementation of pipeline stage seeds 2017-06-02 12:16:11 +02:00
Grzegorz Bizon c72e21fd97 Return stage seeds object from YAML processor 2017-05-31 15:13:40 +02:00
Grzegorz Bizon c881425b66 Refine pipeline stages seeds class 2017-05-31 14:40:50 +02:00
Grzegorz Bizon 805715cc68 Add stage seed class that represents attributes 2017-05-30 15:30:45 +02:00
Lin Jen-Shin 70eb0c6a88 Merge remote-tracking branch 'upstream/master' into rename-builds-controller
* upstream/master: (307 commits)
  Address feedback
  Add small update for the i18n guide.
  update webpack to v2.6.1 patch release to fix "Can't find variable: Promise" error
  update webpack-bundle-analyzer past v2.4.1 to support NamedChunksPlugin
  name all webpack chunks to improve long term cacheability
  add NameAllModulesPlugin to cover shortcomings of NamedModulesPlugin
  upgrade to latest webpack version
  Only use DROP INDEX CONCURRENTLY on postgreql 9.2+
  Provide default for calculating label text color (!11681)
  Add failing test for #32728
  Bugfix: Always use the default language when generating emails.
  Remove unecessary commit pattern check
  Add regexp_for_value helper method
  Remove shared example and improve sub_group_issuables_spec.rb
  Remove 'should' from scenario in has_subgroup_title_spec.rb
  Cartfile git and binary methods cannot take a GitHub repo
  Fix terminals support for Kubernetes service
  Add review comments to compare_spec.rb
  Fix transient error clicking dropdown items in compare_spec.rb
  Use non-global jQuery reference within raven bundle
  ...
2017-05-26 18:25:32 +08:00
Shinya Maeda f9c9daac78 Resolve static analysys. Use until instead of negative while 2017-05-25 01:35:40 +09:00
Shinya Maeda cf4ab10d71 Adopt ayufan script 2017-05-24 20:20:20 +09:00
Shinya Maeda a16387486a put force_encoding in def reverse_line 2017-05-24 20:10:15 +09:00
Shinya Maeda 22f1d2a1c4 Append gurad clause. remove unless debris.empty 2017-05-24 20:10:14 +09:00
Shinya Maeda 72b0af2c4c Avoid tap. Use unless&empty. 2017-05-24 20:10:14 +09:00
Shinya Maeda fdcd2f192d Improve calc_read_size 2017-05-24 20:10:14 +09:00
Shinya Maeda 8c1b07e0cc Optimize reverse_line 2017-05-24 20:10:14 +09:00
Shinya Maeda 6be609dd64 much better 2017-05-24 20:10:14 +09:00
Shinya Maeda dddfa28eec Refer reverse_line from read_last_lines 2017-05-24 20:10:14 +09:00
Shinya Maeda 318b464072 Use force_encoding(regex.encoding) 2017-05-24 20:10:14 +09:00
Shinya Maeda a6f6056c62 Use force_encoding when regex contains UTF-8 char 2017-05-24 20:10:14 +09:00
Shinya Maeda b9950c22b3 Use each_line. Avoid comparison of partial. Add UTF-8 spec. 2017-05-24 20:10:14 +09:00
Shinya Maeda 3d11b7d8e2 Fix reverse_line from chunk based 2017-05-24 20:10:14 +09:00
Shinya Maeda ddf67424ec Fix while true 2017-05-24 20:10:14 +09:00
Shinya Maeda 6018afa89f Add reverse_line 2017-05-24 20:10:14 +09:00
Lin Jen-Shin 71777a4a18 Rename BuildsController to JobsController
Rename other URL generators

admin_builds_path -> admin_jobs_path

Fix tests and more renaming

Fix more tests

Also change build_id to job_id in the controller
2017-05-17 20:17:30 +08:00
Kamil Trzciński e261b4b851 Merge branch 'allow_numeric_values_in_gitlab_ci_yml' into 'master'
Allow numeric values in gitlab-ci.yml

Closes #30017

See merge request !10607
2017-05-15 07:59:45 +00:00
Dosuken shinya 1175937469 Resolve "Update gem sidekiq-cron from 0.4.4 to 0.6.0 and rufus-scheduler from 3.1.10 to 3.4.0" 2017-05-10 15:48:09 +00:00
blackst0ne 295cecfb56 Allow numeric values in gitlab-ci.yml 2017-05-07 08:29:43 +11:00
Kamil Trzciński 6ad3814e1b Merge branch 'feature/gb/manual-actions-protected-branches-permissions' into 'master'
Check access to a branch when user triggers manual action

Closes #20261

See merge request !10494
2017-05-06 17:17:02 +00:00
Zeger-Jan van de Weg c17e6a6c68 Real time pipeline show action 2017-05-06 16:45:46 +00:00
Grzegorz Bizon 55cec2177c Refine inheritance model of extended CI/CD statuses 2017-05-05 15:21:06 +02:00
Grzegorz Bizon 2cc8f43e54 Introduce generic manual action extended status class 2017-05-05 15:13:58 +02:00
Grzegorz Bizon 9363675380 Use update build policy instead of new play policy 2017-05-05 12:25:24 +02:00
Grzegorz Bizon b6facd8313 Merge commit '3a2b60f7' from 'master'
* commit '3a2b60f7a0109cdb84e8727a2625318a746e84dc': (151 commits)
  Fixed Karma spec
  Reject EE reserved namespace paths in CE as well
  Updated webpack config
  Include the bundler:audit job into the static-analysis job
  Document serializers
  Add artifact file page that uses the blob viewer
  Pipeline table mini graph dropdown remains open when table is refreshed
  Adds off for event hub
  Compile gitlab-shell go executables
  Allow to create new branch and empty WIP merge request from issue page
  Moved to a view spec
  Improving copy of CONTRIBUTING.md, PROCESS.md, and code_review.md
  Convert seconds to minutes and hours on chat notifations
  Disable navigation to Pages config if Pages is disabled
  Sort the network graph both by commit date and topographically.
  Add tooltips to note action buttons
  Add breadcrumb, build header and pipelines submenu to artifacts browser
  Update todos screenshots
  removes the possibility of commit messages having carriage returns
  Handle incoming emails from aliases correctly
  ...
2017-05-05 12:22:46 +02:00