Skip to content

ci: fix changelog URLs in release workflow - #27276

Merged
BeryJu merged 1 commit into
mainfrom
ci/release-changelog-url
Oct 28, 2026
Merged

BeryJu merged 1 commit into
mainfrom
ci/release-changelog-url

Conversation

@GirlBossRush

@GirlBossRush GirlBossRush commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

This PR fixes the release workflow still putting changelog links under /docs/releases/. Found this in goauthentik/version#125

Needs backporting to the active version-* branches since releases are tagged from there.

@netlify

netlify Bot commented Oct 27, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 85d78e0
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6ae0af0f3d057d9ed8c25509
😎 Deploy Preview https://deploy-preview-27276--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 Oct 27, 2026 •

Copy link
Copy Markdown

❌ 1 Tests Failed:

Tests completed Failed Passed Skipped
4771 1 4770 14
View the top 1 failed test(s) by shortest run time
authentik.core.tests.test_interface_views.TestInterfaceRedirects::test_root_redirect_external_user
Stack Traces | 84.7s run time
self = <unittest.case._Outcome object at 0x71d013ba3a10>
test_case = <authentik.core.tests.test_interface_views.TestInterfaceRedirects testMethod=test_root_redirect_external_user>
subTest = False

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

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

self = <authentik.core.tests.test_interface_views.TestInterfaceRedirects testMethod=test_root_redirect_external_user>
result = <TestCaseFunction test_root_redirect_external_user>

    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.9................../x64/lib/python3.14/unittest/case.py:669: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <authentik.core.tests.test_interface_views.TestInterfaceRedirects testMethod=test_root_redirect_external_user>
method = <bound method TestInterfaceRedirects.test_root_redirect_external_user of <authentik.core.tests.test_interface_views.TestInterfaceRedirects testMethod=test_root_redirect_external_user>>

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

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

self = <authentik.core.tests.test_interface_views.TestInterfaceRedirects testMethod=test_root_redirect_external_user>

    def test_root_redirect_external_user(self):
        """External users are redirected to the default app from root"""
>       self._assert_redirects_to_app("root-redirect", UserTypes.EXTERNAL)

.../core/tests/test_interface_views.py:49: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <authentik.core.tests.test_interface_views.TestInterfaceRedirects testMethod=test_root_redirect_external_user>
url_name = 'root-redirect', user_type = UserTypes.EXTERNAL

    def _assert_redirects_to_app(self, url_name: str, user_type: UserTypes):
        user = create_test_user(type=user_type)
        self.client.force_login(user)
        response = self.client.get(reverse(f"authentik_core:{url_name}"))
>       self.assertRedirects(
            response,
            reverse(
                "authentik_core:application-launch", kwargs={"application_slug": self.app.slug}
            ),
            fetch_redirect_response=False,
        )

.../core/tests/test_interface_views.py:26: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <authentik.core.tests.test_interface_views.TestInterfaceRedirects testMethod=test_root_redirect_external_user>
response = <HttpResponseRedirect status_code=302, "text/html; charset=utf-8", url="/setup">
expected_url = '.................................................../application/launch/test-app/', status_code = 302
target_status_code = 200, msg_prefix = '', fetch_redirect_response = False

    def assertRedirects(
        self,
        response,
        expected_url,
        status_code=302,
        target_status_code=200,
        msg_prefix="",
        fetch_redirect_response=True,
    ):
        """
        Assert that a response redirected to a specific URL and that the
        redirect URL can be loaded.
    
        Won't work for external links since it uses the test client to do a
        request (use fetch_redirect_response=False to check such links without
        fetching them).
        """
        if msg_prefix:
            msg_prefix += ": "
    
        if hasattr(response, "redirect_chain"):
            # The request was a followed redirect
            self.assertTrue(
                response.redirect_chain,
                msg_prefix
                + (
                    "Response didn't redirect as expected: Response code was %d "
                    "(expected %d)"
                )
                % (response.status_code, status_code),
            )
    
            self.assertEqual(
                response.redirect_chain[0][1],
                status_code,
                msg_prefix
                + (
                    "Initial response didn't redirect as expected: Response code was "
                    "%d (expected %d)"
                )
                % (response.redirect_chain[0][1], status_code),
            )
    
            url, status_code = response.redirect_chain[-1]
    
            self.assertEqual(
                response.status_code,
                target_status_code,
                msg_prefix
                + (
                    "Response didn't redirect as expected: Final Response code was %d "
                    "(expected %d)"
                )
                % (response.status_code, target_status_code),
            )
    
        else:
            # Not a followed redirect
            self.assertEqual(
                response.status_code,
                status_code,
                msg_prefix
                + (
                    "Response didn't redirect as expected: Response code was %d "
                    "(expected %d)"
                )
                % (response.status_code, status_code),
            )
    
            url = response.url
            scheme, netloc, path, query, fragment = urlsplit(url)
    
            # Prepend the request path to handle relative path redirects.
            if not path.startswith("/"):
                url = urljoin(response.request["PATH_INFO"], url)
                path = urljoin(response.request["PATH_INFO"], path)
    
            if fetch_redirect_response:
                # netloc might be empty, or in cases where Django tests the
                # HTTP scheme, the convention is for netloc to be 'testserver'.
                # Trust both as "internal" URLs here.
                domain, port = split_domain_port(netloc)
                if domain and not validate_host(domain, settings.ALLOWED_HOSTS):
                    raise ValueError(
                        "The test client is unable to fetch remote URLs (got %s). "
                        "If the host is served by Django, add '%s' to ALLOWED_HOSTS. "
                        "Otherwise, use "
                        "assertRedirects(..., fetch_redirect_response=False)."
                        % (url, domain)
                    )
                # Get the redirection page, using the same client that was used
                # to obtain the original response.
                extra = response.client.extra or {}
                headers = response.client.headers or {}
                redirect_response = response.client.get(
                    path,
                    QueryDict(query),
                    secure=(scheme == "https"),
                    headers=headers,
                    **extra,
                )
                self.assertEqual(
                    redirect_response.status_code,
                    target_status_code,
                    msg_prefix
                    + (
                        "Couldn't retrieve redirection page '%s': response code was %d "
                        "(expected %d)"
                    )
                    % (path, redirect_response.status_code, target_status_code),
                )
    
>       self.assertURLEqual(
            url,
            expected_url,
            msg_prefix
            + "Response redirected to '%s', expected '%s'" % (url, expected_url),
        )

.venv/lib/python3.14.../django/test/testcases.py:537: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <authentik.core.tests.test_interface_views.TestInterfaceRedirects testMethod=test_root_redirect_external_user>
url1 = '/setup', url2 = '.................................................../application/launch/test-app/'
msg_prefix = "Response redirected to '/setup', expected '.................................................../application/launch/test-app/': "

    def assertURLEqual(self, url1, url2, msg_prefix=""):
        """
        Assert that two URLs are the same, ignoring the order of query string
        parameters except for parameters with the same name.
    
        For example, /path/?x=1&y=2 is equal to /path/?y=2&x=1, but
        /path/?a=1&a=2 isn't equal to /path/?a=2&a=1.
        """
    
        def normalize(url):
            """Sort the URL's query string parameters."""
            url = str(url)  # Coerce reverse_lazy() URLs.
            scheme, netloc, path, query, fragment = urlsplit(url)
            query_parts = sorted(parse_qsl(query))
            return urlunsplit((scheme, netloc, path, urlencode(query_parts), fragment))
    
        if msg_prefix:
            msg_prefix += ": "
>       self.assertEqual(
            normalize(url1),
            normalize(url2),
            msg_prefix + "Expected '%s' to equal '%s'." % (url1, url2),
        )

.venv/lib/python3.14.../django/test/testcases.py:562: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <authentik.core.tests.test_interface_views.TestInterfaceRedirects testMethod=test_root_redirect_external_user>
first = '/setup', second = '.................................................../application/launch/test-app/'
msg = "Response redirected to '/setup', expected '.................................................../application/launch/test-app/': Expected '/setup' to equal '.................................................../application/launch/test-app/'."

    def assertEqual(self, first, second, msg=None):
        """Fail if the two objects are unequal as determined by the '=='
           operator.
        """
        assertion_func = self._getAssertEqualityFunc(first, second)
>       assertion_func(first, second, msg=msg)

.../hostedtoolcache/Python/3.14.9................../x64/lib/python3.14/unittest/case.py:925: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <authentik.core.tests.test_interface_views.TestInterfaceRedirects testMethod=test_root_redirect_external_user>
first = '/setup', second = '.................................................../application/launch/test-app/'
msg = "Response redirected to '/setup', expected '.................................................../application/launch/test-app/': Expected '/setup' to equal '.................................................../application/launch/test-app/'."

    def assertMultiLineEqual(self, first, second, msg=None):
        """Assert that two multi-line strings are equal."""
        self.assertIsInstance(first, str, "First argument is not a string")
        self.assertIsInstance(second, str, "Second argument is not a string")
    
        if first != second:
            # Don't use difflib if the strings are too long
            if (len(first) > self._diffThreshold or
                len(second) > self._diffThreshold):
                self._baseAssertEqual(first, second, msg)
    
            # Append \n to both strings if either is missing the \n.
            # This allows the final ndiff to show the \n difference. The
            # exception here is if the string is empty, in which case no
            # \n should be added
            first_presplit = first
            second_presplit = second
            if first and second:
                if first[-1] != '\n' or second[-1] != '\n':
                    first_presplit += '\n'
                    second_presplit += '\n'
            elif second and second[-1] != '\n':
                second_presplit += '\n'
            elif first and first[-1] != '\n':
                first_presplit += '\n'
    
            firstlines = first_presplit.splitlines(keepends=True)
            secondlines = second_presplit.splitlines(keepends=True)
    
            # Generate the message and diff, then raise the exception
            standardMsg = '%s != %s' % _common_shorten_repr(first, second)
            diff = '\n' + ''.join(difflib.ndiff(firstlines, secondlines))
            standardMsg = self._truncateMessage(standardMsg, diff)
>           self.fail(self._formatMessage(msg, standardMsg))

.../hostedtoolcache/Python/3.14.9................../x64/lib/python3.14/unittest/case.py:1291: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <authentik.core.tests.test_interface_views.TestInterfaceRedirects testMethod=test_root_redirect_external_user>
msg = "'/setup' != '.................................................../application/launch/test-app/'\n- /setup\n+ .................................................../application/launch/test-app/\n : Response redirected to '/setup', expected '.................................................../application/launch/test-app/': Expected '/setup' to equal '.................................................../application/launch/test-app/'."

    def fail(self, msg=None):
        """Fail immediately, with the given message."""
>       raise self.failureException(msg)
E       AssertionError: '/setup' != '.................................................../application/launch/test-app/'
E       - /setup
E       + .................................................../application/launch/test-app/
E        : Response redirected to '/setup', expected '.................................................../application/launch/test-app/': Expected '/setup' to equal '.................................................../application/launch/test-app/'.

.../hostedtoolcache/Python/3.14.9................../x64/lib/python3.14/unittest/case.py:750: AssertionError

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 40517448198 -D playwright-artifacts
npx playwright show-report playwright-artifacts/playwright-report

@BeryJu BeryJu added backport/version-2026.5 Add this label to PRs to backport changes to version-2026.5 backport/version-2026.8 Add this label to PRs to backport changes to version-2026.8 labels Oct 27, 2026
@BeryJu
BeryJu merged commit b579bb5 into main Oct 28, 2026
160 of 166 checks passed
@BeryJu
BeryJu deleted the ci/release-changelog-url branch October 28, 2026 15:05
@authentik-cherry-pick

Copy link
Copy Markdown
Contributor

🍒 Cherry-pick to version-2026.8 created: #27308

@authentik-cherry-pick

Copy link
Copy Markdown
Contributor

⚠️ Cherry-pick to version-2026.5 has conflicts: #27309

BeryJu added a commit that referenced this pull request Oct 28, 2026
…sion-2026.5) (#27309)

* Cherry-pick #27276 to version-2026.5 (with conflicts)

This cherry-pick has conflicts that need manual resolution.

Original PR: #27276
Original commit: b579bb5

* fix

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

---------

Signed-off-by: Jens Langhammer <[email protected]>
Co-authored-by: Teffen Ellis <[email protected]>
Co-authored-by: Jens Langhammer <[email protected]>
BeryJu pushed a commit that referenced this pull request Oct 28, 2026
…sion-2026.8) (#27308)

ci: fix changelog URLs in release workflow (#27276)

Co-authored-by: Teffen Ellis <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:infrastructure backport/version-2026.5 Add this label to PRs to backport changes to version-2026.5 backport/version-2026.8 Add this label to PRs to backport changes to version-2026.8

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants