Skip to content

Conversation

@ginnaram13
Copy link
Collaborator

No description provided.

@ginnaram13 ginnaram13 requested a review from wangben718 August 27, 2025 18:22
@ginnaram13 ginnaram13 self-assigned this Aug 27, 2025
ginnaram13 and others added 14 commits August 27, 2025 18:26
Merge branch '211-limited-soc-placeholder-in-prepare_ae_specific' of https://github.com/Merck/metalite.ae into 211-limited-soc-placeholder-in-prepare_ae_specific
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
Snapshots were regenerated with different font charset values due to
platform/locale differences. This caused CI failures. Reverting to
main branch versions to match CI environment expectations.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
Updated RTF snapshot files to match current system charset encoding.
These files contain platform-specific font charset values (fcharset0/1/2)
that differ between local and CI environments.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
Changed from binary RTF file snapshots to text-based snapshots with
normalized font charset values. This resolves CI failures caused by
platform-specific font charset differences (fcharset0/1/2/161).

Changes:
- Added normalize_rtf_charset() helper to convert all fcharset values to 0
- Added expect_snapshot_rtf() wrapper for RTF snapshot testing
- Converted binary RTF snapshots to text-based .md snapshots
- Updated tests to use new snapshot method

This ensures consistent test results across macOS, Windows, and Linux CI environments.

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
The previous approach using text-based markdown snapshots didn't work
correctly with testthat. Reverted to binary RTF file snapshots but with
charset normalization applied first.

Changes:
- Updated expect_snapshot_rtf() to write normalized content to temp file
  and use expect_snapshot_file() with the temp file
- Removed markdown-based snapshots
- Regenerated binary RTF snapshots with normalized charset (fcharset0)

This approach combines the benefits of binary file snapshots (proper test
structure) with charset normalization (cross-platform compatibility).

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
- Modified expect_snapshot_rtf() to normalize RTF files in place
- This ensures charset values are normalized to fcharset0 before testthat comparison
- All platforms (macOS, Windows, Linux) will now generate matching snapshots
- Resolves CI snapshot mismatch issues

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
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.

3 participants