Closed Bug 1807237 Opened 3 years ago Closed 3 years ago

firefox-android: Optimize gradle dependencies toolchain task on android-components

Categories

(Release Engineering :: General, enhancement)

enhancement

Tracking

(firefox111 fixed)

RESOLVED FIXED
Tracking Status
firefox111 --- fixed

People

(Reporter: jlorenzo, Assigned: jlorenzo)

References

()

Details

Attachments

(3 files)

In bug 1788606, we optimized gradle calls in the decision task. There's another gradle-based task that remains outstanding: the one that caches gradle dependencies. It was introduced in bug 1625126 and has regularly been called out as being too long, especially on Android-Components.

RELENG-736 suggests a solution: use a Nexus to proxy these dependencies. I think we shouldn't jump to this solution yet because of the lack of experience Mozilla has in monitoring such proxy. It's an easy target for supply-chain attacks.

Before, I think we should try something else: how about we split the toolchain tasks into smaller ones? Bug 1803141 made it easier to know what internal dependencies a gradle project has. So we can have 1 cache task per gradle project whose hash depends on its internal dependencies. This way, we don't wait on a single big task that caches all possibles deps.

I'll see how good this proposal is. I'd like to reduce the duration of this task before we migrate Fenix to the monorepo (bug 1803130). That duration delayed the migration by several hours on the day of the migration.

Possibly duplicates bug 1619659.

See Also: → 1619659
See Also: → 1810150
Status: NEW → RESOLVED
Closed: 3 years ago
Flags: needinfo?(jlorenzo)
Resolution: --- → FIXED

Sorry for the delay. I agree, let's close this bug as is. It definitely made things better on Android-Components. We're working on the Fenix migration to the monorepo and I see this task takes about an hour. We don't be able to optimize it the same way. Thus, I'll open a followup bug once we're done with the migration.

Flags: needinfo?(jlorenzo)
Summary: firefox-android: Optimize gradle dependencies toolchain task → firefox-android: Optimize gradle dependencies toolchain task on android-components
Blocks: 1820122

(In reply to Johan Lorenzo [:jlorenzo] from comment #4)

Thus, I'll open a followup bug once we're done with the migration.

Filed as bug 1820122.

Blocks: 1820125
Blocks: 1820129
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: