fix(scoring): surface snapshot warnings in previews - #985
Conversation
|
🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 🛠️ Maintainer review — Held for maintainer reviewReviewed 2 changed file(s) — two independent AI reviewers, synthesized. 🛠️ Request changes. Address the suggestions below before merging.
Merge readiness: ❌ CI is red — approval withheld until it's green. Failing: see the checks tab. Summary The change introduces snapshot warnings into private context output and adds a corresponding test. However, the CI reports failures (validate and test suite), likely due to type or runtime issues with spreading 🛑 Concerns raised — review before merging (reviewers were not unanimous)
💡 Nits — non-blocking, optional
|
|
Note Gittensory Gate skippedPR closed before full evaluation. No late first comment was created.
💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers. |
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #985 +/- ##
=======================================
Coverage 96.61% 96.61%
=======================================
Files 110 110
Lines 15079 15079
Branches 5451 5451
=======================================
Hits 14569 14569
Misses 106 106
Partials 404 404 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
ghost
left a comment
There was a problem hiding this comment.
Recommend close (ci_red) — held for your decision
…ng-preview-warnings-propagation
Motivation
buildScorePreviewconstructed warnings only fromwarningsFor(...).Description
args.snapshot.warningsinto the previewwarningsarray insidebuildScorePreviewso snapshot warnings propagate to preview callers.surfaces snapshot warnings in score previews (#810)to verify snapshot warnings appear in preview results.src/scoring/preview.ts,test/unit/scoring.test.ts.Testing
npm exec vitest run test/unit/scoring.test.tsand the scoring test suite passed (43 tests passed).npm run typecheck(tsc --noEmit) and it succeeded.npm run test:unitrun hit unrelated failures intest/unit/queue.test.ts, so I re-ran the targeted scoring tests to validate the change which passed.Codex Task