Commit graph

229 commits

Author SHA1 Message Date
Stéphane Bidoul
bd3f317635
Better error handling in k8s watches
An automatic retry in the watch itself could lead to
missed events,
leading to removed builds remaining in the database.
So we raise the error so the controller
can reset the database and do a full refresh.
2021-11-30 18:55:26 +01:00
Stéphane Bidoul
825d8d2e4a
Buffer events to avoid flooding 2021-11-30 18:54:30 +01:00
Stéphane Bidoul
2b27de3256
Fix typo in previous commit 2021-11-28 16:46:51 +01:00
Stéphane Bidoul
d11ebddcca
Log HTTP requests on stdout in Dockerfile 2021-11-28 16:45:35 +01:00
Stéphane Bidoul
51e8522209
last_scaled field is always set
It defaults to the creation timestamp
2021-11-28 16:29:55 +01:00
Stéphane Bidoul
24fa4bebd1
Allow searching builds by status 2021-11-28 16:29:31 +01:00
Stéphane Bidoul
af7fb32a5e
Add failed count 2021-11-28 15:27:34 +01:00
Stéphane Bidoul
0700a21a26
Decouple deploy and start
Starting deployed builds is done by users as needed.
2021-11-28 14:50:20 +01:00
Stéphane Bidoul
256f828e97
Add stopped count to controller status api 2021-11-28 13:43:58 +01:00
Stéphane Bidoul
b17e639572
Simplify start command
It should not attempt to reinitialize. That should be the
topic of another, dedicated command.
2021-11-28 13:38:48 +01:00
Stéphane Bidoul
92060b2026
Move cleanup tasks out of the watcher loop 2021-11-28 13:35:16 +01:00
Stéphane Bidoul
41a4b278b8
Clarify log warning 2021-11-28 13:34:32 +01:00
Stéphane Bidoul
25477fed61
Refactor controller constructor 2021-11-28 13:33:25 +01:00
Stéphane Bidoul
e961780d1b
Better way to kill jobs 2021-11-28 13:30:39 +01:00
Stéphane Bidoul
f720cbcac5
Be more explicit about job completions 2021-11-28 13:21:42 +01:00
Stéphane Bidoul
bddc6bf88e
Add setting to disable posting of commit statuses
Useful for testing.
2021-11-28 13:21:06 +01:00
Stéphane Bidoul
0a67e157e0
Fix comment 2021-11-27 13:51:05 +01:00
Stéphane Bidoul
6df8041b35
Add test for oldest_started 2021-11-27 13:51:05 +01:00
Stéphane Bidoul
b3a5f36e02
Merge pull request #27 from sbidoul/gurneyalex-fix_10
Fix issue 10
2021-11-26 18:18:10 +01:00
Alexandre Fayolle
811826b087
Preserve most recent branch builds
Co-authored-by: Alexandre Fayolle
Co-authored-by: Laurent Mignon
2021-11-26 18:17:09 +01:00
Stéphane Bidoul
3ee55d8737
Tweak comments 2021-11-26 18:15:59 +01:00
Stéphane Bidoul
71469d2a3c
Merge pull request #24 from gurneyalex/main
[IMP] speed up start of container
2021-11-26 15:56:29 +01:00
Alexandre Fayolle
597f6b0eb8 [FIX] debian package dependencies not available
the Debian package dependencies where only installed during the
initialization phase, not the deployement -> install them
at that point.

closes: #23
2021-11-26 15:36:45 +01:00
Alexandre Fayolle
b592ecb327 [IMP] speed up start of container
we rsync the virtual env of odoo to a volume at the end of the init
phase. Rather than rsync'ing back, mount the volume on top of the
odoo venv from the base docker image.
2021-11-26 15:28:32 +01:00
Stéphane Bidoul
b8a9fadb26
Minor typing simplification 2021-11-24 23:34:03 +01:00
Stéphane Bidoul
5e7919eaf4
Validate build settings at startup time 2021-11-24 23:32:25 +01:00
Stéphane Bidoul
b34dd38a7b
Abstract out image
The image, as part of build settings
is only passed to kubefiles rendering, and
not exposed outside.
2021-11-24 22:18:31 +01:00
Stéphane Bidoul
73866fe377
Missing backslash 2021-11-24 19:33:44 +01:00
Stéphane Bidoul
8b31beed55
--db-filter is necessary for Odoo 10 too, it seems 2021-11-24 19:32:35 +01:00
Stéphane Bidoul
9e1a21f409
Fix startup script for Odoo<=10 2021-11-24 19:05:01 +01:00
Stéphane Bidoul
b3e042e2fc
Tweak footer 2021-11-24 18:28:48 +01:00
Stéphane Bidoul
bc3b92c524
Tweak builds page 2021-11-22 21:35:44 +01:00
Stéphane Bidoul
43f2b4082e
webui directory must be present 2021-11-22 20:59:02 +01:00
Stéphane Bidoul
a34a95dd32
Reconnect in case of event source errors in build pages
Also improve build element in presence of
unset and undeployed builds.
2021-11-22 20:57:19 +01:00
Stéphane Bidoul
1b4333b102
Merge pull request #22 from sbidoul/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate
2021-11-22 20:41:13 +01:00
pre-commit-ci[bot]
2b68d752e1
[pre-commit.ci] pre-commit autoupdate
updates:
- [github.com/psf/black: 21.10b0 → 21.11b1](https://github.com/psf/black/compare/21.10b0...21.11b1)
- [github.com/asottile/pyupgrade: v2.29.0 → v2.29.1](https://github.com/asottile/pyupgrade/compare/v2.29.0...v2.29.1)
2021-11-22 17:57:24 +00:00
Stéphane Bidoul
65a0805956
Ignore webhooks for unsupported repos/branches 2021-11-21 19:19:22 +01:00
Stéphane Bidoul
6912176be1
Refactor get_build_settings 2021-11-21 19:10:32 +01:00
Stéphane Bidoul
a090c6160e
Add tests for github webhook 2021-11-21 19:09:20 +01:00
Stéphane Bidoul
c1fe8ca16a
Tweak build card 2021-11-21 18:42:01 +01:00
Stéphane Bidoul
89d9823992
Lowercase repo name 2021-11-21 18:38:50 +01:00
Stéphane Bidoul
83fb48d982
Fix webhook after refactoring 2021-11-21 18:09:40 +01:00
Stéphane Bidoul
b7c68285f0
Tweak footer 2021-11-21 18:05:48 +01:00
Stéphane Bidoul
77bb5b3121
Tweak footer 2021-11-21 17:59:07 +01:00
Stéphane Bidoul
180ecc6f8d
Refactor passing around git commit info 2021-11-21 17:57:11 +01:00
Stéphane Bidoul
386ccf63b3
Add missing type annotation 2021-11-21 12:39:37 +01:00
Stéphane Bidoul
da4a545a00
Add repo link to single build page 2021-11-21 12:38:16 +01:00
Stéphane Bidoul
301fec8860
Reduce termination grace period 2021-11-21 12:30:26 +01:00
Stéphane Bidoul
361411b03f
Add footer 2021-11-21 12:29:36 +01:00
Stéphane Bidoul
8906a8908f
Add static footer 2021-11-21 11:53:26 +01:00