Skip to content

root: don't include debug info for rust release profile - #24664

Merged
emilburzo merged 3 commits into
mainfrom
rust-release-disable-debug
Aug 3, 2026
Merged

emilburzo merged 3 commits into
mainfrom
rust-release-disable-debug

Conversation

@emilburzo

@emilburzo emilburzo commented Aug 3, 2026 •

Copy link
Copy Markdown
Member

Because:

  • debug = 2 tells the compiler to make full debug info
  • strip = true then removes that info from the binary

It seems pointless to keep the debug info, as builders with less RAM have trouble building it in the link optimizer step due the amount of data:

  • debug = 2: 0.83 GiB
  • debug = 0: 0.58 GiB

lto = "thin" might also be something worth exploring, but that can be later on.

@emilburzo emilburzo self-assigned this Aug 3, 2026
Copilot AI review requested due to automatic review settings August 3, 2026 12:52
@emilburzo emilburzo moved this from Todo to In Progress in authentik Core Aug 3, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR adjusts the Rust workspace’s release build configuration (root Cargo.toml) to avoid generating full debuginfo that is subsequently stripped, reducing link-time memory usage for lto = "fat" release builds.

Changes:

  • Set [profile.release].debug from 2 to 0 while keeping strip = true and lto = "fat".

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@rissson

rissson commented Aug 3, 2026

Copy link
Copy Markdown
Member

There was a reason why I left it like that, but I can't remember why. Could it have something to do with line number for logs or tracebacks?

@netlify

netlify Bot commented Aug 3, 2026

Copy link
Copy Markdown

✅ Deploy Preview for authentik-docs ready!

Name Link
🔨 Latest commit c5ac4af
🔍 Latest deploy log https://app.netlify.com/projects/authentik-docs/deploys/6a708ef56e718d0008b844ea
😎 Deploy Preview https://deploy-preview-24664--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.

@emilburzo

Copy link
Copy Markdown
Member Author

There was a reason why I left it like that, but I can't remember why. Could it have something to do with line number for logs or tracebacks?

Since strip = true is in there, I think there's no way that would be possible since there is no debug info? Unless I'm missing some magic

@codecov

codecov Bot commented Aug 3, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.17%. Comparing base (265b858) to head (fabd823).
⚠️ Report is 3 commits behind head on main.
✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #24664      +/-   ##
==========================================
- Coverage   91.21%   91.17%   -0.04%     
==========================================
  Files        1128     1128              
  Lines       70638    70638              
  Branches     3870     3870              
==========================================
- Hits        64433    64406      -27     
- Misses       6170     6197      +27     
  Partials       35       35              
Flag Coverage Δ
conformance 35.15% <ø> (-0.01%) ⬇️
e2e 39.93% <ø> (+<0.01%) ⬆️
integration 31.24% <ø> (-0.47%) ⬇️
rust 38.94% <ø> (ø)
unit 92.88% <ø> (+<0.01%) ⬆️
unit-migrate 92.91% <ø> (+<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.

@rissson rissson left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Approving in principle, with a small nit

Comment thread Cargo.toml Resolved
Copilot AI review requested due to automatic review settings August 3, 2026 13:28

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

Copilot AI review requested due to automatic review settings August 3, 2026 13:30
@emilburzo
emilburzo marked this pull request as ready for review August 3, 2026 13:30
@emilburzo
emilburzo requested a review from a team as a code owner August 3, 2026 13:30

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@emilburzo emilburzo added the backport/version-2026.5 Add this label to PRs to backport changes to version-2026.5 label Aug 3, 2026
@emilburzo
emilburzo enabled auto-merge (squash) August 3, 2026 13:35
@rissson rissson added area:infrastructure backport/version-2026.8 Add this label to PRs to backport changes to version-2026.8 labels Aug 3, 2026
@emilburzo
emilburzo merged commit 0764634 into main Aug 3, 2026
126 checks passed
@emilburzo
emilburzo deleted the rust-release-disable-debug branch August 3, 2026 13:57
@authentik-cherry-pick

Copy link
Copy Markdown
Contributor

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

@authentik-cherry-pick

Copy link
Copy Markdown
Contributor

🍒 Cherry-pick to version-2026.5 created: #24670

@github-actions

github-actions Bot commented Aug 3, 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-fabd82369d280f9d6c314366fe0337bcd9e4f765
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-fabd82369d280f9d6c314366fe0337bcd9e4f765

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

rissson pushed a commit that referenced this pull request Aug 3, 2026
rissson pushed a commit that referenced this pull request Aug 3, 2026
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

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants