Skip to content

Upgrade to Python 3.12 base layer - #4

Merged
m-messer merged 1 commit into
mainfrom
python-3.12
Nov 10, 2026
Merged

m-messer merged 1 commit into
mainfrom
python-3.12

Conversation

@m-messer

@m-messer m-messer commented Nov 9, 2026

Copy link
Copy Markdown
Member

Moves off baseevalutionfunctionlayer:main-3.8 (Python 3.8 runtime, deprecated; the base layer has stopped building the 3.8 image).

  • app/Dockerfile: main-3.12, the same recipe as survey (dnf findutils, PYTHONPATH=/app, CMD ["app.handler"]). pytest is already in requirements.txt
  • Workflows now match survey's, adjusted for an LLM-backed function:
    • test-lint runs on PRs (it was manual-only), with lint only: the pytest steps are removed because the tests call OpenAI
    • the staging test job is added (lint only) with needs: test
    • production-deploy.yml keeps run-database-tests: false
  • Test files keep their singular names (evaluation_test.py). The base layer healthcheck therefore doesn't import and run them, so it never calls OpenAI
  • Added pytest.ini and updated the README Python version

🤖 Generated with Claude Code

…M variant)

- Base image baseevalutionfunctionlayer:main-3.8 -> main-3.12 (AL2023: dnf findutils,
  PYTHONPATH, module-style CMD)
- Workflows copied from survey, with pytest steps removed (tests call OpenAI) and
  run-database-tests kept false; lint still gates staging deploy
- Test files keep their singular names so the healthcheck doesn't call OpenAI
- Add pytest.ini

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@m-messer
m-messer merged commit 81d1459 into main Nov 10, 2026
10 checks passed
@m-messer
m-messer deleted the python-3.12 branch November 10, 2026 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant