Skip to content

[ci] Allow selecting the cargo profile for Docker image builds - #5124

Open
tillrohrmann wants to merge 1 commit into
mainfrom
docker-profiles
Open

[ci] Allow selecting the cargo profile for Docker image builds#5124
tillrohrmann wants to merge 1 commit into
mainfrom
docker-profiles

Conversation

@tillrohrmann

@tillrohrmann tillrohrmann commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

Allow reusable and manually dispatched Docker builds to select any Cargo profile, and propagate it through cargo-chef, compilation, artifact lookup, and local just builds.

Handle Cargo's historical output directories for built-in profiles while preserving custom profile directories. Prefix non-release image tags so profile builds cannot overwrite regular release tags.

Remove the redundant debug workflow input and use profile configuration as the source of debug settings. Parca builds still force debug information for the selected profile and retain the larger runner, timeout, and uncached build path.

@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown

Test Results

  8 files  ±0    8 suites  ±0   5m 18s ⏱️ +34s
 61 tests ±0   61 ✅ ±0  0 💤 ±0  0 ❌ ±0 
268 runs  ±0  268 ✅ ±0  0 💤 ±0  0 ❌ ±0 

Results for commit 72f5ebe. ± Comparison against base commit c8d50ff.

♻️ This comment has been updated with latest results.

@tillrohrmann
tillrohrmann marked this pull request as ready for review August 14, 2026 22:00
Allow reusable and manually dispatched Docker builds to select any Cargo profile, and propagate it through cargo-chef, compilation, artifact lookup, and local just builds.

Handle Cargo's historical output directories for built-in profiles while preserving custom profile directories. Prefix non-release image tags so profile builds cannot overwrite regular release tags.

Remove the redundant debug workflow input and use profile configuration as the source of debug settings. Parca builds still force debug information for the selected profile and retain the larger runner, timeout, and uncached build path.
@AhmedSoliman

Copy link
Copy Markdown
Member

@codex review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 72f5ebef72

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +35 to +39
profile:
description: "cargo profile to build with (must exist in Cargo.toml)"
required: false
default: "release"
type: string

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Preserve the debug input for external callers

When an existing external caller passes with: debug: true, GitHub validates it against workflow_call.inputs, so replacing the declared input with only profile makes that workflow fail before this job starts. This workflow explicitly supports external repositories (.github/workflows/docker.yml:1-4), and the consumer documentation still advertises debug (docs/dev/build-and-ci.md:192-201); retain it as a deprecated compatibility alias for the corresponding profile, or provide a coordinated migration before removing it.

AGENTS.md reference: AGENTS.md:L51-L51

Useful? React with 👍 / 👎.

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.

My hope would be that nobody is using this field. I am confirming with the cloud team.

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