Skip to content

Consider using serial_test for test modules using subscribers #4530

@eureka-cpu

Description

@eureka-cpu

Running the append_blob_client.rs tests produces these errors, but they can be avoided by running them serially with https://docs.rs/serial_test/latest/serial_test/:

     Running tests/append_blob_client.rs (target/debug/deps/append_blob_client-6634ef5a7bf23216)

running 11 tests
test test_append_block ... FAILED
test test_create_append_blob ... FAILED
test test_append_block_position_condition ... FAILED
test test_create_append_blob_with_tags ... FAILED
test test_create_append_blob_if_not_exists ... FAILED
test test_append_block_from_url_source_if_match ... FAILED
test test_append_block_max_size_condition ... FAILED
test test_append_block_transactional_checksums ... FAILED
test test_create_append_blob_content_headers ... FAILED
test test_seal_append_blob ... FAILED
test test_append_block_from_url ... FAILED

failures:

---- test_append_block stdout ----

thread 'test_append_block' (86742) panicked at /home/eureka/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-subscriber-0.3.23/src/fmt/mod.rs:520:14:
Unable to install global subscriber: SetGlobalDefaultError("a global default trace dispatcher has already been set")

---- test_create_append_blob stdout ----

thread 'test_create_append_blob' (86748) panicked at /home/eureka/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-subscriber-0.3.23/src/fmt/mod.rs:520:14:
Unable to install global subscriber: SetGlobalDefaultError("a global default trace dispatcher has already been set")

---- test_append_block_position_condition stdout ----

thread 'test_append_block_position_condition' (86746) panicked at /home/eureka/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-subscriber-0.3.23/src/fmt/mod.rs:520:14:
Unable to install global subscriber: SetGlobalDefaultError("a global default trace dispatcher has already been set")

---- test_create_append_blob_with_tags stdout ----

thread 'test_create_append_blob_with_tags' (86751) panicked at /home/eureka/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-subscriber-0.3.23/src/fmt/mod.rs:520:14:
Unable to install global subscriber: SetGlobalDefaultError("a global default trace dispatcher has already been set")

---- test_create_append_blob_if_not_exists stdout ----

thread 'test_create_append_blob_if_not_exists' (86750) panicked at /home/eureka/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-subscriber-0.3.23/src/fmt/mod.rs:520:14:
Unable to install global subscriber: SetGlobalDefaultError("a global default trace dispatcher has already been set")

---- test_append_block_from_url_source_if_match stdout ----

thread 'test_append_block_from_url_source_if_match' (86744) panicked at /home/eureka/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-subscriber-0.3.23/src/fmt/mod.rs:520:14:
Unable to install global subscriber: SetGlobalDefaultError("a global default trace dispatcher has already been set")

---- test_append_block_max_size_condition stdout ----

thread 'test_append_block_max_size_condition' (86745) panicked at /home/eureka/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-subscriber-0.3.23/src/fmt/mod.rs:520:14:
Unable to install global subscriber: SetGlobalDefaultError("a global default trace dispatcher has already been set")

---- test_append_block_transactional_checksums stdout ----

thread 'test_append_block_transactional_checksums' (86747) panicked at /home/eureka/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-subscriber-0.3.23/src/fmt/mod.rs:520:14:
Unable to install global subscriber: SetGlobalDefaultError("a global default trace dispatcher has already been set")

---- test_create_append_blob_content_headers stdout ----

thread 'test_create_append_blob_content_headers' (86749) panicked at /home/eureka/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-subscriber-0.3.23/src/fmt/mod.rs:520:14:
Unable to install global subscriber: SetGlobalDefaultError("a global default trace dispatcher has already been set")

---- test_seal_append_blob stdout ----

thread 'test_seal_append_blob' (86752) panicked at /home/eureka/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/tracing-subscriber-0.3.23/src/fmt/mod.rs:520:14:
Unable to install global subscriber: SetGlobalDefaultError("a global default trace dispatcher has already been set")

---- test_append_block_from_url stdout ----

thread 'test_append_block_from_url' (86743) panicked at sdk/core/azure_core_test/src/proxy/mod.rs:198:32:
endpoint not set
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

Metadata

Metadata

Labels

ClientThis issue points to a problem in the data-plane of the library.StorageStorage Service (Queues, Blobs, Files)customer-reportedIssues that are reported by GitHub users external to the Azure organization.needs-team-attentionWorkflow: This issue needs attention from Azure service team or SDK team

Type

No type
No fields configured for issues without a type.

Projects

Status
Untriaged

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions