feat!: add datacenter and resource tests, print offer-info to stdout #7498
run-tests.yml
on: pull_request
fluence-cli
/
Run tests
6m 58s
Annotations
2 errors
test/tests/provider.test.ts > provider tests > create offer with newly added resources, update resources:
packages/cli/package/test/tests/provider.test.ts#L630
Error: ENAMETOOLONG: name too long, open 'version: 4
providerName: defaultProvider
resources:
cpu:
AMD EPYC Zen 2:
model: <optional>
ram:
DDR4:
manufacturer: <optional>
model: <optional>
speed: 1
ecc: false
storage:
SSD:
manufacturer: <optional>
model: <optional>
sequentialWriteSpeed: 1
computePeers:
peer-0:
kubeconfigPath: ./path-to-peer-0-kubeconfig
resources:
cpu:
name: Fluence F1 RISC-V 2
supply: 1
ram:
name: DDR7
supply: 11 GiB
storage:
- name: ODD
supply: 11 GiB
bandwidth:
name: semi-shared
supply: 1 Mb
ip:
name: v10
supply:
- start: 1.1.1.1
peer-1:
kubeconfigPath: ./path-to-peer-1-kubeconfig
resources:
cpu:
name: Fluence F1 RISC-V 2
supply: 1
ram:
name: DDR7
supply: 11 GiB
storage:
- name: ODD
supply: 11 GiB
bandwidth:
name: semi-shared
supply: 1 Mb
ip:
name: v10
supply:
- start: 1.1.1.2
peer-2:
kubeconfigPath: ./path-to-peer-2-kubeconfig
resources:
cpu:
name: Fluence F1 RISC-V 2
supply: 1
ram:
name: DDR7
supply: 11 GiB
storage:
- name: ODD
supply: 11 GiB
bandwidth:
name: semi-shared
supply: 1 Mb
ip:
name: v10
supply:
- start: 1.1.1.3
offers:
FR-PAR-1-Offer:
dataCenterName: FR-PAR-1
computePeers:
- peer-0
- peer-1
- peer-2
resourcePrices:
cpu:
Fluence F1 RISC-V 2: 1 USDC/PhysicalCore
ram:
DDR7: 1 USDC/MiB
storage:
ODD: 1 USDC/MiB
bandwidth:
semi-shared: 1 USDC/Mb
ip:
v10: 1 USDC/IP
capacityCommitments:
peer-0:
duration: 100 days
stakerReward: 20
peer-1:
duration: 100 days
stakerReward: 20
peer-2:
duration: 100 days
stakerReward: 20
'
❯ test/tests/provider.test.ts:630:7
❯ test/helpers/utils.ts:35:5
⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯⎯
Serialized Error: { errno: -36, code: 'ENAMETOOLONG', syscall: 'open', path: 'version: 4\nproviderName: defaultProvider\nresources:\n cpu:\n AMD EPYC Zen 2:\n model: <optional>\n ram:\n DDR4:\n manufacturer: <optional>\n model: <optional>\n speed: 1\n ecc: false\n storage:\n SSD:\n manufacturer: <optional>\n model: <optional>\n sequentialWriteSpeed: 1\ncomputePeers:\n peer-0:\n kubeconfigPath: ./path-to-peer-0-kubeconfig\n resources:\n cpu:\n name: Fluence F1 RISC-V 2\n supply: 1\n ram:\n name: DDR7\n supply: 11 GiB\n storage:\n - name: ODD\n supply: 11 GiB\n bandwidth:\n name: semi-shared\n supply: 1 Mb\n ip:\n name: v10\n supply:\n - start: 1.1.1.1\n peer-1:\n kubeconfigPath: ./path-to-peer-1-kubeconfig\n resources:\n cpu:\n name: Fluence F1 RISC-V 2\n supply: 1\n ram:\n name: DDR7\n supply: 11 GiB\n storage:\n - name: ODD\n supply: 11 GiB\n bandwidth:\n name: semi-shared\n supply: 1 Mb\n ip:\n name: v10\n supply:\n - start: 1.1.1.2\n peer-2:\n kubeconfigPath: ./path-to-peer-2-kubeconfig\n resources:\n cpu:\n name: Fluence F1 RISC-V 2\n supply: 1\n ram:\n name: DDR7\n supply: 11 GiB\n storage:\n - name: ODD\n supply: 11 GiB\n bandwidth:\n name: semi-shared\n supply: 1 Mb\n ip:\n name: v10\n supply:\n - start: 1.1.1.3\noffers:\n FR-PAR-1-Offer:\n dataCenterName: FR-PAR-1\n computePeers:\n - peer-0\n - peer-1\n - peer-2\n resourcePrices:\n cpu:\n Fluence F1 RISC-V 2: 1 USDC/PhysicalCore\n ram:\n DDR7: 1 USDC/MiB\n storage:\n ODD: 1 USDC/MiB\n bandwidth:\n
|
fluence-cli / Run tests
Process completed with exit code 1.
|