Skip to content

blueprints: fix default invalidation flow title (cherry-pick #28149 to version-2026.11) - #28172

Merged
BeryJu merged 1 commit into
version-2026.11from
cherry-pick/28149-to-version-2026.11
Nov 26, 2026
Merged

BeryJu merged 1 commit into
version-2026.11from
cherry-pick/28149-to-version-2026.11

Conversation

@authentik-cherry-pick

Copy link
Copy Markdown
Contributor

Cherry-pick of #28149 to version-2026.11 branch.

Original PR: #28149
Original Author: @BeryJu
Cherry-picked commit: 1e218e8

* blueprints: fix default invalidation flow title

Signed-off-by: Jens Langhammer <[email protected]>

* Apply suggestion from @BeryJu

Signed-off-by: Jens L. <[email protected]>

* Apply suggestion from @BeryJu

Signed-off-by: Jens L. <[email protected]>

---------

Signed-off-by: Jens Langhammer <[email protected]>
Signed-off-by: Jens L. <[email protected]>
@netlify

netlify Bot commented Nov 25, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-storybook ready!

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

@netlify

netlify Bot commented Nov 25, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-integrations ready!

Name Link
🔨 Latest commit 1f106fd
🔍 Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/6b073580533befb823a821a9
😎 Deploy Preview https://deploy-preview-28172--authentik-integrations.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.

@netlify

netlify Bot commented Nov 25, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 1f106fd
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6b07358083ee244d847ebe5d
😎 Deploy Preview https://deploy-preview-28172--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 25, 2026 •

Copy link
Copy Markdown

❌ 1 Tests Failed:

Tests completed Failed Passed Skipped
5316 1 5315 22
View the top 1 failed test(s) by shortest run time
tests.e2e.test_flows_login.TestFlowsLogin::test_login
Stack Traces | 5.66s run time
self = <unittest.case._Outcome object at 0x7cb614dccc30>
test_case = <tests.e2e.test_flows_login.TestFlowsLogin testMethod=test_login>
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.e2e.test_flows_login.TestFlowsLogin testMethod=test_login>
result = <TestCaseFunction test_login>

    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.e2e.test_flows_login.TestFlowsLogin testMethod=test_login>
method = <bound method TestFlowsLogin.test_login of <tests.e2e.test_flows_login.TestFlowsLogin testMethod=test_login>>

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

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

self = <tests.e2e.test_flows_login.TestFlowsLogin testMethod=test_login>
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: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

args = (<tests.e2e.test_flows_login.TestFlowsLogin testMethod=test_login>,)
kwargs = {}

    @wraps(func)
    def wrapper(*args, **kwargs):
        for file in files:
            content = BlueprintInstance(path=file).retrieve()
            Importer.from_string(content).apply()
>       return func(*args, **kwargs)
               ^^^^^^^^^^^^^^^^^^^^^

.../blueprints/tests/__init__.py:25: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tests.e2e.test_flows_login.TestFlowsLogin testMethod=test_login>

    @retry()
    @apply_blueprint(
        "default/flow-default-authentication-flow.yaml",
        "default/flow-default-invalidation-flow.yaml",
    )
    def test_login(self):
        """test default login flow"""
        self.driver.get(
            self.url(
                "authentik_core:if-flow",
                flow_slug="default-authentication-flow",
            )
        )
>       self.login()

tests/e2e/test_flows_login.py:31: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tests.e2e.test_flows_login.TestFlowsLogin testMethod=test_login>
shadow_dom = True, skip_stages = []

    def login(self, shadow_dom=True, skip_stages: list[str] | None = None):
        """Perform the entire authentik login flow."""
        skip_stages = skip_stages or []
    
        if "ak-stage-identification" not in skip_stages:
            if shadow_dom:
>               flow_executor = self.get_shadow_root("ak-flow-executor")
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

tests/selenium.py:293: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tests.e2e.test_flows_login.TestFlowsLogin testMethod=test_login>
selector = 'ak-flow-executor'
container = <selenium.webdriver.remote.webdriver.WebDriver (session="46ee0365048836645c88ca0a1227a5d5")>
timeout = 10

    def get_shadow_root(
        self, selector: str, container: WebElement | WebDriver | None = None, timeout: float = 10
    ) -> WebElement:
        """Get the shadow root of a web component specified by `selector`."""
        if not container:
            container = self.driver
        wait = WebDriverWait(container, timeout)
        host: WebElement | None = None
    
        try:
            host = wait.until(lambda c: c.find_element(By.CSS_SELECTOR, selector))
        except TimeoutException:
            self.fail(f"Timed out waiting for shadow host {selector} to appear")
    
        attempts = 0
    
        while attempts < SHADOW_ROOT_RETRIES:
            try:
                host = container.find_element(By.CSS_SELECTOR, selector)
                return host.shadow_root
            except (
                NoSuchElementException,
                NoSuchShadowRootException,
                DetachedShadowRootException,
                StaleElementReferenceException,
            ):
                attempts += 1
                sleep(0.2)
    
        inner_html = "<no host>"
        if host is not None:
            try:
                inner_html = host.get_attribute("innerHTML") or "<no host>"
            except DetachedShadowRootException, StaleElementReferenceException:
                inner_html = "<stale host>"
    
>       raise RuntimeError(
            f"Failed to obtain shadow root for {selector} after {attempts} attempts. "
            f"Host innerHTML: {inner_html}"
        )
E       RuntimeError: Failed to obtain shadow root for ak-flow-executor after 5 attempts. Host innerHTML: 
E               
E       
E       <div class="ak-c-placeholder" id="ak-placeholder" slot="placeholder">
E           
E       
E       <span class="pf-c-spinner" role="progressbar" aria-valuetext="Loading...">
E           <span class="pf-c-spinner__clipper"></span>
E           <span class="pf-c-spinner__lead-ball"></span>
E           <span class="pf-c-spinner__tail-ball"></span>
E       </span>
E       
E       </div>
E       
E       
E               <div class="ak-c-flow-overlay" slot="overlay-viewport">
E                   
E       
E       <span class="pf-c-spinner" role="progressbar" aria-valuetext="Loading...">
E           <span class="pf-c-spinner__clipper"></span>
E           <span class="pf-c-spinner__lead-ball"></span>
E           <span class="pf-c-spinner__tail-ball"></span>
E       </span>
E       
E               </div>
E       
E               <div class="ak-c-flow-overlay" slot="overlay-card">
E                   
E       
E       <span class="pf-c-spinner" role="progressbar" aria-valuetext="Loading...">
E           <span class="pf-c-spinner__clipper"></span>
E           <span class="pf-c-spinner__lead-ball"></span>
E           <span class="pf-c-spinner__tail-ball"></span>
E       </span>
E       
E               </div>
E       
E               <ak-brand-links name="flow-links" slot="footer"><!----><ul class="pf-c-list pf-m-inline" part="list" aria-label="Site links" data-count="1">
E                   <!--?lit$054446981$--><!----><li part="list-item" data-index="0" data-kind="text" data-track-name="start">
E                           <!--?lit$054446981$-->Powered by authentik
E                       </li><!---->
E               </ul></ak-brand-links>

tests/selenium.py:270: RuntimeError

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

Copy link
Copy Markdown
Contributor

Playwright e2e

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

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

@BeryJu
BeryJu merged commit c004f5f into version-2026.11 Nov 26, 2026
157 of 159 checks passed
@BeryJu
BeryJu deleted the cherry-pick/28149-to-version-2026.11 branch November 26, 2026 12:39
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.

1 participant