Skip to content

chore: reintroduce test_redis_storage_with_mocks test#9010

Merged
BrynCooke merged 3 commits intobryn/otel-0.31-migrationfrom
renee/otel-0.31-reintroduce-test_redis_storage_with_mocks
Mar 11, 2026
Merged

chore: reintroduce test_redis_storage_with_mocks test#9010
BrynCooke merged 3 commits intobryn/otel-0.31-migrationfrom
renee/otel-0.31-reintroduce-test_redis_storage_with_mocks

Conversation

@goto-bus-stop
Copy link
Copy Markdown
Member

struggling to get this to pass at the moment 🙈

@BrynCooke can you help me pleasepleaseplease 🥺


Checklist

Complete the checklist (and note appropriate exceptions) before the PR is marked ready-for-review.

  • PR description explains the motivation for the change and relevant context for reviewing
  • PR description links appropriate GitHub/Jira tickets (creating when necessary)
  • Changeset is included for user-facing changes
  • Changes are compatible1
  • Documentation2 completed
  • Performance impact assessed and acceptable
  • Metrics and logs are added3 and documented
  • Tests added and passing4
    • Unit tests
    • Integration tests
    • Manual tests, as necessary

Exceptions

Note any exceptions here

Notes

Footnotes

  1. It may be appropriate to bring upcoming changes to the attention of other (impacted) groups. Please endeavour to do this before seeking PR approval. The mechanism for doing this will vary considerably, so use your judgement as to how and when to do this.

  2. Configuration is an important part of many changes. Where applicable please try to document configuration examples.

  3. A lot of (if not most) features benefit from built-in observability and debug-level logs. Please read this guidance on metrics best-practices.

  4. Tick whichever testing boxes are applicable. If you are adding Manual Tests, please document the manual testing (extensively) in the Exceptions.

struggling to get this to pass at the moment 🙈
@apollo-librarian
Copy link
Copy Markdown
Contributor

apollo-librarian bot commented Mar 11, 2026

✅ Docs preview ready

The preview is ready to be viewed. View the preview

File Changes

0 new, 2 changed, 0 removed
* graphos/routing/(latest)/observability/router-telemetry-otel/apm-guides/zipkin/zipkin-traces.mdx
* graphos/routing/(latest)/observability/router-telemetry-otel/enabling-telemetry/standard-instruments.mdx

Build ID: 001de9f1e38bae796308dbfe
Build Logs: View logs

URL: https://www.apollographql.com/docs/deploy-preview/001de9f1e38bae796308dbfe


✅ AI Style Review — No Changes Detected

No MDX files were changed in this pull request.

Review Log: View detailed log

This review is AI-generated. Please use common sense when accepting these suggestions, as they may not always be accurate or appropriate for your specific context.

pub(crate) struct RedisMetricsCollector {
/// None until activate() is called
/// TODO(@goto-bus-stop): actually this should maybe be a Once?
abort_handle: parking_lot::Mutex<Option<AbortHandle>>,
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

let storage = RedisCacheStorage::from_mocks(simple_map.clone())
.await
.expect("Failed to create Redis storage with mocks");
storage.activate();
Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

I did add the .activate() call

Use with_current_meter_provider to allow propagation of meter provider to the tokio thread spawned in activate. Metrics tests need this.
@goto-bus-stop goto-bus-stop marked this pull request as ready for review March 11, 2026 14:55
@goto-bus-stop goto-bus-stop requested a review from a team as a code owner March 11, 2026 14:55
@BrynCooke BrynCooke merged commit 51f145c into bryn/otel-0.31-migration Mar 11, 2026
12 of 14 checks passed
@BrynCooke BrynCooke deleted the renee/otel-0.31-reintroduce-test_redis_storage_with_mocks branch March 11, 2026 15:46
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.

2 participants