Skip to content

docs(adrs): define test log assertion strategy - #2102

Merged
josecelano merged 7 commits into
torrust:developfrom
josecelano:1430-fix-tracing-span-log-assertions
Aug 26, 2026
Merged

josecelano merged 7 commits into
torrust:developfrom
josecelano:1430-fix-tracing-span-log-assertions

Conversation

@josecelano

Copy link
Copy Markdown
Member

Summary

Document the accepted strategy for assertions over captured test logs and retain the repository-owned helper.

  • Add ADR 20260826124959_use_explicit_identifiers_for_test_log_assertions.md.
  • Prefer explicit identifiers selected by the test author, such as request IDs and info hashes.
  • Record why automatic propagation of test-owned tracing spans and replacing the helper with tracing-test are not pursued for current tracker needs.
  • Keep issue Fix bug related to the crate tracing-test for writing assertions for logs #1430 open until this PR merges, then archive its specification in follow-up documentation maintenance.

Verification

  • linter all
  • Pre-push checks: nightly format, nightly workspace check, nightly documentation build, and full test suite

Closes #1430

Copilot AI lite review requested due to automatic review settings August 26, 2026 15:38
@josecelano josecelano self-assigned this Aug 26, 2026

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR documents the project decision for writing assertions over captured test logs by adding an ADR that prefers explicit, test-chosen identifiers (e.g., request IDs, info hashes) and retaining the repository-owned log-capture helper instead of adopting span-based correlation or tracing-test.

Changes:

  • Added a new ADR describing the accepted test log assertion strategy and why span propagation / tracing-test are not pursued.
  • Registered the ADR in the ADR index.
  • Added an open issue specification (#1430) capturing scope, rationale, and tracking for closing the issue via this documentation PR.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
docs/issues/open/1430-fix-tracing-span-log-assertions.md Adds/records the issue spec for #1430, linking the ADR and documenting scope + closure plan.
docs/adrs/index.md Registers the new ADR in the index table.
docs/adrs/20260826124959_use_explicit_identifiers_for_test_log_assertions.md New ADR defining the explicit-identifier strategy and rejecting automatic span propagation / tracing-test replacement.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

@josecelano

Copy link
Copy Markdown
Member Author

ACK 633be22

@josecelano
josecelano merged commit 7e30b54 into torrust:develop Aug 26, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix bug related to the crate tracing-test for writing assertions for logs

2 participants