Skip to content

[code sync] Merge code from sonic-net/sonic-utilities:202605 to 202607 - #463

Merged
mssonicbld merged 3 commits into
Azure:202607from
mssonicbld:sonicbld/202607-merge
Sep 15, 2026
Merged

mssonicbld merged 3 commits into
Azure:202607from
mssonicbld:sonicbld/202607-merge

Conversation

@mssonicbld

Copy link
Copy Markdown
Collaborator
* 63a3fc57 - (origin/202605) Merge pull request #4825 from yizhenzha/counterpoll-completion-fix-202605 (2026-09-14) [Vaibhav Hemant Dixit]
* df2967f5 - [counterpoll] Fix bash tab-completion by not requiring CONFIG_DB at import (2026-08-31) [Yizhen Zhang]<br>```

…mport

register_dynamic_commands() runs at import time and calls
ConfigDBConnector().connect(). The bash-completion generator imports every
CLI module in a redis-less build container to emit the completion scripts;
the counterpoll import raises there, so no /etc/bash_completion.d/counterpoll
file is generated and "counterpoll <Tab>" does not complete on the switch,
while config/show complete fine.

Catch the RuntimeError swsscommon raises when CONFIG_DB is unreachable, log a
warning, and skip the DPU-only dynamic commands instead of failing the import;
unrelated errors still propagate. Completion is dynamic, so on a DPU with
CONFIG_DB up the eni/ha_set commands are still registered and still complete.

Add regression tests for both the swallowed RuntimeError and the propagated
unexpected error.

Signed-off-by: Yizhen Zhang <evazha@nvidia.com>
…2605

[202605][counterpoll] Fix bash tab-completion by not requiring CONFIG_DB at import
@mssonicbld

Copy link
Copy Markdown
Collaborator Author

/azp run

@mssonicbld
mssonicbld merged commit 9d6f909 into Azure:202607 Sep 15, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants