Skip to content

Commit

Permalink
Prevent dependabot from proposing Python version upgrades beyond 3.11. (
Browse files Browse the repository at this point in the history
#6772)

* OBS-375: Prevent dependabot from proposing Python version upgrades beyond 3.11.

* OBS-375: Document how to upgrade to a new Python version.
  • Loading branch information
smarnach authored Oct 29, 2024
1 parent 2141236 commit a1e14a5
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ updates:
schedule:
interval: "weekly"
open-pull-requests-limit: 10
ignore:
- dependency-name: python
versions: [">=3.12"]

# Set update schedule for GitHub Actions
- package-ecosystem: "github-actions"
Expand Down
2 changes: 2 additions & 0 deletions docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
# https://hub.docker.com/_/python
# NOTE(willkg): stick with slim-bullseye which matches how we build the
# stackwalker
# NOTE(smarnach): To upgrade Python to a new minor or major version, see
# https://socorro.readthedocs.io/en/latest/dev.html#upgrading-to-a-new-python-version
FROM --platform=linux/amd64 python:3.11.10-slim-bullseye@sha256:f6a64ef0a5cc14855b15548056a8fc77f4c3526b79883fa6709a8e23f676ac34 AS app_amd64

# Set up user and group
Expand Down
17 changes: 17 additions & 0 deletions docs/dev.rst
Original file line number Diff line number Diff line change
Expand Up @@ -646,6 +646,23 @@ pick up changes:
$ make devcontainer
Upgrading to a new Python version
=================================

To upgrade Python to a new minor or major version, you need to change the version in
these files:

* ``.devcontainer/Dockerfile``
* ``.github/dependabot.yml``
* ``.readthedocs.yaml``
* ``docker/Dockerfile``
* ``docker/Dockerfile.fakesentry``
* ``docker/set_up_legacy_es_requirements.sh``
* ``pyproject.toml``
* ``socorro/tests/processor/test_processor_app.py``
* ``webapp/crashstats/crashstats/tests/test_sentry.py``


Processing crashes
==================

Expand Down

0 comments on commit a1e14a5

Please sign in to comment.