Skip to content

Commit

Permalink
Fix error in JS A/B test code (#50229)
Browse files Browse the repository at this point in the history
  • Loading branch information
Swatinem authored Jun 2, 2023
1 parent 25a294d commit c2b643a
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions src/sentry/lang/javascript/processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -2151,11 +2151,6 @@ def close(self):

metrics.incr("sourcemaps.ab-test.performed")

# TODO: we currently have known differences:
# - python prefixes sourcemaps fetched by debug-id with `debug-id://`
# - some insignificant differences in source context application
# related to different column offsets
# - python adds a `data.sourcemap` even if none was fetched successfully
interesting_keys = {
"abs_path",
"filename",
Expand Down Expand Up @@ -2224,10 +2219,9 @@ def without_known_diffs(frame: dict) -> dict:
):
# python emits a `debug-id://` prefix whereas symbolicator does not
# OR: python adds a `data.sourcemap` even though it could not be resolved
if (
python_frame.get("data.sourcemap", "").startswith("debug-id://")
or symbolicator_frame.get("data.sourcemap") is None
):
if (python_frame.get("data.sourcemap") or "").startswith(
"debug-id://"
) or symbolicator_frame.get("data.sourcemap") is None:
continue

# with minified files and high column numbers, we might have a difference in
Expand Down

0 comments on commit c2b643a

Please sign in to comment.