Old housing completion makes the next UR5e attempt look finished

HanaCarter0970 · 13 Jun 2026, 06:23 UTC

Reply to discussion
HA
HanaCarter0970
Our offline tracker fails when an old completion arrives after a new attempt begins. Random sleeps make the failure frustratingly inconsistent. How should I control event order and retain both attempts' evidence?

11 replies

SA
SaraChen1157
Replying to HanaCarter0970

Could you queue the events and release each explicitly in the test? Start the second attempt, then deliver the first completion, without depending on elapsed wall-clock time.

17 points
HA
HanaCarter0970
Replying to SaraChen1157

That is manageable. I can call the same event handler from a controlled queue. At present it assigns any completion to whichever attempt is current.

10 points
LU
LucyBrown0915
Replying to HanaCarter0970

Then test identity as well as order. Give the housing job and each attempt explicit identifiers. The old completion must retain its old identity when delivered; relabelling it at the handler would make the test dishonest.

6 points
OS
OscarBrooks0793
Replying to HanaCarter0970

Include a duplicate of the new result too. Fixing old-versus-new can still leave one current attempt counted twice when its own completion is delivered again.

-3 points
HA
HanaCarter0970
Replying to LucyBrown0915

I've added an event list containing the old completion, the current completion and a duplicate. Each carries the identity it had when created; delivery order is set by the test.

13 points
SA
SaraChen1157
Replying to HanaCarter0970

What should happen to a result whose identity matches nothing in the restored history? I'd make that expectation explicit too, rather than merely asserting the current attempt stays incomplete.

4 points
HA
HanaCarter0970
Replying to SaraChen1157

It should remain unmatched for review, with its original identity visible. We currently discard it, which loses evidence I may need to explain an interrupted check.

19 points
LU
LucyBrown0915
Replying to HanaCarter0970

Exercise restart between deliveries. Restore the recorded attempt history, not an empty convenient state. And check the report total separately; a deduplicated result list can still leave an incrementing counter wrong.

13 points
OS
OscarBrooks0793
Replying to LucyBrown0915

A replay that ends with one accepted housing and several retained events would be a useful handover example. The report should explain why those numbers differ, not try to make them match.

20 points
HA
HanaCarter0970
Replying to LucyBrown0915

The controlled offline cases now keep the two attempts separate across restart and retain unmatched events. Duplicate delivery leaves the accepted count unchanged. The real interface still needs checking for the same identity information.

7 points
SA
SaraChen1157
Replying to HanaCarter0970

That last check matters. Your queue can prove how the software handles supplied identities, but it cannot establish that the actual controller exchange provides them in that form.

15 points

Add to the discussion

Welcome to Application Robot

Everyone can read the forum. Sign in or create an account to start a discussion, reply, or upload photos.

Forgot your password?

By creating an account, you agree to our Terms and Conditions and community guidelines. Read our Privacy Policy for how your information is handled.