Stéphane Bidoul
65b0ebeeb4
Remove Optional in favor of "| None" notation
...
Taking advange of latest pydantic features
2022-01-26 17:39:56 +01:00
Stéphane Bidoul
bdcfa8872f
Update dependencies
2022-01-26 17:39:01 +01:00
Stéphane Bidoul
115d292c9f
Don't redirect /longpolling to 8072
...
We deploy in multi-threaded mode, so there
is nothing on port 8072.
2022-01-26 17:36:24 +01:00
Stéphane Bidoul
226cca7164
Upgrade dependencies
2022-01-07 19:28:31 +01:00
Stéphane Bidoul
3424f418b0
Reapply fix about using template1 database
...
It got lost, somehow...
2022-01-04 16:44:47 +01:00
Stéphane Bidoul
9935b56a26
Merge pull request #39 from sbidoul/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2022-01-03 20:54:56 +01:00
pre-commit-ci[bot]
eb77c52b15
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/asottile/pyupgrade: v2.29.1 → v2.31.0](https://github.com/asottile/pyupgrade/compare/v2.29.1...v2.31.0 )
2022-01-03 18:04:57 +00:00
Stéphane Bidoul
d225565444
Add API and button to reset a build
...
The, roughly, redeploys the kubernetes resources in initial
state (i.e. 0 replicas and init-status=todo) so the controller
starts a new initialization job.
2021-12-29 16:10:10 +01:00
Stéphane Bidoul
8ac3486d51
Do not set service link env variables
...
Kubernetes set environment variables in pods to help with service
discovery. This is a problem when we have thousands of builds.
And we don't need them (since there is no service communication,
and we have DNS in the cluster anyway).
2021-12-29 14:47:23 +01:00
Stéphane Bidoul
c8fc6dbcbd
Merge pull request #38 from sbidoul/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2021-12-28 10:33:28 +01:00
pre-commit-ci[bot]
8ea4062412
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/pre-commit/pre-commit-hooks: v4.0.1 → v4.1.0](https://github.com/pre-commit/pre-commit-hooks/compare/v4.0.1...v4.1.0 )
2021-12-27 18:06:17 +00:00
Stéphane Bidoul
4dba094949
Merge pull request #37 from sbidoul/mypy-0930-sbi
...
Benefit from mypy 0.930
2021-12-22 19:55:41 +01:00
Stéphane Bidoul
3ea9e434ad
Benefit from mypy 0.930
2021-12-22 19:52:25 +01:00
Stéphane Bidoul
6ec85dc5ea
Update dependencies
2021-12-20 23:03:04 +01:00
Stéphane Bidoul
5e3bb50151
Tweak API dto's
2021-12-20 23:03:03 +01:00
Stéphane Bidoul
c383c3c31d
Improve readability of initialize and start scripts
2021-12-20 23:03:03 +01:00
Stéphane Bidoul
3b3a6f4ea9
Use template1 db
...
Odoo uses template0 by default but the postgres
docs says it must not be modified.
2021-12-20 23:01:45 +01:00
Stéphane Bidoul
dc3fb453dd
Tweak README
2021-12-20 23:01:44 +01:00
Stéphane Bidoul
62604243c9
Merge pull request #33 from sbidoul/pre-commit-ci-update-config
...
[pre-commit.ci] pre-commit autoupdate
2021-12-07 07:51:05 +01:00
pre-commit-ci[bot]
e132e2afcd
[pre-commit.ci] pre-commit autoupdate
...
updates:
- [github.com/psf/black: 21.11b1 → 21.12b0](https://github.com/psf/black/compare/21.11b1...21.12b0 )
2021-12-06 18:05:58 +00:00
Stéphane Bidoul
5b0159b431
Use GitHub time-ago element
2021-12-01 15:43:04 +01:00
Stéphane Bidoul
abdbbb3cbe
Add age on build cards
2021-12-01 12:01:57 +01:00
Stéphane Bidoul
b21a7c92f8
Ignore undeploying builds when counting deployed
...
Otherwise the undeployer evicts too many builds
as it loops until the first builds are actually deleted.
2021-11-30 21:46:25 +01:00
Stéphane Bidoul
b873d09d22
Simplify builds.html parameter handling
2021-11-30 18:55:26 +01:00
Stéphane Bidoul
534e343c73
Add a README about webui templates
2021-11-30 18:55:26 +01:00
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