Skip to content

events, tasks: speed up the event and task queries - #27692

Merged
dominic-r merged 8 commits into
mainfrom
dominic/events-query-performance
Nov 18, 2026
Merged

dominic-r merged 8 commits into
mainfrom
dominic/events-query-performance

Conversation

@dominic-r

@dominic-r dominic-r commented Nov 7, 2026 •

Copy link
Copy Markdown
Member

Details

What does this PR change?

the event and task pages in the admin UI scanned the whole events table, so on big installs they took seconds to load. now they use indexes. the api response format and schema stay the same.

  • app autocomplete: loose index scan on the app index via a new distinct_values() helper, instead of SELECT DISTINCT app
  • ?action=: finds matching actions, then filters with action IN (...). the action filter and app autocomplete both use Unicode case folding.
  • ?actions= and task aggregated_status: distinct=False, they filter on the model's own column
  • volume charts: date_bin('6 hours', ...) and count(*), so postgres counts from the covering created index
  • apps with most usage: counts (app, user) pairs first and sums them per app, instead of sorting every event with its whole context. same result
  • task list: serializer filters the prefetched tasklogs in python instead of calling .filter(), which threw the prefetch away
  • tasks of one object: content type filters get resolved to ids first so postgres can use the index
  • system tasks page: counts standalone tasks from a partial mtime INCLUDE (aggregated_status) index, the status index alone read every matching task
  • notifications: partial index on (user, created) WHERE NOT seen

event indexes shrink about 9% at 10M. the model pk index isn't partial on purpose: postgres only uses stats from non-partial expression indexes, and a partial one picked a bad plan for changelogs.

index changes

events (one migration):

  • removed user (whole json) and context -> 'authorized_application' (whole object), nothing queries them
  • created becomes created INCLUDE (action, expires, expiring)
  • new: context #> '{authorized_application,pk}', created (partial), context #> '{model,pk}', action, context -> 'username' (partial), user -> 'username'
  • total 3,481 → 3,165 MB at 10M. a partial model pk index made changelogs 30-330ms instead of 4ms
Index Change Size at 10M events
user (whole JSON object) removed: no query compares the whole object −1,072 MB
context -> 'authorized_application' (whole object) replaced by the application pk below −507 MB
created replaced by created INCLUDE (action, expires, expiring) 214 → 542 MB
context #> '{authorized_application,pk}', created new, only events with the key 163 MB
context #> '{model,pk}', action new 386 MB
context -> 'username' new, only events with the key 18 MB
user -> 'username' new 369 MB

tasks (one migration): (rel_obj_content_type, rel_obj_id) gets mtime added, plus new aggregated_status, mtime and mtime INCLUDE (aggregated_status) WHERE rel_obj_id IS NULL indexes. +46 MB at 500k tasks.

writes: inserting 500k events was a bit faster than main (15.8s vs 17.7s) since dropping the user index outweighs the new ones.

the event index migration took 66 seconds at 10 million events. event writes wait while it runs. the 2026.11 release notes call out the lock.

Why is this change needed?

at 10M events a changelog took 12s to load.

How was this tested?

added tests for the action filter, Unicode matching for custom actions, distinct values on an unfiltered queryset, app suggestions skipping expired events, top apps per user, volume buckets starting at midnight UTC, task list query count (fails on main), and filtering tasks by content type + id.

seeded 10k to 10M events over 365 days with power law users. at 10M:

endpoint before after
event list 4,682 ms 426 ms
query search (user.username = ...) 8,459 ms 48 ms
application changelog 11,666 ms 12 ms
user changelog 12,034 ms 9 ms
user page events 8,179 ms 38 ms
application stats 839 ms 20 ms
notification drawer 139 ms 8 ms
apps with most usage 16,111 ms 6,516 ms
task list 77 ms (46 queries) 18 ms (6 queries)

at 10k events everything's the same or slightly faster.

all numbers

10M events:

Endpoint Before After Speedup Queries
Event list 4,682 ms 426 ms 11.0x 6 → 6
Event list, page 50 4,085 ms 390 ms 10.5x 6 → 6
Recent events card 4,193 ms 393 ms 10.7x 6 → 6
Event list, query search (user.username = ...) 8,459 ms 47.7 ms 177.3x 6 → 6
Event list, free-text search 18,790 ms 13,712 ms 1.4x 6 → 6
Event detail 4.7 ms 4.1 ms 1.1x 4 → 4
Volume chart, 7 days 222 ms 75.3 ms 3.0x 4 → 4
Overview logins chart, 14 days 336 ms 105 ms 3.2x 4 → 4
Users created chart, 30 days 449 ms 94.1 ms 4.8x 4 → 5
Logins chart, 30 days 556 ms 136 ms 4.1x 4 → 5
Apps with most usage 16,111 ms 6,516 ms 2.5x 4 → 5
Application authorizations chart 104 ms 6.6 ms 15.8x 4 → 5
Application stats 839 ms 20.2 ms 41.5x 4 → 5
Application changelog 11,666 ms 12.2 ms 956.2x 6 → 7
User page events 8,179 ms 38.3 ms 213.5x 7 → 7
User page chart 106 ms 10.2 ms 10.4x 5 → 5
User changelog 12,034 ms 9.2 ms 1308.0x 6 → 7
Event actions 2.6 ms 2.1 ms 1.2x 2 → 2
Notification drawer 139 ms 7.6 ms 18.3x 6 → 6
System tasks status 55.9 ms 14.4 ms 3.9x 4 → 4
System tasks list 77.0 ms 17.9 ms 4.3x 46 → 6
All tasks 93.5 ms 19.7 ms 4.7x 46 → 6
Tasks of one object 38.1 ms 12.1 ms 3.1x 46 → 7
Task detail 5.8 ms 5.7 ms 1.0x 7 → 5
Schedules list 192 ms 20.7 ms 9.3x 23 → 23

1M events:

Endpoint Before After Speedup Queries
Event list 436 ms 28.9 ms 15.1x 6 → 6
Event list, page 50 417 ms 29.8 ms 14.0x 6 → 6
Recent events card 397 ms 28.0 ms 14.2x 6 → 6
Event list, query search (user.username = ...) 740 ms 9.4 ms 78.7x 6 → 6
Event list, free-text search 1,697 ms 1,391 ms 1.2x 6 → 6
Event detail 4.5 ms 4.8 ms 0.9x 4 → 4
Volume chart, 7 days 23.8 ms 9.8 ms 2.4x 4 → 4
Overview logins chart, 14 days 34.1 ms 11.2 ms 3.0x 4 → 4
Users created chart, 30 days 27.3 ms 10.5 ms 2.6x 4 → 5
Logins chart, 30 days 66.9 ms 15.5 ms 4.3x 4 → 5
Apps with most usage 1,328 ms 538 ms 2.5x 4 → 5
Application authorizations chart 11.7 ms 6.7 ms 1.7x 4 → 5
Application stats 65.9 ms 15.2 ms 4.3x 4 → 5
Application changelog 1,038 ms 8.8 ms 118.0x 6 → 7
User page events 705 ms 11.4 ms 61.9x 7 → 7
User page chart 18.0 ms 6.0 ms 3.0x 5 → 5
User changelog 1,066 ms 7.9 ms 135.0x 6 → 7
Event actions 2.2 ms 2.9 ms 0.8x 2 → 2
Notification drawer 13.9 ms 8.3 ms 1.7x 6 → 6
System tasks status 8.1 ms 5.4 ms 1.5x 4 → 4
System tasks list 35.0 ms 12.8 ms 2.7x 46 → 6
All tasks 40.0 ms 12.6 ms 3.2x 46 → 6
Tasks of one object 27.3 ms 13.3 ms 2.1x 46 → 7
Task detail 6.4 ms 5.7 ms 1.1x 7 → 5
Schedules list 27.0 ms 19.4 ms 1.4x 23 → 23

100k events:

