-
Notifications
You must be signed in to change notification settings - Fork 1.7k
[build] Refine some build targets to match with build infrastructure. #24967
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Signed-off-by: Shilong Liu <shilongliu@microsoft.com>
ffa4df1 to
e4c7e80
Compare
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
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 refines build targets to better align with the build infrastructure, focusing on three main improvements: separating test and build logic for eventd, fixing dependency tracking for device files to prevent unnecessary rebuilds, and relocating telemetry-sidecar tests to use the standard cli-plugin-tests framework.
- Separated build and test targets in sonic-eventd Makefile to allow debian-helper to run them in different build steps
- Centralized device file dependency tracking using SONIC_DEVICE_FILES_LIST to prevent unnecessary rebuilds caused by git-ignored files
- Moved telemetry-sidecar unit tests from a custom Makefile target to the standard cli-plugin-tests directory with proper PYTHONPATH configuration
Reviewed changes
Copilot reviewed 6 out of 7 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
| src/sonic-eventd/Makefile | Split all target to exclude tests; added separate test target for debian-helper compatibility |
| slave.mk | Added PYTHONPATH to cli-plugin-tests execution to allow tests to import modules from parent docker directory |
| rules/sonic-device-data.dep | Replaced inline find command with centralized SONIC_DEVICE_FILES_LIST variable |
| rules/sonic-config.dep | Replaced inline find command with centralized SONIC_DEVICE_FILES_LIST variable; removed duplicate device file pattern |
| rules/docker-telemetry-sidecar.mk | Removed custom unit test target that was causing unnecessary docker rebuilds |
| dockers/docker-telemetry-sidecar/cli-plugin-tests/test_systemd_stub.py | New comprehensive test suite for systemd_stub.py covering sync operations, CONFIG_DB reconciliation, and file management |
| Makefile.cache | Added SONIC_DEVICE_FILES_LIST definition using git ls-files to track device files excluding symlinks |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
/azp run Azure.sonic-buildimage |
|
Azure Pipelines successfully started running 1 pipeline(s). |
yejianquan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Why I did it
Work item tracking
How I did it
How to verify it
Which release branch to backport (provide reason below if selected)
Tested branch (Please provide the tested image version)
Description for the changelog
Link to config_db schema for YANG module changes
A picture of a cute animal (not mandatory but encouraged)