Skip to content

Add regression tests for cross-file log ordering consistency #177

Description

@casks-mutters

The current test suite focuses on validating individual log files, but there are no regression tests that verify ordering consistency across multiple log files. Since the project aims to detect inconsistencies in distributed or rotated logs, missing these tests leaves a major behavior unverified.

What’s missing

  • Tests that load multiple log files (e.g., server1.log, server2.log) and check whether the combined timeline respects ordering guarantees.
  • Validation that the auditor correctly reports:
  • Timestamp regressions across files
  • Conflicting sequence numbers
  • Gaps or overlaps when merging streams

Suggested test scenarios

  • Simple merge test
  • Two logs with strictly increasing timestamps should produce zero ordering issues.
  • Cross-file regression
  • server1.log ends at 12:03:10, while server2.log begins with an earlier timestamp—should report a regression.
  • Sequence conflict test
  • Two files contain the same sequence ID but with different associated data.
  • Mixed-format test
  • If the tool supports flexible log formats, include differently formatted logs to ensure the multi-file pipeline handles them correctly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions