Skip to content

Commit 1544ae8

Browse files
authored
Merge 4869ced into 3b3cdeb
2 parents 3b3cdeb + 4869ced commit 1544ae8

25 files changed

Lines changed: 6243 additions & 2404 deletions

.github/workflows/ci.yml

Lines changed: 41 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: 'CI'
1+
name: "CI"
22

33
on:
44
pull_request:
@@ -12,7 +12,7 @@ jobs:
1212
- uses: actions/checkout@v3
1313
- uses: actions/setup-node@v4
1414
with:
15-
node-version: '20'
15+
node-version: "22"
1616
- name: Cache node_modules
1717
uses: actions/cache@v4
1818
env:
@@ -31,7 +31,7 @@ jobs:
3131
- uses: actions/checkout@v3
3232
- uses: actions/setup-node@v4
3333
with:
34-
node-version: '20'
34+
node-version: "22"
3535
- name: Cache node_modules
3636
uses: actions/cache@v4
3737
env:
@@ -47,8 +47,8 @@ jobs:
4747
- name: Checkout Barge
4848
uses: actions/checkout@v3
4949
with:
50-
repository: 'oceanprotocol/barge'
51-
path: 'barge'
50+
repository: "oceanprotocol/barge"
51+
path: "barge"
5252

5353
- name: Set Database Environment Variables
5454
run: |
@@ -60,7 +60,7 @@ jobs:
6060
- name: Run Ganache with Barge
6161
working-directory: ${{ github.workspace }}/barge
6262
run: |
63-
bash -x start_ocean.sh --with-typesense 2>&1 > start_ocean.log &
63+
bash -x start_ocean.sh 2>&1 > start_ocean.log &
6464
6565
- name: Install deps & build
6666
run: npm ci && npm run build:metadata
@@ -78,7 +78,11 @@ jobs:
7878
if [ $attempt -eq $max_attempts ]; then
7979
echo "Error: Node container failed to start within 300 seconds"
8080
docker ps -a
81-
docker inspect ocean-node-1
81+
docker inspect ocean-node-1 || true
82+
echo "=== Barge startup script output ==="
83+
cat ${{ github.workspace }}/barge/start_ocean.log || true
84+
echo "=== Ocean Node Logs ==="
85+
docker logs ocean-node-1 2>&1 | tail -100 || true
8286
exit 1
8387
fi
8488
sleep 10
@@ -91,13 +95,23 @@ jobs:
9195
path: coverage/
9296

9397
test_integration:
98+
name: test_integration (${{ matrix.transport }})
9499
runs-on: ubuntu-latest
95100

101+
strategy:
102+
fail-fast: false
103+
matrix:
104+
include:
105+
- transport: http
106+
node_endpoint: "http://127.0.0.1:8001"
107+
- transport: p2p
108+
node_endpoint: "16Uiu2HAmRkJeRYRghP3ETQCpdz8NsQzQE9RpSST7i5YNgWqH4dVE"
109+
96110
steps:
97111
- uses: actions/checkout@v3
98112
- uses: actions/setup-node@v4
99113
with:
100-
node-version: '20'
114+
node-version: "22"
101115
- name: Cache node_modules
102116
uses: actions/cache@v4
103117
env:
@@ -115,8 +129,8 @@ jobs:
115129
- name: Checkout Barge
116130
uses: actions/checkout@v3
117131
with:
118-
repository: 'oceanprotocol/barge'
119-
path: 'barge'
132+
repository: "oceanprotocol/barge"
133+
path: "barge"
120134

121135
- name: Login to Docker Hub
122136
if: ${{ env.DOCKERHUB_PASSWORD && env.DOCKERHUB_USERNAME }}
@@ -136,7 +150,7 @@ jobs:
136150
- name: Run Barge
137151
working-directory: ${{ github.workspace }}/barge
138152
run: |
139-
bash -x start_ocean.sh --with-typesense 2>&1 > start-node.log &
153+
bash -x start_ocean.sh 2>&1 > start-node.log &
140154
141155
- name: Install deps & build
142156
run: npm ci && npm run build:metadata
@@ -170,15 +184,23 @@ jobs:
170184
attempt=$((attempt + 1))
171185
done
172186
173-
- name: integration
174-
run: npm run test:integration:cover
187+
- name: integration (${{ matrix.transport }})
188+
run: |
189+
if [ "${{ matrix.transport }}" = "http" ]; then
190+
npm run test:integration:cover
191+
else
192+
npm run test:integration
193+
fi
175194
env:
176195
INDEXING_RETRY_INTERVAL: 4000
177196
INDEXING_MAX_RETRIES: 120
178-
NODE_URL: 'http://127.0.0.1:8001'
197+
NODE_ENDPOINT: ${{ matrix.node_endpoint }}
179198

180199
- name: docker logs
181200
run: |
201+
echo "=== Barge startup script output ==="
202+
cat ${{ github.workspace }}/barge/start-node.log || true
203+
echo ""
182204
echo "=== Ocean Contracts Logs ==="
183205
docker logs ocean-ocean-contracts-1 2>&1 || echo "Container not found"
184206
echo ""
@@ -187,6 +209,7 @@ jobs:
187209
if: ${{ failure() }}
188210

189211
- name: Upload coverage
212+
if: matrix.transport == 'http'
190213
uses: actions/upload-artifact@v4
191214
with:
192215
name: coverage-integration
@@ -199,7 +222,7 @@ jobs:
199222
fail-fast: false
200223
matrix:
201224
os: [ubuntu-latest, macos-latest, windows-latest]
202-
node: ['20', '18']
225+
node: ["22", "20"]
203226

204227
steps:
205228
- uses: actions/checkout@v3
@@ -237,13 +260,13 @@ jobs:
237260
- uses: actions/checkout@v3
238261
- uses: actions/setup-node@v4
239262
with:
240-
node-version: '20'
263+
node-version: "22"
241264

