Backend 4: Upgrade Django 5.2 to 6.0.3#9322
Merged
Merged
Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #9322 +/- ##
=======================================
Coverage 82.94% 82.94%
=======================================
Files 613 613
Lines 35372 35372
Branches 3263 3278 +15
=======================================
Hits 29338 29338
Misses 5665 5665
Partials 369 369 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
790634e to
2a8023a
Compare
1ffb6ff to
19f6dcd
Compare
9494b62 to
2ee7e24
Compare
Upgrades Django and related packages for Django 6.0 compatibility: - Django 5.2.12 → 6.0.3 - djangorestframework 3.16.1 → 3.17.0 (Django 6.0 support) - django-filter 25.1 → 25.2 (Django 6.0 support) - django-debug-toolbar 5.2.0 → 6.2.0 (Django 6.0 support) - dockerflow 2024.4.2 → 2026.3.4 (Django 6.0 support) - asgiref 3.8.1 → 3.11.1 (required by Django 6.0) - typing-extensions 4.12.0 → 4.15.0 (align dev/common) Code changes: - Use MozlogFormatter instead of deprecated JsonLogFormatter - Add django.contrib.postgres to INSTALLED_APPS (required by Django 6.0 for SearchVectorField) - Silence debug_toolbar.E001 check (triggered when tests toggle DEBUG) - Align dev.txt package versions with common.txt to prevent conflicts Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2ee7e24 to
0828052
Compare
camd
commented
May 25, 2026
| "format": "[%(asctime)s] %(levelname)s [%(name)s:%(lineno)s] %(message)s", | ||
| }, | ||
| "json": {"()": "dockerflow.logging.JsonLogFormatter", "logger_name": "treeherder"}, | ||
| "json": {"()": "dockerflow.logging.MozlogFormatter", "logger_name": "treeherder"}, |
Collaborator
Author
There was a problem hiding this comment.
JsonLogFormatter is a deprecated reference to MozlogFormatter. In the new version of dockerflow this will become a failure, rather than a warning. So fixing here. No functional difference.
Archaeopteryx
approved these changes
May 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Phase 4 of the Python/Django upgrade plan: upgrades Django from 5.2.12 LTS to 6.0.3.
Package upgrades:
Code changes:
settings.py: Switch from deprecateddockerflow.logging.JsonLogFormattertoMozlogFormattersettings.py: Changedjango.contrib.postgres.searchtodjango.contrib.postgresinINSTALLED_APPS(Django 6.0 requires the parent app forSearchVectorField)settings.py: Silencedebug_toolbar.E001system check (django-debug-toolbar 6.x raises an error whenDEBUG=Falsebut toolbar is inINSTALLED_APPS; this happens when tests toggleDEBUGat runtime)dev.txtandcommon.txtto prevent pip install conflicts (distlib, filelock, identify, idna, nodeenv, packaging, platformdirs, sqlparse, virtualenv)Packages kept as-is:
Test plan
🤖 Generated with Claude Code