Test that systemd restarts tinyobserve after a failure exit

Open
#70 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
53/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
linux, rust
Domain
devops, testing

Research direction

Start with the Linux smoke test and its systemd setup, then read the restart behavior work in #49. The issue suggests using a debug build under systemd in CI or making startup fail once; choose a way to trigger exit code 1 without adding release build hooks. Done means the smoke test observes systemd restart tinyobserve after exit 1 and verifies ingest works.

Written by the indexing model from the issue text.

Description

area:ops chore priority:low

As the maintainer,
I want CI to prove systemd restarts tinyobserve when it exits with a failure code,
so that the dead-writer protection from #49 is checked end to end.

Acceptance criteria

  • Given the Linux smoke test, when tinyobserve exits with code 1, then systemd starts it again and ingest works.

Success signal: The release smoke test covers exit 1, not only SIGKILL.
Out of scope: Release builds with test hooks.
Open questions: None.

Technical notes

The fault-injection feature is debug-only; a debug build under systemd in CI, or a config that makes startup fail once, may be simpler.

Follow-up from #49.

Dominant language
Rust
Stars
0
Forks
0
Avg merge
40m
Merged PRs (30d)
91

Getting set up

This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from jdrouet/tinyobserve

All issues in jdrouet/tinyobserve

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.