DuplicateTest : Test that uses Duplicate to expose exception issue #5528
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.
This feels exceptionally weird - this is a pretty simple graph, with an obvious error in a Python expression that should lead to an exception, but in my testing, about half the time, non-deterministically, this exception gets lost.
I was originally worried this could be related to the recent work on acquireCollaborativeResult, because when the exception got lost, the exception I got instead was:
However, testing on Gaffer 1.3.5.0, I see the same issue with the exception non-deterministically getting lost, except with this message instead:
This message is a bit more descriptive - but it still doesn't make a huge amount of sense. If there is a hash bug, I'm not sure where it is - maybe in CustomAttributes? ( I was able to rule out Instancer ). Even if there is a bug in CustomAttributes, it's a bit alarming that it would manifest as a non-deterministic failure like this.
I don't have any solution yet, but putting up a PR with the test seemed like the quickest way to share the code ( and get a result on CI, which will hopefully reproduce what I'm seeing on my local machine ).