Skip to content

Commit 1b715f2

Browse files
authored
Merge pull request #595 from iExecBlockchainComputing/release/8.1.0
Release/8.1.0
2 parents 1e6d93d + b02a0c4 commit 1b715f2

File tree

66 files changed

+2086
-752
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+2086
-752
lines changed

CHANGELOG.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,34 @@
22

33
All notable changes to this project will be documented in this file.
44

5+
## [[8.1.0]](https://github.com/iExecBlockchainComputing/iexec-core/releases/tag/v8.1.0) 2023-06-09
6+
7+
### New Features
8+
- Add ContributeAndFinalize to `ReplicateWorkflow`. (#574)
9+
- Add check for ContributeAndFinalize in `ReplicatesService`. (#576 #582)
10+
- Add `running2Finalized2Completed` in `TaskUpdateManager`. (#577 #578)
11+
- Disable `contributeAndFinalize` with CallBack. (#579 #581)
12+
- Add purge cached task descriptions ability. (#587)
13+
- Add detectors for `ContributeAndFinalize` flow. (#590 #593)
14+
### Bug Fixes
15+
- Prevent race condition on replicate update. (#568)
16+
- Use builders in test classes. (#589)
17+
### Quality
18+
- Remove unused methods in `IexecHubService`. (#572)
19+
- Clean unused Replicate methods and update tests. (#573)
20+
- Clean unused `ReplicateStatus#RESULT_UPLOAD_REQUEST_FAILED`. (#575)
21+
- Refactor unnotified detectors to avoid code duplication. (#580)
22+
- Use `==` or `!=` operators to test the equality of enums. (#584)
23+
- Rearrange checks order to avoid call to database. (#585)
24+
- Move methods to get event blocks from `iexec-commons-poco`. (#588)
25+
- Rename detectors' methods and fields to match Ongoing/Done standard. (#591)
26+
### Dependency Upgrades
27+
- Upgrade to `iexec-common` 8.2.0. (#571 #575 #586 #594)
28+
- Add new `iexec-commons-poco` 3.0.2 dependency. (#571 #574 #586 #587 #588 #592 #594)
29+
- Upgrade to `iexec-blockchain-adapter-api-library` 8.1.0. (#594)
30+
- Upgrade to `iexec-result-proxy-library` 8.1.0. (#594)
31+
- Upgrade to `iexec-sms-library` 8.1.0. (#594)
32+
533
## [[8.0.1]](https://github.com/iExecBlockchainComputing/iexec-core/releases/tag/v8.0.1) 2023-03-20
634

735
### Bug Fixes

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,7 @@ No default strategy has been implemented in the [Dockerfile](Dockerfile) at the
7171
```
7272
./gradlew build
7373
```
74+
75+
## License
76+
77+
This repository code is released under the [Apache License 2.0](LICENSE).

build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ dependencyManagement {
4848

4949
dependencies {
5050
// iexec
51+
implementation "com.iexec.commons:iexec-commons-poco:$iexecCommonsPocoVersion"
5152
implementation "com.iexec.common:iexec-common:$iexecCommonVersion"
5253
implementation "com.iexec.blockchain:iexec-blockchain-adapter-api-library:$iexecBlockchainAdapterVersion"
5354
implementation "com.iexec.result-proxy:iexec-result-proxy-library:$iexecResultVersion"
@@ -100,6 +101,9 @@ dependencies {
100101
implementation "com.github.cloudyrock.mongock:mongock-spring-v5:${mongockVersion}"
101102
implementation "com.github.cloudyrock.mongock:mongodb-springdata-v2-driver:${mongockVersion}"
102103

104+
// vavr
105+
implementation 'io.vavr:vavr:0.10.4'
106+
103107
testImplementation 'org.springframework.boot:spring-boot-starter-test'
104108

105109
// awaitility

gradle.properties

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
version=8.0.1
2-
iexecCommonVersion=7.0.0
3-
iexecBlockchainAdapterVersion=8.0.0
4-
iexecResultVersion=8.0.0
5-
iexecSmsVersion=8.0.0
1+
version=8.1.0
2+
iexecCommonVersion=8.2.0
3+
iexecCommonsPocoVersion=3.0.2
4+
iexecBlockchainAdapterVersion=8.1.0
5+
iexecResultVersion=8.1.0
6+
iexecSmsVersion=8.1.0
67

78
nexusUser
89
nexusPassword

src/main/java/com/iexec/core/chain/ChainConfig.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222
import org.springframework.beans.factory.annotation.Value;
2323
import org.springframework.stereotype.Component;
2424

25+
import java.time.Duration;
26+
2527
@Component
2628
@Getter
2729
@AllArgsConstructor
@@ -37,6 +39,9 @@ public class ChainConfig {
3739
@Value("#{blockchainAdapterService.publicChainConfig.iexecHubContractAddress}")
3840
private String hubAddress;
3941

42+
@Value("#{blockchainAdapterService.publicChainConfig.blockTime}")
43+
private Duration blockTime;
44+
4045
@Value("${chain.privateAddress}")
4146
private String privateChainAddress;
4247

src/main/java/com/iexec/core/chain/DealEvent.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2020 IEXEC BLOCKCHAIN TECH
2+
* Copyright 2020-2023 IEXEC BLOCKCHAIN TECH
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -16,8 +16,8 @@
1616

1717
package com.iexec.core.chain;
1818

19-
import com.iexec.common.contract.generated.IexecHubContract;
20-
import com.iexec.common.utils.BytesUtils;
19+
import com.iexec.commons.poco.contract.generated.IexecHubContract;
20+
import com.iexec.commons.poco.utils.BytesUtils;
2121
import lombok.Getter;
2222

2323
import java.math.BigInteger;

src/main/java/com/iexec/core/chain/DealWatcherService.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2020 IEXEC BLOCKCHAIN TECH
2+
* Copyright 2020-2023 IEXEC BLOCKCHAIN TECH
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -16,9 +16,9 @@
1616

1717
package com.iexec.core.chain;
1818

19-
import com.iexec.common.chain.ChainDeal;
20-
import com.iexec.common.contract.generated.IexecHubContract;
21-
import com.iexec.common.utils.BytesUtils;
19+
import com.iexec.commons.poco.chain.ChainDeal;
20+
import com.iexec.commons.poco.contract.generated.IexecHubContract;
21+
import com.iexec.commons.poco.utils.BytesUtils;
2222
import com.iexec.core.configuration.ConfigurationService;
2323
import com.iexec.core.task.Task;
2424
import com.iexec.core.task.TaskService;
@@ -41,7 +41,7 @@
4141
import java.math.BigInteger;
4242
import java.util.Optional;
4343

44-
import static com.iexec.common.contract.generated.IexecHubContract.SCHEDULERNOTICE_EVENT;
44+
import static com.iexec.commons.poco.contract.generated.IexecHubContract.SCHEDULERNOTICE_EVENT;
4545

4646
@Slf4j
4747
@Service

0 commit comments

Comments
 (0)