Commit Graph

43 Commits

Author SHA1 Message Date
Shinya Maeda 5a1ee0c391 Fix the query to select stale live traces 2018-06-06 17:49:48 +09:00
Shinya Maeda 2522691eda Fix ambiguous stuck ci job worker's spec. Rename lease key of archive 2018-06-06 17:49:48 +09:00
Shinya Maeda ded38d5f48 Add exclusive relase for trace arhive 2018-06-06 17:49:48 +09:00
Grzegorz Bizon 965d0394d3 Merge branch 'live-trace-v2-efficient-destroy-all' into 'master'
Live trace: Use efficient destroy all (for `dependent: :destory` problem)

See merge request gitlab-org/gitlab-ce!18575
2018-05-07 12:01:32 +00:00
Kamil Trzciński 8d8534d7ab Enforce proper 416 support for runner trace patch endpoint 2018-05-07 08:53:32 +02:00
Shinya Maeda 645b404d89 Fix specs. Align with the new table name ci_build_trace_chunk 2018-04-26 17:25:20 +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 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
Shinya Maeda 1e817e0018 Align force_encoding strategy into Trace::Stream 2018-04-18 15:19:53 +09:00
Shinya Maeda 14ec3adfe4 Use w+b mode when Trace#set 2018-04-05 16:16:01 +09:00
Kamil Trzciński 2fac77b081 Simpler chunking :) 2018-04-05 14:14:54 +09:00
Shinya Maeda 9766af363d Remove unrelated chanages 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 f0ddad75e9 Fix archive method. Fix trace spec 2018-04-05 14:14:54 +09:00
Shinya Maeda 3a87bfb296 Add lock for delete 2018-04-05 14:14:54 +09:00
Shinya Maeda 0971f301fb Add new concerns 2018-04-05 14:14:54 +09:00
Shinya Maeda d1632da8c3 Implement basic live trace feature 2018-04-05 14:14:54 +09:00
Shinya Maeda 1108df181c Add chunks_store database spec 2018-04-05 14:14:53 +09:00
Shinya Maeda eb64ecb2cb Clarify namespaces 2018-04-05 14:14:53 +09:00
Shinya Maeda 85ae610c5e Introduce chunks store 2018-04-05 14:14:53 +09:00
Shinya Maeda 0142f9e031 Revert some changes 2018-04-05 14:14:53 +09:00
Shinya Maeda d4400e6b5c Live trace PoC 2018-04-05 14:14:53 +09:00
Shinya Maeda b8ce910ff4 Set sha256 checksum when archiving traces 2018-03-07 01:40:47 +09:00
Shinya Maeda 7bbd5f6e31 Define Trace::ArchiveError to make it explit as an error 2018-03-06 21:43:20 +09:00
Shinya Maeda 3a5cb44f65 Fix static analysys 2018-03-06 21:43:20 +09:00
Shinya Maeda 91117452e1 Raise an error if conditions are not fulfilled in archive method 2018-03-06 21:43:19 +09:00
Shinya Maeda 011b849719 Add soec for achevie! method. Fixed the method 2018-03-06 21:43:19 +09:00
Shinya Maeda 32c1501d69 Add rake task. Adopt the latest fix. Drop CreateTraceArtifactService 2018-03-06 21:43:19 +09:00
Kamil Trzciński f0d7a2ffc4 Proper fix for artifacts trace migration which is fully safe 2018-03-06 21:43:19 +09:00
Shinya Maeda abc64da90c Rename CreateArtifactsTraceService to CreateTraceArtifactService 2018-02-06 15:50:08 +09:00
Shinya Maeda 62e257f53a Revert live-trace path 2018-02-06 15:50:08 +09:00
Shinya Maeda 5f6d826165 Add CreateArtifactsTraceWorker 2018-02-06 15:50:08 +09:00
Shinya Maeda 002f314f32 Expose current_path 2018-02-06 15:50:08 +09:00
Shinya Maeda b969250106 Check existance of the file when trace_artifact is read 2018-02-06 15:50:07 +09:00
Shinya Maeda 1d983024db Move default_path to legacy_default_path. Switch to the new path for live-trace 2018-02-06 15:50:07 +09:00
Shinya Maeda 8a89efd87a Remove unnecessary changes 2018-02-06 15:50:07 +09:00
Shinya Maeda 63a9d582aa Trace as artifacts 2018-02-06 15:50:07 +09:00
Alessio Caiazza 91f8e734fe
Add CI build trace sections extractor 2017-10-05 15:42:25 +02:00
Kamil Trzciński 828d81ee1f Optimise trace handling code to use streaming instead of full read 2017-04-06 16:20:27 +00:00