[mage] Unify packaging targets#14871
Conversation
|
This pull request does not have a backport label. Could you fix it @swiatekm? 🙏
|
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
446e929 to
5bcbfe2
Compare
This comment has been minimized.
This comment has been minimized.
TL;DR
Remediation
Investigation detailsRoot CauseThe lint run includes a tainted-input log statement for Evidence
Validation
Follow-upIf you keep non-fatal fallback behavior for unknown values, ensure logs do not include raw env-derived input. What is this? | From workflow: PR Actions Detective Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not. |
This comment has been minimized.
This comment has been minimized.
|
This pull request is now in conflicts. Could you fix it? 🙏 |
Remove stale/verbose comments, redundant inline remarks, and a spurious double-space. Fix package.sh shebang to #!/usr/bin/env bash. Remove the obvious FIPS-block comments whose meaning is already clear from the conditional structure. Also add §8 to packaging-analysis.md documenting the USE_PACKAGE_VERSION=true default and the two callers that must opt out. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
79a4ed2 to
ddaa589
Compare
e739a87 to
ecad7f3
Compare
💔 Build Failed
Failed CI Steps
History
cc @swiatekm |
TL;DRAll 4 failed Buildkite packaging jobs in build Remediation
Investigation detailsRoot Cause
But mage clean
...
if [ -n "${MANIFEST_URL:-}" ]; then
export AGENT_CORE_SOURCE=manifest
export USE_PACKAGE_VERSION=false
fiSo settings are loaded and fail before the override can take effect. Evidence
Verification
Follow-upIf the guard reorder is intentional and What is this? | From workflow: PR Buildkite Detective Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not. |
What does this PR do?
Unifies the mage packaging targets:
mage packageandmage packageUsingDRA. As a result, the latter is folded into the former.To achieve this, we introduce a new configuration variable:
AGENT_CORE_SOURCE. The value can either belocalormanifestand controls whether the agent core package is built locally or downloaded from the manifest.We also set some defaults to make local work easier.
USE_PACKAGE_VERSIONis nowtrueby default. We build from the manifest in the.package-versionfile rather than take the latest one.EXTERNALis nowtrueby default. Packaging using locally built dependencies in infrequent, especially after agentbeat was folded into the otel collector binary.Why is it important?
Checklist
./changelog/fragmentsusing the changelog toolDisruptive User Impact
How to test this PR locally
Related issues