Skip to content

Fix feedback submissions rejected by metadata validation - #256

Merged
AmanVarshney01 merged 2 commits into
mainfrom
fix/feedback-flat-metadata
Sep 11, 2026
Merged

Fix feedback submissions rejected by metadata validation#256
AmanVarshney01 merged 2 commits into
mainfrom
fix/feedback-flat-metadata

Conversation

@AmanVarshney01

Copy link
Copy Markdown
Member

prisma feedback fails against the live service with HTTP 400: meta must be an object with string values. The engine migration changed the wire payload from flat nodeVersion metadata to a nested runtime object.

Restore the service-compatible metadata fields (cliVersion, nodeVersion, platform, arch) while preserving the CLI result's existing context shape. The local test server now rejects non-string metadata values, and the payload assertion checks the restored contract.

Validation:

  • pnpm typecheck and pnpm lint pass.
  • CLI tests: 964 passed, 2 platform-specific skips.
  • E2E: 6 passed, 48 credential-dependent skips.
  • Built CLI successfully submitted one user-authorized, anonymous test message to the production endpoint and returned submission ID 01a08fe1-2a2d-7000-8a55-b334e2488a5e with exit code 0.

Separate from artwork PR #253; no engine version or deployment changes.

@coderabbitai

coderabbitai Bot commented Sep 11, 2026

Copy link
Copy Markdown

Review Change StackReview Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Essentials

Run ID: c6c5f856-23b1-4f81-9887-aa49016926ec

📥 Commits

Reviewing files that changed from the base of the PR and between 3a97d2c and fc21628.

📒 Files selected for processing (2)
  • packages/cli/src/commands/feedback.ts
  • packages/cli/tests/feedback.test.ts

Included review availability: 2 reviews are currently available. Your included PR review attempts over the past 7 days set your current allowance at 3 reviews per hour.


Summary by CodeRabbit

  • Bug Fixes
    • Feedback submissions now include consistent CLI version, Node.js version, platform, and architecture details.
    • Invalid feedback metadata is rejected instead of being recorded.
    • Feedback context now reports the Node.js version directly.

Walkthrough

The feedback payload now serializes cliVersion, nodeVersion, platform, and arch explicitly. The feedback test service validates that meta exists and contains only string values. Invalid metadata returns HTTP 400. The expected feedback context now uses nodeVersion.

Priority: ➖ Normal

Merge Risk: ⚪ Minimal · up to 16dc1

The feedback payload supplies the required metadata fields with no remaining merge-blocking issue.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 1 functions across 2 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description check ✅ Passed The description clearly explains the metadata validation failure, the restored fields, the test changes, and the validation results.
Title check ✅ Passed The title clearly identifies the main change: fixing feedback submissions rejected by metadata validation.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/feedback-flat-metadata
✨ Simplify code
  • Create PR with simplified code
  • Commit simplified code in branch fix/feedback-flat-metadata

Comment @coderabbitai help to get the list of available commands.

@pkg-pr-new

pkg-pr-new Bot commented Sep 11, 2026

Copy link
Copy Markdown

Open in StackBlitz

npx https://pkg.pr.new/@prisma/cli@256
npx https://pkg.pr.new/@prisma/cli-engine@256

commit: 16dc138

wmadden pushed a commit that referenced this pull request Sep 11, 2026
…258)

## Summary

Every `npm install` of `@prisma/cli` and `prisma` has hung since
2026-09-11 03:55 UTC, and the conformance step in CI runs until
cancelled (for example
https://github.com/prisma/prisma-cli/actions/runs/34586396643/job/103242148710
on #256). The cause is two levels down: `@prisma/composer@0.17.0` left
alchemy's floating `@effect/vitest` dependency unpinned for consumers,
the `@effect/*` adapters published `4.0.0-rc.114` ahead of `effect`
itself, and npm backtracks for hours over an `effect` peer that no
published version satisfies instead of failing.

composer 0.18.0 pins that dependency (prisma/composer#287). This moves
both shells to it, and the `@prisma/composer` dev dependency with them
so the tree holds one composer version. No CLI behaviour changes:
composer-cli 0.18.0 declares the same `@prisma/cli-engine@0.3.0` peer.

## Testing

- `PUBLISH_CHANNEL=dev pnpm check:conformance` and
`PUBLISH_CHANNEL=release pnpm check:conformance`: 5 subjects checked,
nothing to report, about 50 s each. Before this change the sandbox
install never finished.
- `pnpm typecheck` clean. `pnpm --filter @prisma/cli test`: 964 passed,
2 skipped.
- `pnpm lint` clean on tracked files.

## After merge

#256 and any other open PR need main merged in, or a rerun on top of it,
for their conformance check to pass. The already-published `8.0.0-rc.13`
still pins composer-cli 0.17.0 and cannot be installed until the next
release ships this pin, unless `effect@4.0.0-rc.114` lands upstream
first.

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

Signed-off-by: willbot <w.a.madden+machine@gmail.com>
Signed-off-by: Will Madden <madden@prisma.io>
Co-authored-by: Claude Fable 5.1 <noreply@anthropic.com>
@AmanVarshney01
AmanVarshney01 merged commit c9d6e05 into main Sep 11, 2026
16 checks passed
@AmanVarshney01
AmanVarshney01 deleted the fix/feedback-flat-metadata branch September 11, 2026 16:42
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