Hey @NathanosDev
Just gave pic with GitHub CI another try and am running into a different fetch failed issue. This time it hangs for awhile at the PIC server started output line while tests are running
and then I get a bunch of these fetch failed error outputs all at once (test outputs)
Locally tests run great, itās moreso in GitHub CI where everything starts to break down. Iām seeing these same fetch failure for every canister call.
dfx 0.24.0
pic-js version: 0.10.0-b0
replica version: I donāt remember, does this matter?
Update:
Success I was able to get this work by switching the CI runner from
ubuntu-latest
to macos-latest
, matching the OS Iām currently developing on.
In case anyoneās interested, this is what my setup looks like
name: Pic Integration Tests
on: pull_request
jobs:
tests:
runs-on: macos-latest
steps:
# Caching
- uses: actions/checkout@v3
- name: Cache wasmtime
id: cacheWasmtimeOSX
uses: actions/cache@v3
env:
cache-name: cache-wasmtime
with:
#wasmtime should be stored in /home/runner/bin/wasmtime
path: /home/runner/bin/wasmtime
key: ${{ runner.os }}-build-${{ env.cache-name }}}}
- uses: actions/checkout@v3
- name: Cache npm modules
id: cacheNpm
uses: actions/cache@v3
env:
cache-name: cache-npm
with:
path: |
**/node_modules
key: ${{ runner.os }}-node-modules-${{ hashFiles('**/package-lock.json') }}
# should hit cache
- uses: actions/setup-node@v3
with:
node-version: 18
cache: "npm"
# Installations (should hit cache)
- name: Install wasmtime
if: steps.cacheWasmtime.outputs.cache-hit != 'true'
run: |
mkdir -p $HOME/bin
echo "$HOME/bin" >> $GITHUB_PATH
curl -L -O https://github.com/bytecodealliance/wasmtime/releases/download/v0.18.0/wasmtime-v0.18.0-x86_64-macos.tar.xz
tar xf wasmtime-v0.18.0-x86_64-macos.tar.xz
cp wasmtime-v0.18.0-x86_64-macos/wasmtime $HOME/bin/wasmtime
- name: Install Node modules
if: steps.cacheNpm.outputs.cache-hit != 'true'
run: npm i --legacy-peer-deps
- name: Install dfx
uses: dfinity/setup-dfx@main
with:
dfx-version: 0.24.0
- name: Install vessel
uses: aviate-labs/setup-dfx@v0.3.2
with:
vessel-version: 0.7.0
# unzips the nns state tarball to the pic directory
- name: unpack-pic
run: npm run unpack-pic
- name: generate declarations
run: npm run declarations
- name: run pic suites
run: npm run test:pic-suites