Bug: Perma bustage FATAL ERROR PROCESSING MOZBUILD FILE when Gecko 109 merges to Beta on 2022-12-12
Status: VERIFIED
Priority: --
Resolution: FIXED
Created: 2022-11-30 11:04:40+00:00
Resolved: 2022-12-02 18:06:16+00:00

[Central-as-beta simulation](https://treeherder.mozilla.org/jobs?repo=try&resultStatus=testfailed%2Cbusted%2Cexception%2Cretry%2Cusercancel%2Crunnable&revision=9539157ec41f4110db8d9679aec7e939fad59d3d&selectedTaskRun=Q0rl0Tk2RXGgFO6pDox5GA.0)

[How to run these simulations](https://wiki.mozilla.org/Sheriffing/How_To/Beta_simulations#TRUNK_AS_EARLY_BETA)

[Failure log](https://treeherder.mozilla.org/logviewer?job_id=398162749&repo=try&lineNumber=1103)

```
Reticulating splines...
[task 2022-11-30T10:12:51.919Z] 10:12:51     INFO -   0:00.57 File already read. Skipping: /builds/worker/checkouts/gecko/intl/components/moz.build
[task 2022-11-30T10:12:52.281Z] 10:12:52     INFO -   0:00.94 File already read. Skipping: /builds/worker/checkouts/gecko/gfx/angle/targets/angle_common/moz.build
[task 2022-11-30T10:12:56.486Z] 10:12:56    ERROR -  Traceback (most recent call last):
[task 2022-11-30T10:12:56.486Z] 10:12:56     INFO -    File "/builds/worker/checkouts/gecko/configure.py", line 346, in <module>
[task 2022-11-30T10:12:56.486Z] 10:12:56     INFO -      sys.exit(main(sys.argv))
[task 2022-11-30T10:12:56.486Z] 10:12:56     INFO -    File "/builds/worker/checkouts/gecko/configure.py", line 158, in main
[task 2022-11-30T10:12:56.486Z] 10:12:56     INFO -      return config_status(config)
[task 2022-11-30T10:12:56.487Z] 10:12:56     INFO -    File "/builds/worker/checkouts/gecko/configure.py", line 297, in config_status
[task 2022-11-30T10:12:56.487Z] 10:12:56     INFO -      return config_status(args=[], **sanitized_config)
[task 2022-11-30T10:12:56.487Z] 10:12:56     INFO -    File "/builds/worker/checkouts/gecko/python/mozbuild/mozbuild/config_status.py", line 162, in config_status
[task 2022-11-30T10:12:56.487Z] 10:12:56     INFO -      definitions = list(definitions)
[task 2022-11-30T10:12:56.488Z] 10:12:56     INFO -    File "/builds/worker/checkouts/gecko/python/mozbuild/mozbuild/frontend/emitter.py", line 162, in emit
[task 2022-11-30T10:12:56.488Z] 10:12:56     INFO -      objs = list(emitfn(out))
[task 2022-11-30T10:12:56.488Z] 10:12:56     INFO -    File "/builds/worker/checkouts/gecko/python/mozbuild/mozbuild/frontend/emitter.py", line 1550, in emit_from_context
[task 2022-11-30T10:12:56.488Z] 10:12:56     INFO -      for obj in self._process_jar_manifests(context):
[task 2022-11-30T10:12:56.488Z] 10:12:56     INFO -    File "/builds/worker/checkouts/gecko/python/mozbuild/mozbuild/frontend/emitter.py", line 1882, in _process_jar_manifests
[task 2022-11-30T10:12:56.488Z] 10:12:56     INFO -      raise SandboxValidationError(
[task 2022-11-30T10:12:56.489Z] 10:12:56     INFO -  mozbuild.frontend.reader.SandboxValidationError:
[task 2022-11-30T10:12:56.489Z] 10:12:56     INFO -  ==============================
[task 2022-11-30T10:12:56.489Z] 10:12:56     INFO -  FATAL ERROR PROCESSING MOZBUILD FILE
[task 2022-11-30T10:12:56.489Z] 10:12:56     INFO -  ==============================
[task 2022-11-30T10:12:56.489Z] 10:12:56     INFO -  The error occurred while processing the following file or one of the files it includes:
[task 2022-11-30T10:12:56.489Z] 10:12:56     INFO -      /builds/worker/checkouts/gecko/browser/components/messagepreview/moz.build
[task 2022-11-30T10:12:56.490Z] 10:12:56     INFO -  The error occurred when validating the result of the execution. The reported error is:
[task 2022-11-30T10:12:56.490Z] 10:12:56     INFO -      A jar.mn exists but it is not referenced in the moz.build file. Please define JAR_MANIFESTS.
[task 2022-11-30T10:12:57.447Z] 10:12:57     INFO -  *** Fix above errors and then restart with "./mach build"
[task 2022-11-30T10:12:57.568Z] 10:12:57    ERROR - Return code: 1
[task 2022-11-30T10:12:57.568Z] 10:12:57  WARNING - setting return code to 2
[task 2022-11-30T10:12:57.568Z] 10:12:57    FATAL - 'mach build -v' did not run successfully. Please check log for errors.
[task 2022-11-30T10:12:57.568Z] 10:12:57    FATAL - Running post_fatal callback...
[task 2022-11-30T10:12:57.568Z] 10:12:57    FATAL - Exiting -1
[task 2022-11-30T10:12:57.569Z] 10:12:57     INFO - [mozharness: 2022-11-30 10:12:57.568990Z] Finished build step (failed)
```