File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ class InvalidJunitXMLError(Exception):
25
25
26
26
27
27
async def junit_to_spans (
28
- run_id : int ,
28
+ run_id : str ,
29
29
xml_content : bytes ,
30
30
test_language : str | None = None ,
31
31
test_framework : str | None = None ,
Original file line number Diff line number Diff line change @@ -55,10 +55,10 @@ def upload_spans(
55
55
raise UploadError (logstr .getvalue ())
56
56
57
57
58
- def connect_traces (run_id : int ) -> None :
58
+ def connect_traces (run_id : str ) -> None :
59
59
if detector .get_ci_provider () == "github_actions" :
60
60
console .print (
61
- f"::notice title=Mergify CI::MERGIFY_TEST_RUN_ID={ run_id . to_bytes ( 8 , 'big' ). hex () } " ,
61
+ f"::notice title=Mergify CI::MERGIFY_TEST_RUN_ID={ run_id } " ,
62
62
soft_wrap = True ,
63
63
)
64
64
@@ -73,7 +73,7 @@ async def upload( # noqa: PLR0913, PLR0917
73
73
) -> None :
74
74
spans = []
75
75
76
- run_id = junit .ID_GENERATOR .generate_span_id ()
76
+ run_id = junit .ID_GENERATOR .generate_span_id (). to_bytes ( 8 , "big" ). hex ()
77
77
78
78
for filename in files :
79
79
try :
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ async def test_parse(
26
26
_get_cicd_pipeline_run_attempt : mock .Mock ,
27
27
) -> None :
28
28
filename = pathlib .Path (__file__ ).parent / "junit_example.xml"
29
- run_id = 32312
29
+ run_id = ( 32312 ). to_bytes ( 8 , "big" ). hex ()
30
30
spans = await junit .junit_to_spans (
31
31
run_id ,
32
32
filename .read_bytes (),
You can’t perform that action at this time.
0 commit comments