Skip to content

web: build system had some legacy stuff that I found confusing while working on the CSS ordering - #20698

Merged
kensternberg-authentik merged 13 commits into
mainfrom
web/build-system/lint-2026-03-03
Apr 13, 2026
Merged

kensternberg-authentik merged 13 commits into
mainfrom
web/build-system/lint-2026-03-03

Conversation

@kensternberg-authentik

Copy link
Copy Markdown
Contributor

web: replace deepmerge with more explicit configuration; 'build --proxy' misnamed, changed to 'build -styles-only

  • The code has been formatted (make web)

@netlify

netlify Bot commented Mar 4, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-integrations ready!

Name Link
🔨 Latest commit 759d8e5
🔍 Latest deploy log https://app.netlify.com/projects/authentik-integrations/deploys/69b19d729aaf190008a21045
😎 Deploy Preview https://deploy-preview-20698--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 Mar 4, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-storybook ready!

Name Link
🔨 Latest commit d07b105
🔍 Latest deploy log https://app.netlify.com/projects/authentik-storybook/deploys/69dd068e76380c000835a298
😎 Deploy Preview https://deploy-preview-20698--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 Mar 4, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit 759d8e5
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/69b19d721415b0000836e242
😎 Deploy Preview https://deploy-preview-20698--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 Mar 4, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.26%. Comparing base (8cf21da) to head (d07b105).
⚠️ Report is 1 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #20698   +/-   ##
=======================================
  Coverage   92.26%   92.26%           
=======================================
  Files        1032     1032           
  Lines       59658    59658           
  Branches     2537     2537           
=======================================
+ Hits        55045    55046    +1     
+ Misses       4548     4547    -1     
  Partials       65       65           
Flag Coverage Δ
conformance 37.03% <ø> (+<0.01%) ⬆️
e2e 42.95% <ø> (+<0.01%) ⬆️
integration 33.96% <ø> (+<0.01%) ⬆️
rust 60.50% <ø> (ø)
unit 91.89% <ø> (+<0.01%) ⬆️
unit-migrate 91.98% <ø> (+<0.01%) ⬆️

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

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

Comment thread web/scripts/build-web.mjs
* @see {@link https://github.com/evanw/esbuild/blob/b914dd30294346aa15fcc04278f4b4b51b8b43b5/internal/logger/msg_ids.go#L211 ESBuild source}
* @expires 2025-08-11
*/
"invalid-source-url": "silent",

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is part of what inspired the check. I saw this "expiration" note and dug in. It's not needed anymore.

Comment thread web/scripts/build-web.mjs
...BASE_ESBUILD_OPTIONS,
entryPoints,
plugins,
};

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These are the things that we modify with our current ESBuildOptions: entrypoints, and plugins. We should be explicit about that. Until our mods get so large we can't keep track of them, in which case we need a different build system.

Comment thread web/scripts/build-web.mjs

const entryPointNames = Object.keys(EntryPoint);
const entryPoints = Object.values(EntryPoint);
const entryPointsDescription = entryPointNames.join("\n\t");

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In "store vs. calculate" thinking, the repeated use of these expressions had the potential to lead to Last Line problems, so I pulled them out and gave them names.

Comment thread web/scripts/build-web.mjs
* @type {Readonly<BuildOptions>}
* @type {Plugin[]}
*/
const BASE_ESBUILD_PLUGINS = [

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pulled this out and gave it its own identity so that ESBuildOptions() could be explicit about annotation. The big win here is that deepmerge will perform concatenation, but that's not clear; a dev in the future who assumes it does something more clever may end up with duplicate plugins. By bringing the concatenation into view, we reduce that possibility.

Comment thread .gitignore Outdated
tests/openid_conformance/exports/*.zip
compose.override.yml

### LLMs and "coding assistants" ###

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was just necessary. Don't store slop sessions in our code.

@kensternberg-authentik
kensternberg-authentik marked this pull request as ready for review March 4, 2026 15:52
@kensternberg-authentik
kensternberg-authentik requested review from a team as code owners March 4, 2026 15:52
@github-actions

github-actions Bot commented Mar 4, 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-d07b1056cb29fcd5562f47559ec29ff4d6a4651b
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-d07b1056cb29fcd5562f47559ec29ff4d6a4651b

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

kensternberg-authentik and others added 5 commits March 4, 2026 10:19
* main: (50 commits)
  web/flow/stages: permit the form handler to look in the light or shadowDOM for controls (#20832)
  web/style/flow: flow css barrel file (#20833)
  web/flow: provide labels for the stage import-and-invoke table (#20834)
  core: bump goauthentik/fips-python from `3636935` to `46b26b8` in /lifecycle/container (#20842)
  core: bump library/nginx from `0236ee0` to `d0913a1` in /website (#20843)
  core, web: update translations (#20835)
  core: bump goauthentik/fips-debian from `0975985` to `2517845` in /lifecycle/container (#20841)
  core: bump twilio from 9.10.2 to 9.10.3 (#20838)
  core: bump aws-cdk-lib from 2.241.0 to 2.242.0 (#20840)
  ci: bump astral-sh/setup-uv from 7.3.1 to 7.4.0 in /.github/actions/setup (#20844)
  providers/SCIM: Add discover support (#20658)
  core: allow interfaces to specify alternative stylesheets (#20774)
  website/docs: update agent docs (#20782)
  core, web: update translations (#20809)
  lifecycle/aws: bump aws-cdk from 2.1109.0 to 2.1110.0 in /lifecycle/aws (#20810)
  core: bump axllent/mailpit from v1.29.2 to v1.29.3 in /tests/e2e (#20811)
  core: bump cachetools from 7.0.4 to 7.0.5 (#20812)
  core: bump goauthentik/fips-python from `b481db2` to `3636935` in /lifecycle/container (#20814)
  core: bump goauthentik/fips-debian from `6c9197b` to `0975985` in /lifecycle/container (#20815)
  web: bump the storybook group across 1 directory with 5 updates (#20816)
  ...
* main: (455 commits)
  web/e2e: accept options in NavigatorFixture.waitForPathname (#21507)
  web/styles: switch to upstream RedHat variable fonts and brighten orange palette (#21509)
  web/styles: add ak-c-loading-skeleton CSS component (#21510)
  core, web: update translations (#21532)
  core: bump lxml from 6.0.2 to 6.0.3 (#21523)
  core: bump library/node from `45babd1` to `9707cd4` in /lifecycle/container (#21522)
  tasks: better error message for Retry exceptions (#18235)
  web/admin: fix user list avatar (#21531)
  core: bump django from v5.2.12 to 5.2.13 (#21520)
  core: add cooldown to dependabot (#21286)
  web/admin: include avatar in user list page (#21518)
  events: add index on Event.user.pk (#19576)
  ci: always run apt update (#21516)
  enterprise/search: move QL to open source] (#21484)
  core: add logging when session decode fails (#21514)
  website/docs: Refactor email configuration (#21130)
  core: bump types-ldap3 from 2.9.13.20260402 to 2.9.13.20260408 (#21493)
  packages/ak-common/db: init (#21357)
  packages/ak-axum/extract/host: init (#21323)
  web: bump knip from 6.3.0 to 6.3.1 in /web (#21505)
  ...
kensternberg-authentik and others added 4 commits April 10, 2026 09:43
* main:
  ci: parallel tests (#21515)
  website/docs: add another sentence to First Steps about restricting access to apps (#21517)
  web/elements: add scrollbar helpers and apply to Interface (#21511)
  web/elements: add viewport helpers and extend intersection observer (#21508)
…nt-2026-03-03' into web/build-system/lint-2026-03-03

* refs/remotes/origin/web/build-system/lint-2026-03-03:
@kensternberg-authentik
kensternberg-authentik enabled auto-merge (squash) April 11, 2026 00:24
* main:
  core: bump ruff from 0.15.9 to 0.15.10 (#21559)
  core: bump types-jwcrypto from 1.5.0.20260408 to 1.5.7.20260409 (#21561)
  core: bump lxml from 6.0.3 to 6.0.4 (#21560)
  ci: bump peter-evans/create-pull-request from 8.1.0 to 8.1.1 (#21566)
  ci: bump docker/build-push-action from 7.0.0 to 7.1.0 (#21563)
  ci: bump actions/upload-artifact from 7.0.0 to 7.0.1 (#21565)
  core: bump library/golang from `da39430` to `c0074c7` in /lifecycle/container (#21567)
  ci: bump taiki-e/install-action from 2.75.1 to 2.75.5 in /.github/actions/setup (#21569)
  web: bump mermaid from 11.13.0 to 11.14.0 in /web (#21527)
  core, web: update translations (#21552)
  web: bump basic-ftp from 5.2.1 to 5.2.2 in /web (#21543)
  web: User Wizard, Modal Revisions Merge Branch (#21336)
  web/elements: default @listen target to host element and add split-button Dropdown (#21512)
@kensternberg-authentik
kensternberg-authentik merged commit 5623686 into main Apr 13, 2026
108 checks passed
@kensternberg-authentik
kensternberg-authentik deleted the web/build-system/lint-2026-03-03 branch April 13, 2026 15:37
kensternberg-authentik added a commit that referenced this pull request Apr 13, 2026
* main:
  web: build system had some legacy stuff that I found confusing while working on the CSS ordering (#20698)
  core: bump ruff from 0.15.9 to 0.15.10 (#21559)
  core: bump types-jwcrypto from 1.5.0.20260408 to 1.5.7.20260409 (#21561)
  core: bump lxml from 6.0.3 to 6.0.4 (#21560)
  ci: bump peter-evans/create-pull-request from 8.1.0 to 8.1.1 (#21566)
  ci: bump docker/build-push-action from 7.0.0 to 7.1.0 (#21563)
  ci: bump actions/upload-artifact from 7.0.0 to 7.0.1 (#21565)
  core: bump library/golang from `da39430` to `c0074c7` in /lifecycle/container (#21567)
  ci: bump taiki-e/install-action from 2.75.1 to 2.75.5 in /.github/actions/setup (#21569)
  web: bump mermaid from 11.13.0 to 11.14.0 in /web (#21527)
  core, web: update translations (#21552)
  web: bump basic-ftp from 5.2.1 to 5.2.2 in /web (#21543)
  web: User Wizard, Modal Revisions Merge Branch (#21336)
  web/elements: default @listen target to host element and add split-button Dropdown (#21512)
  ci: parallel tests (#21515)
  website/docs: add another sentence to First Steps about restricting access to apps (#21517)
  web/elements: add scrollbar helpers and apply to Interface (#21511)
  web/elements: add viewport helpers and extend intersection observer (#21508)
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.

2 participants