-
Notifications
You must be signed in to change notification settings - Fork 1.3k
test: E2E tests against ipfs-webui HEAD #2706
Conversation
fe04356
to
09f491e
Compare
Getting late, wrote some notes below to pick this up tomorrow. Using wrong version of js-ipfsSomething felt off. Just to be sure we test the right thing, I updated js-ipfs version in $ E2E_IPFSD_TYPE=js npm run test:external -- ipfs-webui https://github.com/ipfs-shipyard/ipfs-webui.git --branch "fix/test-external" This revealed a false-positive: for some reason the second time
Defining explicit $ E2E_IPFSD_TYPE=js IPFS_JS_EXEC=$(realpath ./src/cli/bin.js) npm run test:external -- ipfs-webui https://github.com/ipfs-shipyard/ipfs-webui.git --branch "fix/test-external" However, it comes at a price of executing both
False-positive on error during first
|
146a57f
to
f8ccb43
Compare
ipfs-webui e2e is green now: https://travis-ci.com/ipfs/js-ipfs/jobs/276855690 @alanshaw this is ready for review |
@lidel would you mind rebasing so we can double check this branch is still passing? |
License: MIT Signed-off-by: Marcin Rataj <lidel@lidel.org>
f8ccb43
to
2cf3fd2
Compare
@alanshaw had to apply small tweaks (ipfs/ipfs-webui@0fc43a8, ipfs/ipfs-webui@e139736) but its green again (works with both old and new API) 👌 |
This PR adds TravisCI config for running ipfs-webui's end to end tests against js-ipfs from this repo.
It does not increase CI time, as its runs in parallel to other tests, and those take much longer:
Note: It uses
aegir test-external
which runs tests twice: first time against release version of js-ipfs, and if that is green, then against version from this repo. If not, we exit without error. That way we avoid breaking the js-ipfs build if upstream ipfs-webui is not green.TODO
build
before e2e runxHEAD
is used during second time webui'stest
is runsuspect:its by design ;)aegir test-external
returns0
if test with originaljs-ipfs
failscc @autonome @hugomrdias @alanshaw