Skip to content
This repository has been archived by the owner on Aug 1, 2023. It is now read-only.

Commit

Permalink
chore: switch to unreleased go/js-ipfs
Browse files Browse the repository at this point in the history
the Rube Goldberg machine for testing HTTP RPC wire format
changes end-to-end
  • Loading branch information
lidel committed Nov 17, 2021
1 parent 817204f commit f9407ce
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 11 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ on:
env:
# To run CI against unrelased go-ipfs or js-ipfs-* code (eg. wip PR),
# uncomment below and define git revisions in ./scripts/custom-runtime.sh
#IPFS_GO_EXEC: /tmp/go-ipfs/cmd/ipfs/ipfs
#IPFS_JS_EXEC: /tmp/js-ipfs/packages/ipfs/src/cli.js
#IPFS_JS_MODULE: /tmp/js-ipfs/packages/ipfs/dist/cjs/src/index.js
#IPFS_JS_HTTP_MODULE: /tmp/js-ipfs/packages/ipfs-http-client/dist/cjs/src/index.js
IPFS_GO_EXEC: /tmp/go-ipfs/cmd/ipfs/ipfs
IPFS_JS_EXEC: /tmp/js-ipfs/packages/ipfs/src/cli.js
IPFS_JS_MODULE: /tmp/js-ipfs/packages/ipfs/dist/cjs/src/index.js
IPFS_JS_HTTP_MODULE: /tmp/js-ipfs/packages/ipfs-http-client/dist/cjs/src/index.js

jobs:
build:
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,4 @@ dist
test/test-data/go-ipfs-repo/LOCK
test/test-data/go-ipfs-repo/LOG
test/test-data/go-ipfs-repo/LOG.old
types
types
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,12 @@ $ npm install -g ipfs-interop
$ ipfs-interop
```

### Run a particular test locally

```console
$ node bin/ipfs-interop.js -- -t node --grep {substring-test-name}
```

## Testing with different versions of go/js IPFS

### As a project
Expand Down
3 changes: 2 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions scripts/custom-runtime.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ WORKDIR=$(pwd)
if [ "$IPFS_GO_EXEC" == /tmp/go-ipfs/cmd/ipfs/ipfs ]; then
if [ ! -d /tmp/go-ipfs ]; then
cd /tmp
git clone https://github.com/ipfs/go-ipfs.git
git clone https://github.com/coryschwartz/go-ipfs.git
cd go-ipfs
# set implementation to specific commit
git checkout CHANGEME_GO
# implementation from https://github.com/ipfs/go-ipfs/pull/8183
git checkout 153697d524f449ee9bec97245b0fcd7ebc2e8170
make build
fi
fi
Expand All @@ -35,8 +35,8 @@ if [ ! -d /tmp/js-ipfs ]; then
cd /tmp
git clone https://github.com/ipfs/js-ipfs.git
cd js-ipfs
# set implementation to specific commit
git checkout CHANGEME_JS
# implementation from https://github.com/ipfs/js-ipfs/pull/3922
git checkout 1dcac76f56972fc3519526e93567e39d685033dd
npm install
npm run build
npm run link
Expand Down

0 comments on commit f9407ce

Please sign in to comment.