feat: add release-tests workflow for sequential pre-release validation#203
Open
EMaher wants to merge 25 commits into
Open
feat: add release-tests workflow for sequential pre-release validation#203EMaher wants to merge 25 commits into
EMaher wants to merge 25 commits into
Conversation
Add Write-Host section headers and Write-Verbose breadcrumbs across all redact-secrets integration phases (deploy, extract, validate, teardown) and the orchestrator for easier test debugging. Fix Set-ScriptLogPreferences in ScriptRuntime.psm1 to set the caller's VerbosePreference/DebugPreference via $PSCmdlet.SessionState. The previous Set-Variable -Scope 1 from a module function only affected the module's scope chain, so Write-Verbose output was silently suppressed. Wire LogLevel/Set-ScriptLogPreferences into phase 4 teardown and the orchestrator so their verbose output is honored, and broaden the integration-test .gitignore patterns to cover all integration subdirs.
Adds three workflows: - test-unit.yml: reusable workflow for unit tests - test-build-package.yml: reusable workflow for build-package integration test - release-tests.yml: orchestrator that runs all tests in order (unit → build-package → all-types) with fail-fast Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…flows Add workflow_call trigger to ci.yml so release-tests.yml can call it directly. Remove test-unit.yml and test-build-package.yml since ci.yml already covers both unit and build-package tests. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Call integration-redact-secrets.yml as the third sequential step (after all-types integration), using the same SKU and region inputs. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Inputs already have defaults and log_level uses choice type, so validation/resolution is redundant. Use inputs directly. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…orkflow Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
Adds a new GitHub Actions orchestrator workflow intended to run the repo’s test suites sequentially as a pre-release gate, by reusing existing CI and integration workflows via workflow_call.
Changes:
- Added a new manual
Release Testsworkflow that chains CI → all-resource-types integration → redact-secrets integration. - Updated
ci.ymlto support being invoked as a reusable workflow viaworkflow_call.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.
| File | Description |
|---|---|
| .github/workflows/release-tests.yml | New orchestrator workflow that runs existing workflows sequentially before release. |
| .github/workflows/ci.yml | Enables CI workflow reuse by adding a workflow_call trigger. |
petehauge
previously approved these changes
Jul 1, 2026
…ecrets Add cron schedule (1st of every month at 9:00 UTC) to release-tests.yml with fallback defaults for inputs. Document repo-level secret requirement in SKILL.md since the orchestrator reads secrets from repo scope. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…on step Called workflows now access secrets via their environment declaration instead of requiring the caller to pass them. Each called workflow includes a 'Validate Required Secrets' step that fails fast with a clear error if any secret is missing from the environment. This eliminates the need for repo-level secret duplication. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…est-workflow # Conflicts: # .github/skills/integration-test-prerequisites/SKILL.md # .github/workflows/integration-redact-secrets.yml
4f56e13 to
a70cc67
Compare
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…dation Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
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.
Summary
Adds a
Release Testsworkflow (release-tests.yml) that runs all test suites sequentially before a release, with fail-fast behavior. Also runs monthly on a cron schedule.Execution Order
ci.yml)integration-test.yml)integration-redact-secrets.yml)Each step requires the previous to pass. If any stage fails, subsequent stages are skipped.
Changes
ci.yml: Addedworkflow_calltrigger so it can be reused by the orchestratorrelease-tests.yml: New orchestrator workflow (manual dispatch + monthly cron) that chains all tests in orderintegration-test.yml: Removedsecrets:contract fromworkflow_call, added "Validate Required Secrets" step, madeAPIM_PUBLISHER_EMAILoptional with contoso.com fallbackintegration-redact-secrets.yml: Same simplifications — removed secrets contract, added validation step, simplified inputsSKILL.md: Updated prerequisites documentation for the new workflow architecture