Skip to content

Handle cache culling and boolean lookup changes in Django 6.2 - #2385

Merged
matthiask merged 4 commits into
mainfrom
cache-culling
Jun 16, 2026
Merged

Handle cache culling and boolean lookup changes in Django 6.2#2385
matthiask merged 4 commits into
mainfrom
cache-culling

Conversation

@tim-schilling

@tim-schilling tim-schilling commented Jun 14, 2026

Copy link
Copy Markdown
Member

Description

  • Account for Django cache culling probability.
  • Support Django 6.2's handling of booleans for non-postgresql databases.

This should fix the build for the tests against main.

Checklist:

  • I have added the relevant tests for this change.
  • I have added an item to the Pending section of docs/changes.rst.

AI/LLM Usage

  • This PR includes code generated with the help of an AI/LLM

@tim-schilling

Copy link
Copy Markdown
Member Author

I reverted the test change to evaluate against the SQL. While I think it's better, I'm not sure how to test that reliably 😅

@github-actions

Copy link
Copy Markdown

Coverage report

This PR does not seem to contain any modification to coverable code.

@tim-schilling
tim-schilling force-pushed the cache-culling branch 3 times, most recently from 5e4de08 to bff52ac Compare June 15, 2026 00:11
@github-actions

github-actions Bot commented Jun 15, 2026

Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 98.36% 60 / 61
🔵 Statements 98.38% 61 / 62
🔵 Functions 100% 17 / 17
🔵 Branches 68.75% 11 / 16
File CoverageNo changed files found.
Generated in workflow #3200 for commit 5651ae2 by the Vitest Coverage Report Action

webdriverio has a higher configuration cost and there's currently a bug
with GitHub actions, linux and chrome that makes it annoying. Switching
to playwright should side-step that all.

Explicitly mention the emnapi packages to ensure they show up in the lock file for runs on linux.
@tim-schilling tim-schilling mentioned this pull request Jun 15, 2026
3 tasks

@matthiask matthiask left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@codingjoe codingjoe left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🤓

Comment thread docs/spelling_wordlist.txt Outdated
neo
nothreading
paddings
postgresql

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
postgresql
PostgreSQL

Comment thread docs/changes.rst Outdated
Comment thread package.json
Comment on lines +26 to +27
"@emnapi/core": "^1.11.1",
"@emnapi/runtime": "^1.11.1"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see those imported anywhere.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They are only needed by linux builds, so when someone updates the dependencies on a mac, it removes them and then it breaks in CI. I mentioned this in the commit message so someone can understand via git blame in the future.

- name: Install Node dependencies
run: npm ci
- name: Install Playwright browsers
run: npx playwright install --with-deps chromium firefox

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The browsers are stock on GH's ubuntu-latest images.
And playwright should be installed via npm ci, right?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hm… you might end up with different versions. I don't know if those NPN deps do any funny install script magic, but the browsers and their web drivers should already be installed.
You can try w/o the line, or consider adding the deps to the package.json file.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I also run playwright install in CI runs. I could be wrong but I think it's the way to go.

Comment thread docs/spelling_wordlist.txt Outdated
Co-authored-by: Johannes Maron <johannes@maron.family>
Co-authored-by: Matthias Kestenholz <matthiask@fastmail.com>
@matthiask
matthiask merged commit 5651ae2 into main Jun 16, 2026
32 checks passed
@matthiask
matthiask deleted the cache-culling branch June 16, 2026 06:00
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.

3 participants