Skip to content

chore(deprecations): add 3.8.0 to the release calendar - #17051

Merged
Maffooch merged 1 commit into
devfrom
chore/release-dates-3-8-0
Nov 21, 2026
Merged

Maffooch merged 1 commit into
devfrom
chore/release-dates-3-8-0

Conversation

@Maffooch

Copy link
Copy Markdown
Contributor

Description

RELEASE_DATES in dojo/deprecations.py ended at 3.7.0, so register_deprecation refused any deprecation naming the February 2027 minor (add 3.8.0 to RELEASE_DATES before naming it). This adds "3.8.0": date(2027, 2, 1), the scheduled date of the February 2027 minor. 3.7.0 (2027-01-04) was already there.

Test results

  • New TestDeprecationSchedule.test_the_calendar_reaches_the_february_2027_minor checks the 3.7.0 date and the 3.8.0 label. Before the change it failed with KeyError: '3.8.0'. After it, python manage.py test unittests.test_deprecations passes: 24 tests, OK.
  • ruff check and ruff format --check (ruff 0.16.10, ruff.toml) are clean on both files.

Documentation

None needed: no user-facing text changes, and no deprecation names 3.8.0 yet.

🤖 Generated with Claude Code

RELEASE_DATES stopped at 3.7.0, so no deprecation could name the
February 2027 minor. Add 3.8.0 (2027-02-01), matching the published
release schedule.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@Maffooch Maffooch added this to the 3.5.300 milestone Nov 21, 2026
@Maffooch

Copy link
Copy Markdown
Contributor Author

Adversarial review: approve-with-nits

Tier: full (as launched), model Opus. The diff is one calendar row in dojo/deprecations.py plus one test; no migration, endpoint, serializer or UI change, so there is nothing to drive in a browser.

CI read (not re-run), head 4def04d: 31 checks pass (ruff, migration graph, docker builds, chart lint, schema, docs). 16 were still pending when read: the Rest Framework unit tests (both), UI tests, k8s and performance. None of them is gating evidence yet, so I ran the module myself (below).

Regression test: python manage.py test unittests.test_deprecations at the PR head in the dev django image: 24 tests, OK. With the "3.8.0": date(2027, 2, 1) line removed from a copy of the tree, TestDeprecationSchedule fails: ERROR: test_the_calendar_reaches_the_february_2027_minor ... KeyError: '3.8.0'. So the test fails without the fix and passes with it.

The date: 2027-02-01 matches the 3.8.0 milestone due date in both DefectDojo/django-DefectDojo and DefectDojo-Inc/dojo-pro, and it is a Monday, the first Monday of the month, like every other row (3.5.0 to 3.7.0). The table is still in version order.

Break attempts (a script against the PR head's dojo package, in the dev django image):

  1. Register a real 3.8.0 deprecation. register_deprecation(Deprecation(..., removal_version="3.8.0")) is accepted. removal_date is 2027-02-01, removal_label is 3.8.0 (February 2027), and message() reads correctly. Holds.
  2. Non-English active language. Under translation.override("de") and ("fr") the label and the message stay in one language, as the existing design intends (strftime month plus the override(None) sentence). No mixed-language output. Holds.
  3. Overdue maths across the new line. overdue_deprecations() for 3.7.400, 3.8.0, 3.8.0-rc1, v3.8.1 and 3.10.0: the 3.8.0 entry becomes overdue only from v3.8.1 on. It is not overdue on 3.8.0 or its release candidate, and 3.10.0 sorts after 3.8.0 (tuple compare, not string compare). Holds.
  4. Neighbours stay refused. 3.8.100 and 3.8 are still refused as not a minor release, and 3.9.0 is still refused as missing from the calendar. The guard did not loosen. Holds.
  5. API headers end to end. A DeprecationNoticeMixin view whose key is the 3.8.0 deprecation sends X-Deprecated: True and X-End-Of-Life-Date: 2027-02-01T00:00:00. Downstream, dojo-pro's deprecation-ledger/reconcile.py --oss <PR tree> parses the new row ('3.8.0': '2027-02-01') and exits 0. Holds.

No screenshots, because nothing in the change is visible yet: no deprecation names 3.8.0. The PR body says so, and that is correct.

Findings

  • R1 nit this-pr unittests/test_deprecations.py:46: the new test never pins the 3.8.0 day. It checks removal_label, which formats only %B %Y, so a wrong day such as date(2027, 2, 8) would still pass. The day is what reaches clients in X-End-Of-Life-Date (attempt 5), so it is the value worth asserting. The 3.7.0 assertion on the line above tests a row this PR does not touch. The fix is to assert self.assertEqual(date(2027, 2, 1), widgets(removal_version="3.8.0").removal_date) alongside or instead of the 3.7.0 line.

Recommendation: approve-with-nits. Fix R1 before merge.

Checked statically or not at all: the pending Rest Framework and UI suites (I ran only unittests.test_deprecations). There is no production-data angle: the change is a constant.

@Maffooch
Maffooch added this pull request to the merge queue Nov 21, 2026
Merged via the queue into dev with commit 9425619 Nov 21, 2026
72 of 74 checks passed
@Maffooch
Maffooch deleted the chore/release-dates-3-8-0 branch November 21, 2026 06:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants