build(application): preserve Rust release debug info#557
Open
WilliamBerryiii wants to merge 3 commits into
Open
build(application): preserve Rust release debug info#557WilliamBerryiii wants to merge 3 commits into
WilliamBerryiii wants to merge 3 commits into
Conversation
🔧 - Generated by Copilot
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #557 +/- ##
=======================================
Coverage 32.41% 32.41%
=======================================
Files 40 40
Lines 5902 5902
=======================================
Hits 1913 1913
Misses 3989 3989
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
rezatnoMsirhC
approved these changes
May 21, 2026
Contributor
rezatnoMsirhC
left a comment
There was a problem hiding this comment.
Thanks for the contribution. The approach is solid and the Dockerfile coverage across all Rust release-build services looks complete.
🛠️ - Generated by Copilot
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Pull Request
Description
Preserved Rust release debug metadata for application container builds by passing Cargo release profile settings through CI/CD build configuration and into the Rust service Dockerfiles.
This change kept release builds from stripping debug information by setting:
CARGO_PROFILE_RELEASE_DEBUG=line-tables-onlyCARGO_PROFILE_RELEASE_STRIP=noneRelated Issue
Relates to #168
Type of Change
Implementation Details
Updated the application matrix build workflow to accept Docker build arguments and pass them through application image builds.
Updated PR validation to provide Cargo release profile build arguments for Rust application images.
Updated Azure Pipelines application build configuration to pass the same Docker build arguments used by GitHub Actions.
Updated Rust application Dockerfiles to declare the Cargo profile build arguments and export them as environment variables before the release build runs.
The Dockerfile updates covered the Rust telemetry services, Rust HTTP connector services, media capture service, MQTT OTEL trace exporter, and AI edge inference images.
Testing Performed
Validation Steps
dockerBuildArgswithCARGO_PROFILE_RELEASE_DEBUG=line-tables-onlyandCARGO_PROFILE_RELEASE_STRIP=none.ARGand exported withENV.Checklist
terraform fmton all Terraform codeterraform validateon all Terraform codeaz bicep formaton all Bicep codeaz bicep buildto validate all Bicep codeSecurity Review
Additional Notes
This PR changed build, pipeline, and container configuration only. It did not change application runtime source code, Terraform, Bicep, RBAC, dependencies, or network exposure.
Screenshots (if applicable)
Not applicable.