Skip to content

Refactor goldie record logic for better separation of concerns#360

Open
aiguofer wants to merge 2 commits intomainfrom
aiguofer/goldie_record_refactor
Open

Refactor goldie record logic for better separation of concerns#360
aiguofer wants to merge 2 commits intomainfrom
aiguofer/goldie_record_refactor

Conversation

@aiguofer
Copy link
Contributor

@aiguofer aiguofer commented Mar 17, 2026

Description

Recording the output project in compare_json_logs didn't make sense. This moves the goldie record logic for the modified project out to retain the sole purpose of compare_json_logs.

This PR also makes the project output comparisons whitespace aware to ensure correctness for all changesets, even the ones that only modify whitespace.

@aiguofer aiguofer requested a review from chayac as a code owner March 17, 2026 23:30
Recording the output project in compare_json_logs didn't make
sense. This just moves stuff around to retain the sole purpose of
compare_json_logs.
@aiguofer aiguofer force-pushed the aiguofer/goldie_record_refactor branch from c7ce052 to ac32c06 Compare March 17, 2026 23:32
There are changesets that change whitespace so our tests should
compare output exactly to ensure all changesets, including those that
only modify whitespace, produce the expected changes.
@aiguofer aiguofer requested a review from davidharting March 17, 2026 23:43
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