Skip to content

Commit da3c0b0

Browse files
committed
chore: Run IPFS offline and bump to v0.42.0
Update IPFS setup across CI workflows: - bump ipfs_version from 0.41.0 to 0.42.0 and set run_daemon to false for oduwsdl/setup-ipfs. - add an explicit "Start IPFS offline" step that applies the test profile, removes bootstrap peers, disables mDNS, starts the IPFS daemon in offline mode, and waits for ipfs id to succeed. Changes applied to GitHub Actions workflows to ensure a local, isolated IPFS instance for CI runs and reduce network-related flakiness. Signed-off-by: Alex Piatakov <alex.piatakov@swirldslabs.com>
1 parent 64e4f55 commit da3c0b0

5 files changed

Lines changed: 55 additions & 10 deletions

File tree

.github/workflows/api-after-commit.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,17 @@ jobs:
9090
- name: Set up IPFS
9191
uses: oduwsdl/setup-ipfs@678755ac20f92d2dfca7e16138e40ae75f7a0f6f # v0.8.0
9292
with:
93-
ipfs_version: 0.41.0
94-
run_daemon: true
93+
ipfs_version: 0.42.0
94+
run_daemon: false
95+
96+
- name: Start IPFS offline
97+
shell: bash
98+
run: |
99+
ipfs config profile apply test # Routing.Type=none, no bootstrap, mDNS off, localhost-only
100+
ipfs bootstrap rm --all
101+
ipfs config --json Discovery.MDNS.Enabled false
102+
ipfs daemon --offline &
103+
until ipfs id >/dev/null 2>&1; do sleep 0.5; done
95104
96105
- name: Start MongoDB
97106
uses: step-security/mongodb-github-action@ca72004b9c8ad6d9ed996c3174edbe62f9f7424a

.github/workflows/api-manual.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,17 @@ jobs:
9898
- name: Set up IPFS
9999
uses: oduwsdl/setup-ipfs@678755ac20f92d2dfca7e16138e40ae75f7a0f6f # v0.8.0
100100
with:
101-
ipfs_version: 0.41.0
102-
run_daemon: true
101+
ipfs_version: 0.42.0
102+
run_daemon: false
103+
104+
- name: Start IPFS offline
105+
shell: bash
106+
run: |
107+
ipfs config profile apply test # Routing.Type=none, no bootstrap, mDNS off, localhost-only
108+
ipfs bootstrap rm --all
109+
ipfs config --json Discovery.MDNS.Enabled false
110+
ipfs daemon --offline &
111+
until ipfs id >/dev/null 2>&1; do sleep 0.5; done
103112
104113
- name: Start MongoDB
105114
uses: step-security/mongodb-github-action@ca72004b9c8ad6d9ed996c3174edbe62f9f7424a

.github/workflows/api-schedule-all.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,17 @@ jobs:
9191
- name: Set up IPFS
9292
uses: oduwsdl/setup-ipfs@678755ac20f92d2dfca7e16138e40ae75f7a0f6f # v0.8.0
9393
with:
94-
ipfs_version: 0.41.0
95-
run_daemon: true
94+
ipfs_version: 0.42.0
95+
run_daemon: false
96+
97+
- name: Start IPFS offline
98+
shell: bash
99+
run: |
100+
ipfs config profile apply test # Routing.Type=none, no bootstrap, mDNS off, localhost-only
101+
ipfs bootstrap rm --all
102+
ipfs config --json Discovery.MDNS.Enabled false
103+
ipfs daemon --offline &
104+
until ipfs id >/dev/null 2>&1; do sleep 0.5; done
96105
97106
- name: Start MongoDB
98107
uses: step-security/mongodb-github-action@ca72004b9c8ad6d9ed996c3174edbe62f9f7424a

.github/workflows/api-schedule-vm0033.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,17 @@ jobs:
9191
- name: Set up IPFS
9292
uses: oduwsdl/setup-ipfs@678755ac20f92d2dfca7e16138e40ae75f7a0f6f # v0.8.0
9393
with:
94-
ipfs_version: 0.41.0
95-
run_daemon: true
94+
ipfs_version: 0.42.0
95+
run_daemon: false
96+
97+
- name: Start IPFS offline
98+
shell: bash
99+
run: |
100+
ipfs config profile apply test # Routing.Type=none, no bootstrap, mDNS off, localhost-only
101+
ipfs bootstrap rm --all
102+
ipfs config --json Discovery.MDNS.Enabled false
103+
ipfs daemon --offline &
104+
until ipfs id >/dev/null 2>&1; do sleep 0.5; done
96105
97106
- name: Start MongoDB
98107
uses: step-security/mongodb-github-action@ca72004b9c8ad6d9ed996c3174edbe62f9f7424a

.github/workflows/ui-manual.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,17 @@ jobs:
9191
- name: Set up IPFS
9292
uses: oduwsdl/setup-ipfs@678755ac20f92d2dfca7e16138e40ae75f7a0f6f # v0.8.0
9393
with:
94-
ipfs_version: 0.41.0
95-
run_daemon: true
94+
ipfs_version: 0.42.0
95+
run_daemon: false
96+
97+
- name: Start IPFS offline
98+
shell: bash
99+
run: |
100+
ipfs config profile apply test # Routing.Type=none, no bootstrap, mDNS off, localhost-only
101+
ipfs bootstrap rm --all
102+
ipfs config --json Discovery.MDNS.Enabled false
103+
ipfs daemon --offline &
104+
until ipfs id >/dev/null 2>&1; do sleep 0.5; done
96105
97106
- name: Start MongoDB
98107
uses: step-security/mongodb-github-action@ca72004b9c8ad6d9ed996c3174edbe62f9f7424a

0 commit comments

Comments
 (0)