Commit Graph

98 Commits

Author SHA1 Message Date
Andrew Newdigate ff0b2cc61f Re-enable MethodCallWithoutArgsParentheses Cop
Re-enables and autocorrects all instances of the
Style/MethodCallWithoutArgsParentheses rule
2019-01-29 21:05:30 +02:00
Stan Hu 6c83c2d8b9 Merge branch 'lock-trace-writes' into 'master'
Lock writes to trace stream

Closes #51502

See merge request gitlab-org/gitlab-ce!23332
2018-11-27 20:56:40 +00:00
Kamil Trzciński 31a1ce2132 Lock writes to trace stream 2018-11-27 17:55:20 +01:00
Kamil Trzciński c150772edb Fix deadlock on ChunkedIO 2018-11-26 13:15:46 +01:00
gfyoung 5186d6faa1 Enable frozen string for lib/gitlab/ci/**/*.rb
Enables frozen string for all remaining files
in lib/gitlab/ci.

Partially addresses #47424.
2018-10-30 13:39:30 -07:00
Yorick Peterse 2039c8280d
Disable existing offenses for the CodeReuse cops
This whitelists all existing offenses for the various CodeReuse cops, of
which most are triggered by the CodeReuse/ActiveRecord cop.
2018-09-11 17:32:00 +02:00
Grzegorz Bizon c7b8afcd90 Merge branch 'improve-metadata-access-performance' into 'master'
Improve metadata access performance

See merge request gitlab-org/gitlab-ce!20493
2018-07-10 09:21:11 +00:00
Lin Jen-Shin 3bfe306624 Resolve Naming/UncommunicativeMethod 2018-07-09 21:13:08 +08:00
Kamil Trzciński bc00803af0 Access metadata directly from Object Storage
Previously we would pull the file, now, we just stream-it as needed from Object Storage
2018-07-09 14:19:52 +02:00
NLR dca702a599 Make http_io honor HTTP(S)_PROXY environment. 2018-06-01 14:32:10 +00:00
Shinya Maeda 502b170927 Merge branch 'live-trace-v2' into live-trace-v2-efficient-destroy-all 2018-05-02 14:46:57 +09:00
Shinya Maeda 4b34c875f7 Add guardclause of offset < 0 in #truncate 2018-05-02 14:46:04 +09:00
Shinya Maeda 6ed91266d0 Skip truncate when offset == size. Fix static analysys. 2018-05-02 14:27:28 +09:00
Shinya Maeda 1d53918b62 Introduces `FastDestroyAll` module 2018-05-01 17:06:44 +09:00
Shinya Maeda 671f004451 Merge branch 'live-trace-v2' into live-trace-v2-efficient-destroy-all 2018-04-30 14:53:38 +09:00
Shinya Maeda 23c8e19846 Fix spec. Revert #truncate in stream (But still prevent redandant calls) 2018-04-30 14:52:29 +09:00
Shinya Maeda 1fb66181db Merge branch 'live-trace-v2' into live-trace-v2-efficient-destroy-all 2018-04-26 16:39:56 +09:00
Shinya Maeda f819bb7270 Optimize Trace#write/append/raw by caching data and avoiding unnecesary truncate 2018-04-26 16:30:27 +09:00
Shinya Maeda 9d6fe7bfdf Refactoring ci_job_trace to ci_build_trace 2018-04-26 15:06:04 +09:00
Kamil Trzciński 12711de256 Implement efficient destroy of job_trace_chunks 2018-04-24 15:13:46 +02:00
Shinya Maeda 94ce223391 Swap redis chunks when build finished 2018-04-24 14:53:14 +09:00
Shinya Maeda 0a6b7caac8 Merge branch 'master' into live-trace-v2 2018-04-20 21:51:44 +09: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 (OoO till 16th of April) df0a457d6f Merge branch '44981-http-io-trace-with-multi-byte-char' into 'master'
Fix `Trace::HttpIO` can not render multi-byte chars

Closes #44981

See merge request gitlab-org/gitlab-ce!18417
2018-04-18 08:25:53 +00:00
blackst0ne 18c2b06268 [Rails5] Remove `as` keyword from `Gitlab:Ci:Trace:Stream.delegate :valid?` 2018-04-18 08:15:02 +00:00
Shinya Maeda 1e817e0018 Align force_encoding strategy into Trace::Stream 2018-04-18 15:19:53 +09:00
Shinya Maeda c91b64366a Make HTTPIO compatible with multi-byte chars (Extracted from ChunkedIO) 2018-04-17 14:50:32 +09:00
Shinya Maeda 8a9955cf5c Fix wrong sql at calculation size 2018-04-06 20:41:56 +09:00
Shinya Maeda cffee49f7f Change Redis TTL to 1day. Fixing nitpicks 2018-04-06 19:30:23 +09:00
Shinya Maeda 4c6cb3cf06 Fix Stream#file? duplicates. And the spec 2018-04-06 15:07:55 +09:00
Shinya Maeda ddf74e513f Merge branch 'master' into live-trace-v2 2018-04-06 04:48:26 +09:00
Shinya Maeda 7297a06cb6 Fix bunch of texts 2018-04-06 04:41:45 +09:00
Shinya Maeda 2c6b90f086 Fix HttpIO and spec 2018-04-06 01:41:39 +09:00
Shinya Maeda 1a71dd049b Fix rubocop 2018-04-06 00:57:05 +09:00
Shinya Maeda b94c84e597 Add spec for ChunkedIO 2018-04-05 23:43:21 +09:00
Shinya Maeda 9c990bbe7a Add test 2018-04-05 20:42:08 +09:00
Shinya Maeda d6b18d3946 Fix 2018-04-05 20:42:08 +09:00
Shinya Maeda 9b7a0533ed Fix database trace to read raw 2018-04-05 20:42:08 +09:00
Shinya Maeda 908aad0a5c Revert httpio fix 2018-04-05 15:54:55 +09:00
Shinya Maeda 8630249f44 Support IO.copy_stream 2018-04-05 15:26:57 +09:00
Shinya Maeda 26fec9d460 Fix #read to increament tell correctly 2018-04-05 14:14:54 +09:00
Kamil Trzciński 2fac77b081 Simpler chunking :) 2018-04-05 14:14:54 +09:00
Kamil Trzciński de5194cdb8 Removed unused code 2018-04-05 14:14:54 +09:00
Shinya Maeda cb3a0e33a0 Fix bug; truncate did not reset size and tell 2018-04-05 14:14:54 +09:00
Shinya Maeda 91fe68a6af Use bytesize everywhere instead of length 2018-04-05 14:14:54 +09:00
Shinya Maeda 098fbac199 Add a gurad logic not to hit chunk_store if unnecessary 2018-04-05 14:14:54 +09:00
Shinya Maeda f0ddad75e9 Fix archive method. Fix trace spec 2018-04-05 14:14:54 +09:00
Shinya Maeda a689a220d3 Fix static analysys 2018-04-05 14:14:54 +09:00
Shinya Maeda 1de5b8db5a Fix Live trace 2018-04-05 14:14:54 +09:00
Shinya Maeda 3a99a6b903 Consolidate ChunkedIO 2018-04-05 14:14:54 +09:00