Skip to content

fix(checkdns): stub the resolver in TestDNSChecker_Execute - #630

Merged
fclairamb merged 4 commits into
mainfrom
fix/checkdns-test-stub-resolver
Oct 21, 2026
Merged

fclairamb merged 4 commits into
mainfrom
fix/checkdns-test-stub-resolver

Conversation

@fclairamb

Copy link
Copy Markdown
Owner

TestDNSChecker_Execute queried real DNS. On CI the local stub resolver (127.0.0.100) answered the google.com TXT query with a message Go could not unmarshal, so the job failed (run 39680540696).

The test now uses the existing stubChecker helper, so it no longer needs the network.

🤖 Generated with Claude Code

fclairamb and others added 4 commits October 22, 2026 00:04
Audit of issue 587 against HEAD: outputSchema and annotations.title were
already present on every tool; only inputSchema.additionalProperties was
missing. Set it to false in objectSchema (advertised only, handlers stay
lenient). Added a contract test over every registered tool.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
The test queried real DNS; CI's stub resolver returned an unparseable TXT reply.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
@codecov

codecov Bot commented Oct 21, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 83.56%. Comparing base (90f70c2) to head (ed4b32a).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #630   +/-   ##
=======================================
  Coverage   83.55%   83.56%           
=======================================
  Files        1253     1253           
  Lines      128076   128077    +1     
=======================================
+ Hits       107017   107024    +7     
+ Misses      21050    21044    -6     
  Partials        9        9           
Files with missing lines Coverage Δ
server/internal/mcp/tools.go 100.00% <100.00%> (ø)

... and 22 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@fclairamb
fclairamb merged commit cca1d88 into main Oct 21, 2026
33 checks passed
@fclairamb
fclairamb deleted the fix/checkdns-test-stub-resolver branch October 21, 2026 22:36
fclairamb added a commit that referenced this pull request Oct 22, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.41.0](v0.40.1...v0.41.0)
(2026-10-22)


### Features

* **email:** calmer emails that say why a check is down
([#623](#623))
([8dd68d3](8dd68d3))
* run crawl and discovery as worker tasks from private locations
([#633](#633))
([062fd99](062fd99))


### Bug Fixes

* **aichecks:** hold AI runs with real secrets to a runtime host
allowlist ([#631](#631))
([c09fdd1](c09fdd1))
* **checkdns:** stub the resolver in TestDNSChecker_Execute
([#630](#630))
([cca1d88](cca1d88))
* **dash0:** drag-to-zoom on the Timing chart
([#617](#617))
([931816c](931816c))
* **deps:** update github.com/dop251/goja digest to 07c4b9d
([#637](#637))
([0170643](0170643))
* **deps:** update github.com/dop251/goja digest to 64adc8b
([#626](#626))
([1efd502](1efd502))
* **deps:** update github.com/dop251/goja digest to 7b1a022
([#619](#619))
([d3adde9](d3adde9))
* **deps:** update go dependencies (non-major)
([#622](#622))
([adb622c](adb622c))
* **deps:** update go dependencies (non-major)
([#627](#627))
([dee2fd0](dee2fd0))
* **deps:** update go dependencies (non-major)
([#635](#635))
([da717a5](da717a5))
* **deps:** update module github.com/a2aproject/a2a-go/v2 to v2.7.0
([#625](#625))
([bb8c7ae](bb8c7ae))
* **deps:** update module github.com/anthropics/anthropic-sdk-go to v2
([#628](#628))
([90f70c2](90f70c2))
* **deps:** update module github.com/fergusstrange/embedded-postgres to
v2 ([#614](#614))
([913ece9](913ece9))
* **email:** usage-cap email links to the platform upgrade page, not
billing ([#632](#632))
([abf3a68](abf3a68))
* **status-pages:** close a grouped check's entry when it recovers
([#615](#615))
([d4d9b21](d4d9b21))

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: Claude Sonnet 5.5 <[email protected]>
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.

1 participant