Skip to content

Update test configuration and environment#430

Merged
kofrezo merged 6 commits intomainfrom
dk_update_test_environment
Feb 11, 2026
Merged

Update test configuration and environment#430
kofrezo merged 6 commits intomainfrom
dk_update_test_environment

Conversation

@kofrezo
Copy link
Contributor

@kofrezo kofrezo commented Feb 11, 2026

  • Use PostgreSQL 17 for web and db service as well as in tests
  • Run tests with 3.9 (Debian Bullseye) and 3.13 (Debian Trixie)
  • Set range of supported Python versions to >=3.9,<3.14

Debian Trixie (our main target platform) comes with Python 3.13. For
backwards compatibility we still check for 3.9.
@kofrezo kofrezo self-assigned this Feb 11, 2026
@kofrezo kofrezo added dependencies Pull requests that update a dependency file python Pull requests that update python code labels Feb 11, 2026
@kofrezo kofrezo force-pushed the dk_update_test_environment branch from 7956a6c to 06cfdb3 Compare February 11, 2026 14:14
- Use Python 3.13 for pipenv (does not support ranges)
- Use Debian Trixie with Python 3.13 for docker compose
@kofrezo kofrezo force-pushed the dk_update_test_environment branch from 06cfdb3 to d240e72 Compare February 11, 2026 14:54
@kofrezo kofrezo requested a review from seqizz February 11, 2026 14:55
Copy link
Contributor

@seqizz seqizz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see some escape sequence which are not visible on the main branch when triggered from scratch (now I managed to make both work):

web-1  | /code/serveradmin/serverdb/sql_generator.py:226: SyntaxWarning: invalid escape sequence '\.'
web-1  |   "server.hostname ~ ('\\A[^\.]+\.' || regexp_replace("
web-1  | /code/serveradmin/serverdb/sql_generator.py:227: SyntaxWarning: invalid escape sequence '\*'
web-1  |   "sub.hostname, '(\*|\-|\.)', '\\\1', 'g') || '\\Z')",
web-1  | Loading .env environment variables...
web-1  | Couldn't load serveradmin config from /code/serveradmin/local_settings.py
web-1  | Couldn't load serveradmin config from /etc/serveradmin/settings.py
web-1  | /code/serveradmin/serverdb/sql_generator.py:226: SyntaxWarning: invalid escape sequence '\.'
web-1  |   "server.hostname ~ ('\\A[^\.]+\.' || regexp_replace("
web-1  | /code/serveradmin/serverdb/sql_generator.py:227: SyntaxWarning: invalid escape sequence '\*'
web-1  |   "sub.hostname, '(\*|\-|\.)', '\\\1', 'g') || '\\Z')",

But that is just the cosmetic side, functionally it works nice.

@kofrezo
Copy link
Contributor Author

kofrezo commented Feb 11, 2026

I see some escape sequence which are not visible on the main branch when triggered from scratch (now I managed to make both work):

web-1  | /code/serveradmin/serverdb/sql_generator.py:226: SyntaxWarning: invalid escape sequence '\.'
web-1  |   "server.hostname ~ ('\\A[^\.]+\.' || regexp_replace("
web-1  | /code/serveradmin/serverdb/sql_generator.py:227: SyntaxWarning: invalid escape sequence '\*'
web-1  |   "sub.hostname, '(\*|\-|\.)', '\\\1', 'g') || '\\Z')",
web-1  | Loading .env environment variables...
web-1  | Couldn't load serveradmin config from /code/serveradmin/local_settings.py
web-1  | Couldn't load serveradmin config from /etc/serveradmin/settings.py
web-1  | /code/serveradmin/serverdb/sql_generator.py:226: SyntaxWarning: invalid escape sequence '\.'
web-1  |   "server.hostname ~ ('\\A[^\.]+\.' || regexp_replace("
web-1  | /code/serveradmin/serverdb/sql_generator.py:227: SyntaxWarning: invalid escape sequence '\*'
web-1  |   "sub.hostname, '(\*|\-|\.)', '\\\1', 'g') || '\\Z')",

But that is just the cosmetic side, functionally it works nice.

Hmm yeah. I will tackle that later in a different PR.

@kofrezo kofrezo marked this pull request as ready for review February 11, 2026 16:03
@kofrezo kofrezo merged commit 85e603b into main Feb 11, 2026
6 of 7 checks passed
@kofrezo kofrezo deleted the dk_update_test_environment branch February 11, 2026 16:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file python Pull requests that update python code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

Comments