Skip to content

test(mongo): name Mongo test blocks after what they test, not a deleted project list - #30410

Merged
wmadden merged 1 commit into
mainfrom
remove-framework-limitation-labels
Sep 25, 2026
Merged

wmadden merged 1 commit into
mainfrom
remove-framework-limitation-labels

Conversation

@wmadden-electric

@wmadden-electric wmadden-electric commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

At a glance

Nine Mongo test blocks and two sentences in a subsystem doc started with a numbered label that pointed at a list in a project doc. That doc was deleted when the Mongo target work closed out, so the labels now point at nothing:

- describe('<label>: polymorphic validators', () => {
+ describe('polymorphic validators', () => {

What this PR changes

  • Seven describe names in three Mongo test files drop their label and keep the description of what they test.
  • docs/architecture docs/subsystems/10. MongoDB Family.md drops the labels next to its two known-gap notes and keeps the Linear ticket links (TML-2447, TML-2448), which are durable.

No test logic or production code changes.

Why

.agents/rules/no-transient-project-ids-in-code.mdc forbids IDs from project plans and specs in code and test names, because projects/ documents are deleted at close-out and the IDs then point at nothing. These labels are that case. Linear ticket IDs are allowed by the same rule, so the doc keeps those.

Files touched:

  • packages/2-mongo-family/5-query-builders/orm/test/integration/orm-ergonomics.test.ts
  • packages/2-mongo-family/2-authoring/contract-psl/test/interpreter.polymorphism.test.ts
  • packages/3-mongo-target/1-mongo-target/test/mongo-planner.test.ts
  • docs/architecture docs/subsystems/10. MongoDB Family.md

Tests

Only test names changed. pnpm --filter <pkg> test and lint pass for @internal/mongo-orm, @internal/mongo-contract-psl and @internal/target-mongo, and no label is left anywhere in the repo.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Documentation
    • Updated MongoDB migration-planner descriptions to remove flow labels while retaining the TML issue references.
  • Tests
    • Renamed several MongoDB test suite descriptions to remove flow labels. Test cases and behavior are unchanged.

Test names and the MongoDB Family subsystem doc still carried numbered
labels from a framework-limitations list in a project doc that was
deleted when the Mongo target work closed out. The labels point at
nothing, so the test blocks now say what they test, and the doc keeps
only the Linear ticket links.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
@wmadden-electric
wmadden-electric requested a review from a team as a code owner September 25, 2026 05:24
wmadden-electric added a commit to rajat12826/orm that referenced this pull request Sep 25, 2026
prisma#30410 renames the test blocks in this file, so this PR keeps the block
name as it is on main and only adds tests inside it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
@coderabbitai

coderabbitai Bot commented Sep 25, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Navigate logical layers of code changes, visualize relationships, and explore their blast radius.

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository: prisma/orm/.coderabbit.yml

Review profile: CHILL

Plan: Advanced

Run ID: ad843c24-6628-47a8-9c51-18ab3e53cebd

📥 Commits

Reviewing files that changed from the base of the PR and between 7a47637 and 59e3b76.

📒 Files selected for processing (4)
  • docs/architecture docs/subsystems/10. MongoDB Family.md
  • packages/2-mongo-family/2-authoring/contract-psl/test/interpreter.polymorphism.test.ts
  • packages/2-mongo-family/5-query-builders/orm/test/integration/orm-ergonomics.test.ts
  • packages/3-mongo-target/1-mongo-target/test/mongo-planner.test.ts

Included review availability: Your plan provides up to 10 included reviews per hour; 9 remain after this review.


📝 Walkthrough

Walkthrough

Feature labels were removed from MongoDB migration-planner documentation and test suite descriptions. Issue references, test cases, and assertions remain unchanged.

Changes

MongoDB label cleanup

Layer / File(s) Summary
Remove feature labels from descriptions
docs/architecture docs/subsystems/10. MongoDB Family.md, packages/2-mongo-family/2-authoring/contract-psl/test/interpreter.polymorphism.test.ts, packages/2-mongo-family/5-query-builders/orm/test/integration/orm-ergonomics.test.ts, packages/3-mongo-target/1-mongo-target/test/mongo-planner.test.ts
Removed FL labels from migration-planner gaps and test suite descriptions. TML references and test contents remain unchanged.

Priority: ⬇️ Low

Estimated code review effort: 1 (Trivial) | ~3 minutes

Change: Other

Suggested reviewers: sevinf

Merge Risk: ⚪ Minimal · up to 59e3b

This change removes feature labels from MongoDB test descriptions and documentation while preserving the tests and issue references. The supplied evidence indicates no behavior change or merge-blocking risk.

Architecture Summary

Architecture risk: 🔵 Low · up to 59e3b

The change affects 3 systems.

Changed systems: packages/2-mongo-family, docs, packages/3-mongo-target

Architecture concerns
No architecture-level concerns identified.

Review details

Systems and components

  • observed — packages/2-mongo-family (library) was modified; 2 changed files map to changed impact.
  • observed — docs (service) was modified; 1 changed file maps to changed impact.
  • observed — packages/3-mongo-target (library) was modified; 1 changed file maps to changed impact.

Before / after behavior

  • observed — Modified behavior in docs/architecture docs/subsystems/10. MongoDB Family.md: The Float-validator gap retains its TML-2448 reference but drops the FL-11 label. The polymorphic migration-planner gaps retain the TML-2447 reference but drop the parenthetical that identified them as combining FL-09 and FL-10.
  • observed — Modified behavior in packages/2-mongo-family/2-authoring/contract-psl/test/interpreter.polymorphism.test.ts: Renamed the suite description by removing the FL-09: prefix; its test cases are unchanged.
  • observed — Modified behavior in packages/2-mongo-family/2-authoring/contract-psl/test/interpreter.polymorphism.test.ts: Renamed the suite description by removing the FL-10: prefix; its test cases are unchanged.
  • observed — Modified behavior in packages/2-mongo-family/5-query-builders/orm/test/integration/orm-ergonomics.test.ts: Removed the FL-04, FL-06, FL-08 label from the top-level test suite description.
🚥 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 3 files. (1 skipped: 1 … Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly summarizes the main change: removing obsolete project-list labels from MongoDB test block names while preserving descriptive test names.
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.
Full details: Docstring Coverage

Explanation

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 3 files. (1 skipped: 1 unsupported.)

  • Fix all pre-merge checks with AI
✨ Finishing Touches 💡 1
📝 Generate docstrings 💡
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR

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

@wmadden
wmadden enabled auto-merge September 25, 2026 05:25
@pkg-pr-new

pkg-pr-new Bot commented Sep 25, 2026

Copy link
Copy Markdown

Open in StackBlitz

@prisma/orm-extension-arktype-json

npm i https://pkg.pr.new/@prisma/orm-extension-arktype-json@30410

@prisma/orm-extension-middleware-cache

npm i https://pkg.pr.new/@prisma/orm-extension-middleware-cache@30410

@prisma/orm-extension-paradedb

npm i https://pkg.pr.new/@prisma/orm-extension-paradedb@30410

@prisma/orm-extension-pgvector

npm i https://pkg.pr.new/@prisma/orm-extension-pgvector@30410

@prisma/orm-extension-postgis

npm i https://pkg.pr.new/@prisma/orm-extension-postgis@30410

@prisma/orm-extension-supabase

npm i https://pkg.pr.new/@prisma/orm-extension-supabase@30410

@prisma/orm-family-mongo

npm i https://pkg.pr.new/@prisma/orm-family-mongo@30410

@prisma/orm-family-sql

npm i https://pkg.pr.new/@prisma/orm-family-sql@30410

@prisma/orm-framework

npm i https://pkg.pr.new/@prisma/orm-framework@30410

@prisma/orm-mongo

npm i https://pkg.pr.new/@prisma/orm-mongo@30410

@prisma/orm-postgres

npm i https://pkg.pr.new/@prisma/orm-postgres@30410

@prisma/orm-sqlite

npm i https://pkg.pr.new/@prisma/orm-sqlite@30410

@prisma/orm-target-mongo

npm i https://pkg.pr.new/@prisma/orm-target-mongo@30410

@prisma/orm-target-postgres

npm i https://pkg.pr.new/@prisma/orm-target-postgres@30410

@prisma/orm-target-sqlite

npm i https://pkg.pr.new/@prisma/orm-target-sqlite@30410

@prisma/orm-toolchain

npm i https://pkg.pr.new/@prisma/orm-toolchain@30410

commit: 59e3b76

@github-actions

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size
postgres / no-emit 194.93 KB (0%)
postgres / emit 165.58 KB (0%)
mongo / no-emit 110.52 KB (0%)
mongo / emit 92.01 KB (0%)
cf-worker / no-emit 218.07 KB (0%)
cf-worker / emit 185.51 KB (0%)

@wmadden
wmadden added this pull request to the merge queue Sep 25, 2026
Merged via the queue into main with commit d15d0f5 Sep 25, 2026
27 checks passed
@wmadden
wmadden deleted the remove-framework-limitation-labels branch September 25, 2026 06:42
wmadden pushed a commit that referenced this pull request Sep 25, 2026
… DCO workflow (#30419)

## At a glance

The merge-queue commits for #30392, #30397 and #30410 each carry two
`DCO` results:

```text
DCO  dco             success   <- the DCO app; the ruleset requires this one
DCO  github-actions  success   <- .github/workflows/dco.yml; ignored
```

After this PR only the app's result remains.

## What this PR changes

1. Deletes `.github/workflows/dco.yml`.
2. `docs/oss/ci-pipeline.md` says the `DCO` check comes from the DCO
app, on PRs and on merge-queue commits.

## Why the placeholder existed, and why it can go

The DCO requires a `Signed-off-by:` trailer on every commit. The [DCO
GitHub App](https://github.com/apps/dco) enforces it by posting a check
named `DCO`. Until recently the app only ran on PRs, so a merge-queue
commit never got a `DCO` result and the queue stalled. `dco.yml` filled
that gap: it ran on `merge_group`, echoed a message, and passed without
reading any commits.

The app now handles merge-queue events: the org installation accepted
its new "Merge queues" permission. The `main` ruleset requires `DCO`
from the app only, so the placeholder's result no longer counts toward
the merge. It only costs a runner for every queued PR.

## Tests

None; this is a workflow deletion. This PR's own trip through the merge
queue shows the app's `DCO` result satisfying the requirement without
the placeholder.

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


<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Documentation**
* Clarified that the DCO app posts a separate check for pull requests
and merge-queue commits.
* **Chores**
* Removed a redundant DCO workflow check; DCO sign-off checks continue
to be posted by the DCO app.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->

Signed-off-by: willbot <[email protected]>
Signed-off-by: Will Madden <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
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.

2 participants