Skip to content

Commit f14e384

Browse files
authored
Unskip c2d tests and apply disk optimisation like in Provider. (#1471)
* Unskip c2d tests and apply disk optimisation like in Provider. * Update provider version. * Remove veDelegationProxy and prepare libcheck. * Remove custom barge provider version. * Bump version: 3.0.1 → 3.0.2
1 parent a439ec2 commit f14e384

File tree

13 files changed

+34
-47
lines changed

13 files changed

+34
-47
lines changed

.bumpversion.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[bumpversion]
2-
current_version = 3.0.1
2+
current_version = 3.0.2
33
commit = True
44
tag = True
55

.github/workflows/libcheck.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@ jobs:
3030
env:
3131
GANACHE_HARDFORK: london
3232
run: |
33-
bash -x start_ocean.sh --no-dashboard 2>&1 --with-provider2 > start_ocean.log &
33+
bash -x start_ocean.sh --no-dashboard 2>&1 --with-provider2 --with-c2d > start_ocean.log &
3434
for i in $(seq 1 108); do
3535
sleep 5
36-
[ -f "$HOME/.ocean/ocean-contracts/artifacts/ready" ] && break
36+
[ -f "$HOME/.ocean/ocean-contracts/artifacts/ready" -a -f "$HOME/.ocean/ocean-c2d/ready" ] && break
3737
done
3838
ls -la "$HOME/.ocean/ocean-contracts/artifacts/"
3939
- name: Install dependencies
@@ -42,6 +42,19 @@ jobs:
4242
python -m pip install --upgrade pip
4343
pip install ocean-lib
4444
pip install mkcodes pytest matplotlib
45+
- name: Delete default runner images
46+
run: |
47+
docker image rm node:14
48+
docker image rm node:14-alpine
49+
docker image rm node:16
50+
docker image rm node:16-alpine
51+
docker image rm node:18
52+
docker image rm node:18-alpine
53+
docker image rm buildpack-deps:buster
54+
docker image rm buildpack-deps:bullseye
55+
docker image rm debian:10
56+
docker image rm debian:11
57+
docker image rm moby/buildkit:latest
4558
- name: Generate and test readmes
4659
working-directory: ${{ github.workspace }}
4760
env:

.github/workflows/pytest.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,18 +32,31 @@ jobs:
3232
env:
3333
GANACHE_HARDFORK: london
3434
run: |
35-
bash -x start_ocean.sh --no-dashboard 2>&1 --with-provider2 --with-thegraph --skip-subgraph-deploy > start_ocean.log &
35+
bash -x start_ocean.sh --no-dashboard 2>&1 --with-provider2 --with-thegraph --with-c2d --skip-subgraph-deploy > start_ocean.log &
3636
- name: Install dependencies
3737
working-directory: ${{ github.workspace }}
3838
run: |
3939
python -m pip install --upgrade pip
4040
pip install -r requirements_dev.txt
41+
- name: Delete default runner images
42+
run: |
43+
docker image rm node:14
44+
docker image rm node:14-alpine
45+
docker image rm node:16
46+
docker image rm node:16-alpine
47+
docker image rm node:18
48+
docker image rm node:18-alpine
49+
docker image rm buildpack-deps:buster
50+
docker image rm buildpack-deps:bullseye
51+
docker image rm debian:10
52+
docker image rm debian:11
53+
docker image rm moby/buildkit:latest
4154
- name: Wait for contracts deployment
4255
working-directory: ${{ github.workspace }}/barge
4356
run: |
4457
for i in $(seq 1 250); do
4558
sleep 5
46-
[ -f "$HOME/.ocean/ocean-contracts/artifacts/ready" ] && break
59+
[ -f "$HOME/.ocean/ocean-contracts/artifacts/ready" -a -f "$HOME/.ocean/ocean-c2d/ready" ] && break
4760
done
4861
- name: "Read address.json contents"
4962
working-directory: ${{ github.workspace }}

READMEs/df.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,6 @@ It provides convenient access to [DF](https://github.com/oceanprotocol/ocean.py/
176176
- `ocean.smart_wallet_checker -> SmartWalletChecker`
177177
- `ocean.ve_allocate -> VeAllocate`
178178
- `ocean.ve_delegation -> VeDelegation`
179-
- `ocean.ve_delegation_proxy -> VeDelegationProxy`
180179
- `ocean.ve_fee_distributor -> VeFeeDistributor`
181180
- `ocean.ve_fee_estimate(self) -> VeFeeEstimate`
182181

ocean_lib/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,5 @@
77

88
__author__ = """OceanProtocol"""
99
# fmt: off
10-
__version__ = '3.0.1'
10+
__version__ = '3.0.2'
1111
# fmt: on

ocean_lib/data_provider/test/test_data_service_provider.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,6 @@ def test_send_compute_request_failure(with_evil_client, provider_wallet):
144144
)
145145

146146

147-
@pytest.mark.skip(reason="Need to fix c2d CI containers in #1449")
148147
@pytest.mark.unit
149148
def test_compute_job_result_fails(provider_wallet):
150149
"""Tests failure of compute job starting."""
@@ -164,7 +163,6 @@ def test_compute_job_result_fails(provider_wallet):
164163
DataSP.compute_job_result("some_job_id", 0, mock_service, provider_wallet)
165164

166165

167-
@pytest.mark.skip(reason="Need to fix c2d CI containers in #1449")
168166
@pytest.mark.unit
169167
def test_delete_job_result(provider_wallet):
170168
"""Tests a failure & a success of compute job deletion."""
@@ -278,7 +276,6 @@ def test_expose_endpoints():
278276
]
279277

280278

281-
@pytest.mark.skip(reason="Need to fix c2d CI containers in #1449")
282279
@pytest.mark.integration
283280
def test_c2d_environments():
284281
"""Tests that the test ocean-compute env exists on the DataServiceProvider."""

ocean_lib/models/ve/test/test_ve_delegation_proxy.py

Lines changed: 0 additions & 11 deletions
This file was deleted.

ocean_lib/models/ve/ve_delegation_proxy.py

Lines changed: 0 additions & 9 deletions
This file was deleted.

ocean_lib/ocean/ocean.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
from ocean_lib.models.ve.smart_wallet_checker import SmartWalletChecker
2727
from ocean_lib.models.ve.ve_allocate import VeAllocate
2828
from ocean_lib.models.ve.ve_delegation import VeDelegation
29-
from ocean_lib.models.ve.ve_delegation_proxy import VeDelegationProxy
3029
from ocean_lib.models.ve.ve_fee_distributor import VeFeeDistributor
3130
from ocean_lib.models.ve.ve_fee_estimate import VeFeeEstimate
3231
from ocean_lib.models.ve.ve_ocean import VeOcean
@@ -235,11 +234,6 @@ def ve_allocate(self) -> VeAllocate:
235234
def ve_delegation(self) -> VeDelegation:
236235
return VeDelegation(self.config, self._addr("veDelegation"))
237236

238-
@property
239-
@enforce_types
240-
def ve_delegation_proxy(self) -> VeDelegationProxy:
241-
return VeDelegationProxy(self.config, self._addr("veDelegationProxy"))
242-
243237
@property
244238
@enforce_types
245239
def ve_fee_distributor(self) -> VeFeeDistributor:

ocean_lib/ocean/test/test_ocean.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
from ocean_lib.models.ve.smart_wallet_checker import SmartWalletChecker
1515
from ocean_lib.models.ve.ve_allocate import VeAllocate
1616
from ocean_lib.models.ve.ve_delegation import VeDelegation
17-
from ocean_lib.models.ve.ve_delegation_proxy import VeDelegationProxy
1817
from ocean_lib.models.ve.ve_fee_distributor import VeFeeDistributor
1918
from ocean_lib.models.ve.ve_fee_estimate import VeFeeEstimate
2019
from ocean_lib.models.ve.ve_ocean import VeOcean
@@ -53,7 +52,6 @@ def test_contract_objects(publisher_ocean):
5352
assert isinstance(ocean.smart_wallet_checker, SmartWalletChecker)
5453
assert isinstance(ocean.ve_allocate, VeAllocate)
5554
assert isinstance(ocean.ve_delegation, VeDelegation)
56-
assert isinstance(ocean.ve_delegation_proxy, VeDelegationProxy)
5755
assert isinstance(ocean.ve_fee_distributor, VeFeeDistributor)
5856
assert isinstance(ocean.ve_fee_estimate, VeFeeEstimate)
5957
assert isinstance(ocean.ve_ocean, VeOcean)

0 commit comments

Comments
 (0)