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

Fairino FR5: Our retry bookkeeping needs a tougher offline test

NaomiBennett0767 · 2026年8月30日 23:26 UTC

回复讨论
NA
NaomiBennett0767
I'm testing our fixture-check completion reporting tracking offline for a setup using Fairino FR5 in a PLC-coordinated inspection cell, with a sample bracket as a reference. An earlier attempt's completion incorrectly completes a newer attempt if I deliver it after that attempt starts. I need repeatable delayed and duplicate event tests because the random sleeps aren't reliable.

12 条回复

JA
JackBrooks0863

@NaomiBennett0767 Can you preserve that failing delivery sequence and check which identifier the handler uses to match completion: the specific attempt or only the job label?

7
NA
NaomiBennett0767

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.

3
JA
JackBrooks0863

@NaomiBennett0767 Use the saved sequence to exercise matching by attempt identity, with a controllable harness clock. Making the ordering deterministic should cover this race condition.

21
AN
AnilAli0201

It covers that order, not every race. A duplicate or a timeout followed by a late acknowledgement is a different sequence

-3
JA
JackBrooks0863

You're right; my coverage claim was too broad. This schedule targets the reproduced mismatch, and the duplicate and post-timeout acknowledgement cases need their own schedules.

24
NA
NaomiBennett0767

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

12
JA
JackBrooks0863

Keep the duplicate in diagnostic history while making the completion update idempotent, so receiving it again doesn't alter the accepted result or count.

12
NO
NoahAdams0107

@JackBrooks0863 Is idempotent just another word for ignoring the second message? I'm not sure how that fits with retaining it in the history.

14
JA
JackBrooks0863

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

19
SA
SamAli0246

My offline test used to assert only the final count. It missed a duplicate notification because the number happened to stay right.

2
NA
NaomiBennett0767
回复 SamAli0246

@SamAli0246 I've isolated the incorrect job-label match in a saved sequence. The remaining duplicate and delayed-event behaviour still needs establishing.

9
JA
JackBrooks0863

@NaomiBennett0767 That's a clear partial result: an isolated identity mistake, with the other delivery cases still unverified.

6

参与讨论

欢迎来到 Application Robot

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

忘记密码?

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