x-pack/metricbeat: add BuildSystemTestBinary deprecation guidance#50196
Conversation
Align x-pack/metricbeat BuildSystemTestBinary with the deprecation UX used in other magefiles so developers get consistent guidance when invoking the target.\n\nKeep the existing x-pack/metricbeat Windows-specific test binary build behavior and only add the deprecation doc comment plus warning output.\n\nAssisted-By: GitHub Copilot CLI\nCo-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
This pull request does not have a backport label.
To fixup this pull request, you need to add the backport labels for the needed
|
This PR only adjusts deprecation guidance text and does not change user-facing behavior, so the changelog fragment is removed to align with skip-changelog policy. Assisted-By: GitHub Copilot CLI Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Done: I removed the changelog fragment and pushed the change to this PR branch. I can’t set PR labels from the tools available in this run, so I wasn’t able to add What is this? | From workflow: Mention in PR Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not. |
There was a problem hiding this comment.
Pull request overview
This PR aligns x-pack/metricbeat’s mage UX with other beats by adding the standard BuildSystemTestBinary deprecation guidance (GoDoc Deprecated: comment + runtime warning) while preserving the existing x-pack metricbeat-specific build behavior.
Changes:
- Mark
BuildSystemTestBinaryas deprecated via GoDocDeprecated:guidance describing the TestMain behavior. - Print the standard deprecation warning message when
BuildSystemTestBinaryruns (consistent with other magefiles). - Keep the existing Windows 32-bit
-ldflags=-whandling in the x-pack metricbeat-specific test binary build.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Make BuildSystemTestBinary documentation and warning output consistent across all magefiles that define the target. Clarify that deprecation applies only to Go integration tests, while keeping the target positioned as required for Python system tests. Assisted-By: GPT-5.3-Codex Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
Updated and pushed. I made the
The wording now explicitly states deprecation is for Go integration tests only, and that the target remains required for Python system tests. I also resolved the two open review threads this addressed. What is this? | From workflow: Mention in PR Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not. |
…nary-guidance-3c178dbddb2050f8
…nary-guidance-3c178dbddb2050f8
…nary-guidance-3c178dbddb2050f8
|
@cmacknz, @leehinman, @andrzej-stencel, when you have some time, could you review/re-review it? |
|
/ai adjust the PR description. the code has diverged from the original discretion. |
|
Updated PR description draft (aligned with the current diff): Summary
WhyThe PR started as an Validation
Refs #50158 What is this? | From workflow: Mention in PR Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not. |
|
@cmacknz, @andrzej-stencel, @leehinman when you have some time, could you review it? |
|
Pinging @elastic/elastic-agent-data-plane (Team:Elastic-Agent-Data-Plane) |
|
@Mergifyio backport 9.4 9.3 8.19 |
✅ Backports have been createdDetails
|
Summary
add/adjusts BuildSystemTestBinary deprecation guidance
Why
Developers invoking
mage BuildSystemTestBinaryinx-pack/metricbeatwere missing the migration guidance shown in other beats, creating inconsistent command UX.Validation
mage -lfromx-pack/metricbeatbutmageis not installed in this runnergo test -tags mage ./x-pack/metricbeat(the run was interrupted by environment module download constraints before completion)Refs #50158
What is this? | From workflow: Mention in Issue
Give us feedback! React with 🚀 if perfect, 👍 if helpful, 👎 if not.