Skip to content

Exclude recovery service vaults from e2e tests by disabling backup in…#4937

Merged
rudolphjacksonm merged 5 commits into
mainfrom
4920-recovery-services-vaults-stopping-cicd-tests-from-running
Jun 24, 2026
Merged

Exclude recovery service vaults from e2e tests by disabling backup in…#4937
rudolphjacksonm merged 5 commits into
mainfrom
4920-recovery-services-vaults-stopping-cicd-tests-from-running

Conversation

@ChrisChapman-gh

Copy link
Copy Markdown
Collaborator

Resolves #4920

What is being addressed

E2E tests failing to run due to bug in recovery service vaults.

How is this addressed

Added parameter to "properties" payload in e2etests/conftest.py to disable backup (currently enabled by default)

payload = {
    "templateName": template_name,
    "properties": {
        "display_name": f"E2E {description} workspace ({auth_type} AAD)",
        "description": f"{template_name} test workspace for E2E tests",
        "auth_type": auth_type,
        "address_space_size": "small",
        "enable_backup": False
    }
}

duplicating @maxmartin-cgi work so we can get the pipelines running (#4921)

@ChrisChapman-gh ChrisChapman-gh self-assigned this Jun 19, 2026
@ChrisChapman-gh

Copy link
Copy Markdown
Collaborator Author

/test-extended

@github-actions

Copy link
Copy Markdown

🤖 pr-bot 🤖

🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/27819357172 (with refid 6dd05385)

(in response to this comment from @ChrisChapman-gh)

@github-actions

github-actions Bot commented Jun 19, 2026

Copy link
Copy Markdown

Unit Test Results

0 tests   0 ✅  0s ⏱️
0 suites  0 💤
0 files    0 ❌

Results for commit 813b905.

♻️ This comment has been updated with latest results.

@ChrisChapman-gh

Copy link
Copy Markdown
Collaborator Author

/test-extended

@github-actions

Copy link
Copy Markdown

🤖 pr-bot 🤖

🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/27827269256 (with refid 6dd05385)

(in response to this comment from @ChrisChapman-gh)

…le_backup parameter for backup configuration
@ChrisChapman-gh

Copy link
Copy Markdown
Collaborator Author

/test-extended

@github-actions

Copy link
Copy Markdown

🤖 pr-bot 🤖

🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/27833533227 (with refid 6dd05385)

(in response to this comment from @ChrisChapman-gh)

3 similar comments
@github-actions

Copy link
Copy Markdown

🤖 pr-bot 🤖

🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/27833533227 (with refid 6dd05385)

(in response to this comment from @ChrisChapman-gh)

@github-actions

Copy link
Copy Markdown

🤖 pr-bot 🤖

🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/27833533227 (with refid 6dd05385)

(in response to this comment from @ChrisChapman-gh)

@github-actions

Copy link
Copy Markdown

🤖 pr-bot 🤖

🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/27833533227 (with refid 6dd05385)

(in response to this comment from @ChrisChapman-gh)

@rudolphjacksonm

Copy link
Copy Markdown
Collaborator

/test-extended

@github-actions

Copy link
Copy Markdown

🤖 pr-bot 🤖

🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/27947827317 (with refid 6dd05385)

(in response to this comment from @rudolphjacksonm)

1 similar comment
@github-actions

Copy link
Copy Markdown

🤖 pr-bot 🤖

🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/27947827317 (with refid 6dd05385)

(in response to this comment from @rudolphjacksonm)

@rudolphjacksonm

Copy link
Copy Markdown
Collaborator

/test-extended

@github-actions

Copy link
Copy Markdown

🤖 pr-bot 🤖

🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/28006141610 (with refid 6dd05385)

(in response to this comment from @rudolphjacksonm)

1 similar comment
@github-actions

Copy link
Copy Markdown

🤖 pr-bot 🤖

🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/28006141610 (with refid 6dd05385)

(in response to this comment from @rudolphjacksonm)

@rudolphjacksonm

Copy link
Copy Markdown
Collaborator

/test-destroy-env

@github-actions

Copy link
Copy Markdown

Destroying branch test environment (RG: rg-trebbbb4607)... (run: https://github.com/microsoft/AzureTRE/actions/runs/28059838145)

@github-actions

Copy link
Copy Markdown

Destroying PR test environment (RG: rg-tre6dd05385)... (run: https://github.com/microsoft/AzureTRE/actions/runs/28059838145)

@github-actions

Copy link
Copy Markdown

Branch test environment destroy complete (RG: rg-trebbbb4607)

@rudolphjacksonm

Copy link
Copy Markdown
Collaborator

/test-extended

@github-actions

Copy link
Copy Markdown

🤖 pr-bot 🤖

🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/28059957599 (with refid 6dd05385)

(in response to this comment from @rudolphjacksonm)

@github-actions

Copy link
Copy Markdown

PR test environment destroy complete (RG: rg-tre6dd05385)

@marrobi

marrobi commented Jun 24, 2026

Copy link
Copy Markdown
Member

/test-extended

@github-actions

Copy link
Copy Markdown

🤖 pr-bot 🤖

🏃 Running extended tests: https://github.com/microsoft/AzureTRE/actions/runs/28091206891 (with refid 6dd05385)

(in response to this comment from @marrobi)

@rudolphjacksonm rudolphjacksonm marked this pull request as ready for review June 24, 2026 13:00
@rudolphjacksonm rudolphjacksonm requested a review from a team as a code owner June 24, 2026 13:00
Copilot AI review requested due to automatic review settings June 24, 2026 13:00
@rudolphjacksonm

Copy link
Copy Markdown
Collaborator

LGTM

@rudolphjacksonm rudolphjacksonm left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

tests passing now, timeout solved the issue. Will need to look at the broader issue of storage account GUID generation but not in scope for this.

@maxmartin-cgi maxmartin-cgi left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Looks good to me.

@marrobi marrobi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM. Thanks.

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

This PR addresses CI E2E failures related to Recovery Services Vault backups by allowing E2E workspace creation to disable backups when the selected workspace template supports it, and by adding the enable_backup parameter to the Airlock Import Review workspace template.

Changes:

  • Update E2E workspace creation to conditionally set enable_backup: false based on the workspace template schema.
  • Add enable_backup to the tre-workspace-airlock-import-review template schema and Porter parameters (and bump its version).
  • Increase HTTP read timeout used by E2E resource helper calls and document the change in CHANGELOG.md.

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
templates/workspaces/airlock-import-review/template_schema.json Adds enable_backup to the workspace template schema (so the API/UI accept the property).
templates/workspaces/airlock-import-review/porter.yaml Introduces enable_backup Porter parameter and passes it into Terraform; bumps template version.
e2e_tests/resources/resource.py Increases HTTP read timeout for E2E resource operations.
e2e_tests/conftest.py Conditionally disables backups in the workspace creation payload when supported by the template.
CHANGELOG.md Adds an unreleased changelog entry for excluding recovery vaults from E2E tests.

Comment thread e2e_tests/conftest.py
Comment thread templates/workspaces/airlock-import-review/template_schema.json Outdated
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@maxmartin-cgi

Copy link
Copy Markdown
Collaborator

/test-force-approve

@github-actions

Copy link
Copy Markdown

🤖 pr-bot 🤖

✅ Marking tests as complete (for commit 813b905)

(in response to this comment from @maxmartin-cgi)

@rudolphjacksonm rudolphjacksonm merged commit a0a1ca0 into main Jun 24, 2026
14 checks passed
@rudolphjacksonm rudolphjacksonm deleted the 4920-recovery-services-vaults-stopping-cicd-tests-from-running branch June 24, 2026 14:04
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.

Recovery services vaults stopping CI/CD tests from running

5 participants