BSON-EXT Integer Tests failing on Mac M1 chip

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Critical - P2
    • bson-ext-4.0.3
    • Affects Version/s: None
    • Component/s: None
    • 2
    • None
    • Not Needed
    • None
    • None
    • None
    • None
    • None
    • None

      Description and User Impact

      • Although BSON-EXT was never released for Mac ARM, below are the failing tests when it is run on Mac ARM architecture.

        Unknowns

      • Is this because of endianess or something else? BSON-EXT was released on Linux ARM which is also big-endian.

      Failing Tests

      1) BSON
             Should Correctly Serialize and Deserialize Number 4:
      
            AssertionError: expected 2147483657 to equal 2147483647
            + expected - actual
      
            -2147483657
            +2147483647
            
            at Context.<anonymous> (test/node/bson_test.js:819:41)
            at processImmediate (node:internal/timers:466:21)
      
        2) BSON
             Should Correctly Serialize and Deserialize simple Int:
      
            AssertionError: expected 2147483648 to deeply equal 2147483647
            + expected - actual
      
            -2147483648
            +2147483647
            
            at Context.<anonymous> (test/node/bson_test.js:1136:29)
            at processImmediate (node:internal/timers:466:21)
      
        3) BSON
             Should Deserialize Large Integers as Number not Long:
      
            AssertionError: expected 4503599627370496 to deeply equal 2147483647
            + expected - actual
      
            -4503599627370496
            +2147483647
            
            at roundTrip (test/node/bson_test.js:1179:31)
            at Context.<anonymous> (test/node/bson_test.js:1182:5)
            at processImmediate (node:internal/timers:466:21)
      

              Assignee:
              Neal Beeken
              Reporter:
              Aditi Khare (Inactive)
              Durran Jordan
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: