Port bug 1695312: Make mach command modules be loaded selectively
Categories
(Thunderbird :: Upstream Synchronization, enhancement)
Tracking
(thunderbird_esr115 wontfix)
Tracking | Status | |
---|---|---|
thunderbird_esr115 | --- | wontfix |
People
(Reporter: darktrojan, Assigned: rjl)
References
Details
Attachments
(5 files)
TypeError: initialize() takes 1 positional argument but 2 were given
We need to update to match this change.
Reporter | ||
Comment 1•2 years ago
|
||
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/208d0fe12095
Port bug 1695312: Make mach command modules be loaded selectively. r=freaktechnik
Reporter | ||
Updated•2 years ago
|
Comment 3•2 years ago
•
|
||
To fix commlint (and as such the linters failing in the CI), "all" that'd be needed is to fix the new code in m-c mach_initialize.py that tries to find the module of the commands by checking the MACH_COMMANDS
dict. Obviously our commands (like commlint
) don't exist in that dict.
Adding something simple like
if not MACH_COMMANDS.get(command):
return
in DetermineCommandVenvAction
's __call__
makes commlint
work again locally I think.
Comment 4•2 years ago
|
||
test
and friends are fixed if I disable the command specific module loading (mach_initialize.py:707). Which seems like it would probably be an upstream bug?
Comment 5•2 years ago
|
||
I only just realized I should probably look for virtualenv_name
, since that's what the upstream changes are messing with, which is what the code in mutlh
does from what I can tell. However this goes way deeper than my python understanding.
Assignee | ||
Comment 6•2 years ago
|
||
One issue is with the early virtualenv activation. It's now done in mach's initialize function, and it's using a dictionary that's defined in the initialize function itself so it can't be easily changed.
I'm working on a patch for m-c to give us a way to hook into that.
Then yes, mutlh
will likely need changes. Have to get past this first.
Assignee | ||
Comment 7•2 years ago
|
||
Backed out 208d0fe12095:
https://hg.mozilla.org/comm-central/rev/35d132f30a15e5f9fe7f3ac6cda6ae07ecb687e7
Assignee | ||
Comment 8•2 years ago
|
||
Port of D136790.
Assignee | ||
Comment 9•2 years ago
|
||
Depends on D184042
Assignee | ||
Comment 10•2 years ago
|
||
Depends on D184043
Assignee | ||
Comment 11•2 years ago
|
||
Depends on D184044
Assignee | ||
Comment 12•2 years ago
•
|
||
Bugs 1695312 and 1844417 need to be on mozilla-central.
Comment 13•2 years ago
|
||
Pushed by sean@thunderbird.net:
https://hg.mozilla.org/comm-central/rev/c7ec0439a46a
Port bug 1388894: Replace mach modules list with a dict of mach commands. r=dandarnell
https://hg.mozilla.org/comm-central/rev/bb0f67546a46
Port bug 1695312: Initialize mach virtualenvs early. r=dandarnell
https://hg.mozilla.org/comm-central/rev/c2c8234342cb
Port bug 1844417: Update mach commands to support upstream mach improvements. r=dandarnell
https://hg.mozilla.org/comm-central/rev/e3ba2a727534
Remove obsolete Mutlh code. r=dandarnell
Reporter | ||
Updated•2 years ago
|
Reporter | ||
Comment 14•2 years ago
|
||
Four patches backed out for landing too soon:
https://hg.mozilla.org/comm-central/rev/80e375426a2a29e1f9673306590fa8049265741e
Comment 15•2 years ago
|
||
Pushed by geoff@darktrojan.net:
https://hg.mozilla.org/comm-central/rev/18342f8a7ede
Port bug 1388894: Replace mach modules list with a dict of mach commands. r=dandarnell
https://hg.mozilla.org/comm-central/rev/e93d5e452c67
Port bug 1695312: Initialize mach virtualenvs early. r=dandarnell
https://hg.mozilla.org/comm-central/rev/ac91ab26e4d6
Port bug 1844417: Update mach commands to support upstream mach improvements. r=dandarnell
https://hg.mozilla.org/comm-central/rev/80b58987c7fb
Remove obsolete Mutlh code. r=dandarnell
Updated•2 years ago
|
Description
•