Skip to content

[fatal-guard] CI smoke test: npm install + crash capture + tombstone output #1011

Description

@Ikalus1988

Goal

Add a minimal CI smoke test for fatal-guard that verifies the full crash→tombstone→draft chain.

Context

fatal-guard has CI (dependencies:
FAIL: expected 0 dependencies) but it only runs unit tests. There's no end-to-end smoke test that proves:

  1. npm install succeeds
  2. A crash is captured
  3. A tombstone JSON is produced
  4. tombstone_to_draft.py converts it to a draft lesson

Scope

  • Add tests/smoke.test.js that:
    • Spawns a child process that crashes
    • Captures tombstone JSON output
    • Validates tombstone schema (4 required fields)
    • Runs tombstone_to_draft.py --dry-run on the tombstone
    • Verifies draft lesson is valid markdown
  • Add this smoke test to CI
  • Run on Linux + Windows

Deliverable

  • npm test includes smoke test
  • CI runs smoke test on Linux + Windows
  • Full chain: crash → tombstone → draft lesson works

Labels

ready, agent-friendly, zero-bounty


This repo is using Opire - what does it mean? 👇
💵 Everyone can add rewards for this issue commenting /reward 100 (replace 100 with the amount).
🕵️‍♂️ If someone starts working on this issue to earn the rewards, they can comment /try to let everyone know!
🙌 And when they open the PR, they can comment /claim #1011 either in the PR description or in a PR's comment.

🪙 Also, everyone can tip any user commenting /tip 20 @Ikalus1988 (replace 20 with the amount, and @Ikalus1988 with the user to tip).

📖 If you want to learn more, check out our documentation.

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-friendlyIssue has clear file path, commands, and expected outputneeds-acreadyzero-bountyZero monetary reward — merge credit + leaderboard only

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions