Skip to content

Conversation

@liushilongbuaa
Copy link
Contributor

@liushilongbuaa liushilongbuaa commented Jan 3, 2026

Why I did it

  1. Refine dependency files in device folder. During build device folder will generate git ignore files, which makes config-engine/device-data rebuild.
  2. Refine test logic for telemetry-sidecar, which makes that docker rebuild.
  3. Split test part and build part for eventd, debian-helper will run them in different step.
Work item tracking
  • Microsoft ADO (number only):

How I did it

How to verify it

Which release branch to backport (provide reason below if selected)

  • 202305
  • 202311
  • 202405
  • 202411
  • 202505
  • 202511

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)

@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Signed-off-by: Shilong Liu <shilongliu@microsoft.com>
@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@liushilongbuaa liushilongbuaa marked this pull request as ready for review January 4, 2026 08:31
Copilot AI review requested due to automatic review settings January 4, 2026 08:31
Copy link
Contributor

Copilot AI left a 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.

@mssonicbld
Copy link
Collaborator

/azp run Azure.sonic-buildimage

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

Copy link
Contributor

@yejianquan yejianquan left a comment

Choose a reason for hiding this comment

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

LGTM

@yejianquan yejianquan merged commit b0d7cba into sonic-net:master Jan 6, 2026
23 checks passed
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.

3 participants