Skip to content

Strange issues with tracing tests but only when run as an entire SUITE #87

Description

@chiroptical

An example of the failure is here: https://github.com/erleans/pgo/actions/runs/10596363707/job/29364169996

Essentially, the only way I could reproduce this was running rebar3 ct. If you run rebar3 ct --suite=test/pgo_trace_SUITE.erl it will run fine. I also only experienced this failure with int4range, but int4 worked fine. Also note there are int4range tests which work without tracing here

int4_range(_Config) ->

The error,

%%% pgo_trace_SUITE ==> {function_clause,
    [{pg_range,decode_range,
         [2,<<0,0,0,4,0,0,0,1,0,0,0,4,0,0,0,2>>,unknown_oid],
         []},
     {pgo_protocol,decode_row0,5,
         [{file,"/home/runner/work/pgo/pgo/src/pgo_protocol.erl"},{line,591}]},
     {pgo_handler,receive_loop0,6,
         [{file,"/home/runner/work/pgo/pgo/src/pgo_handler.erl"},{line,456}]},
     {pgo_handler,extended_query,6,
         [{file,"/home/runner/work/pgo/pgo/src/pgo_handler.erl"},{line,363}]},
     {otel_tracer_default,with_span,5,
         [{file,
              "/home/runner/work/pgo/pgo/_build/test/lib/opentelemetry/src/otel_tracer_default.erl"},
          {line,47}]},
     {pgo,query,3,[{file,"/home/runner/work/pgo/pgo/src/pgo.erl"},{line,103}]},
     {pgo_trace_SUITE,trace_with_parent_query,1,
         [{file,"/home/runner/work/pgo/pgo/test/pgo_trace_SUITE.erl"},
          {line,67}]},
     {test_server,ts_tc,3,[{file,"test_server.erl"},{line,1782}]}]}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions