test(app): normalize perf workflow line endings#623
Conversation
There was a problem hiding this comment.
Suggested priority: P2 (includes user-path files (packages/app/src/testing/perf-workflow.test.ts)).
P1/P0 are reserved for maintainer confirmation. Please relabel manually if this is a release blocker, security issue, data-loss risk, or updater/runtime failure.
Perf delta summaryComparator: pass
|
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
📜 Recent review details⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (5)
🧰 Additional context used📓 Path-based instructions (1)packages/app/**/*.{ts,tsx,js,jsx}📄 CodeRabbit inference engine (packages/app/AGENTS.md)
Files:
🧠 Learnings (2)📚 Learning: 2026-04-23T07:23:23.849ZApplied to files:
📚 Learning: 2026-04-23T15:10:21.635ZApplied to files:
🔇 Additional comments (1)
📝 WalkthroughSummary by CodeRabbitRelease Notes
WalkthroughThis PR adds a ChangesCross-platform workflow test normalization
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~3 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint skipped: no ESLint configuration detected in root package.json. To enable, add Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Code Review
This pull request introduces a normalizeLineEndings utility to the performance workflow tests to handle cross-platform line-ending inconsistencies. It includes a new test case to verify the normalization logic and applies it to the existing workflow contract test. I have no feedback to provide as no review comments were submitted.
Summary
Normalize line endings before asserting snippets from
.github/workflows/perf-probe-baseline.ymlin the app perf workflow contract test.Add a focused CRLF regression case so Windows checkout behavior stays covered.
Why
Windows advisory has been failing in
unit-windows-appsince PR #610 becausepackages/app/src/testing/perf-workflow.test.tsreads a workflow file and matches a literal\nsnippet. On Windows checkout, the workflow content is read as\r\n, so the test fails even though the workflow content is correct.This is a test portability fix, not a product runtime change.
Related Issue
None. This fixes the current Windows advisory failure introduced by the perf workflow contract test.
Human Review Status
Pending. A human should make the final merge decision after reviewing the final diff and verification evidence.
Review Focus
packages/app/src/testing/perf-workflow.test.ts: line-ending normalization is scoped to workflow text read by this test.Risk Notes
Low. Test-only change. No runtime, packaging, updater, or workflow execution behavior changed.
How To Verify
Screenshots or Recordings
None. No visible UI change.
Checklist
dev, and my PR title and commit messages use Conventional Commits in English