Skip to content

RUM-19005: Upload all packaged native libraries, skip stripped ones - #657

Merged
0xnm merged 1 commit into
developfrom
nogorodnikov/rum-19005/skip-stripped-ndk-libs
Oct 19, 2026
Merged

0xnm merged 1 commit into
developfrom
nogorodnikov/rum-19005/skip-stripped-ndk-libs

Conversation

@0xnm

@0xnm 0xnm commented Oct 16, 2026

Copy link
Copy Markdown
Member

What does this PR do?

With the new Variant API, upload the native libraries from the variant's MERGED_NATIVE_LIBS artifact: everything packaged into the variant (built by the app, prebuilt jniLibs and AAR dependencies), after packaging excludes and before AGP strips them. The artifact carries the dependency on the tasks producing it, so the upload task no longer looks up native build tasks when it is configured, which could find none if it was configured early.

Prebuilt and dependency libraries usually ship already stripped. Only their exported symbols could be symbolicated, and the backend keeps the first file per build ID, name and ABI, so a stripped copy could block the copy with symbols. Read the ELF section names of each .so and skip it when it has no .symtab, .debug_info or .zdebug_info. Files which can't be parsed are still uploaded. Warn when every library found was stripped.

Also enable the NDK upload test with gzip disabled, which was missing @Test and never disabled gzip.

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • Make sure you discussed the feature or bugfix with the maintaining team in an Issue
  • Make sure each commit and the PR mention the Issue number (cf the CONTRIBUTING doc)

@0xnm

0xnm commented Oct 16, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-16T09:56:18.767411Z 911c215 New commits
🔒 Security Review ✅ Completed 2026-10-16T09:58:39.130828Z 911c215 New commits

Security findings

Advisory findings (1)

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@datadog-official

datadog-official Bot commented Oct 16, 2026 •

Copy link
Copy Markdown

🎯 Code Coverage (details)
• Patch Coverage: 88.30%
• Overall Coverage: 63.91% (+0.95%)

This comment will be updated automatically if new data arrives.
🔗 Commit SHA: 911c215 | Docs | Give us feedback!

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 57bbbe65d1

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🛡️ Codex Security Review · Automatically triggered

Here are some automated security review suggestions for this pull request.

Reviewed commit: 57bbbe65d1

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@0xnm
0xnm force-pushed the nogorodnikov/rum-19005/skip-stripped-ndk-libs branch from 57bbbe6 to 7216c74 Compare October 16, 2026 09:33
@0xnm

0xnm commented Oct 16, 2026

Copy link
Copy Markdown
Member Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Keep it up!

Reviewed commit: 7216c7429d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@chatgpt-codex-connector

Copy link
Copy Markdown

🛡️ Codex Security Review · Automatically triggered

Security review completed. No security issues were found in this pull request.

Reviewed commit: 7216c7429d

View security finding report

Only the user who started this review can view the report in Codex.

ℹ️ About Codex security reviews in GitHub

This is an experimental Codex feature. Security reviews are triggered when:

  • You comment "@codex security review"
  • A regular code review gets triggered (for example, "@codex review" or when a PR is opened), and you’re opted in so security review runs alongside code review

Once complete, Codex will leave suggestions, or a comment if no findings are found.

@0xnm
0xnm marked this pull request as ready for review October 16, 2026 09:41
@0xnm
0xnm requested review from a team as code owners October 16, 2026 09:41

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 7216c7429d

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

With the new Variant API, upload the native libraries from the variant's
MERGED_NATIVE_LIBS artifact: everything packaged into the variant (built by
the app, prebuilt jniLibs and AAR dependencies), after packaging excludes and
before AGP strips them. The artifact carries the dependency on the tasks
producing it, so the upload task no longer looks up native build tasks when
it is configured, which could find none if it was configured early.

Prebuilt and dependency libraries usually ship already stripped. Only their
exported symbols could be symbolicated, and the backend keeps the first file
per build ID, name and ABI, so a stripped copy could block the copy with
symbols. Read the ELF section names of each .so and skip it when it has no
.symtab, .debug_info or .zdebug_info. Files which can't be parsed are still
uploaded. Warn when every library found was stripped.

Also enable the NDK upload test with gzip disabled, which was missing @test
and never disabled gzip.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@0xnm
0xnm force-pushed the nogorodnikov/rum-19005/skip-stripped-ndk-libs branch from 7216c74 to 911c215 Compare October 16, 2026 09:54

@datadog-official datadog-official Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Bits Code Review: PASS

More details

The completed static review identified no reportable defect in artifact dependency wiring or stripped-library filtering. Runtime behavior remains unverified because tests were inspected but not executed.

Was this helpful? React 👍 or 👎

Open Bits AI session

🤖 Bits Code Review · Commit 7216c74

@0xnm 0xnm added the ready-for-human-review Pull Request is ready for the human review, all agentic feedback is addressed. label Oct 19, 2026
@0xnm
0xnm merged commit 68194bf into develop Oct 19, 2026
18 checks passed
@0xnm
0xnm deleted the nogorodnikov/rum-19005/skip-stripped-ndk-libs branch October 19, 2026 07:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-for-human-review Pull Request is ready for the human review, all agentic feedback is addressed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants