Skip to content

Bug 2086064 - publish mapping files for all build types. - #422

Closed
pollym wants to merge 1 commit into
mozilla-firefox:autolandfrom
pollym:publish-mappings-for-all-minified-builds
Closed

pollym wants to merge 1 commit into
mozilla-firefox:autolandfrom
pollym:publish-mappings-for-all-minified-builds

Conversation

@pollym

@pollym pollym commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

NB the mapping file is only produced for r8 optimised builds: debug builds do not produce a mapping.txt, so in this case there will simply be a warning in the logs that the mapping.txt file does not exist.

changes:

  • build_android_app.py: add_artifacts now adds mapping.txt to any build.

  • build-apk/kind.yml: removed the one-off artifact on fenix-nightly-firebase. The new rule produces the same path, and the ui-test-apk fetch still resolves.

  • test_android_taskgraph.py: a new test, test_mapping_published_for_each_variant, looks for the mapping file at the expected path.

new try is here
it is green and you can see the new artifact in each build: here is an example
image

artifact sizes for two of the try mappings:

  • Fenix nightly bundle: about 221 MB
  • Focus release bundle: about 108 MB

Lando: link
Bugzilla: bug 2086064

⚠️ This pull request has 6 warnings.
🚫 This pull request has 2 blockers.

@pollym
pollym requested a review from bhearsum October 28, 2026 11:47
@lando-web
lando-web Bot requested a review from a team October 28, 2026 11:47
Comment on lines +379 to +382
if (
gradle_build_type in MINIFIED_BUILD_TYPES
and "-PdisableOptimization" not in task["run"]["gradlew"]
):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Might be worth making that unconditional, worst case it doesn't exist and we just get a warning in the log?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

thanks, trying that now, if it just gives a warning and not a failure that makes sense

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

ok that works nicely, have simplified and got a successful try

@lando-web
lando-web Bot requested a review from a team October 28, 2026 11:59
@mozilla-code-review

Copy link
Copy Markdown

No new issues detected. This pull request is 🆗

1 similar comment
@mozilla-code-review

Copy link
Copy Markdown

No new issues detected. This pull request is 🆗

NB the mapping file is only produced for r8 optimised builds: debug builds do not produce a mapping.txt, so in this case there will simply be a warning in the logs that the mapping.txt file does not exist.

changes:
- `build_android_app.py`: `add_artifacts` now adds `mapping.txt` to any build.

- `build-apk/kind.yml`: removed the one-off artifact on `fenix-nightly-firebase`. The new rule produces the same path, and the `ui-test-apk` fetch still resolves.

- `test_android_taskgraph.py`: a new test, `test_mapping_published_for_each_variant`, looks for the mapping file at the expected path.
@pollym
pollym force-pushed the publish-mappings-for-all-minified-builds branch from 6e55703 to 402521a Compare October 29, 2026 08:47
@mozilla-code-review

Copy link
Copy Markdown

No new issues detected. This pull request is 🆗

1 similar comment
@mozilla-code-review

Copy link
Copy Markdown

No new issues detected. This pull request is 🆗

@pollym
pollym requested a review from jcristau October 29, 2026 09:19
@pollym pollym changed the title Bug 2086064 - publish mapping files for all minified build types. Bug 2086064 - publish mapping files for all build types. Oct 29, 2026
lando-worker Bot pushed a commit that referenced this pull request Oct 29, 2026
NB the mapping file is only produced for r8 optimised builds: debug builds do not produce a mapping.txt, so in this case there will simply be a warning in the logs that the mapping.txt file does not exist.

changes:
- `build_android_app.py`: `add_artifacts` now adds `mapping.txt` to any build.

- `build-apk/kind.yml`: removed the one-off artifact on `fenix-nightly-firebase`. The new rule produces the same path, and the `ui-test-apk` fetch still resolves.

- `test_android_taskgraph.py`: a new test, `test_mapping_published_for_each_variant`, looks for the mapping file at the expected path.

[new try is here](https://treeherder.mozilla.org/jobs?repo=try&revision=a82c98e006dd980f36bb3feb47f7bd21711cd143)
it is green and you can see the new artifact in each build: here is an example
<img width="346" height="217" alt="image" src="https://github.com/user-attachments/assets/aa39de04-cee7-4a0c-a281-cae492a37cac" />

artifact sizes for two of the try mappings:
- Fenix nightly bundle: about 221 MB
- Focus release bundle: about 108 MB

Pull request: #422
@lando-worker

lando-worker Bot commented Oct 29, 2026

Copy link
Copy Markdown

Pull request closed by commit d890dd6

@lando-worker lando-worker Bot closed this Oct 29, 2026
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