Commit Graph

1087 Commits

Author SHA1 Message Date
Bo-Yi.Wu 5d849cea33 chore(runner): remove update runner status
Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
2022-11-25 17:48:48 +08:00
Bo-Yi Wu 797cdfbdb8 chore(runner): return task state. 2022-11-25 17:48:47 +08:00
Jason Song 0f5aab0c1a chore: remove Result from task and step 2022-11-25 17:48:47 +08:00
Jason Song dd417a3270 chore: move job emitter to service 2022-11-25 17:48:47 +08:00
Lunny Xiao f57e6999a2 Remove unused file 2022-11-25 17:48:47 +08:00
Lunny Xiao 110072a8d4 Fix log 2022-11-25 17:48:47 +08:00
Jason Song 7059cd7265 feat: update runner status 2022-11-25 17:48:47 +08:00
Jason Song 0682f0fcc5 chore: reduse log noise 2022-11-25 17:48:47 +08:00
Jason Song 140d57aecb feat: use runner token hash 2022-11-25 17:48:47 +08:00
Jason Song 94241daaaa feat: check runner token 2022-11-25 17:48:47 +08:00
Jason Song 9c6476754d chore: shouldn't import act_runner 2022-11-25 17:48:47 +08:00
Lunny Xiao fc2c70033a Add default bot url 2022-11-25 17:48:47 +08:00
Jason Song 5d83ffa658 chore: log updating task 2022-11-25 17:48:47 +08:00
Jason Song ce39e45cc2 chore: reduce log noise 2022-11-25 17:48:47 +08:00
Lunny Xiao aa09eb63e1 Support bot user 2022-11-25 17:48:47 +08:00
Jason Song 381d06729b fix: repository in context 2022-11-25 17:48:47 +08:00
Bo-Yi.Wu a20b8aa909 chore(runner): return cancel evnet after upload the log
Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
2022-11-25 17:48:47 +08:00
Jason Song dc7e64041a feat: use job emitter 2022-11-25 17:48:47 +08:00
Jason Song b4b22e78ad feat: generate token for task 2022-11-25 17:48:46 +08:00
Bo-Yi.Wu 1e209973ee chore(runner): create new token
Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
2022-11-25 17:48:46 +08:00
Lunny Xiao 82c6fc2217 Add commit status for push event 2022-11-25 17:48:46 +08:00
Jason Song e28c95ea5c feat: load secrets in task response 2022-11-25 17:48:46 +08:00
Jason Song 04634b9143 feat: pick jobs of the runner only 2022-11-25 17:48:46 +08:00
Jason Song dca2ca2f47 fix: remove usage of core 2022-11-25 17:48:46 +08:00
Jason Song 8dbe30dff9 feat: tranfer log to storage 2022-11-25 17:48:45 +08:00
Jason Song d2f8d5ded1 fix: use file name for log 2022-11-25 17:48:45 +08:00
Jason Song dd5b2c5dfd feat: optimize log indexes 2022-11-25 17:48:45 +08:00
Jason Song d7b99e0028 feat: use dbfs to store log 2022-11-25 17:48:45 +08:00
Lunny Xiao 482832da76 delete unused structs 2022-11-25 17:48:45 +08:00
Bo-Yi.Wu 4c2d976629 chore(runner): get runner by uuid from header
Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
2022-11-25 17:48:45 +08:00
Bo-Yi.Wu eeaac2c9f7 chore(runner): remove url checker from register
Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
2022-11-25 17:48:45 +08:00
Bo-Yi Wu b7aaa3ba77 chore(runner): support update runner status. 2022-11-25 17:48:45 +08:00
fuxiaohei fbb9f437a6 feat(runner): delete runner from admin html page 2022-11-25 17:48:45 +08:00
Jason Song 848a1ae309 feat: receive task logs 2022-11-25 17:48:45 +08:00
Jason Song 7497155d14 feat: update step state 2022-11-25 17:48:45 +08:00
Jason Song 6df53243aa feat: create task steps 2022-11-25 17:48:45 +08:00
fuxiaohei 9648482ed6 feat(bots): move runner status update function to context 2022-11-25 17:48:45 +08:00
fuxiaohei 1a78fd3494 feat(runner): update runner last_online and status when FetchTask 2022-11-25 17:48:44 +08:00
Jason Song 32a5797608 chore: debug runner log reporting 2022-11-25 17:48:44 +08:00
Jason Song 79966763c6 feat: distribute tasks to runner 2022-11-25 17:48:44 +08:00
Bo-Yi.Wu 6f18f76577 chore(runner): update runner status using proto define
Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
2022-11-25 17:48:44 +08:00
Jason Song 530faf7227 feat: assign task to runner 2022-11-25 17:48:44 +08:00
Bo-Yi.Wu 4233090738 chore(runner): get token from header
Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
2022-11-25 17:48:44 +08:00
Bo-Yi.Wu f79bc4f605 chore(runner): vaildate the repo URL
Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
2022-11-25 17:48:44 +08:00
Bo-Yi.Wu ade88b3a7b chore(runner): register new runner
Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
2022-11-25 17:48:44 +08:00
Jason Song e21c07cc55 feat: parse runner from ctx 2022-11-25 17:48:44 +08:00
Bo-Yi.Wu 4dd135580f chore(runner): update to latest proto format.
Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
2022-11-25 17:48:44 +08:00
Bo-Yi.Wu fb738c4192 chore(runner): support fetch detail stage data
Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
2022-11-25 17:48:44 +08:00
Bo-Yi.Wu 8255915350 chore: move core package to top folder.
Signed-off-by: Bo-Yi.Wu <appleboy.tw@gmail.com>
2022-11-25 17:48:44 +08:00
Bo-Yi.Wu 1148903d79 refactor: move build status to core package 2022-11-25 17:48:44 +08:00