Skip to content

[CI] Installing the newer version of Azurite is failing #41505

@raulcd

Description

@raulcd

Describe the bug, including details regarding any error messages, version, and platform.

Related to #41462

While investigating I found that the failure on the arrow-azurefs-test was due to failing connecting to Azurite

[ RUN      ] TestAzuriteGeneric.Empty
/usr/local/lib/node_modules/azurite/dist/src/common/persistence/MemoryExtentStore.js:53
        return this._chunks.get(categoryName)?.chunks.get(id);
                                              ^

SyntaxError: Unexpected token '.'
    at wrapSafe (internal/modules/cjs/loader.js:915:16)
    at Module._compile (internal/modules/cjs/loader.js:963:27)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
    at Module.load (internal/modules/cjs/loader.js:863:32)
    at Function.Module._load (internal/modules/cjs/loader.js:708:14)
    at Module.require (internal/modules/cjs/loader.js:887:19)
    at require (internal/modules/cjs/helpers.js:74:18)
    at Object.<anonymous> (/usr/local/lib/node_modules/azurite/dist/src/common/ConfigurationBase.js:7:29)
    at Module._compile (internal/modules/cjs/loader.js:999:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
unknown file: Failure
C++ exception with description "Fail to get a new connection for: http://127.0.0.1:10000. Couldn't connect to server" thrown in SetUp().
unknown file: Failure
C++ exception with description "Fail to get a new connection for: http://127.0.0.1:10000. Couldn't connect to server" thrown in TearDown().
[  FAILED  ] TestAzuriteGeneric.Empty (12243 ms)
[ RUN      ] TestAzuriteGeneric.NormalizePath
unknown file: Failure
C++ exception with description "Fail to get a new connection for: http://127.0.0.1:10000. Couldn't connect to server" thrown in SetUp().
unknown file: Failure
C++ exception with description "Fail to get a new connection for: http://127.0.0.1:10000. Couldn't connect to server" thrown in TearDown().
[  FAILED  ] TestAzuriteGeneric.NormalizePath (11768 ms)

This is because the newer azurite 3.30.0 is failing to get installed:

#19 [13/15] RUN /arrow/ci/scripts/install_azurite.sh
... (a bunch of NPM warnings)
#19 9.320 added 307 packages, and audited 308 packages in 9s
#19 9.320 
#19 9.320 65 packages are looking for funding
#19 9.320   run `npm fund` for details
#19 9.324 
#19 9.324 4 moderate severity vulnerabilities
#19 9.324 
#19 9.324 To address all issues (including breaking changes), run:
#19 9.324   npm audit fix --force
#19 9.324 
#19 9.324 Run `npm audit` for details.
#19 9.348 /usr/local/bin/azurite
#19 9.364 node version = v12.22.9
#19 9.476 /usr/local/lib/node_modules/azurite/dist/src/common/persistence/MemoryExtentStore.js:53
#19 9.476         return this._chunks.get(categoryName)?.chunks.get(id);
#19 9.476                                               ^
#19 9.476 
#19 9.476 SyntaxError: Unexpected token '.'
#19 9.476     at wrapSafe (internal/modules/cjs/loader.js:915:16)
#19 9.476     at Module._compile (internal/modules/cjs/loader.js:963:27)
#19 9.476     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
#19 9.476     at Module.load (internal/modules/cjs/loader.js:863:32)
#19 9.476     at Function.Module._load (internal/modules/cjs/loader.js:708:14)
#19 9.476     at Module.require (internal/modules/cjs/loader.js:887:19)
#19 9.476     at require (internal/modules/cjs/helpers.js:74:18)
#19 9.476     at Object.<anonymous> (/usr/local/lib/node_modules/azurite/dist/src/common/ConfigurationBase.js:7:29)
#19 9.476     at Module._compile (internal/modules/cjs/loader.js:999:30)
#19 9.476     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)
#19 9.479 azurite version = 
#19 DONE 9.7s

This started failing when Azurite v3.30.0 was released: https://github.com/Azure/Azurite/releases/tag/v3.30.0

Two things have to be done here.

  • Being able to use the latest version of azurite
  • The job should fail if it fails to install instead of continuing and just timing out on tests

Component(s)

Continuous Integration

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions