Skip to content

Stabilise the native-debugger tests - #13762

Merged
gasche merged 1 commit into
ocaml:trunkfrom
dra27:native-debugger
Jan 30, 2025
Merged

gasche merged 1 commit into
ocaml:trunkfrom
dra27:native-debugger

Conversation

@dra27

@dra27 dra27 commented Jan 30, 2025 •

Copy link
Copy Markdown
Member

We've been getting regular enough failures on the linux-lldb-amd64 test to be more than a little irritating:

What's odd is that it seems that when it fails, it fails repeatably on that workflow 🤷

The underlying problem is actually visible in https://github.com/ocaml/ocaml/actions/runs/12247121114/job/34164592459 from #13665 which is that the exact appearance of the line This version of LLDB has no plugin for the language "assembler". Inspection of frame variables will be limited. seems to be unstable. #13665 attempted to address it with:

gsub("This version of LLDB has no plugin for the language \"assembler\". Inspection of frame variables will be limited.", "")

but this isn't correct because it still prints a blank line, and I think that's what we're still seeing here - this blank line moving around, instead of the message.

Blank lines are uninteresting in general in these tests - we're looking at the traces and so forth as the interesting part, so I propose a simple blanket removal of all blank lines as part of the sanitisation.

There remains something stranger going on with the gdb test, but this is much less frequent and may actually be a canary for something that is not right (or at least not stable) in the runtime:

giving:

--- a/linux-gdb-amd64.reference
+++ b/linux-gdb-amd64.opt.output
@@ -25,7 +25,7 @@
 frame 7: main
 
 Breakpoint 3, ocaml_to_c (unit=1) at meander_c.c:XX
-5	    caml_callback(*caml_named_value
+4	value ocaml_to_c (value unit) {
 frame 0: ocaml_to_c
 frame 1: caml_c_call
 frame 2: camlMeander$omain

)

They're not interesting in terms of what's being analysed - in passing
this should deal with the instability of the location of the suppressed
lldb plugin message.

@gasche gasche left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the investigation!

@gasche
gasche merged commit 9661fa2 into ocaml:trunk Jan 30, 2025
@dra27
dra27 deleted the native-debugger branch January 30, 2025 16:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants