bronsen
|
aa5d19c5e5
|
[collector] ensure endpoint only accepts POST requests
|
2025-03-15 22:26:36 +01:00 |
|
bronsen
|
4605dedc69
|
[codestyle] compact test functions a little bit
|
2025-03-15 22:26:01 +01:00 |
|
bronsen
|
051f0b964e
|
[test] add new fixture to generate random strings of given length
|
2025-03-15 22:25:13 +01:00 |
|
bronsen
|
86ccdd58ee
|
[logs] set up and use structlog in our app
|
2025-03-15 21:57:13 +01:00 |
|
bronsen
|
2e31cf8047
|
[settings] remove authenticator settings: we don't have users
|
2025-03-15 21:56:21 +01:00 |
|
bronsen
|
4d96f60b46
|
[settings] more robust detection of deployment
Retrieve it only once from env, make it an uppercase string
|
2025-03-15 21:55:43 +01:00 |
|
bronsen
|
e175071d3b
|
[urls] move urls of collector up to top level
|
2025-03-15 21:54:37 +01:00 |
|
bronsen
|
2f8db3c67d
|
[codestyle] taplo wants "pythonpath" to be a list of strings
|
2025-03-15 21:54:11 +01:00 |
|
bronsen
|
f27dc5a0d3
|
[test] tell pytest about the logot capturer
...which we do not yet use at this point
|
2025-03-15 21:53:41 +01:00 |
|
bronsen
|
2163a425fd
|
[dependencies] add structlog packages, also for django and pytest
|
2025-03-15 21:52:57 +01:00 |
|
bronsen
|
41a8cb5836
|
[collector] templates now render html5
closes #6
|
2025-03-15 13:28:41 +01:00 |
|
bronsen
|
3cd0aa3932
|
[collector] rename Views and urls
|
2025-03-15 13:28:41 +01:00 |
|
bronsen
|
6e078fe03d
|
[just] ignore errors from linting workflow files
This assumes the error stems from not having woodpecker-cli installed or
not having it configured
|
2025-03-15 00:05:18 +01:00 |
|
bronsen
|
08cf19a69d
|
[CI] run tests against python 3.13.2 and 3.12.9
|
2025-03-15 00:00:53 +01:00 |
|
bronsen
|
ef3523082a
|
[just] add new lint recipe for woodpecker workflows
|
2025-03-15 00:00:32 +01:00 |
|
bronsen
|
831b86024c
|
[CI service] try a hopefully smaller image for postgres service
|
2025-03-14 23:29:01 +01:00 |
|
bronsen
|
e60522f364
|
[CI debug] venv works, pip is happy even as root
|
2025-03-14 23:28:31 +01:00 |
|
bronsen
|
088eadc272
|
[CI debug] more fiddling with the venv
perhaps with a venv we don't need to tell pip about root being ok
|
2025-03-14 23:27:03 +01:00 |
|
bronsen
|
9b5f60b571
|
[CI] apparently /bin/sh does not know "source" so we try "."
|
2025-03-14 23:24:02 +01:00 |
|
bronsen
|
a7046d7296
|
[CI] suppress printing connection instructions
maybe this reduces the log amount a little bit
|
2025-03-14 23:22:37 +01:00 |
|
bronsen
|
90ad7643cf
|
[CI] dont source venv in a subshell
let's see how that goes
|
2025-03-14 23:21:46 +01:00 |
|
bronsen
|
5de39ad077
|
Revert "[CI] don't use a venv in test step"
This reverts commit dec838c76d .
|
2025-03-14 23:20:53 +01:00 |
|
bronsen
|
dec838c76d
|
[CI] don't use a venv in test step
|
2025-03-14 23:11:42 +01:00 |
|
bronsen
|
76f30befe8
|
[CI] tell pip again it is ok to run as root
perhaps we using this parameter correctly this time..
|
2025-03-14 23:09:42 +01:00 |
|
bronsen
|
1d0708f7a1
|
[CI] another attempt to speed up postgres service
|
2025-03-14 23:09:42 +01:00 |
|
bronsen
|
112013962d
|
[CI debug] is the venv really active?
|
2025-03-14 23:00:19 +01:00 |
|
bronsen
|
0b164cdf1a
|
[CI] tell pip it's ok to run as root
|
2025-03-14 22:59:53 +01:00 |
|
bronsen
|
f5aabe7fb7
|
Revert "[CI] attempt to improve performance of postgres service"
This reverts commit 490e983aa7 .
|
2025-03-14 22:54:47 +01:00 |
|
bronsen
|
490e983aa7
|
[CI] attempt to improve performance of postgres service
as per suggestion from saces:
https://matrix.to/#/%23coding%3Ac-base.org/%24T3HnHRzsqyUOrzQCV8y2dtOzNsPMlb-nFooEOrZuK5E?via=c-base.org&via=matrix.org&via=hackerfleet.eu
|
2025-03-14 22:51:34 +01:00 |
|
bronsen
|
371dcf9e0f
|
[CI] pip should never prompt for input
and we quieten it down a bit
|
2025-03-14 22:49:45 +01:00 |
|
bronsen
|
b6b7bb2aaa
|
[CI] Turn debug OFF on ci
|
2025-03-14 22:36:19 +01:00 |
|
bronsen
|
9dd197bc98
|
[urls] only include django debug toolbar's urls when DEBUG is True
|
2025-03-14 22:35:42 +01:00 |
|
bronsen
|
c3cd67a78f
|
[CI] tell django-environ about database user
|
2025-03-14 22:23:56 +01:00 |
|
bronsen
|
c151da6b8a
|
[CI] tell service about database name
|
2025-03-14 22:23:56 +01:00 |
|
bronsen
|
bf020f57e7
|
[tests] make test look for .env.ci on CI
|
2025-03-14 22:18:31 +01:00 |
|
bronsen
|
69ca3e4e8c
|
[CI] set up postgres service in workflow
also makes it use a .env.ci file that uses the correct host name
|
2025-03-14 22:13:31 +01:00 |
|
bronsen
|
676bc7d4ea
|
[dependencies] move django-extensions into prod
We use their ModificationDateTimeField after all
|
2025-03-14 19:58:37 +01:00 |
|
bronsen
|
08e5cabdb4
|
[todo] remove file, items have been made into issues in the code forge at c-base
|
2025-03-14 14:42:41 +01:00 |
|
bronsen
|
6cbbf97046
|
[todo] add even more items
some are perhaps too ambitious for this project...
|
2025-03-14 14:25:37 +01:00 |
|
bronsen
|
ac6e09f057
|
[todo] move completed items to "done" section
|
2025-03-14 14:25:11 +01:00 |
|
bronsen
|
91028bb7e4
|
[project] bump version
so we can try a new `pdm build`
|
2025-03-14 14:20:21 +01:00 |
|
bronsen
|
2c866fe6a8
|
[project] tell pdm exactly where to find version info
|
2025-03-14 14:19:40 +01:00 |
|
bronsen
|
e6034e1e10
|
[todo] add new item about logging
|
2025-03-14 14:16:37 +01:00 |
|
bronsen
|
ef894d2b2a
|
[CI] select test deployment when running tests on CI
|
2025-03-14 14:16:16 +01:00 |
|
bronsen
|
ecd80c291a
|
[deployment] select .env according to env var
|
2025-03-14 14:15:51 +01:00 |
|
bronsen
|
3fdc60d9e5
|
[CI] add woodpecker config for use on code.c-base.org
|
2025-03-14 13:28:53 +01:00 |
|
bronsen
|
063b2959a6
|
[project] settings.py react to the DEPLOYMENT variable
|
2025-03-14 12:43:38 +01:00 |
|
bronsen
|
474df0342c
|
[project] create pyproject.toml, readme, version file
`pdm build` even builds this package; no idea if it would be
installable/usable though
|
2025-03-14 12:37:30 +01:00 |
|
bronsen
|
a3a71f318d
|
[git] add datadump to project-specific gitignore
The global gitignore is still in effect. That one was created using
https://www.toptal.com/developers/gitignore/api/python,vim,direnv,pycharm+all,rust,node,django,python,visualstudiocode
|
2025-03-14 12:05:12 +01:00 |
|
bronsen
|
3a68239291
|
[dependencies] ruff got an update
|
2025-03-14 11:15:54 +01:00 |
|