Skip to content

Conversation

matt-metivier
Copy link
Contributor

  • Add common utilities for client validation and retry logic
  • Refactor alert config and disabled alert config resources to use shared utilities
  • Improve retry logic with exponential backoff and jitter
  • Remove code duplication across asserts resources
  • Update test destroy functions with better retry logic
  • Remove stress test skip conditions as retry logic is now more robust

@matt-metivier matt-metivier requested a review from a team as a code owner September 5, 2025 21:34
@CLAassistant
Copy link

CLAassistant commented Sep 5, 2025

CLA assistant check
All committers have signed the CLA.

Copy link
Contributor

github-actions bot commented Sep 5, 2025

In order to lower resource usage and have a faster runtime, PRs will not run Cloud tests automatically.
To do so, a Grafana Labs employee must trigger the cloud acceptance tests workflow manually.

@matt-metivier matt-metivier force-pushed the asserts-refactor-common-utilities branch from 9668de8 to e742667 Compare September 5, 2025 22:41
- Add common utilities for client validation and retry logic
- Refactor alert config and disabled alert config resources to use shared utilities
- Improve retry logic with exponential backoff and jitter
- Remove code duplication across asserts resources
- Update test destroy functions with better retry logic
- Remove stress test skip conditions as retry logic is now more robust
- Update asserts client dependency for compatibility with new API features
@matt-metivier matt-metivier force-pushed the asserts-refactor-common-utilities branch from e742667 to 4ea55ad Compare September 5, 2025 22:48
matt-metivier and others added 2 commits September 5, 2025 17:11
- Add CheckStressTestsEnabled function to testutils package
- Update stress tests to require TF_ACC_STRESS environment variable
- Stress tests will now be skipped unless explicitly enabled
- This prevents flaky stress test failures in CI while still allowing
  developers to run them when needed for testing eventual consistency
Copy link

@arramos84 arramos84 left a comment

Choose a reason for hiding this comment

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

This LGTM, tested the provider as well. Seems to be working as intended.

@matt-metivier matt-metivier merged commit 568969a into main Sep 8, 2025
31 checks passed
@matt-metivier matt-metivier deleted the asserts-refactor-common-utilities branch September 8, 2025 23:41
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.

3 participants