Skip to content

Cloud E2E: cover environment creation edge cases #1036

Description

@kachawla

What problem are you trying to solve?

The nightly Cloud E2E run covers the main environment lifecycle against real Azure and GitHub: create a new Entra identity, publish workflows to the default branch, deploy, delete the deployment, and delete the environment. The cases below have unit and integration coverage but no real-cloud test. They were tracked as manual live gates in docs/eng/ENVIRONMENT_CREATION_READINESS.md, which is being removed because it was a one-time sign-off record that never ran.

Area

Core packages (core, adapter-shared, adapter-canvas)

Proposed solution

Add these to Cloud E2E where it is practical, or decide to leave them covered by unit and integration tests only:

Identity ownership

  • Reuse an existing app owned by the Azure CLI user
  • Reuse an existing app owned by the Azure CLI service principal
  • A matching app not owned by the caller is refused and nothing is deleted
  • A Radius-tagged orphan is not reclaimed or deleted

GitHub

  • Protected default branch: setup reaches action_required, then the PR merge and verification retry complete on the same operation
  • Verification workflow already present on the default branch is reused without duplication
  • Missing GitHub Packages authorization fails preflight clearly

Failure paths

  • Azure login failure stops before any cloud mutation
  • AKS warning ends in succeeded_with_warnings
  • Cleanup failure keeps the original setup failure visible and records retained resources

Restart drills

  • Restart at an Azure mutation boundary: Continue creates no duplicate, Stop deletes nothing unowned
  • Restart at a GitHub mutation boundary reconciles without blind replay
  • Restart during verification recovers the exact run without duplicate dispatch
  • Restart during cleanup resumes without repeating a confirmed deletion

Acceptance criteria

Each case is either covered by Cloud E2E or explicitly marked as covered only by hermetic tests, with the reason.

Alternatives considered

Keep the readiness record as a manual release gate. It required named approvers, a test tenant, and a budget that were never assigned, so it never ran and releases shipped past it.

Activity

  1. self-assigned this
    on Oct 19, 2026
  2. added
    triaged
    on Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementtriaged

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions