Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nikku/dc202200744363cfbf12e5f81dea608c to your computer and use it in GitHub Desktop.
Save nikku/dc202200744363cfbf12e5f81dea608c to your computer and use it in GitHub Desktop.
Learnings From Debugging the Undebugable - Do not compile Java, on the fly

Learnings From Debugging the Undebuggable

TLDR: Do NOT Compile Java on the Fly

Nico Rehwaldt


Context

  • Migrated Travis CI ➡️ GitHub actions
  • bpmn-moddle test suite times out (ref)
  • Random fail? ➡️ NO

What is Going on?

bpmn-moddle uses xsd-schema-validator

xsd-schema-validator uses Java for actual validation

Java is being compiled on the fly...


So...

{
  "name": "xsd-schema-validator",
  "scripts": {
    ...,
    "postinstall": "COMPILE JAVA HELPER"
  }
}

➡️ https://github.com/nikku/node-xsd-schema-validator/blob/master/CHANGELOG.md#070

Better for all users 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment