fix: BUG: domains — Bulk Domain Check tests make live network calls, so - #20
Conversation
|
[REVIEW] NO_GO — #20 @ bdc4d61 — lens: correctness+security+gates, reviewer Augustus (1 of 1) What I ran, with exit codes:
What I read:
Blocking P0/P1 findings:
Changed-code correctness/security review:
Non-blocking follow-ups:
Disposition:
|
|
[REVIEW] NO_GO — #20 @ bdc4d61 — lens: correctness+security+gates, reviewer Augustus (1 of 1) What I ran on the original candidate:
What I read:
Blocking P0/P1 findings:
Non-blocking follow-ups:
Disposition:
|
|
[REVIEW-FIX] #20 — reviewer Augustus — pushed remedy commit 64410d1 Fixed the blocking gate failure by adding:
Post-fix verification on commit
I did not merge the PR because the required review verdict for the original requested candidate was |
|
[REVIEW] GO — #20 @ 64410d1 — lens: correctness+security+gates, reviewer Augustus (1 of 1) What I ran:
What I read:
Blocking P0/P1 findings: none. Non-blocking follow-ups: none. The optional dependency injection preserves the live default behavior of |
BUG: domains — Bulk Domain Check tests make live network calls, so the suite can never pass in CI Blocks CI adoption on hasna/domains. PR #15 added a correct CI workflow (checkout, setup-bun, frozen install, typecheck, bun test on pull_request + push main). Typecheck passed; bun test failed. PR closed rather than merged, because merging installs a permanently-red gate. FAILING (run 30460064498, job 90603490735), all in src/db/monitoring.test.ts 'Bulk Domain Check': checkAllDomains returns empty array when no domains [61366.65ms] checkAllDomains returns structured results [6033.15ms] checkAllDomains whois result structure [5995.36ms] ROOT CAUSE: checkAllDomains() performs live whois, SSL and DNS lookups. A GitHub runner cannot reach those, so the calls hang to timeout — hence 61 seconds on a test whose own name says it expects an empty array. These are integration tests wearing unit-test clothing. EXACT REMEDY (either is acceptable): 1. Inject a resolver/whois client so the tests use a fake by default, keeping the live path behind an explicit opt-in; or 2. Tag them as integration tests and exclude them from the default 'bun test' run, giving CI a separate opt-in job. Do NOT fix this by lengthening timeouts — the network is absent, not slow. ACCEPTANCE: 'bun test' green from a clean clone with no network egress, then re-open a CI workflow PR. X-Factory-Run: run_3b495d5caf51 X-Factory-Task: 5a08860d-ce66-4465-80de-bae9f0674009
Agent: Augustus
64410d1 to
6a718fa
Compare
|
[REVIEW] GO — #20 @ 6a718fa — lens: correctness+security+gates, reviewer Augustus (1 of 1) What I ran with exit codes:
What I read:
Blocking P0/P1 findings: none. Non-blocking follow-ups: none. The rebased setup keeps tests isolated from ambient domains cloud client credentials and direct DB path overrides while preserving explicit local storage mode; |
Objective
BUG: domains — Bulk Domain Check tests make live network calls, so the suite can never pass in CI
Blocks CI adoption on hasna/domains. PR #15 added a correct CI workflow (checkout, setup-bun, frozen install, typecheck, bun test on pull_request + push main). Typecheck passed; bun test failed. PR closed rather than merged, because merging installs a permanently-red gate.
FAILING (run 30460064498, job 90603490735), all in src/db/monitoring.test.ts 'Bulk Domain Check':
checkAllDomains returns empty array when no domains [61366.65ms]
checkAllDomains returns structured results [6033.15ms]
checkAllDomains whois result structure [5995.36ms]
ROOT CAUSE: checkAllDomains() performs live whois, SSL and DNS lookups. A GitHub runner cannot reach those, so the calls hang to timeout — hence 61 seconds on a test whose own name says it expects an empty array. These are integration tests wearing unit-test clothing.
EXACT REMEDY (either is acceptable):
Do NOT fix this by lengthening timeouts — the network is absent, not slow.
ACCEPTANCE: 'bun test' green from a clean clone with no network egress, then re-open a CI workflow PR.
Verification
Run
run_3b495d5caf51· backendcodewith· task5a08860d-ce66-4465-80de-bae9f0674009🏭 Generated by @hasnaxyz/factory
Need help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.