242265
- name: checkout ocean.js repo
243266
uses: actions/checkout@v3
244267
with:
245-
repository: 'oceanprotocol/ocean.js'
246-
path: 'ocean.js'
268+
repository: "oceanprotocol/ocean.js"
269+
path: "ocean.js"
247270
ref: ${{ github.event.pull_request.head.sha }}
248271

249272
- name: setup git config

CHANGELOG.md

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,26 @@ All notable changes to this project will be documented in this file. Dates are d
44

55
Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
66

7+
#### [v7.0.0-next.1](https://github.com/oceanprotocol/ocean.js/compare/v7.0.0-next.0...v7.0.0-next.1)
8+
9+
- bump uint8arrays to esm supported [`f1ff511`](https://github.com/oceanprotocol/ocean.js/commit/f1ff511e9c92cee94cd129698bc46c7700952461)
10+
- getmultiaddr from peerid [`1973f27`](https://github.com/oceanprotocol/ocean.js/commit/1973f278964598b6c8abb61c85395f0608375d43)
11+
- start without typesense [`db639ad`](https://github.com/oceanprotocol/ocean.js/commit/db639ad1bdee822722abe07ca58d50d837c94bbc)
12+
13+
#### [v7.0.0-next.0](https://github.com/oceanprotocol/ocean.js/compare/v6.1.2...v7.0.0-next.0)
14+
15+
> 1 April 2026
16+
17+
- p2p impl [`68db01f`](https://github.com/oceanprotocol/ocean.js/commit/68db01fbf8f28854e6e0abe43aba85fbf6834c28)
18+
- p2p warmup [`8c2bb5a`](https://github.com/oceanprotocol/ocean.js/commit/8c2bb5ae2b17b5f2c9530800c1f3143b1b318b0e)
19+
- push,fetch config and no tls [`9cda783`](https://github.com/oceanprotocol/ocean.js/commit/9cda78366ddcfe97a93ecb79dc3a8aa3264ccecc)
20+
721
#### [v6.1.2](https://github.com/oceanprotocol/ocean.js/compare/v6.1.1...v6.1.2)
822

23+
> 24 March 2026
24+
925
- Feature/output_in_initializeCompute [`#2056`](https://github.com/oceanprotocol/ocean.js/pull/2056)
26+
- Release 6.1.2 [`3b3cdeb`](https://github.com/oceanprotocol/ocean.js/commit/3b3cdebdb5ce7b89ebbbd2d49e44d5f6fa65e0d1)
1027

1128
#### [v6.1.1](https://github.com/oceanprotocol/ocean.js/compare/v6.1.0...v6.1.1)
1229

@@ -209,7 +226,7 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
209226
- export util addrs functions [`#2017`](https://github.com/oceanprotocol/ocean.js/pull/2017)
210227
- Release 4.3.6 [`b28db44`](https://github.com/oceanprotocol/ocean.js/commit/b28db446144939e9ed864cc11559f718104d094b)
211228

212-
#### [v4.3.5](https://github.com/oceanprotocol/ocean.js/compare/v4.3.4...v4.3.5)
229+
#### [v4.3.5](https://github.com/oceanprotocol/ocean.js/compare/v4.3.3...v4.3.5)
213230

214231
> 17 November 2025
215232
@@ -218,13 +235,11 @@ Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
218235
- remove typo [`f199f4a`](https://github.com/oceanprotocol/ocean.js/commit/f199f4af809eb85249fe0c59303fcc3207d8e7a7)
219236
- export EnterpriseFeeCollector [`68712a2`](https://github.com/oceanprotocol/ocean.js/commit/68712a2af17824bb8fc78824842376e35f582487)
220237

221-
#### [v4.3.4](https://github.com/oceanprotocol/ocean.js/compare/v4.3.2...v4.3.4)
238+
#### [v4.3.3](https://github.com/oceanprotocol/ocean.js/compare/v4.3.2...v4.3.3)
222239

223-
> 15 November 2025
240+
> 1 August 2025
224241
225242
- add policy server endpoints [`#1974`](https://github.com/oceanprotocol/ocean.js/pull/1974)
226-
- add EnterpriseFee [`b502882`](https://github.com/oceanprotocol/ocean.js/commit/b502882d05375eda326166608730a11e779c6f42)
227-
- Release 4.3.4 [`e45a7de`](https://github.com/oceanprotocol/ocean.js/commit/e45a7defa239f6800eb68a13e1a9a3d9662f509d)
228243
- Release 4.3.3 [`6d6d4cf`](https://github.com/oceanprotocol/ocean.js/commit/6d6d4cfe57f2a3dee73b4957ff2f144c0e7ff9d7)
229244

230245
#### [v4.3.2](https://github.com/oceanprotocol/ocean.js/compare/v4.3.1...v4.3.2)

CodeExamples.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@ import {
104104
sendTx,
105105
ConfigHelper,
106106
configHelperNetworks,
107+
getNodeEndpointConfig,
107108
amountToUnits,
108109
getEventFromTx,
109110
LoggerInstance
@@ -206,9 +207,7 @@ Next, we define the metadata that will describe our data asset. This is what we
206207
const config = new ConfigHelper().getConfig(
207208
parseInt(String((await publisherAccount.provider.getNetwork()).chainId))
208209
)
209-
if (process.env.NODE_URL) {
210-
config.oceanNodeUri = process.env.NODE_URL
211-
}
210+
Object.assign(config, getNodeEndpointConfig())
212211
aquarius = new Aquarius(config?.oceanNodeUri)
213212
providerUrl = config?.oceanNodeUri
214213
addresses = JSON.parse(

0 commit comments

Comments
 (0)