graph-tooling icon indicating copy to clipboard operation
graph-tooling copied to clipboard

`graph test` throws "Unsupported platform" on any Linux distro other than Ubuntu

Open KholdStare opened this issue 1 year ago • 7 comments

Which packages are impacted by your issue?

@graphprotocol/graph-cli

Describe the issue

Running graph test on any distro other than Ubuntu throws:

kholdstare@5ced7da9ec4e:~/workspace/code/blockchain/subgraph$ yarn graph test -l
OS type: Debian GNU/Linux
OS arch: x64
OS release: 11 (bullseye)
OS major version: 11
CPU model: AMD Ryzen 9 3900X 12-Core Processor
/home/kholdstare/workspace/code/node_modules/gluegun/build/index.js:15
    throw up;
    ^

Error: Unsupported platform: Linux x64 11

There should at least be an "escape hatch" where the user either manually specifies which release they want to use, or have a way to point at an existing release with a filepath. Ideally in the long-run, the binary is just statically linked and all of this is moot and it works on any linux distribution.

Reproduction

N/A

Steps to Reproduce the Bug or Issue

Use any Linux Distribution besides Ubuntu

Expected behavior

Be able to run graph test

Screenshots or Videos

No response

Platform

  • OS: Linux Debian 11
  • NodeJS: 18.19
  • @graphprotocol/graph-cli: 0.63.1
  • `@graphprotocol/graph-ts": "0.32.0"

Subgraph Manifest

No response

Subgraph GraphQL Schema

No response

Additional context

No response

KholdStare avatar Dec 13 '23 20:12 KholdStare

yeah we are working on improving the support for this #1543

saihaj avatar Dec 13 '23 21:12 saihaj

@saihaj @dimitrovmaksim How is the migration going? Any updates? Thank you!

This is currently stopping us from using newer matchstick features like assert messages, and dataSourceExists, just because we are using a Debian image.

KholdStare avatar Jan 30 '24 22:01 KholdStare

Hey, @KholdStare, sorry I'm not working on this, so can't give you any updates. Potentially you can build matchstick from source and run it independently from the graph-cli

dimitrovmaksim avatar Jan 31 '24 08:01 dimitrovmaksim

@KholdStare it is WIP https://github.com/graphprotocol/graph-tooling/pull/1549 had some other pressing issues to fix but do we want to resolve this in coming weeks

saihaj avatar Feb 02 '24 17:02 saihaj

Any update ? Right now we are manually editing getPlatform in test.js to return binary-linux-22 on Debian… (other than installing postgresql, which is quite annoying)

dezzeus avatar Jun 21 '24 08:06 dezzeus

@saihaj @dimitrovmaksim It has been almost 8 months. Is it possible to just add a flag to pass an explicit release on the commandline? This would bypass the check and enable people to use newer versions without hacks.

KholdStare avatar Jun 28 '24 14:06 KholdStare

@KholdStare as I said in my previous comment, I'm not responsible for the matchstick development anymore , nor am I part of the graph team, so I don't have any information at all

dimitrovmaksim avatar Jun 28 '24 15:06 dimitrovmaksim