Skip to content

CHORE: add OneBranch release pipeline scaffolding - #546

Merged
bewithgaurav merged 3 commits into
devfrom
bewithgaurav/onebranch-release-scaffold
Jul 27, 2026
Merged

CHORE: add OneBranch release pipeline scaffolding#546
bewithgaurav merged 3 commits into
devfrom
bewithgaurav/onebranch-release-scaffold

Conversation

@bewithgaurav

Copy link
Copy Markdown
Collaborator

What

Adds the shared scaffolding for the mssql-django release pipelines
(build-release-package / official-release / dummy-release), mirroring the
in-repo layout used by microsoft/mssql-python. No pipeline definitions are
wired yet
— this PR only lands the variables and SDL/governance config the
pipelines will consume.

File Purpose
OneBranchPipelines/variables/common-variables.yml Paths, package identity, pip feed, and regex_clr.dll blob coordinates
OneBranchPipelines/variables/onebranch-variables.yml OneBranch output dir, SDL/TSA toggles, Linux build image
.config/tsaoptions.json TSA (Threat & Security Assessment) config
.config/CredScanSuppressions.json CredScan suppression (CONTRIBUTING.md example)
es-metadata.yml ES / OneBranch governance metadata

Why

Part of moving mssql-django's release machinery out of the standalone
mssql-django-tools ADO repo and into the product repo (parity with
microsoft/mssql-python), so build / release / sync all live and version
alongside the code.

Notes

  • mssql-django is pure-Python, so there is no native/ODBC/symbol tooling here.
  • regex_clr.dll deliberately stays out of the repo (security policy) and is
    fetched at build time from the private storage account via managed-identity
    auth
    — wired in the follow-up build-pipeline PR.
  • Draft until the follow-up build + release pipeline PRs land.

bewithgaurav and others added 3 commits July 26, 2026 11:57
Introduces the shared scaffolding for the mssql-django release pipelines
(build / official-release / dummy-release), mirroring the in-repo layout used
by microsoft/mssql-python. No pipeline definitions are wired yet; this lands
only the variables and SDL/governance config they will consume.

- OneBranchPipelines/variables/common-variables.yml: paths, package identity,
  pip feed, and the regex_clr.dll blob coordinates (fetched at build time via
  managed-identity auth, not committed to the repo).
- OneBranchPipelines/variables/onebranch-variables.yml: OneBranch output
  directory, SDL/TSA toggles, Linux build image.
- .config/tsaoptions.json, .config/CredScanSuppressions.json: SDL config.
- es-metadata.yml: ES/OneBranch governance metadata.

mssql-django is pure-Python, so no native/ODBC/symbol tooling is included.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Match the blessed mssql-python governance format (adapted for Django) rather
than the legacy mssql-django-tools variants:
- es-metadata.yml: InventoryAsCode schemaVersion 1.0.0
- .config/tsaoptions.json: python-shape with include/exclude path patterns
- .config/CredScanSuppressions.json: python-shape suppressions
- common-variables.yml: drop the subscription id from comments (no internal
  identifiers in a public repo)

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
workspace_pr_body.md is a local PR-body draft, not part of the scaffold.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@github-actions

Copy link
Copy Markdown

📊 Code Coverage Report

🔥 Diff Coverage

100%


🎯 Overall Coverage

79.21%


📈 Total Lines Covered: 2397 out of 3026
📁 Project: mssql-django


Diff Coverage

Diff: dev...HEAD, staged and unstaged changes

No lines with coverage information in this diff.


📋 Files Needing Attention

📉 Files with overall lowest coverage (click to expand)
- mssql/client.py: 19.5%  (41 lines)
- mssql/__init__.py: 50.0%  (2 lines)
- mssql/creation.py: 56.8%  (74 lines)
- mssql/base.py: 68.3%  (514 lines)
- mssql/operations.py: 78.8%  (396 lines)
- mssql/compiler.py: 79.5%  (640 lines)
- mssql/functions.py: 83.2%  (428 lines)
- mssql/schema.py: 86.1%  (719 lines)
- mssql/introspection.py: 90.7%  (129 lines)
- mssql/features.py: 98.8%  (83 lines)

🔗 Quick Links

⚙️ Build Summary 📋 Coverage Details

View Azure DevOps Build

Browse Full Coverage Report

@bewithgaurav
bewithgaurav marked this pull request as ready for review July 27, 2026 07:16
Copilot AI review requested due to automatic review settings July 27, 2026 07:16

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Adds foundational OneBranch/SDL governance and variable scaffolding needed to author mssql-django release pipelines (build package + official + dummy), without wiring actual pipeline definitions yet.

Changes:

  • Introduces shared pipeline variable templates (package identity, artifact paths, OneBranch/SDL/TSA toggles, and regex_clr.dll blob coordinates).
  • Adds SDL governance configuration files for TSA and CredScan suppressions.
  • Adds ES/OneBranch governance metadata (es-metadata.yml) for inventory/routing.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
OneBranchPipelines/variables/common-variables.yml Defines common release variables (repo/artifact paths, package identity, feed, regex_clr.dll storage coordinates).
OneBranchPipelines/variables/onebranch-variables.yml Defines OneBranch-specific variables (artifact output directory, SDL/TSA toggles, Linux container image).
.config/tsaoptions.json Adds TSA configuration (instance/project metadata + include/exclude path patterns).
.config/CredScanSuppressions.json Adds CredScan suppression configuration intended to suppress known false positives/examples.
es-metadata.yml Adds ES governance metadata for inventory/routing.

Comment thread .config/tsaoptions.json
Comment thread .config/CredScanSuppressions.json
@bewithgaurav
bewithgaurav merged commit 26d50b2 into dev Jul 27, 2026
8 of 67 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