Commit Graph

69 Commits

Author SHA1 Message Date
Felipe Artur Cardozo 236ed1f2f3 Merge branch 'security-event-counters-private-data' into 'master'
[master] Don't expose project names in various counters

See merge request gitlab/gitlabhq!2418
2018-07-24 20:25:25 +00:00
Francisco Javier López a7a1531fe5 Web Terminal Ci Build 2018-07-05 13:55:10 +00:00
Kamil Trzciński ca93faf15f Remove the use of `is_shared` of `Ci::Runner` 2018-06-26 15:53:09 +02:00
Yorick Peterse 9e29408ee6
Don't expose project names in various counters
Various counters would expose either project names, or full project
paths (e.g. "gitlab-org/gitlab-ce"). This commit changes various places
where we use "add_event" so we no longer expose (potentially) private
information.
2018-06-21 16:56:40 +02:00
Kamil Trzciński cc48d67ca5 Optimised paused runners to not re-query every 3s
We have long polling mechanism which is not being used by paused runners.
This makes the paused runner to generate a request every 3s,
where it could be fired only every 1h.
2018-06-17 16:52:17 +02:00
Tomasz Maczukin a6a900256e
Change update entrypoint instead of adding new keep-alive one 2018-06-07 18:45:48 +02:00
Tomasz Maczukin 435e661a2e
Introduce new keep-alive API entrypoint for CI job 2018-06-07 15:17:44 +02:00
Kamil Trzciński b8370c9f55 Support presigned multipart uploads 2018-06-04 13:04:29 +02:00
Kamil Trzciński 385f37a724 Improve runner registration API 2018-05-31 10:56:41 +02:00
Shinya Maeda a98a462fb2 Revert correctly 2018-05-28 14:17:38 +09:00
Shinya Maeda db55fa5942 Disallow updating job stauts if it's not running 2018-05-28 14:17:38 +09:00
Shinya Maeda 5af5815d62 Add the same gurad clause with artifacts uplaoding 2018-05-21 19:35:46 +09:00
Shinya Maeda 93349b4440 Append trace only if the job is running 2018-05-21 19:35:46 +09:00
Tomasz Maczukin 8516e3a4b7
Support 'active' setting on Runner Registration API endpoint 2018-05-09 14:13:54 +02:00
Kamil Trzciński 8d8534d7ab Enforce proper 416 support for runner trace patch endpoint 2018-05-07 08:53:32 +02:00
Dylan Griffith 0d30b00de8 Start persisting runner_type when creating runners 2018-04-30 17:01:35 +04:00
Alexis Reigel b55c3a7bc4
support group runners in existing API endpoints 2018-04-23 09:21:43 +02:00
🙈 jacopo beschi 🙉 c6b1043e9d Resolve "Make a Rubocop that forbids returning from a block" 2018-04-18 09:19:40 +00:00
Kamil Trzciński 678620cce6 Add `direct_upload` setting for artifacts 2018-04-05 15:01:14 +02:00
Shinya Maeda 61c8093b26 Store metadata checksum for artifacts 2018-04-03 20:42:51 +09:00
Tomasz Maczukin 557c85a79f
Use raw value of maximum_timeout for Runner registration API 2018-03-28 13:58:34 +02:00
Tomasz Maczukin f5e602ee0f
Rename maximum_job_timeout to maximum_timeout 2018-03-28 13:58:15 +02:00
Tomasz Maczukin 62f053e4e5
Update runner registration API 2018-03-28 13:57:41 +02:00
Tomasz Maczukin dbd7455583
Use _human_readable for Runner's registration API 2018-03-28 13:57:18 +02:00
Tomasz Maczukin d633bc8134
Rename job_upper_timeout to maximum_job_timeout 2018-03-28 13:55:46 +02:00
Tomasz Maczukin 7b82f4bab1
Add support for job_upper_timeout in API 2018-03-28 13:55:46 +02:00
Micaël Bergeron fc6587f1f2 Add proxy_download to perform proxied sending of all files 2018-03-09 09:16:06 -05:00
Micaël Bergeron 6466739e2e Merge remote-tracking branch 'origin/master' into 40781-os-to-ce 2018-03-08 10:55:47 -05:00
Shinya Maeda 03438886e1 Change column to file_sha256. Add test. Add changelog 2018-03-06 17:16:33 +09:00
Shinya Maeda a1c612ce2d Add checksum at runner grape api 2018-03-06 17:02:47 +09:00
Kamil Trzciński 79a5e7fb53 Merge commit '7e424eb852716495073881710e8a8851b4a4cd5a' into object-storage-ee-to-ce-backport 2018-02-28 21:14:25 +01:00
Grzegorz Bizon b14c484bb1 Merge branch 'use-send-url-for-incompatible-runners' into 'master'
Support SendURL for performing indirect download of artifacts if clients does…

See merge request gitlab-org/gitlab-ee!4401
2018-02-28 20:58:56 +01:00
Sean McGivern a7dae52e9d Merge branch '4163-move-uploads-to-object-storage' into 'master'
Move uploads to object storage

Closes #4163

See merge request gitlab-org/gitlab-ee!3867
2018-02-28 20:58:15 +01:00
Dylan Griffith b5a5fdf0e3 Persist runner IP address on contact (#43489) 2018-02-28 11:54:37 +11:00
Matija Čupić 3366f377c1
Merge branch 'master' into 38265-stuckcijobsworker-wrongly-detects-cancels-stuck-builds-when-per-job-timeout-is-more-than-an-hour 2018-02-04 23:38:59 +01:00
Micaël Bergeron 2057a6acde port of 594e6a0a625^..f74c90f68c6 2018-02-01 12:14:46 -05:00
Matija Čupić 397442a061
Update runner info on all authenticated requests 2018-01-29 17:21:30 +01:00
Kamil Trzcinski 0464c25f60 Store expire_at in ci_job_artifacts 2017-12-03 12:05:23 +01:00
Zeger-Jan van de Weg 61864a5a5b Rename Artifact to JobArtifact, split metadata out
Two things at ones, as there was no clean way to seperate the commit and
give me feedback from the tests.

But the model Artifact is now JobArtifact, and the table does not have a
type anymore, but the metadata is now its own model:
Ci::JobArtifactMetadata.
2017-12-03 12:04:48 +01:00
Shinya Maeda 38d9b4d77d Use script_failure. Add runner_system_failure. Improve spec. 2017-09-05 15:10:34 +09:00
Shinya Maeda 5d50cbfaab Use unknown_failure for runner 2017-09-05 14:30:28 +09:00
Shinya Maeda 68f6c61cf6 - Allow runner API to pass failure_reason
- Fix spec
2017-09-05 14:30:28 +09:00
Shinya Maeda 1d7c039072 Fix enum lists 2017-09-05 14:30:28 +09:00
Shinya Maeda dcf09d1144 Implement `failure_reason` on `ci_builds` 2017-09-05 14:30:28 +09:00
Sean McGivern f11049ab91 Merge branch 'api-delete-respect-headers' into 'master'
API: Respect the 'If-Unmodified-Since' for delete endpoints

See merge request !9621
2017-08-30 09:56:17 +00:00
Maxim Rydkin 9226804bf3 replace `is_runner_queue_value_latest?` with `runner_queue_value_latest?` 2017-08-29 11:14:41 +03:00
Robert Schilling e80313f9ee Conditionally destroy a ressource 2017-08-28 16:40:25 +02:00
Gabriel Mazetto abb878326c Rename many path_with_namespace -> full_path 2017-08-01 07:26:58 +02:00
Dmitriy Zaporozhets 6b8ad689da
Update grape gem
New version of the gem returns 200 status code on delete with content
instead of 204 so we explicitly set status code to keep existing
behavior

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2017-07-20 16:33:18 +03:00
Rémy Coutable 4cfa5ce4a9
Enable the Style/PreferredHashMethods cop
Signed-off-by: Rémy Coutable <remy@rymai.me>
2017-06-02 19:11:26 +02:00