Commit graph

687 commits

Author SHA1 Message Date
Laszlo Fogas
d8fe50dfa7 Iterating on cance;ation logic 2019-09-16 15:19:09 +02:00
mhmxs
db4876aabc Create separate Go file for proc status updates 2019-09-15 07:29:45 +02:00
mhmxs
53258bf989 Format source code 2019-09-14 14:21:16 +02:00
mhmxs
fd361ddf2a Create separate Go file for build status updates 2019-09-14 14:20:16 +02:00
Laszlo Fogas
1c306dd1d4 Surface parsing error in branch filter 2019-09-09 09:53:54 +02:00
Laszlo Fogas
630c383181 Project is renamed to Woodpecker 2019-08-27 13:07:19 +02:00
Laszlo Fogas
1f83f0f198 After filterItemsWithMissingDependencies introduced, the next id can be higher than the length of procs 2019-07-23 14:10:44 +02:00
Laszlo Fogas
3bb0f64025 Handling zero-steps as transitive dependencies 2019-07-22 14:29:15 +02:00
Laszlo Fogas
6879bf62cb Handling zero-step pipelines as multi-pipeline depedencies 2019-07-22 14:13:46 +02:00
Laszlo Fogas
ed51df29b3 Factor out sideeffects 2019-07-22 13:45:01 +02:00
Laszlo Fogas
b7f61fc81d Queue knows about skipped tasks now to handle transitive deps 2019-07-22 12:44:03 +02:00
Laszlo Fogas
906c0c7a0d Merge remote-tracking branch 'origin/master' into zero-steps
* origin/master:
  Reinstate simplified gating logic
2019-07-20 21:15:50 +02:00
Laszlo Fogas
d560643b26 Calculating build steps early on to cut short cases without any runnable steps 2019-07-19 10:13:02 +02:00
Laszlo Fogas
c303a4d463 If there are no steps, it shouldn't yield a proc 2019-07-19 09:18:40 +02:00
Laszlo Fogas
2edc5fcfb7 Pid ID refactor 2019-07-19 09:17:47 +02:00
Laszlo Fogas
2cd5d8c02b Reinstate simplified gating logic 2019-07-18 14:21:05 +02:00
Laszlo Fogas
05ca66cc97 Moved to woodpecker-ui 2019-07-09 13:23:08 +02:00
Laszlo Fogas
1d564e978f More prometheus metrics, refactoring 2019-06-28 14:28:41 +02:00
Laszlo Fogas
8bb5770636 Endpoint that blocks until there are running builds 2019-06-28 08:42:06 +02:00
Laszlo Fogas
d39dd6f2ff Pause/Resume queue 2019-06-28 08:29:57 +02:00
Laszlo Fogas
ace264fe2f Persist intended URL through the OAuth flow 2019-06-27 08:25:00 +02:00
Laszlo Fogas
8d79f8671e Fallback to default config. Allows incremental rollout of custom-path 2019-06-25 13:45:43 +02:00
Laszlo Fogas
84564f9ae5 .drone.yml takes precedence over configured path. Allows incremental rollout 2019-06-25 09:46:18 +02:00
Laszlo Fogas
580b7b272f Pipeline path configurable 2019-06-24 09:04:30 +02:00
Laszlo Fogas
eed92421c9 Branch conditions on pipelines 2019-06-19 09:36:54 +02:00
Laszlo Fogas
fded153328 Gated builds is disabled as I don't understand the feature 2019-06-19 09:01:17 +02:00
Laszlo Fogas
69de8face1 Handling canceled, skipped builds 2019-06-19 08:36:13 +02:00
Laszlo Fogas
1d47ba8a32 Status line for each pipeline on Github 2019-06-17 10:48:40 +02:00
Laszlo Fogas
a433591afa Introducing runs_on to run pipelines on failure 2019-06-17 09:06:36 +02:00
Laszlo Fogas
2253ca66db Tasks should not run on error, unless specified 2019-06-16 15:56:32 +02:00
Laszlo Fogas
a22747f5c3 Sort later, so it is sorted in restarts too 2019-06-16 15:55:55 +02:00
Laszlo Fogas
6a2c3f129c Factor into functions 2019-06-16 10:54:31 +02:00
Laszlo Fogas
001d645471 Order files alphabetically 2019-06-13 18:09:25 +02:00
Laszlo Fogas
a3ec40d438 Fifo queue with dependencies 2019-06-13 18:02:26 +02:00
Laszlo Fogas
f9c5fcec0d N:N relationship between build and config. Restarts work 2019-06-11 10:50:50 +02:00
Laszlo Fogas
3fe710bbe4 1:n relationship for build-config 2019-06-07 10:40:16 +02:00
Laszlo Fogas
105a0708fe Refactor 2019-06-05 15:58:27 +02:00
Laszlo Fogas
dbfbd15238 Moved proc id changes closer to each other 2019-06-05 10:36:16 +02:00
Laszlo Fogas
435083db9e Handling channel close 2019-06-05 10:08:49 +02:00
Laszlo Fogas
5cc4dca56f Fetching multiple pipelines from Github, skipping some logic for now 2019-06-04 15:04:18 +02:00
Laszlo Fogas
df50b7ef40 Testing procBuilder 2019-06-01 13:02:26 +02:00
Laszlo Fogas
c9f2346c2c Supporting multiple yamls in procBuilder 2019-06-01 13:02:26 +02:00
Laszlo Fogas
8199fe4a21 Fixed tests 2019-06-01 13:01:50 +02:00
Laszlo Fogas
4cce34d5bf Moved things closer that belong together 2019-06-01 13:00:19 +02:00
Laszlo Fogas
ddabcde3e3 Factored to a better place 2019-06-01 12:52:30 +02:00
Laszlo Fogas
21d6552b4b It's okay 2019-06-01 10:59:35 +02:00
Laszlo Fogas
8cec8ed0d5 Dryness 2019-06-01 10:27:28 +02:00
Laszlo Fogas
73aa46405a Factored into file 2019-06-01 10:17:02 +02:00
Laszlo Fogas
43c44cfbd6 Factored into named functions 2019-06-01 10:08:41 +02:00
Laszlo Fogas
f25317599a Unlimited 2019-06-01 09:45:20 +02:00
Laszlo Fogas
a4541ac901 Pull in cncd/* for simpler workflow 2019-04-06 15:44:04 +02:00
Laszlo Fogas
ca5817ffc2 Renamed package 2019-04-04 20:51:20 +02:00
Niall Sheridan
a55fa44589 Recover panic on closed channel
Related to #2480

Signed-off-by: Niall Sheridan <nsheridan@squarespace.com>
2018-11-14 11:27:41 +00:00
Brad Rydzewski
eb96456909 fix for #2480 2018-10-18 22:33:56 -07:00
Delfer
ea2c72b4b4 Add ability to restart build of any state 2018-04-06 17:54:24 +03:00
Brad Rydzewski
c78ce27d76
Merge pull request #2386 from fbcbarbosa/patch-1
Fix EventStreamSSE Memory Leak
2018-03-30 09:39:41 -07:00
Fernando Barbosa
00f72ef206
Fix EventStreamSSE Memory Leak
The `Config.Services.Pubsub.Subscribe` is being initialized with the global Gin Context. This causes the publisher object to [hang at line 58](https://github.com/cncd/pubsub/blob/master/pub.go#L58) and the goroutine remains opened indefinetly, which can be a source of memory leak.

Setting it to the locally defined ctx object correctly causes the goroutine to close when the function exits due to the deferred close.

See https://discourse.drone.io/t/memory-leak-on-drone-server/1884 for further information.
2018-03-27 19:19:22 -03:00
Thomas Boerger
398ca972bc
Fixed wrong variable name 2018-03-27 22:50:55 +02:00
Thomas Boerger
06ff6b50ed
Use specific token for prometheus metrics 2018-03-27 22:22:19 +02:00
Thomas Boerger
7f49e69607
Just fixed format with go fmt ./... 2018-03-21 14:02:17 +01:00
Brad Rydzewski
580fe9abb7 add apache license header to files 2018-02-19 14:24:10 -08:00
Brad Rydzewski
cef20f0476
Merge pull request #2331 from jbrockopp/master
Build List Pagination
2018-02-19 14:01:33 -08:00
Brad Rydzewski
909053ba5b
Merge pull request #2244 from appleboy/fix2
Fix drone filter func
2018-02-19 13:01:05 -08:00
Yuki Yoshida
100f44c615 Fix typos 2018-02-16 17:21:01 +09:00
Jordan Brockopp
c84031e3e8 get page query param. set default of 1 if not set 2018-02-02 13:04:21 -06:00
Jordan Brockopp
a844ed53e9 allow repo admin to update build counter 2018-02-01 13:10:00 -06:00
Tony Li
2700a5eeaa
better format 2018-01-18 13:20:42 -05:00
Tony Li
e15e88584e
purge log w/ timestamp 2018-01-18 13:08:11 -05:00
Brad Rydzewski
8771fb53af purged log placeholder to include username 2018-01-18 09:30:41 -08:00
Brad Rydzewski
cd0524e77e endpoint to purge build logs 2018-01-18 09:26:28 -08:00
Elena Grahovac
296a4f1977 Log the exact error in case of 'error setting commit status' 2017-12-20 12:12:38 +01:00
Brad Rydzewski
1db7bde877
Merge pull request #2274 from appleboy/bugs
fix(drone-server): missing default branch name in metadata.
2017-12-06 13:43:20 -08:00
Brad Rydzewski
cf30898042 enable instance in when clause 2017-12-01 13:38:55 -08:00
Brad Rydzewski
970080e444 use a backoff when fetching the yaml 2017-12-01 09:22:30 -08:00
Bo-Yi Wu
b6a9645b31 fix(drone-server): missing default branch name in metadata. 2017-12-01 12:24:19 +08:00
Bo-Yi Wu
8ad98fa42b add missing filter expr content.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
2017-10-17 23:47:53 +08:00
Thomas Boerger
5abfd70c53
Fix procs.proc_started value if not set 2017-10-06 22:17:48 +02:00
Brad Rydzewski
bb8c569249 add healthz endpoint to server 2017-10-05 14:17:27 -07:00
Brad Rydzewski
9a0a6f924e prevent per-user concurrent sync 2017-09-29 11:21:06 -07:00
Brad Rydzewski
ec6016062b show loading status in user interface 2017-09-20 12:29:57 -07:00
Brad Rydzewski
2c9d50ccc6 should use correct status for killed 2017-09-15 09:04:21 -07:00
Brad Rydzewski
45357681a6 do not restart errored build 2017-09-14 15:33:12 -07:00
Matt Leung
820d07263b Add server env var to specify .drone.yml location
Allow setting DRONE_REPO_CONFIG to override default location of .drone.yml
2017-09-12 17:06:12 -07:00
Brad Rydzewski
8795cf039f reduce logfile upload limit 2017-09-12 09:03:32 -07:00
Brad Rydzewski
25c9b8050a introduce limiter for planned refactoring 2017-09-11 10:22:45 -07:00
Brad Rydzewski
902523911e remove unused websocket funcs 2017-09-10 17:48:12 -07:00
Brad Rydzewski
c95d2bf9f0 restart build will always fork; update sqlite 2017-09-10 17:45:42 -07:00
Brad Rydzewski
6cdf907c73 Merge pull request #2200 from praxist/build_filter_expression_parser
Add expression parser evaulator for build filter
2017-09-10 14:39:15 -07:00
Matt Leung
4c2ff78d20 Add expression parser evaulator for build filter
Vendor github.com/drone/expr
Vendor github.com/drone/expr/parse
2017-09-08 19:39:24 -07:00
Brad Rydzewski
b2dc32d5bb Merge pull request #2192 from tonglil/fix-typo [ci skip]
Fix typo
2017-09-08 17:49:14 -07:00
Matt Leung
2892efedda Add repo to task labels for build filtering
Add generated labels after user-defined labels to prevent tampering
2017-09-08 16:46:28 -07:00
Brad Rydzewski
49ea713a36 improve UI loader 2017-09-07 17:43:33 -07:00
Tony Li
81fe4b6520 fix typo 2017-09-05 17:09:12 -04:00
Brad Rydzewski
cf549e47c3 repo repair should update private status 2017-08-26 15:52:57 -07:00
Brad Rydzewski
47c1caa7cd Merge pull request #2168 from josmo/rename-repo
Adding the ability to update the repo owner and name via patch with t…
2017-08-26 13:14:03 -07:00
Brad Rydzewski
7d245e7b27 fix route for proc logs 2017-08-24 17:03:11 -07:00
Brad Rydzewski
23a348b4f7 periodically ping client from server 2017-08-22 08:49:44 -07:00
Joachim Hill-Grannec
06bffddf96 remove lingering visibility 2017-08-21 18:52:09 -04:00
Joachim Hill-Grannec
f54175de91 Made ResetVisibility and ParseRepo generic.
Validate new from repo has admin rights
2017-08-21 18:49:09 -04:00
Joachim Hill-Grannec
cee90e93aa Update to create move endpoint to allow changing the repo name 2017-08-21 17:56:37 -04:00