oceanprotocol/ocean.js

integration tests can't be run locally on most systems

kremalicious opened this issue · 4 comments

When following readme and then running npm run test:integration:

  • on macOS: fails right at first test publishing dataset & algo

  • on any VM in GitHub Codespaces: starting compute job fails in first "Simple compute tests" as compute env can't be read out from provider:
    Screen Shot 2022-08-17 at 12 13 37

    Screen Shot 2022-08-17 at 12 44 01

Did you started barge with --with-c2d and wait until c2d is up? It can take 5 mins (https://github.com/oceanprotocol/ocean.js/blob/main/.github/workflows/ci.yml#L123-L126)

Pretty sure that you cannot use ARM chipsets, as all of our images are 64bit only

Did you started barge with --with-c2d and wait until c2d is up?

yes, doing exactly what our CI does now. Getting different results in different systems and branches. Like, here, nothing really changed the respective tests and they work in main, but suddenly do not work anymore in this PR with this error message https://github.com/oceanprotocol/ocean.js/runs/7877933514?check_suite_focus=true#step:12:32

In GitHub codespaces I always can't get the compute envs in that same test, always getting Failed to establish a new connection: [Errno 111] Connection refused')': /api/v1/operator/environments?chainId=8996

Pretty sure that you cannot use ARM chipsets, as all of our images are 64bit only

Not sure if this matters, as Codespaces runs inside a Docker container as far as I understood https://docs.github.com/en/codespaces/overview

But the one I use is x86_64 architecture:
Screen Shot 2022-08-17 at 13 21 14

started completely fresh again and I now locally arrive exactly where also the CI in #1537 fails, wohoo. No clue why, can only assume on my first try something didn't work out with barge, which then also on 2nd run didn't resolve. Only nuking everything including Docker and starting fresh now worked in a GitHub Codespace

Update: well, this only works on first run with a fresh barge. Second test run fails on getting compute environments again.

that's interesting, I will try it locally as well. Maybe it's a barge issue(C2d to be more specific)