Skip to content

Conversation

@smudge
Copy link
Member

@smudge smudge commented Feb 10, 2026

Stacked PRs:


test: Rework monitor coverage to avoid dups

This is a test-only change that improves the way that query snapshotting
is done for the monitor process.

Previously, each metric was given its own example context, testing its
queries in isolation. However, in practice, the monitor does not run
this way, and it intentionally memoizes query results in a way that was
not receiving sufficient test coverage!

With this PR, monitor queries are dumped out into a single snapshot,
delineated by a few text dividers for readability by humans (& better
hinting for the git differ).

/no-platform

@smudge smudge marked this pull request as draft February 10, 2026 17:26
@smudge smudge changed the base branch from smudge/stack/1 to main February 10, 2026 17:26
@smudge smudge changed the base branch from main to smudge/stack/1 February 10, 2026 17:27
@smudge smudge marked this pull request as ready for review February 10, 2026 17:27
@smudge smudge marked this pull request as draft February 10, 2026 17:28
@smudge smudge changed the base branch from smudge/stack/1 to main February 10, 2026 17:28
@smudge smudge changed the base branch from main to smudge/stack/1 February 10, 2026 17:29
@smudge smudge mentioned this pull request Feb 10, 2026
@smudge smudge marked this pull request as ready for review February 10, 2026 17:29
@smudge smudge marked this pull request as draft February 10, 2026 17:31
@smudge smudge changed the base branch from smudge/stack/1 to main February 10, 2026 17:31
@smudge smudge changed the base branch from main to smudge/stack/1 February 10, 2026 17:32
@smudge smudge marked this pull request as ready for review February 10, 2026 17:32
@smudge smudge requested a review from effron February 10, 2026 17:37
effron
effron previously approved these changes Feb 10, 2026
Copy link
Contributor

@effron effron left a comment

Choose a reason for hiding this comment

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

nice!

domainLGTM

Base automatically changed from smudge/stack/1 to main February 10, 2026 18:06
@smudge smudge dismissed effron’s stale review February 10, 2026 18:06

The base branch was changed.

This is a test-only change that improves the way that query snapshotting
is done for the monitor process.

Previously, each metric was given its own example context, testing its
queries in isolation. However, in practice, the monitor does not run
this way, and it intentionally memoizes query results in a way that was
not receiving sufficient test coverage!

With this PR, monitor queries are dumped out into a single snapshot,
delineated by a few text dividers for readability by humans (& better
hinting for the git differ).

/no-platform

stack-info: PR: #91, branch: smudge/stack/2
@smudge smudge marked this pull request as draft February 10, 2026 18:10
@smudge smudge marked this pull request as ready for review February 10, 2026 18:11
Copy link
Contributor

@effron effron left a comment

Choose a reason for hiding this comment

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

domainLGTM

@smudge smudge merged commit 0966d03 into main Feb 10, 2026
47 checks passed
@smudge smudge deleted the smudge/stack/2 branch February 10, 2026 18:41
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.

2 participants