Closed Bug 1891130 Opened 11 months ago Closed 10 months ago

Building Fenix (not Focus) from gradle root fails because of unknown project :mozilla-lint-rules

Categories

(Fenix :: Tooling, defect, P1)

All
Android
defect

Tracking

(firefox126 wontfix, firefox127 wontfix, firefox128 fixed)

RESOLVED FIXED
128 Branch
Tracking Status
firefox126 --- wontfix
firefox127 --- wontfix
firefox128 --- fixed

People

(Reporter: jonalmeida, Assigned: titouan)

References

(Blocks 1 open bug)

Details

(Keywords: regression, Whiteboard: [fxdroid][group4])

Attachments

(1 file)

Steps to reproduce

  1. Use a mozconfig WITHOUT artifact mode.
  2. Run ./mach build.
  3. Run ./mach gradle assembleWithGeckoBinariesFocusRelease.
  4. Observe.
  5. Run ./mach gradle assembleWithGeckoBinariesFenixRelease.
  6. Observe.

Expected behaviour

  • At step 4, Focus builds and installs on the connected device.
  • At step 6, Fenix builds and installs on the connected device.

Actual behaviour

  • At step 4, Focus builds and installs on the connected device.
  • At step 6, Fenix fails the build.

Device information

  • Firefox version: n/a
  • Android device model: n/a
  • Android OS version: n/a

Any additional information?

Final output from mach gradle assembleWithGeckoBinariesFenixRelease:

FAILURE: Build failed with an exception.

* What went wrong:
Could not determine the dependencies of task ':fenix:lintVitalReportWithGeckoBinariesFenixRelease'.
> Could not resolve all task dependencies for configuration ':fenix:lintChecks'.
   > Could not resolve project :mozilla-lint-rules.
     Required by:
         project :fenix
      > A dependency was declared on configuration 'default' which is not declared in the descriptor for project :mozilla-lint-rules.
See Also: → 1891159

The severity field is not set for this bug.
:bclark, could you have a look please?

For more information, please visit BugBot documentation.

Flags: needinfo?(brclark)

We've regressed this use case since March 18th, 2023, since we moved Android to mozilla-central. This is a supported case we should fix in this cycle.

Severity: -- → S3
Flags: needinfo?(brclark)
Keywords: regression
Priority: -- → P1
Blocks: 1884675
Assignee: nobody → tthibaud
Component: General → Tooling
Whiteboard: [fxdroid][group4]

Fix error: "Could not resolve project :mozilla-lint-rules"

Co-authored-by: mcarare <mcarare@mozilla.com>

Attachment #9401619 - Attachment description: WIP: Bug 1891130 - Fix building Fenix from mozilla-central root folder. → Bug 1891130 - Fix building Fenix from mozilla-central root folder.
Pushed by tthibaud@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/dbb176a25164 Fix building Fenix from mozilla-central root folder. r=android-reviewers,calu
Status: NEW → RESOLVED
Closed: 10 months ago
Resolution: --- → FIXED
Target Milestone: --- → 128 Branch

The patch landed in nightly and beta is affected.
:tthibaud, is this bug important enough to require an uplift?

  • If yes, please nominate the patch for beta approval.
  • If no, please set status-firefox127 to wontfix.

For more information, please visit BugBot documentation.

Flags: needinfo?(tthibaud)
Blocks: 1909623
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: