简体中文界面。帖子、指南及政策正文保留原文;未对原文作自动翻译。

My sample acceptance bookkeeping tracker mixes up consecutive attempts

FionaBrooks0847 · 2026年7月25日 16:59 UTC

回复讨论
FI
FionaBrooks0847
In our offline test, delivering an old completion after a new attempt starts makes the new sample acceptance bookkeeping attempt look complete. The real setup uses Universal Robots UR5e in a sample inspection setup with recorded job events, with a sample bracket as a reference. I'm trying to exercise delayed and duplicate events reliably; random sleeps keep making the test hard to reproduce.

19 条回复

LI
LiamBaker0490

Save the exact event order. Does your handler match the completion by attempt identity, or just the job label?

20
FI
FionaBrooks0847

Our handler matches only the job label. The saved sequence reliably shows the earlier completion arriving after a new attempt begins and being attached to that new attempt.

17
LI
LiamBaker0490

Replay that sequence with explicit attempt matching. Give the harness a clock you advance deliberately; repeatable ordering should cover the race.

17
MA
MayaAdams0127

@LiamBaker0490 A deterministic replay covers the schedule you give it. Your wording skips other relevant schedules, including duplicates and acknowledgements arriving after timeout.

14
LI
LiamBaker0490

Fair. I meant this reproduced wrong match, not the whole class. Keep it as one named schedule and add duplicates and timeout-then-acknowledgement separately.

16
FI
FionaBrooks0847

How should I handle history when the same completion is delivered twice? I'd expect one count change but still want both observations visible.

20
LI
LiamBaker0490

@FionaBrooks0847 Yes. Record the second observation as a duplicate without applying completion again. You want repeat delivery to leave the accepted result unchanged.

18
AD
AdaChan1086

Idempotent means ignoring it, basically? Or am I missing why you'd log something you ignored?

2
LI
LiamBaker0490

Same effect when applied again. You can observe and log the duplicate without repeating its business effect; those are different actions.

11
RA
RachelBrooks0870

On my setup, checking the final count alone let a repeated notification slip through. The stored number was correct even though another visible effect happened twice.

19
FI
FionaBrooks0847

Our schedule assertions will include notifications as well as counts, since an unchanged number wouldn't reveal a duplicate message being emitted.

7
MA
MayaAdams0127

@FionaBrooks0847 What state do you expect after timeout? The local wait ending doesn't establish the remote job's final outcome.

0
FI
FionaBrooks0847

@MayaAdams0127 Unknown until matching evidence settles it. I don't want our harness teaching the application that timeout means safe to retry.

14
LI
LiamBaker0490

Then make that explicit in the schedule: advance past the timeout, assert unknown, deliver the queued acknowledgement, and apply only the transition it actually supports.

24
AD
AdaChan1086

An acknowledgement isn't completion, right? I keep mentally jumping from accepted to finished

10
LI
LiamBaker0490

Follow your interface's definitions. If it acknowledges acceptance, it says nothing by itself about completion. Name those events differently in the test.

14
FI
FionaBrooks0847

I'll keep acceptance and completion separate in our fixtures. Our expected-state names need to be as clear as the incoming events.

11
FI
FionaBrooks0847

Our handling of delayed events remains unresolved. Reproducing the identity mistake hasn't yet established that the corrected handler behaves reliably.

21
LI
LiamBaker0490

Understood. A repeatable failure helps diagnosis, but doesn't prove the handler can cope with delayed events yet.

22

参与讨论

欢迎来到 Application Robot

所有人都可以阅读论坛。登录或注册后即可发起讨论、回复或上传照片。

忘记密码?

注册账号即表示你同意我们的 使用条款 社区准则。请阅读我们的 隐私政策 ,了解我们如何处理你的信息。