GitHub
03/03/2023, 11:34 AMpact.node, which is a native library produced by https://github.com/pact-foundation/pact-js-core/. The error seems to indicate a symbol in the shared library is not found on the CI runtime, and is therefore unable to execute the library, and subsequent tests.
The behaviour did seem to be non-deterministic, at least historically (update: previous build histories referred to here are now beyond reach of GitHub's memory), however, it does seem to consistently fail when executing the first example (V3 e2e: D:\a\pact-js\pact-js\examples\v3\e2e).
Example build that mostly succeeded with previous examples, and then died during the v3 e2e test: https://github.com/pact-foundation/pact-js/actions/runs/4193805789/jobs/7271156646.
I have been unable to reproduce on my own Windows environment, albeit I wasn't able to get something as close to the CI runner as I'd have liked.
Error
Example log file: 1_build-and-test-windows (14.x).txt
```
e2e@1.0.0 test:consumer D:\a\pact-js\pact-js\examples\v3\e2e
mocha test/consumer.spec.jsWarning: Cannot find any files matching pattern "src/*.spec.ts" Warning: Cannot find any files matching pattern "src/**/*.spec.ts" Error: The specified procedure could not be found. \\?\D:\a\pact-js\pact-js\dist\node_modules\@pact-foundation\pact-core\build\Release\pact.node at Object.Module._extensions..node (internal/modules/cjs/loader.js117318) at Module.load (internal/modules/cjs/loader.js97932) at Function.Module._load (internal/modules/cjs/loader.js81912) at Module.require (internal/modules/cjs/loader.js100319) at require (internal/modules/cjs/helpers.js10718) at bindings (D\a\pact js\pact js\dist\node modules\bindings\bindings.js112:48) at Object.<anonymous> (D:\a\pact-js\pact-js\dist\node_modules\@pact-foundation\pact-core\src\ffi\index.ts621) at Module._compile (internal/modules/cjs/loader.js111414) at Module._extensions..js (internal/modules/cjs/loader.js114310) at Object.require.extensions.<computed> [as .js] (D\a\pact js\pact js\examples\v3\e2e\node modules\ts node\src\index.ts1608:43) at Module.load (internal/modules/cjs/loader.js97932) at Function.Module._load (internal/modules/cjs/loader.js81912) at Module.require (internal/modules/cjs/loader.js100319) at require (internal/modules/cjs/helpers.js10718) at Object.<anonymous> (D:\a\pact-js\pact-js\dist\node_modules\@pact-foundation\pact-core\src\verifier\nativeVerifier.ts31) at Module._compile (internal/modules/cjs/loader.js111414) at Module._extensions..js (internal/modules/cjs/loader.js114310) at Object.require.extensions.<computed> [as .js] (D\a\pact js\pact js\examples\v3\e2e\node modules\ts node\src\index.ts1608:43) at Module.load (internal/modules/cjs/loader.js97932) at Function.Module._load (internal/modules/cjs/loader.js81912) at Module.require (internal/modules/cjs/loader.js100319) at require (internal/modules/cjs/helpers.js10718) at Object.<anonymous> (D:\a\pact-js\pact-js\dist\node_modules\@pact-foundation\pact-core\src\verifier\index.ts31) at Module._compile (internal/modules/cjs/loader.js111414) at Module._extensions..js (internal/modules/cjs/loader.js114310) at Object.require.extensions.<computed> [as .js] (D\a\pact js\pact js\examples\v3\e2e\node modules\ts node\src\index.ts1608:43) at Module.load (internal/modules/cjs/loader.js97932) at Function.Module._load (internal/modules/cjs/loader.js81912) at Module.require (internal/modules/cjs/loader.js100319) at require (internal/modules/cjs/helpers.js10718) at Object.<anonymous> (D:\a\pact-js\pact-js\dist\node_modules\@pact-foundation\pact-core\src\pact.ts71) at Module._compile (internal/modules/cjs/loader.js111414) at Module._extensions..js (internal/modules/cjs/loader.js114310) at Object.require.extensions.<computed> [as .js] (D\a\pact js\pact js\examples\v3\e2e\node modules\ts node\src\index.ts1608:43) at Module.load (internal/modules/cjs/loader.js97932) at Function.Module._load (internal/modules/cjs/loader.js81912) at Module.require (internal/modules/cjs/loader.js100319) at require (internal/modules/cjs/helpers.js10718) at Object.<anonymous> (D:\a\pact-js\pact-js\dist\node_modules\@pact-foundation\pact-core\src\index.ts11) at Module._compile (internal/modules/cjs/loader.js111414) at Module._extensions..js (internal/modules/cjs/loader.js114310) at Object.require.extensions.<computed> [as .js] (D\a\pact js\pact js\examples\v3\e2e\node modules\ts node\src\index.ts1608:43) at Module.load (internal/modules/cjs/loader.js97932) at Function.Module._load (internal/modules/cjs/loader.js81912) at Module.require (internal/modules/cjs/loader.js100319) at require (internal/modules/cjs/helpers.js10718) at Object.<anonymous> (D\a\pact js\pact js\src\httpPact\index.ts1:1) at Module._compile (internal/modules/cjs/loader.js111414) at Module._extensions..js (internal/modules/cjs/loader.js114310) at Object.require.extensions.<computed> [as .js] (D\a\pact js\pact js\examples\v3\e2e\node modules\ts node\src\index.ts1608:43) at Module.load (internal/modules/cjs/loader.js97932) at Function.Module._load (internal/modules/cjs/loader.js81912) at Module.require (internal/modules/cjs/loader.js100319) at require (internal/modules/cjs/helpers.js10718) at Object.<anonymous> (D\a\pact js\pact js\src\index.ts25:1) at Module._compile (internal/modules/cjs/loader.js111414) at Module._extensions..js (internal/modules/cjs/loader.js114310) at Object.require.extensions.<computed> [as .js] (D\a\pact js\pact js\examples\v3\e2e\node modules\ts node\src\index.ts1608:43) at Module.load (internal/modules/cjs/loader.js97932) at Function.Module._load (internal/modules/cjs/loader.js81912) at Module.require (internal/modules/cjs/loader.js100319) at require (internal/modules/cjs/helpers.js10718) at Object.<anonymous> (D\a\pact js\pact js\examples\v3\e2e\test\consumer.spec.js10:5) at Module._compile (internal/modules/cjs/loader.js111414) at Module._extensions..js (internal/modules/cjs/loader.js114310) at Object.require.extensions.<computed> [as .js] (D\a\pact js\pact js\examples\v3\e2e\node modules\ts node\src\index.ts1608:43) at Module.load (internal/modules/cjs/loader.js97932) at Function.Module._load (internal/modules/cjs/loader.js81912) at ModuleWrap.<anonymous> (internal/modules/esm/translators.js20329) at ModuleJob.run (internal/modules/esm/module_job.js18325) at async Loader.import (internal/modules/esm/loader.js17824) at async formattedImport (D\a\pact js\pact js\examples\v3\e2e\node modules\mocha\lib\nodejs\esm utils.js7:14) at async Object.exports.requireOrImport (D\a\pact js\pact js\examples\v3\e2e\node modules\mocha\lib\nodejs\esm utils.js38:28) at async Object.exports.loadFilesAsync (D\a\pact js\pact js\examples\v3\e2e\node modules\mocha\lib\nodejs\esm utils.js91:20) at async singleRun (D\a\pact js\pact js\examples\v3\e2e\node modules\mocha\lib\cli\run helpers.js125:3) at async Object.exports.handler (D\a\pact js\pact js\examples\v3\e2e\node modules\mocha\lib\cli\run.js370:5) npm … pact-foundation/pact-js