Skip to content

Add id to envs#536

Open
formaceft-93 wants to merge 2 commits intomainfrom
env-ids
Open

Add id to envs#536
formaceft-93 wants to merge 2 commits intomainfrom
env-ids

Conversation

@formaceft-93
Copy link
Contributor

@formaceft-93 formaceft-93 commented Mar 10, 2026

Summary

  • Added stable environment identity support.
  • environmentId is now the canonical machine key, environment is only the display name.
  • Internal environment logic is now ID-first: history, retries, quality gate, report grouping, UI selection, and TestOps uploads.

Explicit IDs are now supported and are the recommended way to configure environments:

environments: {
  staging_eu: {
    name: "Staging EU",
    matcher: ...
  }
}

Legacy behavior

  • For legacy and synthetic environments, the system now generates a machine-safe ID from the normalized environment name.
  • This improves environmentId consistency, but does not preserve continuity after rename.

Migration

  • To keep continuity after rename, the environment should be configured with an explicit stable ID.
  • If an environment already exists in TestOps and was previously used without explicit ID in report config, the existing environment ID from TestOps should be copied into config before renaming the environment.
environments: {
  8f3c2d1a4b5e6f7g8h9i0j1k2l3m4n5: {
    name: "QA EU",
    matcher: ...
  }
}

@github-actions
Copy link

github-actions bot commented Mar 10, 2026

Allure Report Summary

Name Duration Stats New Flaky Retry Report
Allure 3 Report 22m 31s Passed tests 4988   Skipped tests 15   Unknown tests 12 120 0 0 View
My Dashboard 22m 31s Passed tests 4988   Skipped tests 15   Unknown tests 12 120 0 0 View

@formaceft-93 formaceft-93 marked this pull request as ready for review March 10, 2026 19:41
@formaceft-93 formaceft-93 requested a review from epszaw March 10, 2026 19:41
@formaceft-93 formaceft-93 force-pushed the env-ids branch 3 times, most recently from 820ce46 to d9e62d8 Compare March 12, 2026 12:19
@formaceft-93 formaceft-93 requested a review from epszaw March 12, 2026 13:34
@formaceft-93 formaceft-93 requested a review from epszaw March 17, 2026 08:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants