Skip to content

ws breaks Nim CI #33

Description

@ringabout

Ref nim-lang/Nim#18804

https://github.com/nim-lang/Nim/pull/18804/checks?check_run_id=3513974159

  Failure: reBuildFailed
  nimble test
    Verifying dependencies for ws@0.4.4
    Compiling /Users/runner/work/Nim/Nim/pkgstemp/ws/tests/test (from package ws) using c backend
  /Users/runner/work/Nim/Nim/pkgstemp/ws/src/ws.nim(321, 48) template/generic instantiation of `async` from here
  /Users/runner/work/Nim/Nim/pkgstemp/ws/src/ws.nim(348, 32) Warning: conversion to enum with holes is unsafe: Opcode(b0 and 0x0000000F) [HoleEnumConv]
     Success: Execution finished
    Verifying dependencies for ws@0.4.4
    Compiling /Users/runner/work/Nim/Nim/pkgstemp/ws/tests/test_404 (from package ws) using c backend
  /Users/runner/work/Nim/Nim/pkgstemp/ws/src/ws.nim(321, 48) template/generic instantiation of `async` from here
  /Users/runner/work/Nim/Nim/pkgstemp/ws/src/ws.nim(348, 32) Warning: conversion to enum with holes is unsafe: Opcode(b0 and 0x0000000F) [HoleEnumConv]
     Success: Execution finished
    Verifying dependencies for ws@0.4.4
    Compiling /Users/runner/work/Nim/Nim/pkgstemp/ws/tests/test_disconnects (from package ws) using c backend
  /Users/runner/work/Nim/Nim/pkgstemp/ws/src/ws.nim(321, 48) template/generic instantiation of `async` from here
  /Users/runner/work/Nim/Nim/pkgstemp/ws/src/ws.nim(348, 32) Warning: conversion to enum with holes is unsafe: Opcode(b0 and 0x0000000F) [HoleEnumConv]
  /Users/runner/work/Nim/Nim/pkgstemp/ws/tests/test_disconnects.nim(14, 31) template/generic instantiation of `async` from here
  /Users/runner/work/Nim/Nim/lib/pure/asyncmacro.nim(200, 31) Warning: 'serverCbIter' is not GC-safe as it accesses 'curWs' which is a global using GC'ed memory [GcUnsafe2]
  gameLoop:0
  gameLoop:1
  (Text, "Welcome to simple echo server")
  reading...
  gameLoop:2
  gameLoop:3
  gameLoop:4
  (Close, "")
  serverCb exception:Socket closed
  clientLoop exception:Socket closed
  gameLoop:5
     Success: Execution finished
    Verifying dependencies for ws@0.4.4
    Compiling /Users/runner/work/Nim/Nim/pkgstemp/ws/tests/test_httptowsendpoint (from package ws) using c backend
  /Users/runner/work/Nim/Nim/pkgstemp/ws/src/ws.nim(321, 48) template/generic instantiation of `async` from here
  /Users/runner/work/Nim/Nim/pkgstemp/ws/src/ws.nim(348, 32) Warning: conversion to enum with holes is unsafe: Opcode(b0 and 0x0000000F) [HoleEnumConv]
  success: got 404 because not /ws
  success: got 400 because made http call to /ws
     Success: Execution finished
    Verifying dependencies for ws@0.4.4
    Compiling /Users/runner/work/Nim/Nim/pkgstemp/ws/tests/test_protocol (from package ws) using c backend
  /Users/runner/work/Nim/Nim/pkgstemp/ws/src/ws.nim(321, 48) template/generic instantiation of `async` from here
  /Users/runner/work/Nim/Nim/pkgstemp/ws/src/ws.nim(348, 32) Warning: conversion to enum with holes is unsafe: Opcode(b0 and 0x0000000F) [HoleEnumConv]
     Success: Execution finished
    Verifying dependencies for ws@0.4.4
    Compiling /Users/runner/work/Nim/Nim/pkgstemp/ws/tests/test_protocol_arr (from package ws) using c backend
  /Users/runner/work/Nim/Nim/pkgstemp/ws/src/ws.nim(321, 48) template/generic instantiation of `async` from here
  /Users/runner/work/Nim/Nim/pkgstemp/ws/src/ws.nim(348, 32) Warning: conversion to enum with holes is unsafe: Opcode(b0 and 0x0000000F) [HoleEnumConv]
  /Users/runner/work/Nim/Nim/pkgstemp/ws/tests/test_protocol_arr.nim(32) test_protocol_arr
  /Users/runner/work/Nim/Nim/lib/pure/asyncdispatch.nim(1961) waitFor
  /Users/runner/work/Nim/Nim/lib/pure/asyncdispatch.nim(1653) poll
  /Users/runner/work/Nim/Nim/lib/pure/asyncdispatch.nim(1394) runOnce
  /Users/runner/work/Nim/Nim/lib/pure/asyncdispatch.nim(234) processPendingCallbacks
  /Users/runner/work/Nim/Nim/lib/pure/asyncmacro.nim(28) sendNimAsyncContinue
  /Users/runner/work/Nim/Nim/pkgstemp/ws/src/ws.nim(316) sendIter
  [[reraised from:
  /Users/runner/work/Nim/Nim/pkgstemp/ws/tests/test_protocol_arr.nim(32) test_protocol_arr
  /Users/runner/work/Nim/Nim/lib/pure/asyncdispatch.nim(1961) waitFor
  /Users/runner/work/Nim/Nim/lib/pure/asyncdispatch.nim(1653) poll
  /Users/runner/work/Nim/Nim/lib/pure/asyncdispatch.nim(1394) runOnce
  /Users/runner/work/Nim/Nim/lib/pure/asyncdispatch.nim(234) processPendingCallbacks
  /Users/runner/work/Nim/Nim/lib/pure/asyncmacro.nim(28) sendNimAsyncContinue
  /Users/runner/work/Nim/Nim/lib/system/excpt.nim(144) sendIter
  ]]
  [[reraised from:
  /Users/runner/work/Nim/Nim/pkgstemp/ws/tests/test_protocol_arr.nim(32) test_protocol_arr
  /Users/runner/work/Nim/Nim/lib/pure/asyncdispatch.nim(1961) waitFor
  /Users/runner/work/Nim/Nim/lib/pure/asyncdispatch.nim(1653) poll
  /Users/runner/work/Nim/Nim/lib/pure/asyncdispatch.nim(1394) runOnce
  /Users/runner/work/Nim/Nim/lib/pure/asyncdispatch.nim(234) processPendingCallbacks
  /Users/runner/work/Nim/Nim/lib/pure/asyncmacro.nim(28) closeNimAsyncContinue
  /Users/runner/work/Nim/Nim/lib/pure/asyncmacro.nim(131) closeIter
  /Users/runner/work/Nim/Nim/lib/pure/asyncfutures.nim(389) read
  ]]
  [[reraised from:
  /Users/runner/work/Nim/Nim/pkgstemp/ws/tests/test_protocol_arr.nim(32) test_protocol_arr
  /Users/runner/work/Nim/Nim/lib/pure/asyncdispatch.nim(1961) waitFor
  /Users/runner/work/Nim/Nim/lib/pure/asyncdispatch.nim(1653) poll
  /Users/runner/work/Nim/Nim/lib/pure/asyncdispatch.nim(1394) runOnce
  /Users/runner/work/Nim/Nim/lib/pure/asyncdispatch.nim(234) processPendingCallbacks
  /Users/runner/work/Nim/Nim/lib/pure/asyncfutures.nim(437) asyncCheckCallback
  ]]
  Error: unhandled exception: Failed to send data: Bad file descriptor
  Async traceback:
    /Users/runner/work/Nim/Nim/pkgstemp/ws/tests/test_protocol_arr.nim(32) test_protocol_arr
    /Users/runner/work/Nim/Nim/lib/pure/asyncdispatch.nim(1961)            waitFor
    /Users/runner/work/Nim/Nim/lib/pure/asyncdispatch.nim(1653)            poll
    /Users/runner/work/Nim/Nim/lib/pure/asyncdispatch.nim(1394)            runOnce
    /Users/runner/work/Nim/Nim/lib/pure/asyncdispatch.nim(234)             processPendingCallbacks
    /Users/runner/work/Nim/Nim/lib/pure/asyncmacro.nim(28)                 sendNimAsyncContinue
    /Users/runner/work/Nim/Nim/pkgstemp/ws/src/ws.nim(316)                 sendIter
    #[
      /Users/runner/work/Nim/Nim/pkgstemp/ws/tests/test_protocol_arr.nim(32) test_protocol_arr
      /Users/runner/work/Nim/Nim/lib/pure/asyncdispatch.nim(1961)            waitFor
      /Users/runner/work/Nim/Nim/lib/pure/asyncdispatch.nim(1653)            poll
      /Users/runner/work/Nim/Nim/lib/pure/asyncdispatch.nim(1394)            runOnce
      /Users/runner/work/Nim/Nim/lib/pure/asyncdispatch.nim(234)             processPendingCallbacks
      /Users/runner/work/Nim/Nim/lib/pure/asyncmacro.nim(28)                 sendNimAsyncContinue
      /Users/runner/work/Nim/Nim/lib/system/excpt.nim(144)                   sendIter
    ]#
    #[
      /Users/runner/work/Nim/Nim/pkgstemp/ws/tests/test_protocol_arr.nim(32) test_protocol_arr
      /Users/runner/work/Nim/Nim/lib/pure/asyncdispatch.nim(1961)            waitFor
      /Users/runner/work/Nim/Nim/lib/pure/asyncdispatch.nim(1653)            poll
      /Users/runner/work/Nim/Nim/lib/pure/asyncdispatch.nim(1394)            runOnce
      /Users/runner/work/Nim/Nim/lib/pure/asyncdispatch.nim(234)             processPendingCallbacks
      /Users/runner/work/Nim/Nim/lib/pure/asyncmacro.nim(28)                 closeNimAsyncContinue
      /Users/runner/work/Nim/Nim/lib/pure/asyncmacro.nim(131)                closeIter
      /Users/runner/work/Nim/Nim/lib/pure/asyncfutures.nim(389)              read
    ]#
  Exception message: Failed to send data: Bad file descriptor
   [WebSocketError]
  Error: execution of an external program failed: '/Users/runner/work/Nim/Nim/pkgstemp/ws/tests/test_protocol_arr '
         Tip: 6 messages have been suppressed, use --verbose to show them.
       Error: Execution failed with exit code 256
          ... Command: /Users/runner/work/Nim/Nim/bin/nim c --noNimblePath -d:NimblePkgVersion=0.4.4 --hints:off -r --path:. /Users/runner/work/Nim/Nim/pkgstemp/ws/tests/test_protocol_arr

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions