Jef Roosens
5f21e256ee
refactor: apply new vfmt defaults
2022-05-14 20:06:08 +02:00
LordMZTE
0bac221aee
fix: don't pass --nodeps to initial build step ( #173 )
...
This fixes packages that require their dependencies in `pkgver` or
`prepare` failing to build.
Reviewed-on: vieter/vieter#173
Co-authored-by: LordMZTE <lord@mzte.de>
Co-committed-by: LordMZTE <lord@mzte.de>
2022-05-10 13:36:07 +02:00
Jef Roosens
3821ed29fd
refactor(docker): simplified loop expression
2022-05-09 15:05:53 +02:00
Jef Roosens
5a5f7f8346
refactor(docker): use builtin parse_rfc3339 function
2022-05-09 14:58:20 +02:00
Jef Roosens
ea4c4fce16
feat(cron): upload logs after build
2022-05-09 08:51:10 +02:00
Jef Roosens
e79d18100f
chore: ran `make fmt`
2022-05-09 08:51:10 +02:00
Jef Roosens
4b172cb5d8
feat(cli): `vieter build` now builds a single repo & uploads build logs
2022-05-09 08:51:10 +02:00
Jef Roosens
27aa215eff
feat(docker): added function to retrieve container logs
2022-05-09 08:51:10 +02:00
Jef Roosens
5f7d7c4780
doc: added documentation to all functions
2022-05-07 22:06:17 +02:00
Jef Roosens
5b016df85d
feat(cli): added commands for interacting with build logs
2022-05-07 21:50:20 +02:00
Jef Roosens
fa6603bd45
feat(client): added client code for logs API
2022-05-07 19:38:28 +02:00
Jef Roosens
407b226955
refactor: moved client code into own module
2022-05-07 16:10:27 +02:00
Jef Roosens
f42d3fd8b0
fix(server): prevent adding logs to non-existent repo
2022-05-07 15:44:59 +02:00
Jef Roosens
139142fcec
feat(server): added endpoint for content of build log
2022-05-07 15:41:49 +02:00
Jef Roosens
393e641a76
feat(server): allow filtering of builds per repo
2022-05-07 15:31:01 +02:00
Jef Roosens
7e01dbafec
feat(server): added endpoints for listing & uploading build logs
2022-05-07 15:10:07 +02:00
Jef Roosens
58c1ecd25e
db: added BuildLog & required methods
2022-05-07 14:16:30 +02:00
Jef Roosens
356a34ab01
chore: bumped versions
2022-05-06 20:04:48 +02:00
Jef Roosens
a3b6680153
cron: filter out repos with wrong architecture
2022-05-06 08:31:59 +02:00
Jef Roosens
8c5652c230
ci: made build upload failable; updated ci for use with PRs
2022-05-05 23:11:18 +02:00
Jef Roosens
5781796e99
doc: added docstrings to all db/git functions
2022-05-03 20:02:05 +02:00
Jef Roosens
204144cee8
refactor: removed commented code & ran formatter
2022-05-03 19:50:14 +02:00
Jef Roosens
c818273790
feat: simplified config down to pkg_dir & data_dir
...
BREAKING: downloads are now stored inside the root of pkg_dir, the log
file is always stored in the root of data_dir
2022-05-03 19:50:14 +02:00
Jef Roosens
7419144f97
feat: removed git.GitRepo type
...
feat(cli): updated to new GitRepo format
2022-05-03 19:50:14 +02:00
Jef Roosens
0a2488a4df
feat(server): migrated repo patch to sqlite
2022-05-03 19:50:14 +02:00
Jef Roosens
891a206116
feat(server): partially migrated repos API to sqlite
2022-05-03 19:50:14 +02:00
Jef Roosens
03318586ed
feat(cron): added debug log on build_repo failure
2022-05-02 07:50:44 +02:00
Jef Roosens
5cde3d0235
fix(cli): allow empty schedule to clear it
2022-05-01 14:51:52 +02:00
Jef Roosens
d313c5b786
feat(cli): added command to show detailed repo info
2022-05-01 13:06:57 +02:00
Jef Roosens
92b8f1fb93
feat(cli): added management of cron schedules
2022-05-01 12:52:05 +02:00
Jef Roosens
b1ac39e234
feat: made arch param optional when adding Git repo
2022-05-01 12:44:54 +02:00
Jef Roosens
325dcc27de
fix(cron): made Daemon.run infallible
2022-05-01 09:15:17 +02:00
Jef Roosens
cfacf9ed0f
fix(cron): don't show error for empty cron schedule
2022-04-30 20:58:43 +02:00
Jef Roosens
f9f440500e
docs: added comment string to each function
2022-04-30 20:22:03 +02:00
Jef Roosens
fb65efdfbe
feat(cron): added removal of old builder images
2022-04-30 18:38:24 +02:00
Jef Roosens
369b4458c5
feat(cron): added automatic rebuilding of image; implemented builds
2022-04-30 18:10:33 +02:00
Jef Roosens
caee56efd4
feat(cron): improve sleep calculation; prevent invalid rescheduling of
...
finished builds
2022-04-30 16:08:35 +02:00
Jef Roosens
a1c308f29d
feature(daemon): added api renewal & calculated sleep time
2022-04-30 14:19:08 +02:00
Jef Roosens
6f9e1b5f3c
feat(cron): start of working loop
2022-04-30 11:58:49 +02:00
Jef Roosens
7722d5a7e4
fix: replace byte with u8
...
BREAKING: the V compiler removed the byte type alias in favor of u8.
2022-04-30 11:58:49 +02:00
Jef Roosens
c8fc683384
Eh don't feel like writing scheduler rn
2022-04-14 21:20:10 +02:00
Jef Roosens
c8af362a4a
Workaround for weird bug
2022-04-14 20:38:14 +02:00
Jef Roosens
78b477fb92
Removed deprecated err.msg & err.code
2022-04-13 22:20:05 +02:00
Jef Roosens
f7e1aba30b
Attempt at writing renew_queue function; seems to just stop in the
...
middle
2022-04-13 16:12:22 +02:00
Jef Roosens
ff57d73998
Start of daemon (not working) [CI SKIP]
2022-04-13 15:24:55 +02:00
Jef Roosens
132a7a8ba5
Added int support to env; fixed apparently broken defaults
2022-04-13 14:51:01 +02:00
Jef Roosens
bd0c276fd8
Added 'WIP' notice for cron cli
2022-04-12 21:28:44 +02:00
Jef Roosens
5ce431aa4a
Added two more test dates; pleased v vet
2022-04-12 21:23:38 +02:00
Jef Roosens
1116fee3fc
Actually possibly kinda decent cron next func
2022-04-12 21:16:09 +02:00
Jef Roosens
e6033f9ab4
Ran vfmt
2022-04-12 20:53:20 +02:00