Skip to content

Run separate debug/release mode golden tests for trace messages#840

Open
mheinzel wants to merge 2 commits intomainfrom
mheinzel/golden-trace-messages
Open

Run separate debug/release mode golden tests for trace messages#840
mheinzel wants to merge 2 commits intomainfrom
mheinzel/golden-trace-messages

Conversation

@mheinzel
Copy link
Copy Markdown
Collaborator

The trace messages that get emitted differ between debug and release builds. Therefore, running the same test (with the same golden file of expected trace messages) both for debug and release builds will cause problems. To avoid these, we now have two separate tests, each with its own golden file, and only run the appropriate one depending on the build type.

The only reason this did not lead to problems so far is that the test only inserted four entries into the table, not triggering any interesting internal events. However, we will emit internal messages once we start migrating the union level when a union is paid off (or we decide to test more interesting operations). Since we now can, I made sure that these tests now at least trigger the creation of a merge.

@mheinzel mheinzel self-assigned this Apr 23, 2026
The trace messages that get emitted differ between debug and release
builds. Therefore, running the same test (with the same golden file of
expected trace messages) both for debug and release builds will cause
problems. To avoid these, we now have two separate tests, each with its
own golden file, and only run the appropriate one depending on the build
type.

The only reason this did not lead to problems so far is that the test
only inserted four entries into the table, not triggering any
interesting internal events. However, we *will* emit internal messages
once we start migrating the union level when a union is paid off (or we
decide to test more interesting operations). Since we now can, I made
sure that these tests now at least trigger the creation of a merge.
@mheinzel mheinzel force-pushed the mheinzel/golden-trace-messages branch from ede9f1a to 258458e Compare April 24, 2026 18:36
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