Skip to content

core: expiring model: ignore DoesNotExist error - #20922

Merged
BeryJu merged 1 commit into
mainfrom
core-expire-action-ignore-error
Mar 16, 2026
Merged

BeryJu merged 1 commit into
mainfrom
core-expire-action-ignore-error

Conversation

@rissson

@rissson rissson commented Mar 16, 2026

Copy link
Copy Markdown
Member

Details

closes #20884


Checklist

  • Local tests pass (ak test authentik/)
  • The code has been formatted (make lint-fix)

If an API change has been made

  • The API schema has been updated (make gen-build)

If changes to the frontend have been made

  • The code has been formatted (make web)

If applicable

  • The documentation has been updated
  • The documentation has been formatted (make docs)

@rissson rissson self-assigned this Mar 16, 2026
@rissson
rissson requested a review from a team as a code owner March 16, 2026 13:45
@rissson rissson added area:backend backport/version-2026.2 Add this label to PRs to backport changes to version-2026.2 labels Mar 16, 2026
@netlify

netlify Bot commented Mar 16, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 1433c80
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/69b80980a0dcb600088b9a74
😎 Deploy Preview https://deploy-preview-20922--authentik-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@codecov

codecov Bot commented Mar 16, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 50.00000% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 93.45%. Comparing base (3d964dd) to head (1433c80).
⚠️ Report is 8 commits behind head on main.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
authentik/core/models.py 50.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main   #20922      +/-   ##
==========================================
- Coverage   93.49%   93.45%   -0.05%     
==========================================
  Files         992      992              
  Lines       56150    56153       +3     
==========================================
- Hits        52498    52475      -23     
- Misses       3652     3678      +26     
Flag Coverage Δ
conformance 37.41% <0.00%> (-0.01%) ⬇️
e2e 42.92% <0.00%> (-0.02%) ⬇️
integration 22.16% <0.00%> (-0.05%) ⬇️
unit 91.68% <50.00%> (-0.01%) ⬇️
unit-migrate 91.77% <50.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@github-actions

Copy link
Copy Markdown
Contributor

authentik PR Installation instructions

Instructions for docker-compose

Add the following block to your .env file:

AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-1433c807ccb7ffb3fa59bbec94a8746a3d543072
AUTHENTIK_OUTPOSTS__CONTAINER_IMAGE_BASE=ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s

Afterwards, run the upgrade commands from the latest release notes.

Instructions for Kubernetes

Add the following block to your values.yml file:

authentik:
    outposts:
        container_image_base: ghcr.io/goauthentik/dev-%(type)s:gh-%(build_hash)s
global:
    image:
        repository: ghcr.io/goauthentik/dev-server
        tag: gh-1433c807ccb7ffb3fa59bbec94a8746a3d543072

Afterwards, run the upgrade commands from the latest release notes.

@BeryJu
BeryJu merged commit d9ae483 into main Mar 16, 2026
101 of 102 checks passed
@BeryJu
BeryJu deleted the core-expire-action-ignore-error branch March 16, 2026 16:28
authentik-automation Bot pushed a commit that referenced this pull request Mar 16, 2026
@authentik-automation

Copy link
Copy Markdown
Contributor

🍒 Cherry-pick to version-2026.2 created: #20925

rissson added a commit that referenced this pull request Mar 16, 2026
…o version-2026.2) (#20925)

core: expiring model: ignore DoesNotExist error (#20922)

Signed-off-by: Marc 'risson' Schmitt <[email protected]>
Co-authored-by: Marc 'risson' Schmitt <[email protected]>
kensternberg-authentik added a commit that referenced this pull request Mar 16, 2026
* main: (178 commits)
  lifecycle/aws: bump aws-cdk from 2.1110.0 to 2.1111.0 in /lifecycle/aws (#20847)
  web: bump the bundler group across 1 directory with 7 updates (#20876)
  web: bump @types/node from 25.4.0 to 25.5.0 in /web (#20878)
  web: bump flatted from 3.3.3 to 3.4.1 (#20891)
  web: bump flatted from 3.3.3 to 3.4.1 in /web (#20923)
  core: expiring model: ignore DoesNotExist error (#20922)
  core: bump astral-sh/uv from 0.10.9 to 0.10.10 in /lifecycle/container (#20913)
  core, web: update translations (#20899)
  core: bump goauthentik.io/api/v3 to 3.2026.5.0-rc1-1773518508 (#20897)
  stages/authenticator_webauthn: Update FIDO MDS3 & Passkey aaguid blobs (#20905)
  ci: bump softprops/action-gh-release from 2.5.0 to 2.6.1 (#20912)
  ci: bump actions/create-github-app-token from 2.2.1 to 3.0.0 (#20914)
  core: bump goauthentik/fips-python from `1ef7bd9` to `9d550e1` in /lifecycle/container (#20915)
  endpoints: fix tasks failing (#20904)
  providers/scim: use modified GroupMember class to support extra attributes on it (#20827)
  events: add option to configure webhook CA (#20823)
  stages/authenticator_webauthn: Add WebAuthn client hints support (#20700)
  web/elements: Add preserve-order, no-search and no-status attributes to ak-dual-select (#20749)
  docs: Add note on skipping object syncing (#20882)
  core: bump orjson from 3.11.5 to 3.11.6 (#20870)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:backend backport/version-2026.2 Add this label to PRs to backport changes to version-2026.2

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Exception thrown in authentik.core.tasks.clean_expired_models

2 participants