Closed Bug 1885948 Opened 2 years ago Closed 2 years ago

IPDL build error: CreateProcess(...) failed / make (e=87): The parameter is incorrect.

Categories

(Core :: IPC, defect)

defect

Tracking

()

RESOLVED FIXED
126 Branch
Tracking Status
firefox126 --- fixed

People

(Reporter: beth, Assigned: beth)

Details

Attachments

(2 files)

Attached file build log

When I attempt a non-artifact build with commit 2333872b0f50 (a recent central), I get the attached build error. I believe this is happening because the second argument to CreateProcess() is over the maximum of 32,768 characters (it is 33064).
My source checkout is at C:\Users\Barret\Workspace\src\hg.mozilla.org\mozilla-central, which I don't think is too egregious of a path, but it accounts for 12784 of those characters.

We should consider a refactor of ipdl.py that reads in these filename from a file instead of passing them on the commandline.

If the path to your source checkout on Windows is sufficiently long enough, you
can hit the Windows maximum commandline argument limit (32k) specifying IPDL
files to ipdl.py during build. Writing the list of files to a file and passing
that to ipdl.py gets around this error completely.

Assignee: nobody → brennie
Status: NEW → ASSIGNED
Pushed by brennie@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a1428617e87a Pass IPDL sources to ipdl.py in a text file r=nika,ahochheiden

Backed out for causing mbu failures

[task 2024-03-19T05:47:34.130Z] python/mozbuild/mozbuild/test/backend/test_recursivemake.py::TestRecursiveMakeBackend::test_ipdl_sources TEST-UNEXPECTED-FAIL
[task 2024-03-19T05:47:34.133Z] =================================== FAILURES ===================================
[task 2024-03-19T05:47:34.133Z] __________________ TestRecursiveMakeBackend.test_ipdl_sources __________________
[task 2024-03-19T05:47:34.133Z] python/mozbuild/mozbuild/test/backend/test_recursivemake.py:815: in test_ipdl_sources
[task 2024-03-19T05:47:34.133Z]     self.assertEqual(found, expected)
[task 2024-03-19T05:47:34.133Z] E   AssertionError: Lists differ: ['ALL[435 chars]h', 'ALL_IPDLSRCS_FILE := /builds/worker/check[394 chars]foo'] != ['ALL[435 chars]h', 'IPDLDIRS := /builds/worker/checkouts/geck[253 chars]foo']
[task 2024-03-19T05:47:34.133Z] E
[task 2024-03-19T05:47:34.133Z] E   First differing element 1:
[task 2024-03-19T05:47:34.133Z] E   'ALL_IPDLSRCS_FILE := /builds/worker/check[92 chars].txt'
[task 2024-03-19T05:47:34.133Z] E   'IPDLDIRS := /builds/worker/checkouts/geck[252 chars]/foo'
[task 2024-03-19T05:47:34.133Z] E
[task 2024-03-19T05:47:34.133Z] E   First list contains 1 additional elements.
[task 2024-03-19T05:47:34.133Z] E   First extra element 2:
[task 2024-03-19T05:47:34.133Z] E   'IPDLDIRS := /builds/worker/checkouts/gecko/python/mozbuild/mozbuild/test/backend/data/ipdl_sources/tmpduwm2uf3/ipdl /builds/worker/checkouts/gecko/python/mozbuild/mozbuild/test/backend/data/ipdl_sources/bar /builds/worker/checkouts/gecko/python/mozbuild/mozbuild/test/backend/data/ipdl_sources/foo'
[task 2024-03-19T05:47:34.133Z] E
[task 2024-03-19T05:47:34.133Z] E   Diff is 942 characters long. Set self.maxDiff to None to see it.
[task 2024-03-19T05:47:34.133Z] ------------------------------ Captured log call -------------------------------
Flags: needinfo?(brennie)
Flags: needinfo?(brennie)
Pushed by brennie@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/49f6b516c694 Pass IPDL sources to ipdl.py in a text file r=nika,ahochheiden
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 126 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: