Skip to content
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

Merged
merged 20 commits into from
Aug 29, 2024
Merged

Workflow: tweak test-local-subgraph #2013

merged 20 commits into from
Aug 29, 2024

Conversation

hellwolf
Copy link
Contributor

@hellwolf hellwolf commented Aug 28, 2024

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.

Copy link

Changelog Reminder

Reminder to update the CHANGELOG.md for any of the modified packages in this PR.

  • CHANGELOG.md modified
  • Double check before merge

Copy link

codecov bot commented Aug 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 88.45%. Comparing base (04f7b3c) to head (fbd7cf4).
Report is 1 commits behind head on dev.

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           
Flag Coverage Δ
ethereum-contracts 94.51% <ø> (ø)
sdk-core 88.45% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@hellwolf hellwolf marked this pull request as ready for review August 28, 2024 18:46
@hellwolf hellwolf requested review from kasparkallas and a team as code owners August 28, 2024 18:46
@hellwolf hellwolf merged commit 3d5df70 into dev Aug 29, 2024
23 checks passed
@hellwolf hellwolf deleted the fix-subgraph-local-test branch August 29, 2024 07:30
Copy link

XKCD Comic Relif

Link: https://xkcd.com/2013
https://xkcd.com/2013

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.

2 participants