Skip to content

docs: add quick-start commands for testing in tests/README.md#1171

Merged
VaibhavUpreti merged 1 commit intoTracer-Cloud:mainfrom
retr0-kernel:main
May 2, 2026
Merged

docs: add quick-start commands for testing in tests/README.md#1171
VaibhavUpreti merged 1 commit intoTracer-Cloud:mainfrom
retr0-kernel:main

Conversation

@retr0-kernel
Copy link
Copy Markdown
Contributor

Fixes

Resolved issue number : #1130

Describe the changes you have made in this PR -

Added a table with test commands in tests/README.md with three columns Goal, Command, and When to use it. The table includes commands for running different types of tests, such as unit tests with coverage, integration verification, live RCA end-to-end tests, single RCA fixtures, full suite including e2e, and synthetic scenarios. Each command is accompanied by a brief description of when to use it.


Code Understanding and AI Usage

Did you use AI assistance (ChatGPT, Claude, Copilot, etc.) to write any part of this code?

  • No, I wrote all the code myself
  • Yes, I used AI assistance (continue below)

NOTE → Used AI to rummage through the existing tests/README.md and extract relevant information to create a concise table of test commands. The AI helped in structuring the information in a clear and organized manner.

If you used AI assistance:

  • I have reviewed every single line of the AI-generated code
  • I can explain the purpose and logic of each function/component I added (Not needed for documentation updates)
  • I have tested edge cases and understand how the code handles them (Not needed for documentation updates)
  • I have modified the AI output to follow this project's coding standards and conventions

Checklist before requesting a review

  • I have added proper PR title and linked to the issue
  • I have performed a self-review of my code
  • I can explain the purpose of every function, class, and logic block I added (Not needed for documentation updates)
  • I understand why my changes work and have tested them thoroughly
  • I have considered potential edge cases and how my code handles them
  • If it is a core feature, I have added thorough tests (Not needed for documentation updates)
  • My code follows the project's style guidelines and conventions

@greptile-apps
Copy link
Copy Markdown
Contributor

greptile-apps Bot commented May 1, 2026

Greptile Summary

This PR adds a "Quick-start commands" table to tests/README.md listing six make targets with their goals and usage guidance. All six commands (test-cov, verify-integrations, test-rca, test-rca FILE=<name>, test-full, test-synthetic) are confirmed to exist in the root Makefile. The only notable concern is that the test-cov row claims "no live infrastructure required," while the target actually still runs tests/e2e/ paths (excluding only kubernetes_local_alert_simulation and synthetic), which may require live services.

Confidence Score: 5/5

Safe to merge — documentation-only change with all referenced commands verified against the Makefile.

All commands exist in the Makefile and the table adds genuine value. The only finding is a P2 description inaccuracy for test-cov, which does not block merge.

tests/README.md — minor description accuracy for the test-cov row.

Important Files Changed

Filename Overview
tests/README.md Adds a Quick-start commands table with 6 Makefile targets; all targets exist and are verified in the Makefile, but the "no live infrastructure required" description for make test-cov is misleading since that target still runs e2e tests.

Reviews (1): Last reviewed commit: "docs: add quick-start commands for testi..." | Re-trigger Greptile

Comment thread tests/README.md

| Goal | Command | When to use it |
|---|---|---|
| Run the default unit suite with coverage | `make test-cov` | First thing to run locally; no live infrastructure required. |
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

P2 Potentially misleading "no live infrastructure required" claim for test-cov

The test-cov target runs pytest -n auto … --ignore=tests/e2e/kubernetes_local_alert_simulation --ignore=tests/synthetic -m "not synthetic", which still collects and executes the rest of tests/e2e/ (Grafana, RDS, upstream_lambda, etc.). Those e2e paths can require live services. Describing this row as "no live infrastructure required" may mislead a developer who runs make test-cov expecting a fully offline run, in contrast with the test-full row which correctly flags "requires live infrastructure" despite running the very same e2e tests.

@muddlebee
Copy link
Copy Markdown
Collaborator

@retr0-kernel take a look at review comments

Comment thread tests/README.md

| Goal | Command | When to use it |
|---|---|---|
| Run the default unit suite with coverage | `make test-cov` | First thing to run locally; no live infrastructure required. |
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

test-cov runs pytest with coverage over the whole default tree minus synthetic ignores and -m "not synthetic"; it is not limited to unit tests. Prefer wording like default CI-aligned suite or standard pytest suite with coverage.

Comment thread tests/README.md
| Run a live RCA end-to-end test | `make test-rca` | When you need to validate a full investigation against real services. |
| Run a single RCA fixture | `make test-rca FILE=<name>` | When iterating on one specific alert scenario. |
| Run the full suite including e2e | `make test-full` | Pre-release or CI; requires live infrastructure. |
| Run synthetic scenarios (no live infra) | `make test-synthetic` | When testing scenario logic without external service dependencies. |
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Synthetic tests are LLM-driven RCA scenarios per repo docs; they still need configured LLM/API access even when customer infra is absent. Drop external service dependencies or qualify it as no customer live infra.

@Tracer-Cloud Tracer-Cloud deleted a comment from Ghraven May 1, 2026
Copy link
Copy Markdown
Member

@VaibhavUpreti VaibhavUpreti left a comment

Choose a reason for hiding this comment

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

Thanks a lot for fixing this @retr0-kernel , and for the review @muddlebee ! Merging this for velocity, will fix in a separate patch

@VaibhavUpreti VaibhavUpreti merged commit 38f5185 into Tracer-Cloud:main May 2, 2026
10 checks passed
@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 2, 2026

🏆 @retr0-kernel did not come to play. PR opened. Review survived. Merged clean. Retire the jersey. 🎽


👋 Join us on Discord - OpenSRE : hang out, contribute, or hunt for features and issues. Everyone's welcome.

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.

3 participants