Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replica truncation tests fail against iRODS 4.3.3 #472

Closed
korydraughn opened this issue Aug 27, 2024 · 0 comments
Closed

Replica truncation tests fail against iRODS 4.3.3 #472

korydraughn opened this issue Aug 27, 2024 · 0 comments
Assignees
Milestone

Comments

@korydraughn
Copy link
Collaborator

The following failures are due to irods/irods#7918.

[ERROR] Tests run: 1561, Failures: 3, Errors: 0, Skipped: 5, Time elapsed: 2,495.753 s <<< FAILURE! - in org.irods.jargon.core.unittest.AllTests
[ERROR] testReplicaTruncateUsingResourceName(org.irods.jargon.core.pub.DataObjectAOImplTest)  Time elapsed: 0.255 s  <<< FAILURE!
java.lang.AssertionError: expected null, but was:<{"message":"","replica_number":1,"resource_hierarchy":"testReplicaTruncateUsingResourceName"}>
        at org.irods.jargon.core.pub.DataObjectAOImplTest.testReplicaTruncateUsingResourceName(DataObjectAOImplTest.java:5198)

[ERROR] testReplicaTruncateNoTargetReplica(org.irods.jargon.core.pub.DataObjectAOImplTest)  Time elapsed: 0.273 s  <<< FAILURE!
java.lang.AssertionError: expected null, but was:<{"message":"","replica_number":0,"resource_hierarchy":"test1-resc"}>
        at org.irods.jargon.core.pub.DataObjectAOImplTest.testReplicaTruncateNoTargetReplica(DataObjectAOImplTest.java:5079)

[ERROR] testReplicaTruncateUsingReplicaNumber(org.irods.jargon.core.pub.DataObjectAOImplTest)  Time elapsed: 0.288 s  <<< FAILURE!
java.lang.AssertionError: expected null, but was:<{"message":"","replica_number":1,"resource_hierarchy":"testReplicaTruncateUsingReplicaNumber"}>
        at org.irods.jargon.core.pub.DataObjectAOImplTest.testReplicaTruncateUsingReplicaNumber(DataObjectAOImplTest.java:5135)

[INFO] 
[INFO] Results:
[INFO] 
[ERROR] Failures: 
[ERROR]   DataObjectAOImplTest.testReplicaTruncateNoTargetReplica:5079 expected null, but was:<{"message":"","replica_number":0,"resource_hierarchy":"test1-resc"}>
[ERROR]   DataObjectAOImplTest.testReplicaTruncateUsingReplicaNumber:5135 expected null, but was:<{"message":"","replica_number":1,"resource_hierarchy":"testReplicaTruncateUsingReplicaNumber"}>
[ERROR]   DataObjectAOImplTest.testReplicaTruncateUsingResourceName:5198 expected null, but was:<{"message":"","replica_number":1,"resource_hierarchy":"testReplicaTruncateUsingResourceName"}>
[INFO] 
[ERROR] Tests run: 1561, Failures: 3, Errors: 0, Skipped: 5
[INFO] 
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Jargon 4.3.3.0-RELEASE:
[INFO] 
[INFO] Jargon ............................................. SUCCESS [  1.490 s]
[INFO] Jargon Core ........................................ FAILURE [43:09 min]
[INFO] Jargon User Tagging ................................ SKIPPED
[INFO] Jargon Data Utils .................................. SKIPPED
[INFO] Jargon Ticket ...................................... SKIPPED
[INFO] Jargon Pool ........................................ SKIPPED
[INFO] Jargon Rule Service ................................ SKIPPED
[INFO] data-profile ....................................... SKIPPED
[INFO] jargon-zipservice .................................. SKIPPED
[INFO] Jargon Metadata Query .............................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  43:13 min
[INFO] Finished at: 2024-08-27T12:18:35Z
[INFO] ------------------------------------------------------------------------

To resolve them, the tests need to assert a non-null value.

@korydraughn korydraughn added this to the 4.3.4.0 milestone Aug 27, 2024
@korydraughn korydraughn self-assigned this Aug 27, 2024
korydraughn added a commit to korydraughn/jargon that referenced this issue Aug 27, 2024
iRODS 4.3.2's implementation of rx_replica_truncate contained a bug that
caused it not return JSON as often as it should. The details of the
issue can be found here:

    irods/irods#7918

This commit adjusts the tests so that they work with iRODS 4.3.2 and
iRODS 4.3.3.
korydraughn added a commit that referenced this issue Aug 27, 2024
iRODS 4.3.2's implementation of rx_replica_truncate contained a bug that
caused it not return JSON as often as it should. The details of the
issue can be found here:

    irods/irods#7918

This commit adjusts the tests so that they work with iRODS 4.3.2 and
iRODS 4.3.3.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant