Commit Graph

17 Commits

Author SHA1 Message Date
GitLab Bot ad1e4b8fb8 Add latest changes from gitlab-org/gitlab@master 2019-10-21 15:05:58 +00:00
GitLab Bot 4ab54c2233 Add latest changes from gitlab-org/gitlab@master 2019-09-17 14:16:34 +00:00
GitLab Bot 930ff68c1e Add latest changes from gitlab-org/gitlab@master 2019-09-16 18:06:05 +00:00
Nick Thomas 013f7cd24c
Inherit from ApplicationRecord instead of ActiveRecord::Base 2019-03-28 16:18:23 +00:00
Grzegorz Bizon 9f307421a7 Simplify relation between a build and metadata
This removes erroneously defined polymorphic association, because
specifying `belongs_to` relationship with a class that already supports
polymorphic associations works out-of-the-box.
2019-01-29 14:42:53 +01:00
Grzegorz Bizon d434af46f4 Extract processable metadata to a separate concern
We extracted implementation of build/bridge metadata attributes to a
separate concern, because in EE `Ci::Bridge` also has metadata
attributes, and we want to build abstraction for storing values in build
metadata table.
2019-01-29 12:46:50 +01:00
Kamil Trzciński 0103d5be96 Add config_options|variables to BuildMetadata
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-04 16:38:17 +01:00
gfyoung 388cb319d5 Enable frozen string for app/models/**/*.rb
Partially addresses #47424.
2018-08-03 01:44:16 -07:00
Tomasz Maczukin 403decbbad
Add explicit primary key for ci_builds_metadata table 2018-03-28 14:00:04 +02:00
Tomasz Maczukin 7008ed1e33
Change and rename behavior of save_timeout_state! 2018-03-28 14:00:04 +02:00
Tomasz Maczukin 973e4030b1
Refactor build_metadata 2018-03-28 13:59:56 +02:00
Tomasz Maczukin a1cd3390e5
Add project_id column to Ci::BuildMetadata 2018-03-28 13:58:34 +02:00
Tomasz Maczukin 12401758a4
BuildMetadata styling improvements 2018-03-28 13:58:16 +02:00
Tomasz Maczukin d58d3098f1
Rename used_timeout to timeout 2018-03-28 13:58:16 +02:00
Tomasz Maczukin f5e602ee0f
Rename maximum_job_timeout to maximum_timeout 2018-03-28 13:58:15 +02:00
Tomasz Maczukin bb64b20a1f
Refactorize Ci::Build and Ci::BuildMetadata models 2018-03-28 13:57:41 +02:00
Tomasz Maczukin 1dde609ca6
Move job timeout information to new ci_builds_metadata table 2018-03-28 13:57:40 +02:00