Skip to content

tracing-subscriber tests fail with --all-features and chrono 0.4.42 #3405

@plugwash

Description

@plugwash

Bug Report

Version

tracing-subscriber 0.3.20 and latest git

Platform

Linux 5.10 (debian sid chroot)

Crates

tracing-subscriber

Description

git clone https://github.com/tokio-rs/tracing
cd tracing/tracing-subscriber/
cargo test --all-features

results in

failures:

---- fmt::time::chrono_crate::tests::test_chrono_format_time_local_default stdout ----

thread 'fmt::time::chrono_crate::tests::test_chrono_format_time_local_default' panicked at tracing-subscriber/src/fmt/time/chrono_crate.rs:158:9:
assertion failed: chrono::DateTime::parse_from_str(&buf, "%FT%H:%M:%S%.6f%z").is_ok()
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

---- fmt::time::chrono_crate::tests::test_chrono_format_time_utc_default stdout ----

thread 'fmt::time::chrono_crate::tests::test_chrono_format_time_utc_default' panicked at tracing-subscriber/src/fmt/time/chrono_crate.rs:137:9:
assertion failed: chrono::DateTime::parse_from_str(&buf, "%FT%H:%M:%S%.6f%z").is_ok()


failures:
    fmt::time::chrono_crate::tests::test_chrono_format_time_local_default
    fmt::time::chrono_crate::tests::test_chrono_format_time_utc_default

Downgrading chrono to 0.4.41 (with "cargo update -p chrono --precise 0.4.41") results in the tests passing.

Metadata

Metadata

Assignees

No one assigned

    Labels

    crate/subscriberRelated to the `tracing-subscriber` cratedependenciesPull requests that update a dependency fileneeds/reproA reproduction is required in order to fix a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions