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

fix: prevent interop timeouts with fast fixture loading #73

Merged
merged 1 commit into from
May 8, 2024

Conversation

SgtPooki
Copy link
Member

@SgtPooki SgtPooki commented May 3, 2024

Title

fix: prevent interop timeouts with fast fixture loading

Description

Attempting to merge pr #72 into main instead of onto #70

Related: #72
Related: #70

Notes & open questions

no idea why github CI continues to fail on #70

Change checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation if necessary (this includes comments as well)
  • I have added tests that prove my fix is effective or that my feature works

* deps: update ipfsd-ctl and kubo-rpc-client

* chore: apply suggestions from code review

* tmp: get some debug logs from CI jobs

* fix: disable delegated routing in vfetch-interop tests

* fix: test:node on windows

* Revert "tmp: get some debug logs from CI jobs"

This reverts commit 3654a28.
@SgtPooki SgtPooki requested a review from a team as a code owner May 3, 2024 20:03
Copy link
Member Author

@SgtPooki SgtPooki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

self review

Comment on lines +16 to +17
gateways: ['http://127.0.0.1:8180'],
routers: []
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

see ipfs/js-ipfsd-ctl#831 for why we can't just use the same info from ipfsd-ctl

Comment on lines +11 to +22
/**
* fast-glob does not like windows paths, see https://github.com/mrmlnc/fast-glob/issues/237
* fast-glob performs search from process.cwd() by default, which will be:
* 1. the root of the monorepo when running tests in CI
* 2. the package root when running tests in the package directory
*/
let globRoot = process.cwd().replace(/\\/g, '/')
if (!globRoot.includes('packages/interop')) {
// we only want car files from the interop package
globRoot = [...globRoot.split('/'), 'packages/interop'].join('/')
}
for (const carFile of await fg.glob('src/fixtures/data/*.car', { cwd: globRoot })) {
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this could likely be smarter, and will likely break if we're running this elsewhere (via the binary for the package)

@SgtPooki SgtPooki merged commit a43d994 into main May 8, 2024
19 of 20 checks passed
@SgtPooki SgtPooki deleted the fix/update-kubo-rpc-and-ipfsd-ctl branch May 8, 2024 23:01
github-actions bot pushed a commit that referenced this pull request May 8, 2024
## @helia/verified-fetch-interop [1.21.1](https://github.com/ipfs/helia-verified-fetch/compare/@helia/verified-fetch-interop-1.21.0...@helia/verified-fetch-interop-1.21.1) (2024-05-08)

### Bug Fixes

* prevent interop timeouts with fast fixture loading ([#73](#73)) ([a43d994](a43d994))
Copy link

github-actions bot commented May 8, 2024

🎉 This PR is included in version 1.21.1 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

@SgtPooki SgtPooki mentioned this pull request May 9, 2024
5 tasks
Copy link

github-actions bot commented May 9, 2024

🎉 This PR is included in version 1.4.0 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

Copy link

github-actions bot commented May 9, 2024

🎉 This PR is included in version 1.0.0 🎉

The release is available on npm package (@latest dist-tag)

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant