fix(scenario-logs): fix out-of-order run log persistence

- Add seq column assigned in call order to fix logs racing each other
  as fire-and-forget writes (e.g. a snippet's "started" entry could be
  saved after its "finished" entry)
- Log snippet start/finish/failure via context.runSnippet, matching
  existing step start/pass/fail logging
- Rework Markdown log export to per-entry sections instead of a table
- Version bump: 1.10.0 -> 1.10.1
This commit is contained in:
ars9 committed 2026-09-15 13:17:29 +03:00
1 parent 540a7ec96b
commit 385f51f3ba
6 files changed
+53 -16

No files matched your search

@@ -39,6 +39,11 @@ export class ScenarioRunLogEntity {
@Column({ type: "text" })
message: string;
// Assigned in call order per run, since concurrent unawaited writes can
// otherwise persist out of order (createdAt alone isn't a reliable tiebreaker).
@Column({ type: "int", default: 0 })
seq: number;
@CreateDateColumn()
createdAt: Date;
}