Skip to content

root: resolve squashed migrations' dependencies - #27751

Merged
BeryJu merged 2 commits into
mainfrom
root/fix-migration-squash
Nov 12, 2026
Merged

BeryJu merged 2 commits into
mainfrom
root/fix-migration-squash

Conversation

@BeryJu

@BeryJu BeryJu commented Nov 10, 2026

Copy link
Copy Markdown
Member

"fix" the migrations (they're not broken, but resolve dependencies for squashed migrations so they work with django sqlmigrate which the migration linter uses)

@BeryJu
BeryJu added this pull request to stack #27752 November 10, 2026 17:40
@BeryJu
BeryJu requested a review from a team as a code owner November 10, 2026 17:40
@netlify

netlify Bot commented Nov 10, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 119adfa
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6af3572424bd2969214def7b
😎 Deploy Preview https://deploy-preview-27751--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 Nov 10, 2026 •

Copy link
Copy Markdown

❌ 1 Tests Failed:

Tests completed Failed Passed Skipped
5112 1 5111 22
View the top 1 failed test(s) by shortest run time
tests.openid_conformance.test_oidc_rp_initiated.TestOpenIDConformanceRPInitiated::test_oidcc_rp_initiated_certification_test_plan
Stack Traces | 137s run time
self = <unittest.case._Outcome object at 0x7e0067e99550>
test_case = <tests.openid_conformance.test_oidc_rp_initiated.TestOpenIDConformanceRPInitiated testMethod=test_oidcc_rp_initiated_certification_test_plan>
subTest = False

    @contextlib.contextmanager
    def testPartExecutor(self, test_case, subTest=False):
        old_success = self.success
        self.success = True
        try:
>           yield

.../hostedtoolcache/Python/3.14.10........./x64/lib/python3.14/unittest/case.py:58: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tests.openid_conformance.test_oidc_rp_initiated.TestOpenIDConformanceRPInitiated testMethod=test_oidcc_rp_initiated_certification_test_plan>
result = <TestCaseFunction test_oidcc_rp_initiated_certification_test_plan>

    def run(self, result=None):
        if result is None:
            result = self.defaultTestResult()
            startTestRun = getattr(result, 'startTestRun', None)
            stopTestRun = getattr(result, 'stopTestRun', None)
            if startTestRun is not None:
                startTestRun()
        else:
            stopTestRun = None
    
        result.startTest(self)
        try:
            testMethod = getattr(self, self._testMethodName)
            if (getattr(self.__class__, "__unittest_skip__", False) or
                getattr(testMethod, "__unittest_skip__", False)):
                # If the class or method was skipped.
                skip_why = (getattr(self.__class__, '__unittest_skip_why__', '')
                            or getattr(testMethod, '__unittest_skip_why__', ''))
                _addSkip(result, self, skip_why)
                return result
    
            expecting_failure = (
                getattr(self, "__unittest_expecting_failure__", False) or
                getattr(testMethod, "__unittest_expecting_failure__", False)
            )
            outcome = _Outcome(result)
            start_time = time.perf_counter()
            try:
                self._outcome = outcome
    
                with outcome.testPartExecutor(self):
                    self._callSetUp()
                if outcome.success:
                    outcome.expecting_failure = expecting_failure
                    with outcome.testPartExecutor(self):
>                       self._callTestMethod(testMethod)

.../hostedtoolcache/Python/3.14.10........./x64/lib/python3.14/unittest/case.py:669: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tests.openid_conformance.test_oidc_rp_initiated.TestOpenIDConformanceRPInitiated testMethod=test_oidcc_rp_initiated_certification_test_plan>
method = <bound method TestOpenIDConformanceRPInitiated.test_oidcc_rp_initiated_certification_test_plan of <tests.openid_conformance.test_oidc_rp_initiated.TestOpenIDConformanceRPInitiated testMethod=test_oidcc_rp_initiated_certification_test_plan>>

    def _callTestMethod(self, method):
>       result = method()
                 ^^^^^^^^

.../hostedtoolcache/Python/3.14.10........./x64/lib/python3.14/unittest/case.py:615: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tests.openid_conformance.test_oidc_rp_initiated.TestOpenIDConformanceRPInitiated testMethod=test_oidcc_rp_initiated_certification_test_plan>
args = (), kwargs = {}

    @wraps(func)
    def wrapper(self: TransactionTestCase, *args, **kwargs):
        """Run test again if we're below max_retries, including tearDown and
        setUp. Otherwise raise the error"""
        nonlocal count
        try:
>           return func(self, *args, **kwargs)
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/decorators.py:60: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tests.openid_conformance.test_oidc_rp_initiated.TestOpenIDConformanceRPInitiated testMethod=test_oidcc_rp_initiated_certification_test_plan>

    @retry()
    def test_oidcc_rp_initiated_certification_test_plan(self):
>       self.run_test(
            "oidcc-rp-initiated-logout-certification-test-plan",
            self.test_plan_config,
            {
                "client_registration": "static_client",
                "response_type": "code",
            },
        )

tests/openid_conformance/test_oidc_rp_initiated.py:17: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tests.openid_conformance.test_oidc_rp_initiated.TestOpenIDConformanceRPInitiated testMethod=test_oidcc_rp_initiated_certification_test_plan>
test_name = 'oidcc-rp-initiated-logout-certification-test-plan'
test_plan_config = {'alias': 'authentik', 'description': 'authentik', 'server': {'discoveryUrl': 'https://10.1.0.196:.../application/o/...86b5389d15b173109a0555dc47e0cc0949104f1925bcc6565351cb1dffd7e6818cf074f5bd50c210b565121a7328ee8bd40107fc4bbd867'}, ...}
test_variant = {'client_registration': 'static_client', 'response_type': 'code'}

    def run_test(
        self,
        test_name: str,
        test_plan_config: dict[str, Any],
        test_variant: dict[str, Any] | None = None,
    ):
        self.conformance = Conformance(f"https://{self.host}:8443", None, verify_ssl=False)
    
        test_plan = self.conformance.create_test_plan(
            test_name,
            test_plan_config,
            test_variant,
        )
        plan_id = test_plan["id"]
        for test in test_plan["modules"]:
            # Fetch name and variant of the next test to run
            module_name = test["testModule"]
            variant = test["variant"]
            module_instance = self.conformance.create_test_from_plan_with_variant(
                plan_id, module_name, variant
            )
            module_id = module_instance["id"]
>           self.run_single_test(module_id)

tests/openid_conformance/base.py:87: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tests.openid_conformance.test_oidc_rp_initiated.TestOpenIDConformanceRPInitiated testMethod=test_oidcc_rp_initiated_certification_test_plan>
module_id = 'BYhprysrJQoOssM'

    def run_single_test(self, module_id: str):
        """Process instructions for a single test, navigate to browser URLs and take screenshots"""
        tested_browser_url = 0
        uploaded_image = 0
        cleared_cookies = False
        while True:
            # Fetch all info
            test_status = self.conformance.get_test_status(module_id)
            test_log = self.conformance.get_test_log(module_id)
            test_info = self.conformance.get_module_info(module_id)
            # Check status early, if we're finished already we don't want to do anything extra
            if test_info["status"] in ["INTERRUPTED", "FINISHED"]:
                return
            # Check if we need to clear cookies - tests only indicates this in their written summary
            # so this check is a bit brittle
            if "cookies" in test_info["summary"] and not cleared_cookies:
                # Navigate to our origin to delete cookies in the right context
                self.driver.get(self.url("authentik_api:user-me") + "?format=json")
                self.driver.delete_all_cookies()
                cleared_cookies = True
            # Check if we need deal with any browser URLs
            browser_urls = test_status.get("browser", {}).get("urls", [])
            if len(browser_urls) > tested_browser_url:
                self.do_browser(browser_urls[tested_browser_url])
                tested_browser_url += 1
                continue
            # Check if we need to upload any items
            upload_items = [x for x in test_log if "upload" in x]
            if len(upload_items) > uploaded_image:
                screenshot = self.get_screenshot()
>               self.conformance.upload_image(
                    module_id, upload_items[uploaded_image]["upload"], screenshot
                )

tests/openid_conformance/base.py:129: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tests.openid_conformance.conformance.Conformance object at 0x7e0066ffd7f0>
log_id = 'BYhprysrJQoOssM', placeholder = 'JHvYtjmSl4'
data = 'data:image/jpeg;base64,iVBORw0KGgoAAAANSUhEUgAAAxgAAAHFCAIAAAD+IMjrAAAQAElEQVR4nLy9CYLzOI4mCtDRJ3yXe1ebs0yamBCxfQAp2Z....../u4u3cgAAAAZJREFUAwAWJa/9FwXJoQAAAABJRU5ErkJggg=='

    def upload_image(self, log_id: str, placeholder: str, data: Any) -> None:
        url = f"{self.api_url_base}/api/log/{log_id}/images/{placeholder}"
        response = self.session.post(url, data=data, headers={"Content-Type": "text/plain"})
        if response.status_code != Conformance.HTTP_OK:
>           raise ConformanceException(
                f"upload_image failed - HTTP {response.status_code} {response.text}"
            )
E           tests.openid_conformance.conformance.ConformanceException: upload_image failed - HTTP 400 File size exceeds the 500KB limit

tests/openid_conformance/conformance.py:189: ConformanceException

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

@github-actions

github-actions Bot commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Playwright e2e

Download this run's HTML report and traces, then open the report:

gh run download 43220478415 -D playwright-artifacts
npx playwright show-report playwright-artifacts/playwright-report

Installation instructions

Instructions for docker-compose

Add the following block to your .env file:

AUTHENTIK_IMAGE=ghcr.io/goauthentik/dev-server
AUTHENTIK_TAG=gh-a8e18a370c9ec0189f471397a1f1c849542fcd2e
# Distroless image: AUTHENTIK_TAG=gh-a8e18a370c9ec0189f471397a1f1c849542fcd2e-distroless
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-a8e18a370c9ec0189f471397a1f1c849542fcd2e
        # Distroless image: tag: gh-a8e18a370c9ec0189f471397a1f1c849542fcd2e-distroless

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

@netlify

netlify Bot commented Nov 12, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit b0d4661
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/6af59f5aecc23a55e5976343
😎 Deploy Preview https://deploy-preview-27751--authentik-storybook.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.

@BeryJu
BeryJu force-pushed the root/fix-migration-squash branch from 8793d22 to b0d4661 Compare November 12, 2026 11:13
Base automatically changed from ci/migration-lint to main November 12, 2026 12:43
@BeryJu
BeryJu requested a review from a team as a code owner November 12, 2026 12:43
@BeryJu
BeryJu force-pushed the root/fix-migration-squash branch from b0d4661 to a8e18a3 Compare November 12, 2026 12:43
@BeryJu
BeryJu merged commit d94558c into main Nov 12, 2026
170 of 172 checks passed
@BeryJu
BeryJu deleted the root/fix-migration-squash branch November 12, 2026 13:11
kensternberg-authentik added a commit that referenced this pull request Nov 12, 2026
* main: (35 commits)
  providers/saml: share xml signature generation (#27786)
  tests/openid_conformance: upload JPEG screenshots (#27749)
  crypto: export certificate expiry as a Prometheus metric (#27771)
  core: bump openapitools/openapi-generator-cli from v7.26.0 to v7.27.0 in /packages/client-ts (#27663)
  core: bump openapitools/openapi-generator-cli from v7.26.0 to v7.27.0 in /packages/client-rust (#27662)
  core: bump goauthentik/fips-debian from `d363011` to `16c391c` in /lifecycle/container (#27368)
  web: bump body-parser from 1.20.6 to 1.20.9 (#27521)
  core: bump library/node from `6d2c7d5` to `438603b` in /website (#27709)
  core: bump library/nginx from `5ab5b0b` to `165ddde` in /website (#27710)
  web: bump postcss-selector-parser from 7.1.7 to 7.2.0 in /web (#27742)
  web: bump glob from 13.0.6 to 13.0.7 (#27744)
  web: bump colord from 2.10.0 to 2.11.0 (#27745)
  web: bump colord from 2.10.0 to 2.11.0 in /website (#27746)
  root: resolve squashed migrations' dependencies (#27751)
  ci: add django-migration-linter (#27748)
  core: bump deepmerge from 3.0.1 to 4.0.0 (#27767)
  website/docs: Enhance reverse proxy NGINX configuration (#27774)
  providers/oauth2: drop the GrantTypes session alias (#27788)
  website/integrations: add calendarbridge (#27779)
  website/integrations: add onecal (#27778)
  ...
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.

1 participant