Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bundle Analysis: Make a lib to fetch route by a file name #439

Merged
merged 1 commit into from
Nov 28, 2024

Conversation

JerrySentry
Copy link
Contributor

For codecov/engineering-team#2570

Given a file path/name of a module we want to compute what route of the application this file belongs to. This class aims to make that transformation by applying custom file based routing rules for various supported plugins. Supported plugins are:

  • Remix
  • NextJS Webpack
  • Nuxt
  • SolidStart
  • SvelteKit

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. In 2022 this entity acquired Codecov and as result Sentry is going to need some rights from me in order to utilize my contributions in this PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

@@ -18,7 +18,7 @@
def attempt_json_dumps(value: Any) -> str:
def assert_string_keys(d: dict[Any, Any]) -> None:
for k, v in d.items():
if type(k) is not str:
if not isinstance(k, str):
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ruff made this chage.

@JerrySentry JerrySentry added this pull request to the merge queue Nov 28, 2024
Merged via the queue into main with commit dfa96d7 Nov 28, 2024
6 checks passed
@JerrySentry JerrySentry deleted the nov_22_ba_pathing branch November 28, 2024 18:38
Copy link

codecov bot commented Nov 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.81%. Comparing base (f96b72f) to head (a7677f2).
Report is 8 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #439      +/-   ##
==========================================
- Coverage   90.56%   89.81%   -0.75%     
==========================================
  Files         390      324      -66     
  Lines       11768     9379    -2389     
  Branches     1974     1677     -297     
==========================================
- Hits        10658     8424    -2234     
+ Misses       1026      891     -135     
+ Partials       84       64      -20     
Flag Coverage Δ
shared-docker-uploader ?

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

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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