Skip to content

test: remove redundant schema validation tests#40022

Draft
sampaiodiego wants to merge 4 commits intodevelopfrom
remove-redundant-schema-validation-tests
Draft

test: remove redundant schema validation tests#40022
sampaiodiego wants to merge 4 commits intodevelopfrom
remove-redundant-schema-validation-tests

Conversation

@sampaiodiego
Copy link
Copy Markdown
Member

Proposed changes (including videos or screenshots)

Since the new API for creating endpoints (like API.v1.get|post) has mandatory schemas for build time validation of the params and response, we can rely on that only for payload validations, we don't need to use slow end-to-end tests for that purpose.

So as we move forward converting endpoints to the new API the idea is to also remove these end-to-end tests so they run even faster and test what matters which is the business logic and actual impact.

Issue(s)

Steps to test or reproduce

Further comments

@dionisio-bot
Copy link
Copy Markdown
Contributor

dionisio-bot bot commented Apr 1, 2026

Looks like this PR is not ready to merge, because of the following issues:

  • This PR is missing the 'stat: QA assured' label
  • This PR is missing the required milestone or project

Please fix the issues and try again

If you have any trouble, please check the PR guidelines

@changeset-bot
Copy link
Copy Markdown

changeset-bot bot commented Apr 1, 2026

⚠️ No Changeset found

Latest commit: eb33c87

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai bot commented Apr 1, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 0897ce91-50fb-4900-aa24-298b21abb963

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

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.

❤️ Share

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

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 1, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 70.51%. Comparing base (92a44ee) to head (eb33c87).

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff             @@
##           develop   #40022      +/-   ##
===========================================
- Coverage    70.56%   70.51%   -0.06%     
===========================================
  Files         3270     3270              
  Lines       116766   116766              
  Branches     21058    21076      +18     
===========================================
- Hits         82397    82332      -65     
- Misses       32317    32383      +66     
+ Partials      2052     2051       -1     
Flag Coverage Δ
e2e 60.45% <ø> (-0.04%) ⬇️
e2e-api 48.12% <ø> (-0.95%) ⬇️
unit 70.93% <ø> (-0.06%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

sampaiodiego and others added 4 commits April 1, 2026 16:39
These tests only validated payload schema rejection (missing/invalid params)
which is now enforced at build time by the new API.v1.get/post pattern
with AJV-compiled validators.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
These tests validated AJV schema rejection (empty _id, regex injection via
query object/bracket syntax) which is now enforced at build time by the
new API.v1.get pattern with compiled validators.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Remove 9 tests that only validated schema rejection (empty userId/msgId/
reportId, missing description) for endpoints now using the new
API.v1.get/post pattern with AJV-compiled validators.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Remove 7 schema validation tests for push.token POST and DELETE
endpoints which have been migrated to the new API.v1.post/delete
pattern with AJV-compiled validators. Tests for push.get and
push.info (still using addRoute) are preserved.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@sampaiodiego sampaiodiego force-pushed the remove-redundant-schema-validation-tests branch from 777c7a1 to eb33c87 Compare April 1, 2026 19:39
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.

1 participant