ci(e2e): move parity inventory to report workflow#3800
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughMoves legacy parity bookkeeping out of PR lint into the parity-compare CI workflow: the workflow now generates/uploads the legacy assertion inventory and runs strict parity-map validation. PR lint is reduced to suite-step and retired-wrapper checks; docs and tests are updated to reflect the new flow. ChangesParity Workflow Migration
Sequence Diagram(s)sequenceDiagram
participant Workflow as e2e-parity-compare workflow
participant Extractor as extract-legacy-assertions.ts
participant Inventory as .e2e/parity/parity-inventory.generated.json
participant Validator as check-parity-map.ts
Workflow->>Extractor: run extractor (--output) to generate inventory
Extractor->>Inventory: write parity-inventory.generated.json
Workflow->>Validator: run check-parity-map.ts --strict
Validator->>Workflow: return validation result
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related issues
Possibly related PRs
Suggested labels
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 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 Comment |
E2E Advisor RecommendationRequired E2E: None Full advisor summaryE2E Recommendation AdvisorBase: Required E2E
Optional E2E
New E2E recommendations
|
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@test/e2e/scenario-framework-tests/e2e-coverage-report.test.ts`:
- Around line 61-114: The test creates a temporary directory in the variable
sourceDir and never removes it; wrap the test body that calls
loadMetadataFromObjects and renderCoverageReport in a try/finally so sourceDir
is removed in the finally block (use fs.rmSync(sourceDir, { recursive: true,
force: true }) or equivalent) to ensure the temp dir is cleaned up even on
assertion failures.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Path: .coderabbit.yaml
Review profile: CHILL
Plan: Enterprise
Run ID: fb42aeba-a062-4677-846e-ce2b1d4458c2
📒 Files selected for processing (1)
test/e2e/scenario-framework-tests/e2e-coverage-report.test.ts
Summary
Rationale
The parity inventory is derived from legacy
test/e2e/test-*.shassertions and can churn when unrelated main-branch E2E changes land. Requiring every PR to keep that global migration ledger current creates review noise and opaque CI failures. Parity validation/reporting should happen when producing an E2E parity report, not as a blocker for unrelated PRs.Validation
npx tsx scripts/e2e/lint-conventions.tsnpx vitest run test/e2e/scenario-framework-tests/e2e-convention-lint.test.ts test/e2e/scenario-framework-tests/e2e-legacy-assertion-inventory.test.ts test/e2e/scenario-framework-tests/e2e-parity-map.test.ts --testTimeout 60000Summary by CodeRabbit
Chores
Tests
Documentation