Repository navigation
tentacle: test/encoding/readable: Add backward incompat checks - #67394
Merged
Merged
Conversation
Contributor
|
jenkins test make check |
rzarzynski
approved these changes
Mar 16, 2026
Contributor
|
This PR has been added to wip-yuri13-testing-20260729.211123-tentacle. |
batrick
force-pushed
the
wip-74999-tentacle
branch
from
August 21, 2026 18:14
0327df5 to
a6fec1a
Compare
The python script test_readable.py was added for backword and forward compability. maintaining 2 scripts that finally doing the same is west, reverting and using readable.sh and leave the python out. https://tracker.ceph.com/issues/74074 Signed-off-by: Nitzan Mordechai <[email protected]> (cherry picked from commit 9d289ed)
The readable.sh script has forward incompat checks, but no
backward incompat checks.
This fix will:
1. Add check for backward_incompat directory for each type for specific
objects or all objects with the same type and skip those objects from being tested.
2. Add version comparison helper functions (version_lt, version_le, version_ge,
versions_span) for robust version handling
3. Replace 'sort -n' with 'sort -V' for proper version number sorting
4. Add CORPUS_PATH environment variable to allow teuthology tests to execute this script
5. Improve readability of the script
The difference between backward and forward incompat:
- forward_incompat: Marks objects from older versions that newer ceph-dencoder
versions cannot read. Example: Version 19.2.x objects marked incompat at version 20.2.x
means ceph-dencoder v20.2.x+ can't decode them. Skip when testing old objects
with a new ceph-dencoder.
- backward_incompat: Marks objects from newer versions that older ceph-dencoder
versions cannot read. Example: Version 19.2.x objects marked backward_incompat at v19.2.x
means ceph-dencoder < v19.2.x can't decode them. Skip when testing new objects
with an old ceph-dencoder.
Fixes: https://tracker.ceph.com/issues/74074
Signed-off-by: Nitzan Mordechai <[email protected]>
(cherry picked from commit 011b25d)
batrick
force-pushed
the
wip-74999-tentacle
branch
from
August 21, 2026 23:53
a6fec1a to
372c908
Compare
Member
|
jenkins test make check |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
backport tracker: https://tracker.ceph.com/issues/74999
backport of #66544
parent tracker: https://tracker.ceph.com/issues/74074
this backport was staged using ceph-backport.sh version 16.0.0.6848
find the latest version at https://github.com/ceph/ceph/blob/main/src/script/ceph-backport.sh