adoroszlai opened a new pull request, #12175:
URL: https://github.com/apache/ozone/pull/12175
## What changes were proposed in this pull request?
Increase version combinations exercised in cross-compatibility tests.
(Terms: "new" = "current version, being tested", "old" = "previous, released
versions".)
Currently tested:
- In new cluster, each client reads its own data, old clients also read data
written by new client:
```
xcompat-cluster-2.3.0-client-1.1.0-read-1.1.0
xcompat-cluster-2.3.0-client-1.1.0-read-2.3.0
xcompat-cluster-2.3.0-client-1.2.1-read-1.2.1
xcompat-cluster-2.3.0-client-1.2.1-read-2.3.0
...
xcompat-cluster-2.3.0-client-2.2.2-read-2.2.2
xcompat-cluster-2.3.0-client-2.2.2-read-2.3.0
xcompat-cluster-2.3.0-client-2.3.0-read-2.3.0
```
- In old cluster X, old client X only reads new data, new client reads two
versions (X and own)
```
xcompat-cluster-1.4.1-client-1.4.1-read-2.3.0
xcompat-cluster-1.4.1-client-2.3.0-read-1.4.1
xcompat-cluster-1.4.1-client-2.3.0-read-2.3.0
```
This PR adds new combinations (see "test" part for diff):
- clients with batch support (currently only 2.3.0) read all old data
- old client X in old cluster Y reads new data
The change increases combinations, but also runtime:
- old cluster
- combinations: `3 -> 15` (5x)
- time: `6-11 minutes -> 11-24 minutes` (2x)
- new cluster
- combinations: `15 -> 22`
- time: `27 minutes -> 32 minutes`
Runtime can be improved in follow-up tasks.
https://issues.apache.org/jira/browse/HDDS-17661
## How was this patch tested?
Added bats test for the combination generator.
Compared CI runs before/after the change. (Results were reordered before
diff, because the patch changes execution order to start with the current
version.)
1. New cluster
[before](https://github.com/apache/ozone/actions/runs/45731404308/job/139628309464),
[after](https://github.com/adoroszlai/ozone/actions/runs/45772710812/job/139764721758):
```diff
--- 1-new-before
+++ 2-new-after
@@ -12,4 +12,11 @@
xcompat-cluster-2.3.0-client-2.1.2-read-2.3.0 :: Read Compatibility |
PASS |
xcompat-cluster-2.3.0-client-2.2.2-read-2.2.2 :: Read Compatibility |
PASS |
xcompat-cluster-2.3.0-client-2.2.2-read-2.3.0 :: Read Compatibility |
PASS |
+xcompat-cluster-2.3.0-client-2.3.0-read-1.1.0 :: Read Compatibility |
PASS |
+xcompat-cluster-2.3.0-client-2.3.0-read-1.2.1 :: Read Compatibility |
PASS |
+xcompat-cluster-2.3.0-client-2.3.0-read-1.3.0 :: Read Compatibility |
PASS |
+xcompat-cluster-2.3.0-client-2.3.0-read-1.4.1 :: Read Compatibility |
PASS |
+xcompat-cluster-2.3.0-client-2.3.0-read-2.0.0 :: Read Compatibility |
PASS |
+xcompat-cluster-2.3.0-client-2.3.0-read-2.1.2 :: Read Compatibility |
PASS |
+xcompat-cluster-2.3.0-client-2.3.0-read-2.2.2 :: Read Compatibility |
PASS |
xcompat-cluster-2.3.0-client-2.3.0-read-2.3.0 :: Read Compatibility |
PASS |
```
2. Old cluster (example)
[before](https://github.com/apache/ozone/actions/runs/45731404308/job/139620724214),
[after](https://github.com/adoroszlai/ozone/actions/runs/45772710812/job/139757976408):
```diff
--- 1-old-before
+++ 2-old-after
@@ -1,3 +1,15 @@
+xcompat-cluster-1.4.1-client-1.1.0-read-2.3.0 :: Read Compatibility |
PASS |
+xcompat-cluster-1.4.1-client-1.2.1-read-2.3.0 :: Read Compatibility |
PASS |
+xcompat-cluster-1.4.1-client-1.3.0-read-2.3.0 :: Read Compatibility |
PASS |
xcompat-cluster-1.4.1-client-1.4.1-read-2.3.0 :: Read Compatibility |
PASS |
+xcompat-cluster-1.4.1-client-2.0.0-read-2.3.0 :: Read Compatibility |
PASS |
+xcompat-cluster-1.4.1-client-2.1.2-read-2.3.0 :: Read Compatibility |
PASS |
+xcompat-cluster-1.4.1-client-2.2.2-read-2.3.0 :: Read Compatibility |
PASS |
+xcompat-cluster-1.4.1-client-2.3.0-read-1.1.0 :: Read Compatibility |
PASS |
+xcompat-cluster-1.4.1-client-2.3.0-read-1.2.1 :: Read Compatibility |
PASS |
+xcompat-cluster-1.4.1-client-2.3.0-read-1.3.0 :: Read Compatibility |
PASS |
xcompat-cluster-1.4.1-client-2.3.0-read-1.4.1 :: Read Compatibility |
PASS |
+xcompat-cluster-1.4.1-client-2.3.0-read-2.0.0 :: Read Compatibility |
PASS |
+xcompat-cluster-1.4.1-client-2.3.0-read-2.1.2 :: Read Compatibility |
PASS |
+xcompat-cluster-1.4.1-client-2.3.0-read-2.2.2 :: Read Compatibility |
PASS |
xcompat-cluster-1.4.1-client-2.3.0-read-2.3.0 :: Read Compatibility |
PASS |
```
CI: https://github.com/adoroszlai/ozone/actions/runs/45772710812
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]