[ci]: Add pure database config adapter#6
Draft
hdwhdw wants to merge 6 commits into
Draft
Conversation
|
/azp run |
Extract namespace database configuration behind an internal provider seam. The normal build uses swsscommon, while the pure build parses database_config.json and rejects unsupported global configurations explicitly. Run canonical packages with the pure build tag, prove CGO-free builds, reject SONiC-only dependency leaks, and remove the sibling checkout from hosted pure tests. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: Dawei Huang <daweihuang@microsoft.com>
Validate test dependencies and build-tag placement, run a CGO-free build before hosted race tests, and preserve default namespace lookup behavior. Share the database configuration contract with the real swsscommon provider and publish its integration result separately. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Signed-off-by: Dawei Huang <daweihuang@microsoft.com>
hdwhdw
force-pushed
the
ci/pure-sonic-db-config
branch
from
July 22, 2026 14:32
284518b to
674034c
Compare
|
/azp run |
1 similar comment
|
/azp run |
Signed-off-by: Dawei Huang <daweihuang@microsoft.com>
|
/azp run |
Signed-off-by: Dawei Huang <daweihuang@microsoft.com>
|
/azp run |
Signed-off-by: Dawei Huang <daweihuang@microsoft.com>
|
/azp run |
Signed-off-by: Dawei Huang <daweihuang@microsoft.com>
|
/azp run |
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.
Why I did it
This is step 1 of the standalone unit-test roadmap, stacked on
sonic-net/sonic-gnmi#719.
Canonical packages need a repeatable pattern for isolating dependencies that
cannot compile outside the SONiC build environment. Database configuration is
the first vertical slice because its namespace API contains useful derived
logic while its implementation depends on swsscommon.
How I did it
internal/dbconfig!pureprovider that wraps the existing swsscommon callspureprovider that parsesdatabase_config.jsonsonic_db_confignamespace functions delegate withoutchanging their signatures
purebuild tag for canonical package validationchecks
How to verify it
make -f pure.mk cimake -f pure.mk junit-xmlmake -f pure.mk PACKAGES=internal/dbconfig check-deps check-tags build-test testmake -f pure.mk PACKAGES=sonic_db_config check-depsreturns nonzeromake check_gotest_junitin the SONiC integration environment for thereal-provider contract
Which release branch to backport (provide reason below if selected)
Description for the changelog
Add the first pure/real adapter seam for standalone database configuration
tests.
Link to config_db schema for YANG module changes
N/A
A picture of a cute animal (not mandatory but encouraged)