Skip to content

ci: enforce provider boundaries in pure build mode - #765

Draft
hdwhdw wants to merge 1 commit into
sonic-net:masterfrom
hdwhdw:devex/pure-build-mode
Draft

ci: enforce provider boundaries in pure build mode#765
hdwhdw wants to merge 1 commit into
sonic-net:masterfrom
hdwhdw:devex/pure-build-mode

Conversation

@hdwhdw

@hdwhdw hdwhdw commented Aug 24, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add the pure build tag to the existing pure-package path
  • compile packages and tests with CGO_ENABLED=0 before race tests
  • restrict pure build tags to direct internal adapter provider files
  • declare direct dependencies exposed by current mechanical package discovery

Validation at commit 21bf9058

  • make -f pure.mk ci passes for 17 packages
  • go mod tidy -diff reports no changes
  • AMD64, ARM64, memory, pure, static, CodeQL, and Semgrep checks passed
  • integration passed all 1,279 tests in builds 1201604, 1201690, and 1202463
  • each run then failed during coverage-tool installation on the shared /tmp/go permission boundary

Blocker

Relationship

Tracking: Azure DevOps Task 39387055.

Compile canonical pure packages and tests with CGO disabled and the pure build tag before race tests. Restrict pure build constraints to direct adapter provider files and declare dependencies exposed by mechanical package discovery.\n\nADO: 39387055

Signed-off-by: Dawei Huang <daweihuang@microsoft.com>
@mssonicbld

Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@hdwhdw

hdwhdw commented Aug 24, 2026

Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

@hdwhdw

hdwhdw commented Aug 25, 2026

Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
Successfully started running 1 pipeline(s).

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.

2 participants