feat: add siteopsSource parameter for cross-repo pipeline reuse#6
Merged
digimaun merged 3 commits intoAzure:mainfrom Mar 17, 2026
Merged
Conversation
Add siteopsSource/siteops-source parameter to setup templates on both ADO and GHA platforms. When provided, installs siteops from the given pip source instead of local editable install, enabling downstream repos to reference these templates cross-repo. Backward compatible: defaults to empty string, preserving existing pip install -e . behavior when no source is specified. Changes: - .github/actions/setup-siteops/action.yaml: siteops-source input - .github/workflows/_siteops-deploy.yaml: siteops-source input, threaded - .pipelines/templates/setup-siteops.yaml: siteopsSource parameter - .pipelines/templates/siteops-deploy.yaml: siteopsSource parameter, threaded
Replace shell/jq dot-notation parser with Python + PyYAML for generating sites.local overlay files. The previous implementation only handled one level of nesting (e.g. parameters.clusterName). The new implementation correctly expands any depth of dot-notation keys (e.g. parameters.dataflowIdentity.clientId) into properly nested YAML. Both GHA and ADO templates updated symmetrically.
GHA: Use siteops-source as cache key when provided, falling back to hashFiles(pyproject.toml) for local installs. Prevents weak/colliding cache keys when cross-repo consumers lack pyproject.toml. ADO: Same conditional cache key logic using siteopsSource parameter. ADO: Add enableCache parameter (default true) to setup-siteops template. The deploy template passes enableCache=false since ADO deployment jobs cannot access pipeline caching scopes. This eliminates the post-job Cache error entirely rather than masking it with continueOnError.
shkalavala
approved these changes
Mar 17, 2026
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.
Enable downstream repos to reference GHA and ADO pipeline templates
without a local siteops checkout. When siteopsSource is provided,
pip installs from the given source instead of local editable install.
Also includes:
dot-notation nesting depth (replaces shell/jq single-level parser)
Cache@2 in deployment jobs where caching scopes are unavailable)