Skip to content

ci: test on nodejs v18, v20#487

Closed
legobeat wants to merge 1 commit into
LavaMoat:mainfrom
legobeat:ci-node-18-20
Closed

ci: test on nodejs v18, v20#487
legobeat wants to merge 1 commit into
LavaMoat:mainfrom
legobeat:ci-node-18-20

Conversation

@legobeat

@legobeat legobeat commented May 3, 2023

Copy link
Copy Markdown
Collaborator

No description provided.

@legobeat legobeat requested a review from a team May 3, 2023 05:33
@legobeat

legobeat commented May 5, 2023

Copy link
Copy Markdown
Collaborator Author

Failing lavapack test on Node.js 20: https://github.com/LavaMoat/LavaMoat/actions/runs/4892484199/jobs/8734288942?pr=487

✖ sourcemap test Rejected promise returned by test
  ─

  sourcemap test

  test/index.js:67

   66:                                                             
   67:   const consumer = await new SourceMapConsumer(rawSourceMap)
   68:   modules.forEach(({ sourceFile }) => {                     

  Rejected promise returned by test. Reason:

  Error {
    message: 'You must provide the URL of lib/mappings.wasm by calling SourceMapConsumer.initialize({ \'lib/mappings.wasm\': ... }) before using SourceMapConsumer',
  }

  › readWasm (node_modules/source-map/lib/read-wasm.js:8:13)
  › wasm (node_modules/source-map/lib/wasm.js:25:16)
  › node_modules/source-map/lib/source-map-consumer.js:264:14
  › test/index.js:67:20

  ─

  1 test failed
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

lerna ERR! yarn run test stderr:
LavaPack.loadBundle([
["1", {"./log.js":"2","./util.js":"3"}, function(){
  with (this.scopeTerminator) {
  with (this.globalThis) {
    return function() {
      'use strict';
      // source: undefined
      return function (require, module, exports) {
require('./log.js'); require('./util.js')
      };
    };
  }
  }
}, {}],
["2", {}, function(){
  with (this.scopeTerminator) {
  with (this.globalThis) {
    return function() {
      'use strict';
      // source: undefined
      return function (require, module, exports) {
console.log('hi');
new Error('danger');
console.log('the end');
      };
    };
  }
  }
}, {}],
["3", {}, function(){
  with (this.scopeTerminator) {
  with (this.globalThis) {
    return function() {
      'use strict';
      // source: undefined
      return function (require, module, exports) {
module.exports.add = (a,b) => a+b
      };
    };
  }
  }
}, {}]],["1"],{})
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LmpzIiwibG9nLmpzIiwidXRpbC5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7OztBQUFBOzs7Ozs7Ozs7Ozs7O0FDQUE7QUFDQTtBQUNBOzs7Ozs7Ozs7Ozs7O0FDRkEiLCJmaWxlIjoiZ2VuZXJhdGVkLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXNDb250ZW50IjpbInJlcXVpcmUoJy4vbG9nLmpzJyk7IHJlcXVpcmUoJy4vdXRpbC5qcycpIiwiY29uc29sZS5sb2coJ2hpJyk7XG5uZXcgRXJyb3IoJ2RhbmdlcicpO1xuY29uc29sZS5sb2coJ3RoZSBlbmQnKTsiLCJtb2R1bGUuZXhwb3J0cy5hZGQgPSAoYSxiKSA9PiBhK2IiXX0=

error Command failed with exit code 1.
error Command failed with exit code 1.

lerna ERR! yarn run test exited 1 in '@lavamoat/lavapack'

🧐

@legobeat legobeat marked this pull request as ready for review May 5, 2023 11:13
@legobeat

legobeat commented May 5, 2023

Copy link
Copy Markdown
Collaborator Author

Compatibility issue addressed in #495

@legobeat legobeat mentioned this pull request May 5, 2023
@legobeat legobeat force-pushed the ci-node-18-20 branch 2 times, most recently from 9d081ba to 12ae0b1 Compare May 8, 2023 13:08
@legobeat

Copy link
Copy Markdown
Collaborator Author

Split out into:

@legobeat legobeat closed this May 11, 2023
@legobeat legobeat mentioned this pull request May 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant