[202405] Add GCU standalone wheel package (backport of #4310)#362
Merged
yejianquan merged 1 commit intoJun 6, 2026
Merged
Conversation
Backport the GCU (Generic Config Updater) standalone wheel packaging from master PR #4310 to the 202405 branch, adapted for 202405 API compatibility (following 202412 PR Azure#352 structure). Changes: - Add generic_config_updater/main.py: standalone GCU entry point with all apply-patch orchestration logic (validate, preprocess, scope splitting, parallel dispatch) - Add generic_config_updater/setup.py: builds sonic-gcu wheel with gcu-standalone console_scripts entry point - Add generic_config_updater/pytest.ini and .coveragerc for test/coverage - Modify field_operation_validators.py: inline DEFAULT_SUPPORTED_FECS_LIST to remove utilities_common dependency (wheel isolation) - Add comment in utilities_common/constants.py noting the duplicate - Modify azure-pipelines.yml: add GCU wheel build + publish step - Add tests/generic_config_updater/main_test.py: 88 unit tests adapted from master (removed --time and --path-trace features not in 202405) Testing performed: - Wheel build: sonic_gcu-1.0.0-py3-none-any.whl (48KB) builds successfully - Wheel install: gcu-standalone binary at /usr/local/bin/gcu-standalone - All 7 CLI sub-commands verified: apply-patch, replace, save, rollback, create-checkpoint, delete-checkpoint, list-checkpoints - All flags tested: --verbose, --dry-run, --ignore-non-yang-tables, --format, --parallel - Basic operations: add, replace, remove patches via gcu-standalone - Mixed operations: checkpoint create -> apply patch -> rollback -> delete - Error handling: missing file -> exit 1, invalid patch -> proper error - Regression: existing 'config apply-patch' CLI unaffected - Unit tests: 88/88 pass, flake8 clean - Device: str3-7800-lc3-1 (multi-ASIC Arista 7808, SONiC 202405) Signed-off-by: Rithvick Reddy Munagala <rimunagala@microsoft.com>
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.
Backport the GCU (Generic Config Updater) standalone wheel packaging from master PR #4310 to the 202405 branch, adapted for 202405 API compatibility (following 202412 PR #352 structure).
Changes:
Testing performed:
What I did
How I did it
How to verify it
Previous command output (if the output of a command-line utility has changed)
New command output (if the output of a command-line utility has changed)