Skip to content

test: test_tracing_db_profiling can fail on a chance substring match of its numeric sentinel #265

Backlog

Description

@jrosskopf

test_profiling_never_exports_a_filter_predicate_or_its_value asserts str(SENTINEL) not in server.raw_traces() with SENTINEL = 99899. The raw OTLP JSON holds 19-digit *UnixNano timestamps, durations and hex trace/span IDs, so 99899 can appear inside an unrelated number. It failed once on PR #258's CI (run 45393761849, job 138528585476) and passed 3/3 locally on the same commit; #258 does not touch tracing.

Fix: match the sentinel with digit boundaries (e.g. re.search(r'(?<![0-9A-Fa-f])99899(?![0-9A-Fa-f])', raw)), or use a sentinel that cannot occur in a timestamp, and apply the same to the server.log() check.

🤖 Generated with Claude Code

https://claude.ai/code/session_018txuxF9jXyiKakpUoXrKBi

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions