diff --git a/docs/adrs/20260728115400_define_registar_as_runtime_service_registry.md b/docs/adrs/20260728115400_define_registar_as_runtime_service_registry.md index f8bb9c7dff..a8ce7265ae 100644 --- a/docs/adrs/20260728115400_define_registar_as_runtime_service_registry.md +++ b/docs/adrs/20260728115400_define_registar_as_runtime_service_registry.md @@ -3,7 +3,7 @@ semantic-links: skill-links: - create-adr related-artifacts: - - docs/issues/open/1419-allow-multiple-integration-tests-at-main-app-level/ISSUE.md + - docs/issues/closed/1419-allow-multiple-integration-tests-at-main-app-level/ISSUE.md - docs/issues/closed/2036-add-runtime-service-registry-metadata/ISSUE.md - src/container.rs - tests/common/mod.rs @@ -99,9 +99,9 @@ roles, not generic network or server-library concepts. ## References -- Issue #1419: [main-application integration tests](../issues/open/1419-allow-multiple-integration-tests-at-main-app-level/ISSUE.md) +- Issue #1419: [main-application integration tests](../issues/closed/1419-allow-multiple-integration-tests-at-main-app-level/ISSUE.md) - Feature #2036: [add runtime service registry metadata](../issues/closed/2036-add-runtime-service-registry-metadata/ISSUE.md) -- [Investigation: runtime service registration and health check API](../issues/open/1419-allow-multiple-integration-tests-at-main-app-level/investigation-registar-and-health-check.md) +- [Investigation: runtime service registration and health check API](../issues/closed/1419-allow-multiple-integration-tests-at-main-app-level/investigation-registar-and-health-check.md) - [App container](../../src/container.rs) - [Integration-test helpers](../../tests/common/mod.rs) - [Health-check handler](../../packages/axum-health-check-api-server/src/handlers.rs) diff --git a/docs/analysis/20260909-cli-config-path-test-isolation/README.md b/docs/analysis/20260909-cli-config-path-test-isolation/README.md index cc6bebd957..fb201f1537 100644 --- a/docs/analysis/20260909-cli-config-path-test-isolation/README.md +++ b/docs/analysis/20260909-cli-config-path-test-isolation/README.md @@ -3,7 +3,7 @@ semantic-links: skill-links: - write-markdown-docs related-artifacts: - - docs/issues/open/1419-allow-multiple-integration-tests-at-main-app-level/ISSUE.md + - docs/issues/closed/1419-allow-multiple-integration-tests-at-main-app-level/ISSUE.md - tests/common/workspace.rs - tests/common/native_tracker/mod.rs - src/app.rs @@ -55,7 +55,7 @@ real executable-boundary need arises. ## Issue-Spec Evidence -Issue [#1419](../../issues/open/1419-allow-multiple-integration-tests-at-main-app-level/ISSUE.md) +Issue [#1419](../../issues/closed/1419-allow-multiple-integration-tests-at-main-app-level/ISSUE.md) identifies the original problem directly: - tests in one process share environment variables; @@ -237,7 +237,7 @@ the remaining `tracing`, clock, secrets, and lifecycle constraints are resolved. Reviewed on 2026-09-09 against merged #2151 on `develop`: -- issue [#1419](../../issues/open/1419-allow-multiple-integration-tests-at-main-app-level/ISSUE.md), especially Problem 3 and current execution model; +- issue [#1419](../../issues/closed/1419-allow-multiple-integration-tests-at-main-app-level/ISSUE.md), especially Problem 3 and current execution model; - `tests/common/workspace.rs` and all `TrackerApplicationFixture::start` call sites; - `tests/common/native_tracker/mod.rs` and executable-boundary test targets; - `src/app.rs` explicit-path startup boundary; diff --git a/docs/issues/open/1419-allow-multiple-integration-tests-at-main-app-level/ISSUE.md b/docs/issues/closed/1419-allow-multiple-integration-tests-at-main-app-level/ISSUE.md similarity index 87% rename from docs/issues/open/1419-allow-multiple-integration-tests-at-main-app-level/ISSUE.md rename to docs/issues/closed/1419-allow-multiple-integration-tests-at-main-app-level/ISSUE.md index 89fa18bde8..a654d5fb8c 100644 --- a/docs/issues/open/1419-allow-multiple-integration-tests-at-main-app-level/ISSUE.md +++ b/docs/issues/closed/1419-allow-multiple-integration-tests-at-main-app-level/ISSUE.md @@ -2,14 +2,14 @@ schema-version: 1 doc-type: issue issue-type: enhancement -status: in-progress +status: done priority: p3 epic: 2392 github-issue: 1419 -spec-path: docs/issues/open/1419-allow-multiple-integration-tests-at-main-app-level/ISSUE.md +spec-path: docs/issues/closed/1419-allow-multiple-integration-tests-at-main-app-level/ISSUE.md branch: "1419-align-fixture-with-final-shutdown-api" -related-pr: 2189 -last-updated-utc: "2026-11-19 18:56" +related-pr: 2971 +last-updated-utc: "2026-11-20 06:34" semantic-links: skill-links: - write-unit-test @@ -26,7 +26,7 @@ semantic-links: - src/app.rs - src/bootstrap/jobs/manager.rs - packages/test-helpers - - docs/issues/open/1419-allow-multiple-integration-tests-at-main-app-level/completion-plan.md + - docs/issues/closed/1419-allow-multiple-integration-tests-at-main-app-level/completion-plan.md - "issue #1488" - docs/issues/closed/1488-overhaul-tracker-shutdown/EPIC.md - docs/features/shutdown-process/README.md @@ -37,6 +37,10 @@ semantic-links: Parent EPIC: #2392 - Test Isolation (`docs/issues/open/2392-test-isolation/EPIC.md`) +> **Closed (2026-11-20):** every task and acceptance criterion is complete; see the +> [closure review](#closure-review-r9). The note below is the state of 2026-11-19, kept as the +> record of how the remaining work was unblocked. +> > **Current state (2026-11-19):** the issue is no longer blocked. The shutdown overhaul, EPIC #1488, > is closed (its spec is in `docs/issues/closed/1488-overhaul-tracker-shutdown/EPIC.md`), and the > maintainer decided on 2026-11-18 that #1419 continues under EPIC #2392. The remaining work is R8 @@ -215,19 +219,20 @@ completed work and remaining tasks are recorded after the decision pivot. | T6 | DONE | Migrate appropriate suites to port 0 and temporary workspaces | Port-zero metrics, UDP-error, and banning suites use isolated workspaces. | | T7 | DONE | Expand global stats test coverage | Current suites cover HTTP/UDP announces plus request, connection, response, error, and banning metrics. | | T8 | DONE | Resolve prerequisites for port-zero identity discovery | #2035 bootstrap behavior and #2036 registry metadata are present and consumed by helpers. | -| T9 | TODO | Run automatic verification | Use the current multi-target command in the revised verification plan. | +| T9 | DONE | Run automatic verification | Superseded by R5, R8 and R9 of the completion plan, which ran the current multi-target command. | ## Progress Tracking ### Workflow Checkpoints -- [ ] Specification drafted and approved by user/maintainer -- [ ] GitHub issue #1419 already exists (created by maintainer) -- [x] Implementation completed (partial improvement; cooperative server shutdown remains deferred) +- [x] Specification drafted and approved by user/maintainer (the R8 plan and its decisions D1 to D5 merged with PR [#2961](https://github.com/torrust/torrust-tracker/pull/2961)) +- [x] GitHub issue #1419 already exists (created by maintainer) +- [x] Implementation completed (the partial improvement first; the follow-up below delivered the cooperative server shutdown check) - [x] Automatic verification completed (current main-level integration-test targets) - [x] Partial-improvement PR [#2189](https://github.com/torrust/torrust-tracker/pull/2189) merged -- [ ] Acceptance criteria reviewed after implementation -- [ ] Issue closed and specification moved to `docs/issues/closed/` +- [x] Final shutdown API follow-up PR [#2971](https://github.com/torrust/torrust-tracker/pull/2971) merged on 2026-11-20 +- [x] Acceptance criteria reviewed after implementation (see the [closure review](#closure-review-r9)) +- [x] Issue closed and specification moved to `docs/issues/closed/` (the close-out pull request moves the specification and closes the GitHub issue when it merges) ### Progress Log @@ -289,6 +294,10 @@ completed work and remaining tasks are recorded after the decision pivot. component did not stop gracefully. Added the negative suite `lifecycle-fixture-shutdown-assertion`; the maintainer approved its test after the prose-first review. Recorded the evidence E1 to E5 in the R8 plan. R9 remains. +- 2026-11-20 06:34 UTC - Claude Code (Claude Fable 5.2) - Completed R9 after PR #2971 merged. Reviewed every + acceptance criterion against `develop` and recorded the result in the closure review. Restored + the "Future Test Coverage" section of `tests/AGENTS.md`, which AC1 requires. Moved this + specification to `docs/issues/closed/` and repaired the references to its old path. ## Acceptance Criteria @@ -319,6 +328,31 @@ completed work and remaining tasks are recorded after the decision pivot. consume the per-job shutdown timeout; cooperative completion is deferred to AC8a. - [x] AC10: `linter all` passes. +### Closure Review (R9) + +Reviewed on 2026-11-20 06:34 UTC by Claude Code (Claude Fable 5.2) against `develop` after the merge of PR +[#2971](https://github.com/torrust/torrust-tracker/pull/2971). Toolchain of the commands: +`rustc 1.100.0 (0ef1bc386 2026-11-09)`, `cargo 1.100.0 (3acc79c0c 2026-11-05)`, `dev` profile, +Linux x86_64. + +| ID | Result | Evidence from the current tree | +| ---- | ------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| AC1 | Met | `tests/AGENTS.md` has the sections "What Belongs Here" and "What Does NOT Belong Here". Its pointer to the list of future tests had been removed on 2026-07-28 with the first infrastructure change; this review restored it as the section "Future Test Coverage", which links the draft issue `docs/issues/drafts/increase-main-app-integration-test-coverage/ISSUE.md`. | +| AC2 | Met | The root `Cargo.toml` registers the nested targets with `[[test]]` entries, and `tests/scaffold.rs` and `tests/http_health_check.rs` are discovered. Plain `cargo test` runs the selected test binaries one after another, so it does not show concurrency between executables. The concurrent evidence is a `cargo nextest run` of all 15 main-level targets, which runs every test in its own process, in parallel across binaries (see AC9). | +| AC3 | Met | `start_tracker_with_config` in `tests/common/workspace.rs` calls `app::start_with_explicit_config_toml_path` with the workspace file. A search of `tests/` for `set_var`, `remove_var` and `env::set` finds nothing. | +| AC4 | Met | `http_tracker_urls`, `udp_tracker_urls`, `http_api_url` and `service_binding_for_identity` in `tests/common/workspace.rs` read the final bindings from the registar of the `AppContainer`. | +| AC5 | Met | Every fixture-based suite binds port `0`, except `tests/metrics/fixed_ports.rs`, whose scenario needs four fixed ports. | +| AC6 | Met | `tests/common/statistics.rs` reads eight aggregate metrics, and the metrics suites assert several of them. | +| AC7 | Met | `EphemeralTrackerWorkspace`, `TrackerApplicationFixture` and the discovery helpers are in `tests/common/` and are documented there and in `tests/AGENTS.md`. | +| AC8 | Met | Read for the fixture-based suites: all eleven start with `TrackerApplicationFixture::start` and call `shutdown()`, and none of them starts the application another way. Four other targets start an executable as a child process: `lifecycle-signals`, `lifecycle-shutdown-policy` and `cli-configuration` start the tracker through `tests/common/native_tracker/`, and the discovered `tests/http_health_check.rs` runs the `http_health_check` tool with its own command. They are executable-boundary targets, outside the fixture by D3 and by `tests/AGENTS.md`, and outside AC8. The sequence that AC8 names (`JobManager::cancel()` then `wait_for_all`) was the best one available on 2026-08-24; AC8a replaced it with the final one. | +| AC8a | Met | The [recorded evidence](#recorded-evidence) E1 to E5, delivered with PR [#2971](https://github.com/torrust/torrust-tracker/pull/2971). | +| AC9 | Met | Concurrent run of every main-level target: `cargo nextest run -p torrust-tracker` with one `--test` argument for each of the 15 targets (13 `[[test]]` entries and the two discovered files) exited with status 0: 122 tests across 15 binaries passed in 3.152 seconds of wall time (`cargo-nextest 0.9.88`, 32 CPUs). The eleven fixture-based tests take 0.11 to 3.03 seconds each when run alone, about 14 seconds in sequence, so they overlapped. Sequential runs with plain `cargo test` also exited with status 0: the ten-target command of the R8 plan with `--test lifecycle-fixture-shutdown-assertion` added (eleven fixture-based targets, one test each), and `cargo test --test lifecycle-signals --test lifecycle-shutdown-policy --test cli-configuration --test http_health_check` (30, 35, 35 and 11 tests). Serial mode: `cargo test --test metrics-port-zero -- --test-threads=1` exited with status 0 (1.04 seconds). The sentence about the per-job timeout in AC9 no longer applies (AC8a). | +| AC10 | Met | The pre-commit gate, which runs `linter all`, passed on the close-out change. | + +The tasks R1 to R9 of the completion plan are all `DONE`. Nothing is deferred to another issue. +The draft issue for more main-application integration tests stays a draft; it is future work +outside this issue. + ## Verification Plan ### Automatic Checks @@ -477,7 +511,7 @@ be reviewed before implementation begins. | R6a | DONE | Remove fixture environment injection | `TrackerApplicationFixture` now passes its workspace TOML path to `app::start_with_explicit_config_toml_path`, removing its environment lock, restoration guard, and base-source environment mutation. | | R7 | DONE | Open partial-improvement PR | [PR #2189](https://github.com/torrust/torrust-tracker/pull/2189) merged on 2026-09-10. It delivered explicit workspace-file configuration for the shared fixture; cooperative server shutdown remains owned by #1488. | | R8 | DONE | Revisit after shutdown overhaul #1488 | #1488 closed on 2026-11-19. The review is recorded in the [R8 plan](#r8-plan-align-the-fixture-with-the-final-shutdown-api); the maintainer decided D1 to D5 on 2026-11-19 (decision record there); the fixture uses the final shutdown API and the AC8a evidence is [recorded](#recorded-evidence). | -| R9 | TODO | Perform final closure review | After the #1488 follow-up, confirm all acceptance criteria, move the issue specification to `docs/issues/closed/`, and close GitHub issue #1419. | +| R9 | DONE | Perform final closure review | Done on 2026-11-20: the [closure review](#closure-review-r9) confirms every acceptance criterion, and the close-out pull request moves this specification to `docs/issues/closed/` and closes GitHub issue #1419. | #### Implementation Sequence diff --git a/docs/issues/open/1419-allow-multiple-integration-tests-at-main-app-level/completion-plan.md b/docs/issues/closed/1419-allow-multiple-integration-tests-at-main-app-level/completion-plan.md similarity index 98% rename from docs/issues/open/1419-allow-multiple-integration-tests-at-main-app-level/completion-plan.md rename to docs/issues/closed/1419-allow-multiple-integration-tests-at-main-app-level/completion-plan.md index f3eb4cb197..8dbb836de5 100644 --- a/docs/issues/open/1419-allow-multiple-integration-tests-at-main-app-level/completion-plan.md +++ b/docs/issues/closed/1419-allow-multiple-integration-tests-at-main-app-level/completion-plan.md @@ -1,3 +1,11 @@ +--- +spec-path: docs/issues/closed/1419-allow-multiple-integration-tests-at-main-app-level/completion-plan.md +last-updated-utc: "2026-11-20 06:34" +semantic-links: + related-artifacts: + - docs/issues/closed/1419-allow-multiple-integration-tests-at-main-app-level/ISSUE.md +--- + # Completion Plan — Issue #1419 > **Issue specification:** [ISSUE.md](ISSUE.md) diff --git a/docs/issues/open/1419-allow-multiple-integration-tests-at-main-app-level/investigation-registar-and-health-check.md b/docs/issues/closed/1419-allow-multiple-integration-tests-at-main-app-level/investigation-registar-and-health-check.md similarity index 97% rename from docs/issues/open/1419-allow-multiple-integration-tests-at-main-app-level/investigation-registar-and-health-check.md rename to docs/issues/closed/1419-allow-multiple-integration-tests-at-main-app-level/investigation-registar-and-health-check.md index a4290c1a16..e4f7be146d 100644 --- a/docs/issues/open/1419-allow-multiple-integration-tests-at-main-app-level/investigation-registar-and-health-check.md +++ b/docs/issues/closed/1419-allow-multiple-integration-tests-at-main-app-level/investigation-registar-and-health-check.md @@ -1,3 +1,11 @@ +--- +spec-path: docs/issues/closed/1419-allow-multiple-integration-tests-at-main-app-level/investigation-registar-and-health-check.md +last-updated-utc: "2026-11-20 06:34" +semantic-links: + related-artifacts: + - docs/issues/closed/1419-allow-multiple-integration-tests-at-main-app-level/ISSUE.md +--- + # Investigation: Runtime Service Registration and Health Check API ## Goal diff --git a/docs/issues/closed/2035-fix-duplicate-port-zero-tracker-instance-bootstrap/ISSUE.md b/docs/issues/closed/2035-fix-duplicate-port-zero-tracker-instance-bootstrap/ISSUE.md index fd782b1ec3..da63f5cc9e 100644 --- a/docs/issues/closed/2035-fix-duplicate-port-zero-tracker-instance-bootstrap/ISSUE.md +++ b/docs/issues/closed/2035-fix-duplicate-port-zero-tracker-instance-bootstrap/ISSUE.md @@ -7,7 +7,7 @@ github-issue: 2035 spec-path: docs/issues/closed/2035-fix-duplicate-port-zero-tracker-instance-bootstrap/ISSUE.md branch: 2035-fix-duplicate-port-zero-tracker-instance-bootstrap related-pr: null -last-updated-utc: 2026-09-01 10:27 +last-updated-utc: "2026-11-20 06:34" semantic-links: skill-links: - write-unit-test @@ -15,7 +15,7 @@ semantic-links: - src/container.rs - src/app.rs - archived-attempt.md - - docs/issues/open/1419-allow-multiple-integration-tests-at-main-app-level/ISSUE.md + - docs/issues/closed/1419-allow-multiple-integration-tests-at-main-app-level/ISSUE.md - docs/issues/closed/2036-add-runtime-service-registry-metadata/ISSUE.md - docs/issues/closed/2039-normalize-per-instance-event-metrics-policy/ISSUE.md - docs/issues/closed/2041-migrate-runtime-service-registry-metadata/ISSUE.md @@ -202,8 +202,8 @@ evidence. ## References -- Issue #1419: [main-application integration tests](../../open/1419-allow-multiple-integration-tests-at-main-app-level/ISSUE.md) -- [Runtime registry investigation](../../open/1419-allow-multiple-integration-tests-at-main-app-level/investigation-registar-and-health-check.md) +- Issue #1419: [main-application integration tests](../../closed/1419-allow-multiple-integration-tests-at-main-app-level/ISSUE.md) +- [Runtime registry investigation](../../closed/1419-allow-multiple-integration-tests-at-main-app-level/investigation-registar-and-health-check.md) - Feature #2036: [add runtime service registry metadata](../../closed/2036-add-runtime-service-registry-metadata/ISSUE.md) - Bug #2039: [normalize per-instance event metrics policy](../2039-normalize-per-instance-event-metrics-policy/ISSUE.md) - Issue #2041: [migrate runtime service registry metadata](../../closed/2041-migrate-runtime-service-registry-metadata/ISSUE.md) diff --git a/docs/issues/closed/2036-add-runtime-service-registry-metadata/ISSUE.md b/docs/issues/closed/2036-add-runtime-service-registry-metadata/ISSUE.md index d4ec757116..86498abbd1 100644 --- a/docs/issues/closed/2036-add-runtime-service-registry-metadata/ISSUE.md +++ b/docs/issues/closed/2036-add-runtime-service-registry-metadata/ISSUE.md @@ -7,13 +7,13 @@ github-issue: 2036 spec-path: docs/issues/closed/2036-add-runtime-service-registry-metadata/ISSUE.md branch: 2036-add-runtime-service-registry-metadata related-pr: null -last-updated-utc: 2026-08-17 +last-updated-utc: "2026-11-20 06:34" semantic-links: skill-links: - write-unit-test related-artifacts: - docs/adrs/20260728115400_define_registar_as_runtime_service_registry.md - - docs/issues/open/1419-allow-multiple-integration-tests-at-main-app-level/ISSUE.md + - docs/issues/closed/1419-allow-multiple-integration-tests-at-main-app-level/ISSUE.md - docs/issues/closed/2035-fix-duplicate-port-zero-tracker-instance-bootstrap/ISSUE.md - docs/issues/closed/2041-migrate-runtime-service-registry-metadata/ISSUE.md - packages/axum-http-server/src/server.rs diff --git a/docs/issues/closed/2041-migrate-runtime-service-registry-metadata/ISSUE.md b/docs/issues/closed/2041-migrate-runtime-service-registry-metadata/ISSUE.md index c3123631d1..93dc813e8a 100644 --- a/docs/issues/closed/2041-migrate-runtime-service-registry-metadata/ISSUE.md +++ b/docs/issues/closed/2041-migrate-runtime-service-registry-metadata/ISSUE.md @@ -7,7 +7,7 @@ github-issue: 2041 spec-path: docs/issues/closed/2041-migrate-runtime-service-registry-metadata/ISSUE.md branch: "2041-migrate-runtime-service-registry-metadata" related-pr: null -last-updated-utc: 2026-08-17 +last-updated-utc: "2026-11-20 06:34" semantic-links: skill-links: - create-issue @@ -18,7 +18,7 @@ semantic-links: - docs/issues/closed/2035-fix-duplicate-port-zero-tracker-instance-bootstrap/ISSUE.md - docs/issues/closed/2036-add-runtime-service-registry-metadata/ISSUE.md - docs/issues/closed/2039-normalize-per-instance-event-metrics-policy/ISSUE.md - - docs/issues/open/1419-allow-multiple-integration-tests-at-main-app-level/ISSUE.md + - docs/issues/closed/1419-allow-multiple-integration-tests-at-main-app-level/ISSUE.md - src/container.rs - "issue #1419" - "issue #2035" diff --git a/docs/issues/closed/2151-add-tracker-config-path-argument/ISSUE.md b/docs/issues/closed/2151-add-tracker-config-path-argument/ISSUE.md index de07369756..29fc52ea19 100644 --- a/docs/issues/closed/2151-add-tracker-config-path-argument/ISSUE.md +++ b/docs/issues/closed/2151-add-tracker-config-path-argument/ISSUE.md @@ -8,7 +8,7 @@ github-issue: 2151 spec-path: docs/issues/closed/2151-add-tracker-config-path-argument/ISSUE.md branch: "2151-add-tracker-config-path-argument" related-pr: 2153 -last-updated-utc: 2026-09-11 +last-updated-utc: "2026-11-20 06:34" semantic-links: skill-links: - create-issue @@ -505,5 +505,5 @@ and reusable lessons. configuration-schema context, not a parent) - `tests/AGENTS.md` (in-process and child-process configuration isolation) - `tests/lifecycle/native_tracker.rs` (child-specific environment setup) -- `docs/issues/open/1419-allow-multiple-integration-tests-at-main-app-level/ISSUE.md` +- `docs/issues/closed/1419-allow-multiple-integration-tests-at-main-app-level/ISSUE.md` (environment-isolation analysis) diff --git a/docs/issues/closed/2393-2392-test-port-allocation-races/ISSUE.md b/docs/issues/closed/2393-2392-test-port-allocation-races/ISSUE.md index 385a5f0246..9a4738bf85 100644 --- a/docs/issues/closed/2393-2392-test-port-allocation-races/ISSUE.md +++ b/docs/issues/closed/2393-2392-test-port-allocation-races/ISSUE.md @@ -9,7 +9,7 @@ github-issue: 2393 spec-path: docs/issues/closed/2393-2392-test-port-allocation-races/ISSUE.md branch: "2392-test-isolation-spec" related-pr: 2397 -last-updated-utc: "2026-11-16 15:37" +last-updated-utc: "2026-11-20 06:34" semantic-links: skill-links: - create-issue @@ -23,7 +23,7 @@ semantic-links: - packages/axum-http-server/src/server.rs - tests/configuration/cli_configuration/base_source_precedence.rs - docs/issues/closed/2298-rust-dev-tool-container-integration/manual-verification-evidence.md - - docs/issues/open/1419-allow-multiple-integration-tests-at-main-app-level/ISSUE.md + - docs/issues/closed/1419-allow-multiple-integration-tests-at-main-app-level/ISSUE.md - docs/issues/closed/2386-1840-self-hosted-runner-minimum-capacity/ISSUE.md - docs/issues/closed/2132-add-sigterm-to-main/native-shutdown-test-plan.md - tests/metrics/fixed_ports.rs diff --git a/docs/issues/drafts/increase-main-app-integration-test-coverage/ISSUE.md b/docs/issues/drafts/increase-main-app-integration-test-coverage/ISSUE.md index 8aea5da8c7..40068763b6 100644 --- a/docs/issues/drafts/increase-main-app-integration-test-coverage/ISSUE.md +++ b/docs/issues/drafts/increase-main-app-integration-test-coverage/ISSUE.md @@ -9,13 +9,13 @@ github-issue: null spec-path: docs/issues/drafts/increase-main-app-integration-test-coverage/ISSUE.md branch: "{issue-number}-increase-main-app-integration-test-coverage" related-pr: null -last-updated-utc: "2026-07-27 12:00" +last-updated-utc: "2026-11-20 06:34" semantic-links: skill-links: - write-unit-test related-artifacts: - tests/AGENTS.md - - docs/issues/open/1419-allow-multiple-integration-tests-at-main-app-level/ISSUE.md + - docs/issues/closed/1419-allow-multiple-integration-tests-at-main-app-level/ISSUE.md - "issue #1347" - "issue #1419" --- @@ -200,7 +200,7 @@ Suggested approach: ## Related Issues - [Issue #1419 - Allow multiple integration tests at the main app - level](../../open/1419-allow-multiple-integration-tests-at-main-app-level/ISSUE.md) - Infrastructure + level](../../closed/1419-allow-multiple-integration-tests-at-main-app-level/ISSUE.md) - Infrastructure foundation - [EPIC #1347 - Increase unit testing for workspace packages](https://github.com/torrust/torrust-tracker/issues/1347) - Package-level unit test diff --git a/docs/issues/open/2392-test-isolation/EPIC.md b/docs/issues/open/2392-test-isolation/EPIC.md index 509484c9f5..c906cbae37 100644 --- a/docs/issues/open/2392-test-isolation/EPIC.md +++ b/docs/issues/open/2392-test-isolation/EPIC.md @@ -6,13 +6,13 @@ epic: null github-issue: 2392 spec-path: docs/issues/open/2392-test-isolation/EPIC.md epic-owner: josecelano -last-updated-utc: "2026-11-19 08:25" +last-updated-utc: "2026-11-20 07:04" semantic-links: skill-links: - create-issue related-artifacts: - .claude/skills/create-issue/SKILL.md - - docs/issues/open/1419-allow-multiple-integration-tests-at-main-app-level/ISSUE.md + - docs/issues/closed/1419-allow-multiple-integration-tests-at-main-app-level/ISSUE.md - docs/issues/closed/2393-2392-test-port-allocation-races/ISSUE.md - docs/issues/closed/2394-2392-audit-shared-test-resources/ISSUE.md - docs/issues/open/2395-2392-e2e-runner-dynamic-host-ports/ISSUE.md @@ -110,7 +110,7 @@ Status values: `TODO`, `IN_PROGRESS`, `BLOCKED`, `DONE`. | 2 | #2394 - Audit shared test resources | `docs/issues/closed/2394-2392-audit-shared-test-resources/ISSUE.md` | DONE | Task. PR #2891 recorded 38 findings in `inventory.md`: 29 isolated, 1 deliberate exception (P3), 5 covered (P1, P9, C1, C2, C3; C3 through order 4, whose scope now includes the local default image tags) and 3 new problems, now orders 6 to 8: D1 (P2) is #2906, D2 (F2) is #2907 and D3 (C9) is #2908. The close-out PR #2898 has merged; GitHub issue #2394 is still open until the maintainer closes it. | | 3 | #2395 - Use dynamic host ports in the E2E runner | `docs/issues/open/2395-2392-e2e-runner-dynamic-host-ports/ISSUE.md` | TODO | Task. Removes fixed E2E host ports. Independent of orders 1 and 2. | | 4 | #2396 - Use a unique tracker image tag per CI run | `docs/issues/open/2396-2392-e2e-unique-tracker-image-tag/ISSUE.md` | TODO | Task. Prevents one run from testing another run's image. Latent today (one runner instance per server). Independent of order 3. | -| 5 | #1419 - Allow multiple integration tests at the main app level | `docs/issues/open/1419-allow-multiple-integration-tests-at-main-app-level/ISSUE.md` | IN_PROGRESS | Existing issue, linked as a subissue. Isolation work is done. EPIC #1488 closed on 2026-11-19, so the remaining R8, AC8a and R9 (review the fixture against the final shutdown API, prove cooperative completion, then the closure review) are unblocked and in progress. | +| 5 | #1419 - Allow multiple integration tests at the main app level | `docs/issues/closed/1419-allow-multiple-integration-tests-at-main-app-level/ISSUE.md` | DONE | Existing issue, linked as a subissue. R8, AC8a and R9 completed; PRs #2961, #2971, #2983. | | 6 | #2906 - Let two runs of the fixed-port metrics test share a machine | `docs/issues/open/2906-2392-fixed-port-metrics-test-concurrent-runs/ISSUE.md` | TODO | Bug (#2394 D1, P2). `tests/metrics/fixed_ports.rs` binds `0.0.0.0:17091`-`17094`, so two runs on one machine collide (20 of 20 paired runs had one failure). The proposed fix uses the loopback helper beyond the 9 #2393 tests, which needs a maintainer decision before implementation starts (the Decisions section limits the helper to those 9 tests). | | 7 | #2907 - Remove the temporary TOML and PEM files tests leave behind | `docs/issues/closed/2907-2392-remove-leaked-test-temporary-files/ISSUE.md` | DONE | Bug (#2394 D2, F2). Narrowed on 2026-11-17 to the `test_config_*.toml` and PEM files that tests leave in the system temporary directory. The `data_*.db` files, 301 of the 303 files one full run leaves, moved to orders 9 and 10. PR #2938 moved the two TOML tests into a `TempDir` and made the TLS helper return a `NamedTempFile`; after it, a full run leaves 0 TOML and 0 PEM files (V2). Found during the work: 18 `figment::Jail` tests in `packages/configuration/src/lib.rs` call `clear_env()`, which removes `TMPDIR` from the whole process while they run, so leaked-file counts are lower bounds (no issue yet). | | 8 | #2908 - Tear down the qBittorrent E2E stack when it fails to start | `docs/issues/open/2908-2392-compose-cleanup-after-failed-start/ISSUE.md` | TODO | Bug (#2394 D3, C9). A failed `docker compose up` leaves the stack running on the Docker host. Touches the qBittorrent E2E runner, like order 4. | @@ -302,6 +302,9 @@ Decisions taken while delivering the EPIC. They apply to every subissue. EPIC #1488 closed on 2026-11-19 (close-out PR #2951), the maintainer decided on 2026-11-18 that #1419 continues under this EPIC, and its session has started. Its remaining work is R8, AC8a and R9. +- 2026-11-20 07:04 UTC - Claude Code (Claude Fable 5.2), #1419 session - Order 5 (#1419) is DONE: R8, AC8a + and R9 completed with PRs #2961, #2971 and #2983. Its spec is archived to + `docs/issues/closed/`. The EPIC coordinator allowed this edit for the close-out. ## Acceptance Criteria diff --git a/docs/pr-reviews/pr-2983-review/PR-REVIEW.md b/docs/pr-reviews/pr-2983-review/PR-REVIEW.md new file mode 100644 index 0000000000..8fb687ed23 --- /dev/null +++ b/docs/pr-reviews/pr-2983-review/PR-REVIEW.md @@ -0,0 +1,217 @@ +--- +pr-number: 2983 +pr-url: https://github.com/torrust/torrust-tracker/pull/2983 +last-updated-utc: "2026-11-20 07:28" +--- + + + +# PR #2983 Review Audit + +Source: pull-request reviews and inline review threads for https://github.com/torrust/torrust-tracker/pull/2983. + +## Ownership + +The PR author owns this tracked audit record. Reviewers, including repository review agents, +deliver findings through GitHub and have no repository-artifact obligation. + +- Post-merge workflow approval: N/A (the findings were processed before the merge). + +## Status Values + +- Relationship: `ORIGINAL`, `RE_RAISE_OF:` +- Disposition: `FIXED`, `NO_ACTION`, `SUPERSEDED`, `FOLLOW_UP` +- Thread state: `OPEN`, `RESOLVED`, `NON_RESOLVABLE`, `SUPERSEDED`. `OPEN` applies prospectively + to audits created or updated for approved follow-up work; historical audits remain valid without + bulk migration. +- Severity: `Blocker`, `Major`, `Minor`, `Nit`, `Suggestion`; append `(inferred)` when derived + from free prose. +- Author class: `Copilot`, `Human`, `Unknown` +- Category: `link-integrity`, `formatting`, `metadata`, `testing`, `correctness`, + `documentation`, `maintainability`, `security`, `other` +- An outdated thread whose concern was fixed is `FIXED`/`RESOLVED`, even when GitHub marks the + original thread outdated after the push. For in-PR feedback, use `NO_ACTION`/`SUPERSEDED` only + for a duplicate, superseded, or no-change concern. A post-merge `NO_ACTION` requires maintainer + approval to decline the follow-up work. +- When the current identity cannot resolve a thread (`viewerCanResolve` is `false`), keep the + disposition established from the current tree and record `Thread state=OPEN`. The reviewer or PR + author resolves it; permission says nothing about whether the concern was fixed. + +## Findings + +The review 5988749356 of `da2ce7` (changes requested) has three inline findings, `F1` to `F3`; its +body lists the same three and adds no other request. The reviewer's own finding IDs are kept. +Copilot's review 5988828122, made on the first head, has four inline findings. Copilot labelled +them `F1`, `R1`, `F1` and `F2`. Three of those labels (`F1`, `F1` and `F2`) collide with the IDs +above; `R1` does not. This record names the four `R1` to `R4` in the order of their comments and +keeps Copilot's label in each detail. That departs from step 3 of `process-pr-review`, which keeps +a label that does not collide: Copilot's `R1` is the row `R2` here. A finding reference never +changes once assigned, so the IDs stay (see `F4`). The second review of `da2ce7`, 5988957491 +(approved), has two inline findings, `F4` and `F5`; its body adds no other request. + +| Finding ID | Review finding reference | Author class | Severity | Category | Relationship | Disposition | Thread state | +| ---------- | ------------------------ | ------------ | -------- | -------- | ------------ | ----------- | ------------ | +| F1 | review-finding:pr-2983-f1 | Human | Major | link-integrity | ORIGINAL | FIXED | RESOLVED | +| F2 | review-finding:pr-2983-f2 | Human | Minor | documentation | ORIGINAL | FIXED | RESOLVED | +| F3 | review-finding:pr-2983-f3 | Human | Nit | documentation | ORIGINAL | FIXED | RESOLVED | +| R1 | review-finding:pr-2983-r1 | Copilot | Major | testing | ORIGINAL | FIXED | RESOLVED | +| R2 | review-finding:pr-2983-r2 | Copilot | Major | testing | ORIGINAL | FIXED | RESOLVED | +| R3 | review-finding:pr-2983-r3 | Copilot | Minor | testing | RE_RAISE_OF:R1 | FIXED | RESOLVED | +| R4 | review-finding:pr-2983-r4 | Copilot | Minor | testing | RE_RAISE_OF:F2 | FIXED | RESOLVED | +| F4 | review-finding:pr-2983-f4 | Human | Minor | documentation | ORIGINAL | FIXED | RESOLVED | +| F5 | review-finding:pr-2983-f5 | Human | Nit | documentation | ORIGINAL | FIXED | RESOLVED | + +## Finding Details + +### F1 - The parent EPIC keeps the old path and `IN_PROGRESS` for order 5 + +- PR number: 2983 +- Source review ID: 5988749356 +- Reviewer finding ID: N/A +- Source URL: https://github.com/torrust/torrust-tracker/pull/2983#discussion_r4639466688 +- Concern: The archive move left `docs/issues/open/2392-test-isolation/EPIC.md` naming the old path in `related-artifacts` and in subissue row 5, with `IN_PROGRESS`. The path names no tracked file after the merge, the frontmatter validator reports `missing-artifact`, and Steps 4 and 5 of `cleanup-completed-issues` ask for the EPIC update in the same change. +- Solution: `EPIC.md` names the `docs/issues/closed/...` path in both places, row 5 reads `DONE` with the pull requests of the remaining work, `last-updated-utc` is current and the progress log has an entry. The EPIC 2392 coordinator session, whose brief had excluded the file, agreed to the edit. +- Current-tree verification: `cargo run -q -p frontmatter-validator --bin frontmatter-validator -- docs/issues/open/2392-test-isolation/EPIC.md` printed no diagnostic; before the fix it printed one `missing-artifact` error. `grep -c 'closed/1419-allow-multiple-integration-tests-at-main-app-level/ISSUE.md' docs/issues/open/2392-test-isolation/EPIC.md` printed 2. +- Resolution reference: `docs(issues): [#1419] mark order 5 done in EPIC #2392 and point it at the archived spec` +- Follow-up PR URL: N/A +- Reply URL: https://github.com/torrust/torrust-tracker/pull/2983#discussion_r4639495296 + +### F2 - The AC8 and AC9 rows narrow their scope without saying so + +- PR number: 2983 +- Source review ID: 5988749356 +- Reviewer finding ID: N/A +- Source URL: https://github.com/torrust/torrust-tracker/pull/2983#discussion_r4639466695 +- Concern: The closure review marked AC8 and AC9 as met for the eleven fixture-based targets only. "No suite starts the application another way" does not hold for `tests/`, where four targets start an executable as a child process, and the AC9 row cited no run of those four. +- Solution: The AC8 row says it is read for the fixture-based suites and names the four child-process targets as outside AC8 by D3 and `tests/AGENTS.md`. The AC9 row cites a run of those four, which passed, and says that all 15 main-level targets pass. +- Current-tree verification: `grep -c 'all 15 main-level' docs/issues/closed/1419-allow-multiple-integration-tests-at-main-app-level/ISSUE.md` printed 1. `cargo test --test lifecycle-signals --test lifecycle-shutdown-policy --test cli-configuration --test http_health_check` exited with status 0 (`rustc 1.100.0`, `dev` profile). +- Resolution reference: `docs(issues): [#1419] state the scope of AC8 and AC9 in the closure review and drop two stale status remnants` +- Follow-up PR URL: N/A +- Reply URL: https://github.com/torrust/torrust-tracker/pull/2983#discussion_r4639495536 + +### F3 - Two stale status remnants in the archived record + +- PR number: 2983 +- Source review ID: 5988749356 +- Reviewer finding ID: N/A +- Source URL: https://github.com/torrust/torrust-tracker/pull/2983#discussion_r4639466700 +- Concern: The closed specification says every task is complete, but the historical plan still read `T9 | TODO` and a ticked checkpoint still said that cooperative server shutdown "remains deferred". +- Solution: T9 reads `DONE` and says it was superseded by R5, R8 and R9 of the completion plan. The checkpoint no longer has the "remains deferred" clause. +- Current-tree verification: `grep -c '^| T9 | DONE' docs/issues/closed/1419-allow-multiple-integration-tests-at-main-app-level/ISSUE.md` printed 1 and `grep -c 'remains deferred)' docs/issues/closed/1419-allow-multiple-integration-tests-at-main-app-level/ISSUE.md` printed 0. +- Resolution reference: `docs(issues): [#1419] state the scope of AC8 and AC9 in the closure review and drop two stale status remnants` +- Follow-up PR URL: N/A +- Reply URL: https://github.com/torrust/torrust-tracker/pull/2983#discussion_r4639495789 + +### R1 - No run shows concurrency between test executables for AC2 + +- PR number: 2983 +- Source review ID: 5988828122 +- Reviewer finding ID: F1 +- Source URL: https://github.com/torrust/torrust-tracker/pull/2983#discussion_r4639530237 +- Concern: Plain `cargo test` runs the selected test binaries one after another, and each fixture-based target has one test, so the cited invocation shows no overlap between suites. +- Solution: The AC2 and AC9 rows cite a `cargo nextest run` of all 15 main-level targets, which runs every test in its own process in parallel across binaries, and say that the plain Cargo runs are sequential. +- Current-tree verification: `grep -c '122 tests across 15 binaries' docs/issues/closed/1419-allow-multiple-integration-tests-at-main-app-level/ISSUE.md` printed 1. `cargo nextest run -p torrust-tracker` with one `--test` argument for each of the 15 main-level targets exited with status 0 (`cargo-nextest 0.9.88`, `rustc 1.100.0`, `dev` profile). +- Resolution reference: `docs(issues): [#1419] cite a concurrent nextest run of all 15 main-level targets for AC2 and AC9` +- Follow-up PR URL: N/A +- Reply URL: https://github.com/torrust/torrust-tracker/pull/2983#discussion_r4639549090 + +### R2 - The evidence for AC2 and AC9 is neither concurrent nor complete + +- PR number: 2983 +- Source review ID: 5988828122 +- Reviewer finding ID: R1 +- Source URL: https://github.com/torrust/torrust-tracker/pull/2983#discussion_r4639530277 +- Concern: The same sequential-run concern as R1, and the cited command selected only the fixture-based targets although AC9 requires all current main-level targets. +- Solution: The concurrent nextest run covers the full set of 15 targets, including the four child-process targets. +- Current-tree verification: `grep -c '122 tests across 15 binaries' docs/issues/closed/1419-allow-multiple-integration-tests-at-main-app-level/ISSUE.md` printed 1. `cargo nextest run -p torrust-tracker` with one `--test` argument for each of the 15 main-level targets exited with status 0 (`cargo-nextest 0.9.88`, `rustc 1.100.0`, `dev` profile). +- Resolution reference: `docs(issues): [#1419] cite a concurrent nextest run of all 15 main-level targets for AC2 and AC9` +- Follow-up PR URL: N/A +- Reply URL: https://github.com/torrust/torrust-tracker/pull/2983#discussion_r4639549364 + +### R3 - Cite concurrent execution evidence for the closure review + +- PR number: 2983 +- Source review ID: 5988828122 +- Reviewer finding ID: F1 +- Source URL: https://github.com/torrust/torrust-tracker/pull/2983#discussion_r4639530305 +- Concern: The same concern as R1 and R2, with the suggestion to cite the Docker test check of pull request 2971, which uses nextest. +- Solution: The closure review cites a local concurrent nextest run instead, because a local run records its command, toolchain and result in the specification. +- Current-tree verification: `grep -c '122 tests across 15 binaries' docs/issues/closed/1419-allow-multiple-integration-tests-at-main-app-level/ISSUE.md` printed 1. `cargo nextest run -p torrust-tracker` with one `--test` argument for each of the 15 main-level targets exited with status 0 (`cargo-nextest 0.9.88`, `rustc 1.100.0`, `dev` profile). +- Resolution reference: `docs(issues): [#1419] cite a concurrent nextest run of all 15 main-level targets for AC2 and AC9` +- Follow-up PR URL: N/A +- Reply URL: https://github.com/torrust/torrust-tracker/pull/2983#discussion_r4639549625 + +### R4 - AC9 evidence omits the remaining main-level targets + +- PR number: 2983 +- Source review ID: 5988828122 +- Reviewer finding ID: F2 +- Source URL: https://github.com/torrust/torrust-tracker/pull/2983#discussion_r4639530330 +- Concern: The cited command omitted `lifecycle-signals`, `lifecycle-shutdown-policy` and `cli-configuration`, which AC9 covers. +- Solution: The AC9 row cites a sequential run of the four child-process targets (added with the fix of F2 above) and the concurrent nextest run of all 15 targets. AC9 is not narrowed. +- Current-tree verification: `grep -c '122 tests across 15 binaries' docs/issues/closed/1419-allow-multiple-integration-tests-at-main-app-level/ISSUE.md` printed 1. `cargo nextest run -p torrust-tracker` with one `--test` argument for each of the 15 main-level targets exited with status 0 (`cargo-nextest 0.9.88`, `rustc 1.100.0`, `dev` profile). +- Resolution reference: `docs(issues): [#1419] cite a concurrent nextest run of all 15 main-level targets for AC2 and AC9` +- Follow-up PR URL: N/A +- Reply URL: https://github.com/torrust/torrust-tracker/pull/2983#discussion_r4639549928 + +### F4 - The IDs and relationships of the four Copilot rows depart from the skill + +- PR number: 2983 +- Source review ID: 5988957491 +- Reviewer finding ID: N/A +- Source URL: https://github.com/torrust/torrust-tracker/pull/2983#discussion_r4639630264 +- Concern: Step 3 of `process-pr-review` keeps a reviewer's label that does not collide. Only three of Copilot's four labels collide, yet the record renamed all four and said all four collide. R3 and R4 ask for a change that an earlier finding already asked for, yet their relationship said `ORIGINAL`. +- Solution: The intro says which three labels collide, that the renaming of Copilot's `R1` departs from the skill, and that the references stay because they never change once assigned. R3 is `RE_RAISE_OF:R1` and R4 is `RE_RAISE_OF:F2`. +- Current-tree verification: `grep -c '^| R[34] | .* | RE_RAISE_OF:' docs/pr-reviews/pr-2983-review/PR-REVIEW.md` printed 2. +- Resolution reference: `docs(pr-reviews): [#1419] record which Copilot labels collide and the re-raised findings in the audit of PR 2983` +- Follow-up PR URL: N/A +- Reply URL: https://github.com/torrust/torrust-tracker/pull/2983#discussion_r4639655631 + +### F5 - The health check target does not use the native tracker helper + +- PR number: 2983 +- Source review ID: 5988957491 +- Reviewer finding ID: N/A +- Source URL: https://github.com/torrust/torrust-tracker/pull/2983#discussion_r4639630274 +- Concern: The AC8 row said the four child-process targets start an executable through `tests/common/native_tracker/`, but `tests/http_health_check.rs` builds its own command and runs the `http_health_check` tool, not the tracker. +- Solution: The AC8 row names the three targets that use the helper and says that `tests/http_health_check.rs` runs the tool with its own command. +- Current-tree verification: `grep -c 'runs the .http_health_check. tool with its own command' docs/issues/closed/1419-allow-multiple-integration-tests-at-main-app-level/ISSUE.md` printed 1. +- Resolution reference: `docs(issues): [#1419] say that the health check target runs its tool without the native tracker helper` +- Follow-up PR URL: N/A +- Reply URL: https://github.com/torrust/torrust-tracker/pull/2983#discussion_r4639656195 + +## Processing Log + +- 2026-11-20 07:02 UTC - The review 5988749356 of `da2ce7` (changes requested, submitted 07:02:23) arrived on the first head with F1 to F3. +- 2026-11-20 07:03 UTC - Fixed F2 and F3 in the working tree and asked the EPIC 2392 coordinator session whether to edit `EPIC.md`, which its brief had excluded. It agreed to the edit that F1 asks for. +- 2026-11-20 07:05 UTC - Committed the fix of F1 (commit time 07:05:12) and the fix of F2 and F3 (commit time 07:05:45) locally, not pushed yet. +- 2026-11-20 07:06 UTC - Replied on the three threads (all posted by 07:06:25). Each reply says its commit is local and goes up in one push with this record. +- 2026-11-20 07:06 UTC - Created this audit record with F1 to F3. One push of the three commits of round 1 and the resolution of the three threads follow this commit and are not logged. +- 2026-11-20 07:10 UTC - Pushed round 1 and resolved the three threads (done by 07:10:07); each mutation returned `isResolved: true` and a GraphQL query then listed no unresolved thread. +- 2026-11-20 07:11 UTC - Copilot's review 5988828122 (submitted 07:11:16) arrived with R1 to R4. It was made on the first head, before round 1. +- 2026-11-20 07:13 UTC - Ran all 15 main-level targets concurrently with nextest, rewrote the AC2 and AC9 rows and committed the fix locally (commit time 07:13:09), not pushed yet. +- 2026-11-20 07:14 UTC - Replied on the four threads (all posted by 07:14:02). Each reply says its commit is local and goes up in one push with this update. +- 2026-11-20 07:14 UTC - Added R1 to R4 and these entries. One push of the two commits of round 2 and the resolution of the four threads follow this commit and are not logged. +- 2026-11-20 07:17 UTC - Pushed round 2 and resolved the four threads (done by 07:17:42); each mutation returned `isResolved: true` and a GraphQL query then listed no unresolved thread. +- 2026-11-20 07:24 UTC - The second review of `da2ce7`, 5988957491 (approved, submitted 07:24:46), arrived on the round 2 head with F4 and F5. +- 2026-11-20 07:27 UTC - Committed the fixes of F5 and F4 locally (commit times 07:26:41 and 07:27:14) and replied on the two threads (both posted by 07:27:52). Each reply says its commit is local and goes up in one push with this update. +- 2026-11-20 07:28 UTC - Added F4 and F5 and these entries. One push of the three commits of round 3 and the resolution of the two threads follow this commit and are not logged. + +## Completion Rules + +- Re-derive the reply claim against the current tree before replying or resolving a thread. +- Reply on every resolvable thread before resolving it. +- For an outdated thread whose concern was fixed, record `Disposition=FIXED` and + `Thread state=RESOLVED`, even if GitHub marks the thread outdated after the push. For a + duplicate, superseded, or no-change in-PR thread, reply exactly + `Superseded by : .`, record `Disposition=NO_ACTION` and + `Thread state=SUPERSEDED`, then resolve it. A post-merge `NO_ACTION` requires maintainer + approval to decline the follow-up work. When the current identity cannot resolve a thread + (`viewerCanResolve` is `false`), still reply, keep the disposition established from the current + tree, and record `Thread state=OPEN`; the reviewer or PR author resolves it. +- A consolidated PR conversation response may cover multiple review rounds only when it names + every review ID and every finding ID with its disposition and resolution reference. Record its + durable URL in each related row. +- Cite a fix by its unique Conventional Commit subject or durable reply URL, never by a branch SHA + that can change after a rebase. +- Refresh review threads using GraphQL and confirm that no unresolved actionable thread remains. diff --git a/tests/AGENTS.md b/tests/AGENTS.md index f63c349417..afc568d8a4 100644 --- a/tests/AGENTS.md +++ b/tests/AGENTS.md @@ -7,7 +7,7 @@ semantic-links: - tests/metrics/fixed_ports.rs - tests/common/mod.rs - src/app.rs - - docs/issues/open/1419-allow-multiple-integration-tests-at-main-app-level/ISSUE.md + - docs/issues/closed/1419-allow-multiple-integration-tests-at-main-app-level/ISSUE.md - docs/issues/drafts/increase-main-app-integration-test-coverage/ISSUE.md --- @@ -201,6 +201,12 @@ tests/ └── scaffold.rs # Scaffolding demo — pattern reference for new binaries ``` +## Future Test Coverage + +The list of valuable integration tests to add at the main application level, ordered by priority, +is in the draft issue +[Increase main-application integration test coverage](../docs/issues/drafts/increase-main-app-integration-test-coverage/ISSUE.md). + ## Adding a New Integration-Test Binary 1. **Confirm it belongs here**: Can this test be written at the package level? If yes, write it there. @@ -222,7 +228,7 @@ tests/ ## References -- [Issue #1419](../docs/issues/open/1419-allow-multiple-integration-tests-at-main-app-level/ISSUE.md) - Infrastructure for parallel integration tests (execution model decision) +- [Issue #1419](../docs/issues/closed/1419-allow-multiple-integration-tests-at-main-app-level/ISSUE.md) - Infrastructure for parallel integration tests (execution model decision) - [Integration test scaffolding](metrics/port_zero.rs) - [Shared test utilities](common/mod.rs) - [Scaffolding demo](scaffold.rs) diff --git a/tests/common/mod.rs b/tests/common/mod.rs index d0f8502958..21976828e7 100644 --- a/tests/common/mod.rs +++ b/tests/common/mod.rs @@ -12,7 +12,7 @@ //! against that instance. A different initial configuration belongs to //! another top-level binary, which Cargo may run concurrently. //! -//! See `docs/issues/open/1419-allow-multiple-integration-tests-at-main-app-level/ISSUE.md` +//! See `docs/issues/closed/1419-allow-multiple-integration-tests-at-main-app-level/ISSUE.md` //! for the full decision record. mod configuration; mod http_requests;