Investigate AggregateFluentTests.Function_should_return_expected_result test failure on the latest MongoDB variants

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Unresolved
    • Priority: Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • Dotnet Drivers
    • None
    • None
    • None
    • None
    • None
    • None

      AggregateFluentTests.Function_should_return_expected_result test is failing on the latest MongoDB variants (v9.0.0-alpha0-a8cf5e03) with the following error:

      Executor error during aggregate command on namespace: test.collection :: caused by :: Failed to invoke JS function :: function id = 2: e-runtime message : 'hex_md5 is not defined', file : 'wasm:function', stack : '@wasm:function:1:19
      

      https://spruce.corp.mongodb.com/task/dot_net_driver_secure_tests_linux_2004__version~lat[…]29_26_06_04_22_56_14/tests?execution=1&sorts=STATUS%3AASC

      Need to investigate the failure and update the test or escalate the problem.

      Here is the simple aggregation pipeline to reproduce the problem:

      [
        {
          $project:
            {
              a: {
                $function: {
                  body: "function(fl) { return hex_md5(fl) }",
                  args: ["$key"],
                  lang: "js"
                }
              }
            }
        }
      ] 

       

            Assignee:
            Oleksandr Poliakov
            Reporter:
            Oleksandr Poliakov
            None
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: