Skip to content

Conversation

@buranmert
Copy link
Contributor

@buranmert buranmert commented Jan 6, 2026

What and why?

sourcemaps upload now looks at the last non-empty lines of minified JS files in the given directory and reads their sourceMappingURL values in order to find their corresponding sourcemap files.

Before this mapping logic was hardcoded as the following: foo.min.js -> foo.map.js

How?

A brief description of implementation details of this PR.

Review checklist

  • Feature or bugfix MUST have appropriate tests (unit, integration)

@buranmert buranmert self-assigned this Jan 6, 2026
@buranmert buranmert force-pushed the buranmert/gh-issue-1997 branch from 46ba529 to 313f7ea Compare January 6, 2026 16:17
@buranmert buranmert added the rum Related to [dsyms, flutter-symbols, react-native, sourcemaps, unity-symbols] label Jan 6, 2026
@buranmert buranmert force-pushed the buranmert/gh-issue-1997 branch from 313f7ea to d0b20bf Compare January 6, 2026 16:22
@buranmert buranmert marked this pull request as ready for review January 6, 2026 16:25
@buranmert buranmert requested review from a team as code owners January 6, 2026 16:25
Copy link

@Miz85 Miz85 left a comment

Choose a reason for hiding this comment

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

LGTM, I have a couple of minor comments but all in all it's okay. It would be good to test it on a real app before merging.

@buranmert
Copy link
Contributor Author

buranmert commented Jan 7, 2026

while testing with a simple Next JS project I found that some sourceMappingURL can be url-percent encoded
fixed here 323a17d

my manual testing passed ✅

@buranmert buranmert force-pushed the buranmert/gh-issue-1997 branch from e65b3e3 to 54af34f Compare January 7, 2026 14:10
@buranmert buranmert requested a review from Drarig29 January 7, 2026 15:25
Copy link
Contributor

@Drarig29 Drarig29 left a comment

Choose a reason for hiding this comment

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

Let's use the async FS API to unblock the event loop

@datadog-datadog-prod-us1
Copy link

datadog-datadog-prod-us1 bot commented Jan 8, 2026

✅ Tests

🎉 All green!

❄️ No new flaky tests detected
🧪 All tests passed

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 0899aa7 | Docs | Datadog PR Page | Was this helpful? Give us feedback!

@buranmert buranmert force-pushed the buranmert/gh-issue-1997 branch from 61fa864 to 0899aa7 Compare January 8, 2026 10:56
Copy link
Contributor

@Drarig29 Drarig29 left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the changes!

@buranmert buranmert merged commit 9c7ed15 into master Jan 8, 2026
23 checks passed
@buranmert buranmert deleted the buranmert/gh-issue-1997 branch January 8, 2026 11:12
@buranmert
Copy link
Contributor Author

this PR should close #1997

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

rum Related to [dsyms, flutter-symbols, react-native, sourcemaps, unity-symbols]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants