Update Python, Django support matrix#647
Merged
Merged
Conversation
Signed-off-by: Stephen Finucane <stephen@that.guru>
3953d69 to
870f90a
Compare
We also change our testing matrix so that we only test the upper and lower bounds of supported Python releases. This should ease pressure on CI somewhat. We also switch from the deprecated psycopg2 to psycopg (which actually corresponds to v3 now). Changes to the source were auto-generated with django-upgrade. Signed-off-by: Stephen Finucane <stephen@that.guru>
psycopg (v3) strictly rejects NUL bytes (0x00) in PostgreSQL text fields, unlike psycopg2 which handled them silently. Malformed emails (such as the codec-null.mbox fuzz fixture in our test suite) contain NUL bytes in headers and body content, causing DataError on insert. Strip NUL bytes from all text fields before they reach the database. This is safe for all fields: * Headers are restricted to printable ASCII by RFC 5322 meaning NUL bytes there always indicate corruption * Email body / commit message content is plain text so NUL bytes are equally invalid here * Unified diffs should also never contain NUL bytes. Git uses their presence as the heuristic to classify a file as binary, at which point it either emits 'Binary files ... differ' or, with --binary, a base85-encoded binary patch, both of which are entirely printable ASCII. A legitimate patch produced by git format-patch will therefore never carry NUL bytes in the diff text itself. Signed-off-by: Stephen Finucane <stephen@that.guru>
Only run on pushes to main and stable branches. Signed-off-by: Stephen Finucane <stephen@that.guru>
Generated with: reno report --branch $branch --stop-at-branch-base --no-show-source where $branch was the respective stable branch. This allows us to tag and delete these old branches. Signed-off-by: Stephen Finucane <stephen@that.guru>
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.
Uh oh!
There was an error while loading. Please reload this page.