Skip to content

Add caching integration tests#137

Closed
reyhankoyun wants to merge 7 commits intoaws:mainfrom
reyhankoyun:add-caching-integration-tests
Closed

Add caching integration tests#137
reyhankoyun wants to merge 7 commits intoaws:mainfrom
reyhankoyun:add-caching-integration-tests

Conversation

@reyhankoyun
Copy link
Copy Markdown
Contributor

Issue #, if available:

Description of changes:

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

- Add integration-tests.yml workflow with OIDC authentication and pull_request_target
- Support team member detection and safe-to-test label for external contributors
- Remove #[ignore] annotations from all 6 integration tests
- Add dynamic port allocation using atomic counter to prevent port conflicts
- Add proper randomness to secret naming (thread ID + nanoseconds + random number)
- Add fastrand dependency for random number generation
- Update test-local.sh to remove --ignored flag and update comments
- Enable both sequential (--test-threads=1) and parallel test execution
Use 'safe to test' (with spaces) to align with other AWS repositories
- COLLABORATOR: automatic test execution
- Others: require 'safe to test' label for manual approval
- Remove repo source checks - only author trust level matters
- Add reopened trigger (part of default set)
- Add ready_for_review trigger for draft PRs marked ready
- Add Checkout step name for consistency
- test_cache_hit_behavior: Verifies cache hits are faster than AWS calls
- test_refresh_now_bypasses_cache: Confirms refreshNow=true bypasses cache
- test_cache_after_secret_update: Tests stale cache behavior after secret updates
- test_real_ttl_expiration_timing: Validates TTL expiration and cache refresh
- test_ttl_zero_disables_caching: Ensures TTL=0 disables caching completely

These tests cover all critical caching behaviors that cannot be unit tested,
including timing-based assertions and AWS integration scenarios.
@reyhankoyun reyhankoyun requested a review from a team as a code owner October 20, 2025 20:11
@reyhankoyun reyhankoyun deleted the add-caching-integration-tests branch October 20, 2025 20:15
@codecov
Copy link
Copy Markdown

codecov bot commented Oct 20, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 91.72%. Comparing base (ab15067) to head (3f206a2).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #137   +/-   ##
=======================================
  Coverage   91.72%   91.72%           
=======================================
  Files          14       14           
  Lines        2418     2418           
  Branches     2418     2418           
=======================================
  Hits         2218     2218           
  Misses        150      150           
  Partials       50       50           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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.

1 participant