Skip to content

ci: Run and gate on unit tests in CI. - #23989

Merged
GirlBossRush merged 1 commit into
mainfrom
web/unit-test-ci-gate
Aug 7, 2026
Merged

GirlBossRush merged 1 commit into
mainfrom
web/unit-test-ci-gate

Conversation

@GirlBossRush

@GirlBossRush GirlBossRush commented Jul 13, 2026 •

Copy link
Copy Markdown
Contributor

Details

What does this PR change?

The CI test step ran bare vitest (every project, including Playwright-backed browser tests that can't run in that job) and discarded the result with || exit 0 — so unit test failures never failed CI. The step now runs only the Unit Tests project, and its exit code counts.

Stacked on #23991, which un-breaks co-located unit tests so there is a fully green suite to gate on.

Why is this change needed?

Upcoming router PRs (#23990, #23988) rely on unit tests gating regressions. A test step that cannot fail gates nothing.

How was this tested?

pnpm exec vitest run --project "Unit Tests" from web/ (the exact command CI now runs): 4 files / 41 tests pass on this branch.

Linked issues


Checklist

  • The project has been linted, built, and tested (make all)
  • The documentation has been updated and formatted (make docs)

@netlify

netlify Bot commented Jul 13, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit 22b2578
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/6a556ae2d0d9e900087dbc46
😎 Deploy Preview https://deploy-preview-23989--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 Jul 13, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 22b2578
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6a556ae2d4f9d700084f42d5
😎 Deploy Preview https://deploy-preview-23989--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 Jul 13, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.38%. Comparing base (a73e8b2) to head (1cb6dd1).
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #23989   +/-   ##
=======================================
  Coverage   91.37%   91.38%           
=======================================
  Files        1137     1137           
  Lines       71591    71591           
  Branches     3875     3875           
=======================================
+ Hits        65416    65422    +6     
+ Misses       6140     6134    -6     
  Partials       35       35           
Flag Coverage Δ
conformance 34.82% <ø> (+<0.01%) ⬆️
e2e 39.56% <ø> (+0.01%) ⬆️
integration 31.40% <ø> (+<0.01%) ⬆️
rust 38.89% <ø> (ø)
unit 93.03% <ø> (+<0.01%) ⬆️
unit-migrate 93.06% <ø> (+<0.01%) ⬆️

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

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

@GirlBossRush
GirlBossRush requested a review from rissson July 13, 2026 22:59
@GirlBossRush GirlBossRush self-assigned this Jul 13, 2026
@GirlBossRush GirlBossRush added the area:frontend Features or issues related to the browser, TypeScript, Node.js, etc label Jul 13, 2026
@GirlBossRush
GirlBossRush changed the base branch from main to web/vite-oxc-test-transform July 13, 2026 23:04
@GirlBossRush
GirlBossRush removed the request for review from a team July 13, 2026 23:09
@GirlBossRush GirlBossRush changed the title web: Run and gate on unit tests in CI. infrastructure, web: Run and gate on unit tests in CI. Jul 13, 2026
@BeryJu BeryJu changed the title infrastructure, web: Run and gate on unit tests in CI. ci: Run and gate on unit tests in CI. Jul 15, 2026
@github-actions

github-actions Bot commented Jul 15, 2026 •

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-1cb6dd135e65f07b58c3c23864c94d78b704335f
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-1cb6dd135e65f07b58c3c23864c94d78b704335f

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

@GirlBossRush
GirlBossRush force-pushed the web/unit-test-ci-gate branch from 22b2578 to 328f3f0 Compare August 7, 2026 16:26
@GirlBossRush
GirlBossRush force-pushed the web/unit-test-ci-gate branch from 328f3f0 to e7435b0 Compare August 7, 2026 17:26
@github-project-automation github-project-automation Bot moved this from Todo to In Progress in authentik Core Aug 7, 2026
@GirlBossRush GirlBossRush moved this from In Progress to Needs review in authentik Core Aug 7, 2026
@github-project-automation github-project-automation Bot moved this from Needs review to In Progress in authentik Core Aug 7, 2026
Base automatically changed from web/vite-oxc-test-transform to main August 7, 2026 21:58
The test step ran every vitest project, including the Playwright-backed
browser tests that cannot run in this job, and discarded the result with
|| exit 0 - so unit test failures never failed CI. Scope the step to the
Unit Tests project and let its exit code count.
@GirlBossRush
GirlBossRush force-pushed the web/unit-test-ci-gate branch from e7435b0 to 1cb6dd1 Compare August 7, 2026 21:58
@GirlBossRush
GirlBossRush merged commit 07a51c1 into main Aug 7, 2026
143 checks passed
@GirlBossRush
GirlBossRush deleted the web/unit-test-ci-gate branch August 7, 2026 22:31
@github-project-automation github-project-automation Bot moved this from In Progress to Done in authentik Core Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:frontend Features or issues related to the browser, TypeScript, Node.js, etc

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants