-
Notifications
You must be signed in to change notification settings - Fork 242
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Workflow: tweak test-local-subgraph #2013
Conversation
Changelog ReminderReminder to update the CHANGELOG.md for any of the modified packages in this PR.
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## dev #2013 +/- ##
=======================================
Coverage 88.45% 88.45%
=======================================
Files 111 111
Lines 6971 6971
Branches 933 934 +1
=======================================
Hits 6166 6166
Misses 803 803
Partials 2 2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
XKCD Comic RelifLink: https://xkcd.com/2013 |
Problem
At some point, the sdk-core/subgraph test cases started to fail with "socket hang up" error when querying subgraph.
After some research, it was discovered that it is due to the usage of an older version of the "cross-fetch" polyfill which didn't support node 20+, see here and here.
Solution
The newer cross-fetch project solved this. The solution is to fix the "resolution" of the cross-fetch in this project to the latest, for now.
Additionally, this PR also:
a) include some minor refactoring around the test setup process,
b) test against both node 18 and 20 for SDK core, and test against node 20 for subgraph.