Skip to content

Suppress warnings - #1187

Open
nobu wants to merge 1 commit into
ruby:masterfrom
nobu:suppress-test-warnings
Open

nobu wants to merge 1 commit into
ruby:masterfrom
nobu:suppress-test-warnings

Conversation

@nobu

@nobu nobu commented Oct 17, 2026

Copy link
Copy Markdown
Member
debug-20261017-26818-ntt75e.rb:1: warning: found '= literal' in conditional, should be ==

```
debug-20261017-26818-ntt75e.rb:1: warning: found '= literal' in conditional, should be ==
```
@cloudbees-smart-tests

cloudbees-smart-tests Bot commented Oct 17, 2026 •

Copy link
Copy Markdown

❌ 4/691 Tests Failed

/home/runner/work/debug/debug/test/protocol/catch_test.rb#test_set_exception_breakpoints_accepts_condition ⚠️ flaky
-------------------------
| All Protocol Messages |
-------------------------

V>D {"seq":2,"command":"initialize","arguments":{"clientID":"vscode","clientName":"Visual Studio Code","adapterID":"rdbg","pathFormat":"path","linesStartAt1":true,"columnsStartAt1":true,"supportsVariableType":true,"supportsVariablePaging":true,"supportsRunInTerminalRequest":true,"locale":"en-us","supportsProgressReporting":true,"supportsInvalidatedEvent":true,"supportsMemoryReferences":true},"type":"request"}
V>D {"seq":3,"command":"attach","arguments":{"type":"rdbg","name":"Attach with rdbg","request":"attach","rdbgPath":"/home/runner/work/debug/debug/exe/rdbg","debugPort":"/var/folders/kv/w1k6nh1x5fl7vx47b2pd005w0000gn/T/ruby-debug-sock-501/ruby-debug-naotto-8845","autoAttach":true,"__sessionId":"141d9c79-3669-43ec-ac1f-e62598c5a65a"},"type":"request"}
V>D {"seq":4,"command":"setFunctionBreakpoints","arguments":{"breakpoints":[]},"type":"request"}
V>D {"seq":5,"command":"setExceptionBreakpoints","arguments":{"filters":[],"filterOptions":[{"filterId":"RuntimeError"}]},"type":"request"}
V>D {"seq":6,"command":"configurationDone","type":"request"}
V>D {"type":"request","command":"setExceptionBreakpoints","arguments":{"filters":[],"filterOptions":[{"filterId":"RuntimeError","condition":"a == 1"}]},"seq":7}
V<D {"type":"response","command":"initialize","request_seq":2,"success":true,"message":"Success","body":{"supportsConfigurationDoneRequest":true,"supportsFunctionBreakpoints":true,"supportsConditionalBreakpoints":true,"supportTerminateDebuggee":true,"supportsTerminateRequest":true,"exceptionBreakpointFilters":[{"filter":"any","label":"rescue any exception","supportsCondition":true},{"filter":"RuntimeError","label":"rescue RuntimeError","supportsCondition":true}],"supportsExceptionFilterOptions":true,"supportsStepBack":true,"supportsEvaluateForHovers":true,"supportsCompletionsRequest":true},"seq":1}
V<D {"type":"event","event":"initialized","seq":2}
V<D {"type":"event","event":"output","body":{"category":"console","output":"Ruby REPL: You can run any Ruby expression here.\nNote that output to the STDOUT/ERR printed on the TERMINAL.\n[experimental]\n  `,COMMAND` runs `COMMAND` debug command (ex: `,info`).\n  `,help` to list all debug commands.\n"},"seq":3}
V<D {"type":"response","command":"attach","request_seq":3,"success":true,"message":"Success","seq":4}
V<D {"type":"response","command":"setFunctionBreakpoints","request_seq":4,"success":true,"message":"Success","seq":5}
V<D {"type":"response","command":"setExceptionBreakpoints","request_seq":5,"success":true,"message":"Success","body":{"breakpoints":[{"verified":true,"message":"#<DEBUGGER__::CatchBreakpoint:0x00007f1add238940 @pat=\"RuntimeError\", @key=[:catch, \"RuntimeError\"], @last_exc=nil, @deleted=false, @cond=nil, @command=nil, @path=nil, @tp=#<TracePoint:enabled>>"}]},"seq":6}
V<D {"type":"response","command":"configurationDone","request_seq":6,"success":true,"message":"Success","seq":7}
V<D {"type":"event","event":"stopped","body":{"reason":"pause","threadId":1,"allThreadsStopped":true},"seq":8}
V<D {"type":"response","command":"setExceptionBreakpoints","request_seq":7,"success":true,"message":"Success","body":{"breakpoints":[{"verified":true,"message":"#<DEBUGGER__::CatchBreakpoint:0x00007f1add238a80 @pat=\"RuntimeError\", @key=[:catch, \"RuntimeError\"], @last_exc=nil, @deleted=false, @cond=\"a == 1\", @command=nil, @path=nil, @tp=#<TracePoint:enabled>>"}]},"seq":9}
V>D {"type":"request","command":"continue","arguments":{"threadId":1},"seq":8}
V<D {"type":"response","command":"continue","request_seq":8,"success":true,"message":"Success","body":{"allThreadsContinued":true},"seq":10}
V<D {"type":"event","event":"stopped","body":{"reason":"exception","description":"#<RuntimeError: foo> is raised.","text":"#<RuntimeError: foo> is raised.","threadId":1,"allThreadsStopped":true},"seq":11}
V>D {"type":"request","command":"stackTrace","arguments":{"threadId":1,"startFrame":0,"levels":20},"seq":9}
V<D {"type":"response","command":"stackTrace","request_seq":9,"success":true,"message":"Success","body":{"stackFrames":[{"id":1,"name":"Object#foo","line":3,"column":1,"source":{"name":"debug-20261017-2814-34cie6.rb","path":"/tmp/debug-20261017-2814-34cie6.rb","sourceReference":0}},{"id":2,"name":"<main>","line":6,"column":1,"source":{"name":"debug-20261017-2814-34cie6.rb","path":"/tmp/debug-20261017-2814-34cie6.rb","sourceReference":0}}],"totalFrames":2},"seq":12}
V>D {"type":"request","command":"terminate","arguments":{},"seq":10}
V<D {"type":"response","command":"terminate","request_seq":10,"success":true,"message":"Success","seq":13}

--------------------------
| Last Protocol Messages |
--------------------------

{
  "type": "response",
  "command": "stackTrace",
  "request_seq": 9,
  "success": true,
  "message": "Success",
  "body": {
    "stackFrames": [
      {
        "id": 1,
        "name": "Object#foo",
        "line": 3,
        "column": 1,
        "source": {
          "name": "debug-20261017-2814-34cie6.rb",
          "path": "/tmp/debug-20261017-2814-34cie6.rb",
          "sourceReference": 0
        }
      },
      {
        "id": 2,
        "name": "<main>",
        "line": 6,
        "column": 1,
        "source": {
          "name": "debug-20261017-2814-34cie6.rb",
          "path": "/tmp/debug-20261017-2814-34cie6.rb",
          "sourceReference": 0
        }
      }
    ],
    "totalFrames": 2
  },
  "seq": 12
}
{
  "type": "request",
  "command": "terminate",
  "arguments": {},
  "seq": 10
}
{
  "type": "response",
  "command": "terminate",
  "request_seq": 10,
  "success": true,
  "message": "Success",
  "seq": 13
}

--------------------
| Debuggee Session |
--------------------

> DEBUGGER: Debugger can attach via UNIX domain socket (/run/user/1001/rdbg-2814-13)
> DEBUGGER: wait for debugger connection...
> DEBUGGER: Connected.
> DEBUGGER: Disconnected.


-------------------
| Failure Message |
-------------------

Expected the debuggee program to finish.
/home/runner/work/debug/debug/test/protocol/catch_test.rb#test_set_exception_breakpoints_sets_exception_breakpoints ⚠️ flaky
-------------------------
| All Protocol Messages |
-------------------------

C>D {"id":2,"method":"Runtime.enable","params":{}}
C>D {"id":3,"method":"Debugger.enable","params":{"maxScriptsCacheSize":10000000}}
C>D {"id":4,"method":"Debugger.setPauseOnExceptions","params":{"state":"none"}}
C>D {"id":5,"method":"Debugger.setAsyncCallStackDepth","params":{"maxDepth":32}}
C>D {"id":6,"method":"Profiler.enable","params":{}}
C>D {"id":7,"method":"Debugger.setBlackboxPatterns","params":{"patterns":[]}}
C>D {"id":8,"method":"Runtime.runIfWaitingForDebugger","params":{}}
C<D {"id":2,"result":{}}
C<D {"method":"Runtime.executionContextCreated","params":{"context":{"id":"49586c68e50c3427a6a27f8bf516a3de","origin":"http://127.0.0.1:44023","name":""}}}
C<D {"id":3,"result":{"debuggerId":"0.3253244226066264"}}
C<D {"id":4,"result":{}}
C<D {"method":"Debugger.scriptParsed","params":{"scriptId":"1","url":"/tmp/debug-20261017-2814-iyv87g.rb","startLine":0,"startColumn":0,"endLine":6,"endColumn":0,"executionContextId":1,"hash":"-4333448202708205185"}}
C<D {"method":"Debugger.paused","params":{"reason":"other","callFrames":[{"callFrameId":"79498081f80431ee50621fb003f32ebe","functionName":"<main>","functionLocation":{"lineNumber":0,"scriptId":"1"},"location":{"lineNumber":0,"scriptId":"1"},"url":"/tmp/debug-20261017-2814-iyv87g.rb","scopeChain":[{"type":"local","object":{"type":"object","objectId":"0.9837095368936132"}},{"type":"script","object":{"type":"object","objectId":"0.036726983736437346"}},{"type":"global","object":{"type":"object","objectId":"0.5250117376370004"}}],"this":{"type":"object"}}]}}
C>D {"method":"Debugger.setPauseOnExceptions","params":{"state":"all"},"id":9}
C<D {"id":8,"result":{}}
C<D {"id":9,"result":{}}
C>D {"method":"Debugger.resume","params":{},"id":10}
C<D {"id":10,"result":{}}
C<D {"method":"Debugger.resumed","params":{}}
C<D {"method":"Debugger.paused","params":{"reason":"exception","callFrames":[{"callFrameId":"7859daa2b676cd9613bc1fd2ec15186b","functionName":"Object#foo","functionLocation":{"lineNumber":0,"scriptId":"1"},"location":{"lineNumber":2,"scriptId":"1"},"url":"/tmp/debug-20261017-2814-iyv87g.rb","scopeChain":[{"type":"local","object":{"type":"object","objectId":"0.2553869867121603"}},{"type":"script","object":{"type":"object","objectId":"0.5769029686065683"}},{"type":"global","object":{"type":"object","objectId":"0.2590228077110557"}}],"this":{"type":"object"}},{"callFrameId":"50f749e6e1eb6fbc73adf098ff6e06e2","functionName":"<main>","functionLocation":{"lineNumber":0,"scriptId":"1"},"location":{"lineNumber":5,"scriptId":"1"},"url":"/tmp/debug-20261017-2814-iyv87g.rb","scopeChain":[{"type":"local","object":{"type":"object","objectId":"0.6684230536426098"}},{"type":"script","object":{"type":"object","objectId":"0.07093859813852577"}},{"type":"global","object":{"type":"object","objectId":"0.7369154856954875"}}],"this":{"type":"object"}}],"data":{"type":"object","description":"#<RuntimeError: foo>\n    /tmp/debug-20261017-2814-iyv87g.rb:3:in 'Object#foo'\n    /tmp/debug-20261017-2814-iyv87g.rb:6:in '<main>'\n","objectId":"0.07258654896534356","subtype":"error","className":"RuntimeError"}}}
C>D {"method":"Runtime.terminateExecution","params":{},"id":11}
C<D {"id":11,"result":{}}

--------------------------
| Last Protocol Messages |
--------------------------

{
  "method": "Debugger.paused",
  "params": {
    "reason": "exception",
    "callFrames": [
      {
        "callFrameId": "7859daa2b676cd9613bc1fd2ec15186b",
        "functionName": "Object#foo",
        "functionLocation": {
          "lineNumber": 0,
          "scriptId": "1"
        },
        "location": {
          "lineNumber": 2,
          "scriptId": "1"
        },
        "url": "/tmp/debug-20261017-2814-iyv87g.rb",
        "scopeChain": [
          {
            "type": "local",
            "object": {
              "type": "object",
              "objectId": "0.2553869867121603"
            }
          },
          {
            "type": "script",
            "object": {
              "type": "object",
              "objectId": "0.5769029686065683"
            }
          },
          {
            "type": "global",
            "object": {
              "type": "object",
              "objectId": "0.2590228077110557"
            }
          }
        ],
        "this": {
          "type": "object"
        }
      },
      {
        "callFrameId": "50f749e6e1eb6fbc73adf098ff6e06e2",
        "functionName": "<main>",
        "functionLocation": {
          "lineNumber": 0,
          "scriptId": "1"
        },
        "location": {
          "lineNumber": 5,
          "scriptId": "1"
        },
        "url": "/tmp/debug-20261017-2814-iyv87g.rb",
        "scopeChain": [
          {
            "type": "local",
            "object": {
              "type": "object",
              "objectId": "0.6684230536426098"
            }
          },
          {
            "type": "script",
            "object": {
              "type": "object",
              "objectId": "0.07093859813852577"
            }
          },
          {
            "type": "global",
            "object": {
              "type": "object",
              "objectId": "0.7369154856954875"
            }
          }
        ],
        "this": {
          "type": "object"
        }
      }
    ],
    "data": {
      "type": "object",
      "description": "#<RuntimeError: foo>\n    /tmp/debug-20261017-2814-iyv87g.rb:3:in 'Object#foo'\n    /tmp/debug-20261017-2814-iyv87g.rb:6:in '<main>'\n",
      "objectId": "0.07258654896534356",
      "subtype": "error",
      "className": "RuntimeError"
    }
  }
}
{
  "method": "Runtime.terminateExecution",
  "params": {},
  "id": 11
}
{
  "id": 11,
  "result": {}
}

--------------------
| Debuggee Session |
--------------------

> DEBUGGER: Debugger can attach via TCP/IP (127.0.0.1:44023)
> DEBUGGER: wait for debugger connection...
> DEBUGGER: Connected.
> DEBUGGER: Disconnected.
> DEBUGGER: Connected.
> DEBUGGER: Disconnected.


-------------------
| Failure Message |
-------------------

Expected the debuggee program to finish.
/home/runner/work/debug/debug/test/protocol/hover_raw_dap_test.rb#test_hover_works_correctly ⚠️ flaky
-------------------------
| All Protocol Messages |
-------------------------

V>D {"seq":1,"command":"initialize","arguments":{"clientID":"vscode","clientName":"Visual Studio Code","adapterID":"rdbg","pathFormat":"path","linesStartAt1":true,"columnsStartAt1":true,"supportsVariableType":true,"supportsVariablePaging":true,"supportsRunInTerminalRequest":true,"locale":"en-us","supportsProgressReporting":true,"supportsInvalidatedEvent":true,"supportsMemoryReferences":true},"type":"request"}
V>D {"seq":2,"command":"attach","arguments":{"type":"rdbg","name":"Attach with rdbg","request":"attach","rdbgPath":"/home/runner/work/debug/debug/exe/rdbg","debugPort":"/var/folders/kv/w1k6nh1x5fl7vx47b2pd005w0000gn/T/ruby-debug-sock-501/ruby-debug-naotto-8845","autoAttach":true,"__sessionId":"141d9c79-3669-43ec-ac1f-e62598c5a65a"},"type":"request"}
V>D {"seq":3,"command":"setFunctionBreakpoints","arguments":{"breakpoints":[]},"type":"request"}
V>D {"seq":4,"command":"setExceptionBreakpoints","arguments":{"filters":[],"filterOptions":[{"filterId":"RuntimeError"}]},"type":"request"}
V>D {"seq":5,"command":"configurationDone","type":"request"}
V<D {"type":"response","command":"initialize","request_seq":1,"success":true,"message":"Success","body":{"supportsConfigurationDoneRequest":true,"supportsFunctionBreakpoints":true,"supportsConditionalBreakpoints":true,"supportTerminateDebuggee":true,"supportsTerminateRequest":true,"exceptionBreakpointFilters":[{"filter":"any","label":"rescue any exception","supportsCondition":true},{"filter":"RuntimeError","label":"rescue RuntimeError","supportsCondition":true}],"supportsExceptionFilterOptions":true,"supportsStepBack":true,"supportsEvaluateForHovers":true,"supportsCompletionsRequest":true},"seq":1}
V<D {"type":"event","event":"initialized","seq":2}
V<D {"type":"event","event":"output","body":{"category":"console","output":"Ruby REPL: You can run any Ruby expression here.\nNote that output to the STDOUT/ERR printed on the TERMINAL.\n[experimental]\n  `,COMMAND` runs `COMMAND` debug command (ex: `,info`).\n  `,help` to list all debug commands.\n"},"seq":3}
V<D {"type":"response","command":"attach","request_seq":2,"success":true,"message":"Success","seq":4}
V<D {"type":"response","command":"setFunctionBreakpoints","request_seq":3,"success":true,"message":"Success","seq":5}
V<D {"type":"response","command":"setExceptionBreakpoints","request_seq":4,"success":true,"message":"Success","body":{"breakpoints":[{"verified":true,"message":"#<DEBUGGER__::CatchBreakpoint:0x00007f91597a8a40 @pat=\"RuntimeError\", @key=[:catch, \"RuntimeError\"], @last_exc=nil, @deleted=false, @cond=nil, @command=nil, @path=nil, @tp=#<TracePoint:enabled>>"}]},"seq":6}
V<D {"type":"response","command":"configurationDone","request_seq":5,"success":true,"message":"Success","seq":7}
V<D {"type":"event","event":"stopped","body":{"reason":"pause","threadId":1,"allThreadsStopped":true},"seq":8}
V>D {"seq":6,"command":"threads","type":"request"}
V<D {"type":"response","command":"threads","request_seq":6,"success":true,"message":"Success","body":{"threads":[{"id":1,"name":"#1 /tmp/debug-20261017-2814-f4jild.rb:1:in '<main>'"}]},"seq":9}
V>D {"seq":7,"command":"threads","type":"request"}
V<D {"type":"response","command":"threads","request_seq":7,"success":true,"message":"Success","body":{"threads":[{"id":1,"name":"#1 /tmp/debug-20261017-2814-f4jild.rb:1:in '<main>'"}]},"seq":10}
V>D {"seq":8,"command":"stackTrace","arguments":{"threadId":1,"startFrame":0,"levels":20},"type":"request"}
V<D {"type":"response","command":"stackTrace","request_seq":8,"success":true,"message":"Success","body":{"stackFrames":[{"id":1,"name":"<main>","line":1,"column":1,"source":{"name":"debug-20261017-2814-f4jild.rb","path":"/tmp/debug-20261017-2814-f4jild.rb","sourceReference":0}}],"totalFrames":1},"seq":11}
V>D {"seq":9,"command":"scopes","arguments":{"frameId":1},"type":"request"}
V<D {"type":"response","command":"scopes","request_seq":9,"success":true,"message":"Success","body":{"scopes":[{"name":"Local variables","presentationHint":"locals","namedVariables":5,"indexedVariables":0,"expensive":false,"variablesReference":2},{"name":"Global variables","presentationHint":"globals","variablesReference":1,"namedVariables":41,"indexedVariables":0,"expensive":false}]},"seq":12}
V>D {"seq":10,"command":"variables","arguments":{"variablesReference":2},"type":"request"}
V<D {"type":"response","command":"variables","request_seq":10,"success":true,"message":"Success","body":{"variables":[{"name":"%self","value":"main","type":"Object","variablesReference":3,"indexedVariables":0,"namedVariables":1},{"name":"a","value":"nil","type":"NilClass","variablesReference":4,"indexedVariables":0,"namedVariables":1},{"name":"b","value":"nil","type":"NilClass","variablesReference":5,"indexedVariables":0,"namedVariables":1},{"name":"c","value":"nil","type":"NilClass","variablesReference":6,"indexedVariables":0,"namedVariables":1},{"name":"d","value":"nil","type":"NilClass","variablesReference":7,"indexedVariables":0,"namedVariables":1},{"name":"e","value":"nil","type":"NilClass","variablesReference":8,"indexedVariables":0,"namedVariables":1}]},"seq":13}
V>D {"seq":11,"command":"setBreakpoints","arguments":{"source":{"name":"target.rb","path":"/tmp/debug-20261017-2814-f4jild.rb","sourceReference":0},"lines":[4],"breakpoints":[{"line":4}],"sourceModified":false},"type":"request"}
V<D {"type":"response","command":"setBreakpoints","request_seq":11,"success":true,"message":"Success","body":{"breakpoints":[{"verified":true}]},"seq":14}
V>D {"seq":12,"command":"continue","arguments":{"threadId":1},"type":"request"}
V<D {"type":"response","command":"continue","request_seq":12,"success":true,"message":"Success","body":{"allThreadsContinued":true},"seq":15}
V<D {"type":"event","event":"stopped","body":{"reason":"breakpoint","description":" BP - Line  /tmp/debug-20261017-2814-f4jild.rb:4 (line)","text":" BP - Line  /tmp/debug-20261017-2814-f4jild.rb:4 (line)","threadId":1,"allThreadsStopped":true},"seq":16}
V>D {"seq":13,"command":"threads","type":"request"}
V<D {"type":"response","command":"threads","request_seq":13,"success":true,"message":"Success","body":{"threads":[{"id":1,"name":"#1 /tmp/debug-20261017-2814-f4jild.rb:4:in '<main>'"}]},"seq":17}
V>D {"seq":14,"command":"stackTrace","arguments":{"threadId":1,"startFrame":0,"levels":20},"type":"request"}
V<D {"type":"response","command":"stackTrace","request_seq":14,"success":true,"message":"Success","body":{"stackFrames":[{"id":2,"name":"<main>","line":4,"column":1,"source":{"name":"debug-20261017-2814-f4jild.rb","path":"/tmp/debug-20261017-2814-f4jild.rb","sourceReference":0}}],"totalFrames":1},"seq":18}
V>D {"seq":15,"command":"scopes","arguments":{"frameId":2},"type":"request"}
V<D {"type":"response","command":"scopes","request_seq":15,"success":true,"message":"Success","body":{"scopes":[{"name":"Local variables","presentationHint":"locals","namedVariables":5,"indexedVariables":0,"expensive":false,"variablesReference":9},{"name":"Global variables","presentationHint":"globals","variablesReference":1,"namedVariables":41,"indexedVariables":0,"expensive":false}]},"seq":19}
V>D {"seq":16,"command":"variables","arguments":{"variablesReference":9},"type":"request"}
V<D {"type":"response","command":"variables","request_seq":16,"success":true,"message":"Success","body":{"variables":[{"name":"%self","value":"main","type":"Object","variablesReference":10,"indexedVariables":0,"namedVariables":1},{"name":"a","value":"1","type":"Integer","variablesReference":11,"indexedVariables":0,"namedVariables":1},{"name":"b","value":"2","type":"Integer","variablesReference":12,"indexedVariables":0,"namedVariables":1},{"name":"c","value":"3","type":"Integer","variablesReference":13,"indexedVariables":0,"namedVariables":1},{"name":"d","value":"nil","type":"NilClass","variablesReference":14,"indexedVariables":0,"namedVariables":1},{"name":"e","value":"nil","type":"NilClass","variablesReference":15,"indexedVariables":0,"namedVariables":1}]},"seq":20}
V>D {"seq":17,"command":"evaluate","arguments":{"expression":"b","frameId":2,"context":"hover"},"type":"request"}
V<D {"type":"response","command":"evaluate","request_seq":17,"success":true,"message":"Success","body":{"result":"2","type":"Integer","variablesReference":16,"indexedVariables":0,"namedVariables":1},"seq":21}
V>D {"seq":18,"command":"variables","arguments":{"variablesReference":16},"type":"request"}
V<D {"type":"response","command":"variables","request_seq":18,"success":true,"message":"Success","body":{"variables":[{"name":"#class","value":"Integer","type":"Class","variablesReference":17,"indexedVariables":0,"namedVariables":1}]},"seq":22}
V>D {"seq":19,"command":"variables","arguments":{"variablesReference":17},"type":"request"}
V<D {"type":"response","command":"variables","request_seq":19,"success":true,"message":"Success","body":{"variables":[{"name":"#class","value":"Class","type":"Class","variablesReference":18,"indexedVariables":0,"namedVariables":1},{"name":"%ancestors","value":"[Numeric, Comparable, Object, JSON::GeneratorMethods, PP::ObjectMixin, DEBUGGER__::TrapInterceptor, Kernel, BasicObject]","type":"Array","variablesReference":19,"indexedVariables":8,"namedVariables":0}]},"seq":23}

--------------------------
| Last Protocol Messages |
--------------------------

{
  "seq": 18,
  "command": "variables",
  "arguments": {
    "variablesReference": 16
  },
  "type": "request"
}
{
  "type": "response",
  "command": "variables",
  "request_seq": 18,
  "success": true,
  "message": "Success",
  "body": {
    "variables": [
      {
        "name": "#class",
        "value": "Integer",
        "type": "Class",
        "variablesReference": 17,
        "indexedVariables": 0,
        "namedVariables": 1
      }
    ]
  },
  "seq": 22
}
{
  "seq": 19,
  "command": "variables",
  "arguments": {
    "variablesReference": 17
  },
  "type": "request"
}
{
  "type": "response",
  "command": "variables",
  "request_seq": 19,
  "success": true,
  "message": "Success",
  "body": {
    "variables": [
      {
        "name": "#class",
        "value": "Class",
        "type": "Class",
        "variablesReference": 18,
        "indexedVariables": 0,
        "namedVariables": 1
      },
      {
        "name": "%ancestors",
        "value": "[Numeric, Comparable, Object, JSON::GeneratorMethods, PP::ObjectMixin, DEBUGGER__::TrapInterceptor, Kernel, BasicObject]",
        "type": "Array",
        "variablesReference": 19,
        "indexedVariables": 8,
        "namedVariables": 0
      }
    ]
  },
  "seq": 23
}

--------------------
| Debuggee Session |
--------------------

> DEBUGGER: Debugger can attach via UNIX domain socket (/run/user/1001/rdbg-2814-34)
> DEBUGGER: wait for debugger connection...
> DEBUGGER: Connected.


-------------------
| Failure Message |
-------------------

expected:
{
  "type": "response",
  "command": "variables",
  "request_seq": 19,
  "success": true,
  "message": "Success",
  "body": {
    "variables": [
      {
        "name": "#class",
        "value": "Class",
        "type": "Class",
        "variablesReference": 18,
        "indexedVariables": 0,
        "namedVariables": "(?-mix:\\d+)"
      },
      {
        "name": "%ancestors",
        "value": "(?-mix:JSON::Ext::Generator::GeneratorMethods::Integer)",
        "type": "Array",
        "variablesReference": 19,
        "indexedVariables": "(?-mix:(9|10))",
        "namedVariables": "(?-mix:\\d+)"
      }
    ]
  }
}

result:
{
  "type": "response",
  "command": "variables",
  "request_seq": 19,
  "success": true,
  "message": "Success",
  "body": {
    "variables": [
      {
        "name": "#class",
        "value": "Class",
        "type": "Class",
        "variablesReference": 18,
        "indexedVariables": 0,
        "namedVariables": 1
      },
      {
        "name": "%ancestors",
        "value": "[Numeric, Comparable, Object, JSON::GeneratorMethods, PP::ObjectMixin, DEBUGGER__::TrapInterceptor, Kernel, BasicObject]",
        "type": "Array",
        "variablesReference": 19,
        "indexedVariables": 8,
        "namedVariables": 0
      }
    ]
  },
  "seq": 23
}.
</JSON::Ext::Generator::GeneratorMethods::Integer/> was expected to be =~
<"[Numeric, Comparable, Object, JSON::GeneratorMethods, PP::ObjectMixin, DEBUGGER__::TrapInterceptor, Kernel, BasicObject]">.
/home/runner/work/debug/debug/test/protocol/hover_raw_dap_test.rb#test_1641198331 ⚠️ flaky
-------------------------
| All Protocol Messages |
-------------------------

V>D {"seq":1,"command":"initialize","arguments":{"clientID":"vscode","clientName":"Visual Studio Code","adapterID":"rdbg","pathFormat":"path","linesStartAt1":true,"columnsStartAt1":true,"supportsVariableType":true,"supportsVariablePaging":true,"supportsRunInTerminalRequest":true,"locale":"en-us","supportsProgressReporting":true,"supportsInvalidatedEvent":true,"supportsMemoryReferences":true},"type":"request"}
V>D {"seq":2,"command":"attach","arguments":{"type":"rdbg","name":"Attach with rdbg","request":"attach","rdbgPath":"/home/runner/work/debug/debug/exe/rdbg","debugPort":"/var/folders/kv/w1k6nh1x5fl7vx47b2pd005w0000gn/T/ruby-debug-sock-501/ruby-debug-naotto-8845","autoAttach":true,"__sessionId":"141d9c79-3669-43ec-ac1f-e62598c5a65a"},"type":"request"}
V>D {"seq":3,"command":"setFunctionBreakpoints","arguments":{"breakpoints":[]},"type":"request"}
V>D {"seq":4,"command":"setExceptionBreakpoints","arguments":{"filters":[],"filterOptions":[{"filterId":"RuntimeError"}]},"type":"request"}
V>D {"seq":5,"command":"configurationDone","type":"request"}
V<D {"type":"response","command":"initialize","request_seq":1,"success":true,"message":"Success","body":{"supportsConfigurationDoneRequest":true,"supportsFunctionBreakpoints":true,"supportsConditionalBreakpoints":true,"supportTerminateDebuggee":true,"supportsTerminateRequest":true,"exceptionBreakpointFilters":[{"filter":"any","label":"rescue any exception","supportsCondition":true},{"filter":"RuntimeError","label":"rescue RuntimeError","supportsCondition":true}],"supportsExceptionFilterOptions":true,"supportsStepBack":true,"supportsEvaluateForHovers":true,"supportsCompletionsRequest":true},"seq":1}
V<D {"type":"event","event":"initialized","seq":2}
V<D {"type":"event","event":"output","body":{"category":"console","output":"Ruby REPL: You can run any Ruby expression here.\nNote that output to the STDOUT/ERR printed on the TERMINAL.\n[experimental]\n  `,COMMAND` runs `COMMAND` debug command (ex: `,info`).\n  `,help` to list all debug commands.\n"},"seq":3}
V<D {"type":"response","command":"attach","request_seq":2,"success":true,"message":"Success","seq":4}
V<D {"type":"response","command":"setFunctionBreakpoints","request_seq":3,"success":true,"message":"Success","seq":5}
V<D {"type":"response","command":"setExceptionBreakpoints","request_seq":4,"success":true,"message":"Success","body":{"breakpoints":[{"verified":true,"message":"#<DEBUGGER__::CatchBreakpoint:0x00007fe9f0166548 @pat=\"RuntimeError\", @key=[:catch, \"RuntimeError\"], @last_exc=nil, @deleted=false, @cond=nil, @command=nil, @path=nil, @tp=#<TracePoint:enabled>>"}]},"seq":6}
V<D {"type":"response","command":"configurationDone","request_seq":5,"success":true,"message":"Success","seq":7}
V<D {"type":"event","event":"stopped","body":{"reason":"pause","threadId":1,"allThreadsStopped":true},"seq":8}
V>D {"seq":6,"command":"threads","type":"request"}
V<D {"type":"response","command":"threads","request_seq":6,"success":true,"message":"Success","body":{"threads":[{"id":1,"name":"#1 /tmp/debug-20261017-2867-nvaxne.rb:1:in `<main>'"}]},"seq":9}
V>D {"seq":7,"command":"threads","type":"request"}
V<D {"type":"response","command":"threads","request_seq":7,"success":true,"message":"Success","body":{"threads":[{"id":1,"name":"#1 /tmp/debug-20261017-2867-nvaxne.rb:1:in `<main>'"}]},"seq":10}
V>D {"seq":8,"command":"stackTrace","arguments":{"threadId":1,"startFrame":0,"levels":20},"type":"request"}
V<D {"type":"response","command":"stackTrace","request_seq":8,"success":true,"message":"Success","body":{"stackFrames":[{"id":1,"name":"<main>","line":1,"column":1,"source":{"name":"debug-20261017-2867-nvaxne.rb","path":"/tmp/debug-20261017-2867-nvaxne.rb","sourceReference":0}}],"totalFrames":1},"seq":11}
V>D {"seq":9,"command":"scopes","arguments":{"frameId":1},"type":"request"}
V<D {"type":"response","command":"scopes","request_seq":9,"success":true,"message":"Success","body":{"scopes":[{"name":"Local variables","presentationHint":"locals","namedVariables":1,"indexedVariables":0,"expensive":false,"variablesReference":2},{"name":"Global variables","presentationHint":"globals","variablesReference":1,"namedVariables":41,"indexedVariables":0,"expensive":false}]},"seq":12}
V>D {"seq":10,"command":"variables","arguments":{"variablesReference":2},"type":"request"}
V<D {"type":"response","command":"variables","request_seq":10,"success":true,"message":"Success","body":{"variables":[{"name":"%self","value":"main","type":"Object","variablesReference":3,"indexedVariables":0,"namedVariables":1},{"name":"ghi","value":"nil","type":"NilClass","variablesReference":4,"indexedVariables":0,"namedVariables":1}]},"seq":13}
V>D {"seq":11,"command":"setBreakpoints","arguments":{"source":{"name":"target.rb","path":"/tmp/debug-20261017-2867-nvaxne.rb","sourceReference":0},"lines":[29],"breakpoints":[{"line":29}],"sourceModified":false},"type":"request"}
V<D {"type":"response","command":"setBreakpoints","request_seq":11,"success":true,"message":"Success","body":{"breakpoints":[{"verified":true}]},"seq":14}
V>D {"seq":12,"command":"continue","arguments":{"threadId":1},"type":"request"}
V<D {"type":"response","command":"continue","request_seq":12,"success":true,"message":"Success","body":{"allThreadsContinued":true},"seq":15}
V<D {"type":"event","event":"stopped","body":{"reason":"breakpoint","description":" BP - Line  /tmp/debug-20261017-2867-nvaxne.rb:29 (line)","text":" BP - Line  /tmp/debug-20261017-2867-nvaxne.rb:29 (line)","threadId":1,"allThreadsStopped":true},"seq":16}
V>D {"seq":13,"command":"threads","type":"request"}
V<D {"type":"response","command":"threads","request_seq":13,"success":true,"message":"Success","body":{"threads":[{"id":1,"name":"#1 /tmp/debug-20261017-2867-nvaxne.rb:29:in `<main>'"}]},"seq":17}
V>D {"seq":14,"command":"stackTrace","arguments":{"threadId":1,"startFrame":0,"levels":20},"type":"request"}
V<D {"type":"response","command":"stackTrace","request_seq":14,"success":true,"message":"Success","body":{"stackFrames":[{"id":2,"name":"<main>","line":29,"column":1,"source":{"name":"debug-20261017-2867-nvaxne.rb","path":"/tmp/debug-20261017-2867-nvaxne.rb","sourceReference":0}}],"totalFrames":1},"seq":18}
V>D {"seq":15,"command":"scopes","arguments":{"frameId":2},"type":"request"}
V<D {"type":"response","command":"scopes","request_seq":15,"success":true,"message":"Success","body":{"scopes":[{"name":"Local variables","presentationHint":"locals","namedVariables":1,"indexedVariables":0,"expensive":false,"variablesReference":5},{"name":"Global variables","presentationHint":"globals","variablesReference":1,"namedVariables":41,"indexedVariables":0,"expensive":false}]},"seq":19}
V>D {"seq":16,"command":"variables","arguments":{"variablesReference":5},"type":"request"}
V<D {"type":"response","command":"variables","request_seq":16,"success":true,"message":"Success","body":{"variables":[{"name":"%self","value":"main","type":"Object","variablesReference":6,"indexedVariables":0,"namedVariables":1},{"name":"ghi","value":"nil","type":"NilClass","variablesReference":7,"indexedVariables":0,"namedVariables":1}]},"seq":20}
V>D {"seq":17,"command":"evaluate","arguments":{"expression":"Abc","frameId":2,"context":"hover"},"type":"request"}
V<D {"type":"response","command":"evaluate","request_seq":17,"success":true,"message":"Success","body":{"result":"Abc","type":"Module","variablesReference":8,"indexedVariables":0,"namedVariables":1},"seq":21}
V>D {"seq":18,"command":"variables","arguments":{"variablesReference":8},"type":"request"}
V<D {"type":"response","command":"variables","request_seq":18,"success":true,"message":"Success","body":{"variables":[{"name":"#class","value":"Module","type":"Class","variablesReference":9,"indexedVariables":0,"namedVariables":1},{"name":"%ancestors","value":"[]","type":"Array","variablesReference":0,"indexedVariables":0,"namedVariables":0}]},"seq":22}
V>D {"seq":19,"command":"evaluate","arguments":{"expression":"Abc::Def123","frameId":2,"context":"hover"},"type":"request"}
V<D {"type":"response","command":"evaluate","request_seq":19,"success":true,"message":"Success","body":{"result":"Abc::Def123","type":"Class","variablesReference":10,"indexedVariables":0,"namedVariables":1},"seq":23}
V>D {"seq":20,"command":"variables","arguments":{"variablesReference":10},"type":"request"}
V<D {"type":"response","command":"variables","request_seq":20,"success":true,"message":"Success","body":{"variables":[{"name":"#class","value":"Class","type":"Class","variablesReference":11,"indexedVariables":0,"namedVariables":1},{"name":"%ancestors","value":"[#<Module:0x0000563021f5cec0>, Object, JSON::Ext::Generator::GeneratorMethods::Object, DEBUGGER__::TrapInterceptor, DEBUGGER__::ForkInterceptor, PP::ObjectMixin, Kernel, BasicObject...","type":"Array","variablesReference":12,"indexedVariables":8,"namedVariables":0}]},"seq":24}

