Shinya Maeda
d78f0724d9
Avoid conflicts between ArchiveTraceWorkers
...
This commits avoiding conflicts between ArchiveTraceWorker
and ArchiveTracesCronWorker by changing the target of the
latter worker.
2019-08-22 10:28:12 +07:00
Shinya Maeda
c2e0e689f3
Validate the existence of archived traces before removing live trace
...
Often live traces are removed even though the archived trace
doesn't exist. This commit checkes the existence strictly.
2019-07-23 17:26:08 +07:00
Thong Kuah
d6b952ad3e
Add frozen_string_literal to spec/workers
...
Adds `# frozen_string_literal: true` to spec/workers ruby files
2019-04-01 13:35:22 -03:00
Tiger
00f0d356b7
Create framework for build prerequisites
...
Introduces the concept of Prerequisites for a CI build.
If a build has unmet prerequisites it will go through the
:preparing state before being made available to a runner.
There are no actual prerequisites yet, so current
behaviour is unchanged.
2019-03-20 12:04:40 +11:00
Shinya Maeda
137541c041
Improve comments
2018-11-29 15:13:36 +09:00
Shinya Maeda
af5bf56857
Improve spec
2018-11-29 14:51:03 +09:00
Shinya Maeda
3fbd48e127
Squashed commit of the following:
...
commit 10456b1e9240886432f565dd17689080bbb133b9
Merge: 312c1a9bdf8 a5f4627857
Author: Shinya Maeda <shinya@gitlab.com>
Date: Thu Nov 29 14:33:21 2018 +0900
Merge branch 'master-ce' into add-counter-for-trace-chunks
commit 312c1a9bdf8efc45c3fed5ff50f05cc589bbb4ed
Author: Shinya Maeda <shinya@gitlab.com>
Date: Wed Nov 28 20:06:18 2018 +0900
Fix coding offence
commit e397cc2ccc1b2cf7f8b3558b8fa81fe2aa0ab366
Author: Shinya Maeda <shinya@gitlab.com>
Date: Wed Nov 28 14:40:24 2018 +0900
Fix tracking archive failure
2018-11-29 14:35:00 +09:00
Shinya Maeda
54263dc1d9
Fix coding style offence
2018-10-02 17:08:13 +02:00
Shinya Maeda
71fc37c9cf
Add spec for BuildScheduleWorker and RunScheduledBuildService
2018-10-02 17:08:12 +02:00
Shinya Maeda
254134fbb5
Prevent WRITE opetaions if it's already archived
2018-07-05 10:56:15 +09:00
Shinya Maeda
68d5793985
Fix spec
2018-07-05 10:52:50 +09:00
Shinya Maeda
dfb0d45ddb
Rename worker to ArchiveTracesCronWorker
2018-06-06 20:18:32 +09:00
Shinya Maeda
5a1ee0c391
Fix the query to select stale live traces
2018-06-06 17:49:48 +09:00
Shinya Maeda
2084e7ab9a
Move find_builds_from_stale_live_traces method to Ci::Build
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
32f825c648
Add tests for each new code
2018-06-06 17:49:48 +09:00
Shinya Maeda
fb1e35e556
Fix spec fiel location
2018-06-06 17:49:48 +09:00