Endpoint Before After Speedup Queries
Event list 49.5 ms 11.7 ms 4.2x 6 → 6
Event list, page 50 48.5 ms 11.5 ms 4.2x 6 → 6
Recent events card 47.3 ms 10.9 ms 4.3x 6 → 6
Event list, query search (user.username = ...) 87.3 ms 9.1 ms 9.6x 6 → 6
Event list, free-text search 207 ms 161 ms 1.3x 6 → 6
Event detail 4.5 ms 4.3 ms 1.0x 4 → 4
Volume chart, 7 days 6.6 ms 5.8 ms 1.1x 4 → 4
Overview logins chart, 14 days 7.9 ms 5.8 ms 1.4x 4 → 4
Users created chart, 30 days 8.7 ms 6.4 ms 1.4x 4 → 5
Logins chart, 30 days 11.5 ms 6.3 ms 1.8x 4 → 5
Apps with most usage 164 ms 29.4 ms 5.6x 4 → 5
Application authorizations chart 6.0 ms 5.4 ms 1.1x 4 → 5
Application stats 13.7 ms 5.3 ms 2.6x 4 → 5
Application changelog 93.6 ms 7.9 ms 11.8x 6 → 7
User page events 81.7 ms 8.7 ms 9.4x 7 → 7
User page chart 6.9 ms 5.1 ms 1.4x 5 → 5
User changelog 95.8 ms 8.6 ms 11.1x 6 → 7
Event actions 2.8 ms 2.0 ms 1.4x 2 → 2
Notification drawer 8.6 ms 7.2 ms 1.2x 6 → 6
System tasks status 3.9 ms 3.2 ms 1.2x 4 → 4
System tasks list 35.6 ms 11.1 ms 3.2x 46 → 6
All tasks 33.8 ms 10.4 ms 3.2x 46 → 6
Tasks of one object 29.7 ms 10.8 ms 2.7x 46 → 7
Task detail 6.6 ms 4.9 ms 1.3x 7 → 5
Schedules list 20.5 ms 16.3 ms 1.3x 23 → 23

10k events:

Endpoint Before After Speedup Queries
Event list 11.9 ms 8.1 ms 1.5x 6 → 6
Event list, page 50 11.3 ms 7.8 ms 1.4x 6 → 6
Recent events card 14.8 ms 7.4 ms 2.0x 6 → 6
Event list, query search (user.username = ...) 18.2 ms 9.1 ms 2.0x 6 → 6
Event list, free-text search 94.2 ms 86.8 ms 1.1x 6 → 6
Event detail 4.7 ms 4.0 ms 1.2x 4 → 4
Volume chart, 7 days 4.8 ms 4.3 ms 1.1x 4 → 4
Overview logins chart, 14 days 5.5 ms 4.8 ms 1.1x 4 → 4
Users created chart, 30 days 5.3 ms 5.2 ms 1.0x 4 → 5
Logins chart, 30 days 5.6 ms 5.4 ms 1.0x 4 → 5
Apps with most usage 15.4 ms 6.9 ms 2.2x 4 → 5
Application authorizations chart 5.5 ms 5.6 ms 1.0x 4 → 5
Application stats 6.2 ms 5.2 ms 1.2x 4 → 5
Application changelog 17.4 ms 7.2 ms 2.4x 6 → 7
User page events 14.1 ms 7.4 ms 1.9x 7 → 7
User page chart 6.8 ms 4.9 ms 1.4x 5 → 5
User changelog 15.4 ms 7.5 ms 2.1x 6 → 7
Event actions 2.8 ms 1.9 ms 1.5x 2 → 2
Notification drawer 8.0 ms 6.8 ms 1.2x 6 → 6
System tasks status 3.7 ms 2.9 ms 1.3x 4 → 4
System tasks list 17.4 ms 8.3 ms 2.1x 24 → 6
All tasks 28.7 ms 10.2 ms 2.8x 46 → 6
Tasks of one object 25.1 ms 10.2 ms 2.5x 40 → 7
Task detail 6.1 ms 4.9 ms 1.2x 7 → 5
Schedules list 17.9 ms 16.2 ms 1.1x 23 → 23

Checklist

  • The project has been linted, built, and tested (make all)
  • The documentation has been updated and formatted (make docs)
  • I have read the AI usage policy.

@dominic-r
dominic-r requested a review from a team as a code owner November 7, 2026 18:39
@dominic-r dominic-r self-assigned this Nov 7, 2026
@dominic-r dominic-r changed the title events, tasks: speed up the event and task queries behind the admin UI events, tasks: speed up the event and task queries Nov 7, 2026
@netlify

netlify Bot commented Nov 7, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 89e5241
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6af5f46398ee8035542baa49
😎 Deploy Preview https://deploy-preview-27692--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 7, 2026 •

Copy link
Copy Markdown

❌ 1 Tests Failed:

Tests completed Failed Passed Skipped
5143 1 5142 22
View the top 1 failed test(s) by shortest run time
tests.openid_conformance.test_oidc_implicit.TestOpenIDConformanceImplicit::test_oidcc_implicit_certification_test_plan
Stack Traces | 138s run time
self = <unittest.case._Outcome object at 0x7165c2629400>
test_case = <tests.openid_conformance.test_oidc_implicit.TestOpenIDConformanceImplicit testMethod=test_oidcc_implicit_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_implicit.TestOpenIDConformanceImplicit testMethod=test_oidcc_implicit_certification_test_plan>
result = <TestCaseFunction test_oidcc_implicit_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_implicit.TestOpenIDConformanceImplicit testMethod=test_oidcc_implicit_certification_test_plan>
method = <bound method TestOpenIDConformanceImplicit.test_oidcc_implicit_certification_test_plan of <tests.openid_conformance.test_oidc_implicit.TestOpenIDConformanceImplicit testMethod=test_oidcc_implicit_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_implicit.TestOpenIDConformanceImplicit testMethod=test_oidcc_implicit_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_implicit.TestOpenIDConformanceImplicit testMethod=test_oidcc_implicit_certification_test_plan>

    @retry()
    def test_oidcc_implicit_certification_test_plan(self):
>       self.run_test(
            "oidcc-implicit-certification-test-plan",
            self.test_plan_config,
            {
                "server_metadata": "discovery",
                "client_registration": "static_client",
            },
        )

tests/openid_conformance/test_oidc_implicit.py:9: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <tests.openid_conformance.test_oidc_implicit.TestOpenIDConformanceImplicit testMethod=test_oidcc_implicit_certification_test_plan>
test_name = 'oidcc-implicit-certification-test-plan'
test_plan_config = {'alias': 'authentik', 'description': 'authentik', 'server': {'discoveryUrl': 'https://10.1.0.53:.../application/o/o...86b5389d15b173109a0555dc47e0cc0949104f1925bcc6565351cb1dffd7e6818cf074f5bd50c210b565121a7328ee8bd40107fc4bbd867'}, ...}
test_variant = {'server_metadata': 'discovery', 'client_registration': 'static_client'}

    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_implicit.TestOpenIDConformanceImplicit testMethod=test_oidcc_implicit_certification_test_plan>
module_id = 'nm1JOS0PJlGqrQy'

    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])

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

self = <tests.openid_conformance.test_oidc_implicit.TestOpenIDConformanceImplicit testMethod=test_oidcc_implicit_certification_test_plan>
url = 'https://10.1.0.53:.../application/o/authorize/?client_id=4054d882aff59755f2f279968b97ce8806a926e1&display=page&nonc...vpW&redirect_uri=https://localhost:.../a/authentik/callback&response_type=id_token&scope=openid&state=QpRs0V22Hp'

    def do_browser(self, url):
        """For any specific OpenID Conformance test, execute the operations required"""
        self.driver.get(url)
        should_expect_completion = False
        if "if/flow/default-authentication-flow" in self.driver.current_url:
            self.logger.debug("Logging in")
            skipped = []
            if "login_hint" in self.driver.current_url:
                skipped.append("ak-stage-identification")
>           self.login(skip_stages=skipped)

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

self = <tests.openid_conformance.test_oidc_implicit.TestOpenIDConformanceImplicit testMethod=test_oidcc_implicit_certification_test_plan>
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.openid_conformance.test_oidc_implicit.TestOpenIDConformanceImplicit testMethod=test_oidcc_implicit_certification_test_plan>
selector = 'ak-flow-executor'
container = <selenium.webdriver.remote.webdriver.WebDriver (session="0496c4dd562672e0110faf86b1ce6bc0")>
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"></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

github-actions Bot commented Nov 7, 2026 •

Copy link
Copy Markdown
Contributor

Playwright e2e

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

gh run download 44206165290 -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-8890250c44c2b6457f1a9f058f4bd1033ba4bbc8
# Distroless image: AUTHENTIK_TAG=gh-8890250c44c2b6457f1a9f058f4bd1033ba4bbc8-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-8890250c44c2b6457f1a9f058f4bd1033ba4bbc8
        # Distroless image: tag: gh-8890250c44c2b6457f1a9f058f4bd1033ba4bbc8-distroless

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

BeryJu and others added 4 commits November 12, 2026 18:16
The system tasks page counted tasks by status through the status index,
which reads every matching task from the table. Once other queries push
the tasks out of the cache, that was slower than main's sequential scan.
A partial index on mtime that includes the status answers the count
without the table and lists the page newest first.
@dominic-r

Copy link
Copy Markdown
Member Author

@dominic-r
dominic-r requested a review from jsachs November 15, 2026 18:13
Comment thread authentik/lib/utils/db.py Resolved
Comment thread authentik/events/api/events.py Resolved
Comment thread authentik/api/search/fields.py Resolved
@dominic-r
dominic-r requested a review from a team as a code owner November 18, 2026 00:14
@dominic-r
dominic-r requested a review from jsachs November 18, 2026 00:15
@dominic-r
dominic-r enabled auto-merge (squash) November 18, 2026 14:26
@dominic-r
dominic-r merged commit 7add5ea into main Nov 18, 2026
171 of 172 checks passed
@dominic-r
dominic-r deleted the dominic/events-query-performance branch November 18, 2026 14:41
kensternberg-authentik added a commit that referenced this pull request Nov 19, 2026
* main:
  core: allow launch URLs relative to the current host (#27632)
  website/releases: 2026.11: benchmaxxing (#27796)
  core: bump goauthentik/fips-python from `72f6e14` to `8fd04de` in /lifecycle/container (#27920)
  root: require Node.js 24.22.3 (#27906)
  admin/files, core: read the cached icon URLs of a list in one query (#27695)
  core: bump pnpm to 12.22.0 everywhere (#27905)
  web/elements: fix the wizard next button staying disabled (#27660)
  events, tasks: speed up the event and task queries (#27692)
  core: bump the pnpm group across 2 directories with 1 update (#26843)
  core: bump astral-sh/uv from 0.13.8 to 0.13.9 in /lifecycle/container (#27893)
  core: bump aws-cdk-lib from 2.275.0 to 2.276.0 (#27899)
  core: bump jsonpatch from 1.44 to 1.46 (#27898)
  core: bump cachetools from 7.3.1 to 7.3.2 (#27897)
  core: bump google-api-python-client from 2.201.0 to 2.202.0 (#27896)
  core: bump goauthentik/fips-python from `96730cd` to `72f6e14` in /lifecycle/container (#27894)
  ci: bump taiki-e/install-action from 2.90.3 to 2.90.4 in /.github/actions/setup (#27895)
  core: bump goauthentik/fips-debian from `56dbb46` to `712d5d1` in /lifecycle/container (#27892)
  core: bump github.com/grafana/pyroscope-go from 1.4.3 to 1.5.0 (#27891)
  providers/saml: add option to ignore ForceAuthn from the SP (#27057)
  website/integrations: add Radarr (#27882)
kensternberg-authentik added a commit that referenced this pull request Nov 19, 2026
…enance-2

* web/spike/icon-identification: (21 commits)
  core: allow launch URLs relative to the current host (#27632)
  website/releases: 2026.11: benchmaxxing (#27796)
  core: bump goauthentik/fips-python from `72f6e14` to `8fd04de` in /lifecycle/container (#27920)
  root: require Node.js 24.22.3 (#27906)
  admin/files, core: read the cached icon URLs of a list in one query (#27695)
  core: bump pnpm to 12.22.0 everywhere (#27905)
  web/elements: fix the wizard next button staying disabled (#27660)
  events, tasks: speed up the event and task queries (#27692)
  core: bump the pnpm group across 2 directories with 1 update (#26843)
  core: bump astral-sh/uv from 0.13.8 to 0.13.9 in /lifecycle/container (#27893)
  core: bump aws-cdk-lib from 2.275.0 to 2.276.0 (#27899)
  core: bump jsonpatch from 1.44 to 1.46 (#27898)
  core: bump cachetools from 7.3.1 to 7.3.2 (#27897)
  core: bump google-api-python-client from 2.201.0 to 2.202.0 (#27896)
  core: bump goauthentik/fips-python from `96730cd` to `72f6e14` in /lifecycle/container (#27894)
  ci: bump taiki-e/install-action from 2.90.3 to 2.90.4 in /.github/actions/setup (#27895)
  core: bump goauthentik/fips-debian from `56dbb46` to `712d5d1` in /lifecycle/container (#27892)
  core: bump github.com/grafana/pyroscope-go from 1.4.3 to 1.5.0 (#27891)
  providers/saml: add option to ignore ForceAuthn from the SP (#27057)
  Reviewer's request: deleting yourself only deserves a warning.
  ...
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.

4 participants