--------------------------
| Last Protocol Messages |
--------------------------

{
  "seq": 19,
  "command": "evaluate",
  "arguments": {
    "expression": "Abc::Def123",
    "frameId": 2,
    "context": "hover"
  },
  "type": "request"
}
{
  "type": "response",
  "command": "evaluate",
  "request_seq": 19,
  "success": true,
  "message": "Success",
  "body": {
    "result": "Abc::Def123",
    "type": "Class",
    "variablesReference": 10,
    "indexedVariables": 0,
    "namedVariables": 1
  },
  "seq": 23
}
{
  "seq": 20,
  "command": "variables",
  "arguments": {
    "variablesReference": 10
  },
  "type": "request"
}
{
  "type": "response",
  "command": "variables",
  "request_seq": 20,
  "success": true,
  "message": "Success",
  "body": {
    "variables": [
      {
        "name": "#class",
        "value": "Class",
        "type": "Class",
        "variablesReference": 11,
        "indexedVariables": 0,
        "namedVariables": 1
      },
      {
        "name": "%ancestors",
        "value": "[#<Module:0x0000563021f5cec0>, Object, JSON::Ext::Generator::GeneratorMethods::Object, DEBUGGER__::TrapInterceptor, DEBUGGER__::ForkInterceptor, PP::ObjectMixin, Kernel, BasicObject...",
        "type": "Array",
        "variablesReference": 12,
        "indexedVariables": 8,
        "namedVariables": 0
      }
    ]
  },
  "seq": 24
}

--------------------
| Debuggee Session |
--------------------

> DEBUGGER: Debugger can attach via UNIX domain socket (/run/user/1001/rdbg-2867-34)
> DEBUGGER: wait for debugger connection...
> DEBUGGER: Connected.


-------------------
| Failure Message |
-------------------

expected:
{
  "type": "response",
  "command": "variables",
  "request_seq": 20,
  "success": true,
  "message": "Success",
  "body": {
    "variables": [
      {
        "name": "#class",
        "value": "Class",
        "type": "Class",
        "variablesReference": 11,
        "indexedVariables": 0,
        "namedVariables": "(?-mix:\\d+)"
      },
      {
        "name": "%ancestors",
        "value": "(?-mix:Object)",
        "type": "Array",
        "variablesReference": 12,
        "indexedVariables": "(?-mix:(6|7))",
        "namedVariables": "(?-mix:\\d+)"
      }
    ]
  }
}

result:
{
  "type": "response",
  "command": "variables",
  "request_seq": 20,
  "success": true,
  "message": "Success",
  "body": {
    "variables": [
      {
        "name": "#class",
        "value": "Class",
        "type": "Class",
        "variablesReference": 11,
        "indexedVariables": 0,
        "namedVariables": 1
      },
      {
        "name": "%ancestors",
        "value": "[#<Module:0x0000563021f5cec0>, Object, JSON::Ext::Generator::GeneratorMethods::Object, DEBUGGER__::TrapInterceptor, DEBUGGER__::ForkInterceptor, PP::ObjectMixin, Kernel, BasicObject...",
        "type": "Array",
        "variablesReference": 12,
        "indexedVariables": 8,
        "namedVariables": 0
      }
    ]
  },
  "seq": 24
}.
</(6|7)/> was expected to be =~
<"8">.

[-> View Test suite health in main branch]

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant