Closed
Bug 1304887
Opened 9 years ago
Closed 8 years ago
hg push review fails with: running checkstyle...abort: %1 is not a valid Win32 application.
Categories
(MozReview Graveyard :: Integration: Mercurial, defect)
MozReview Graveyard
Integration: Mercurial
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: aryx, Assigned: glob)
References
Details
Attachments
(1 file)
Tried to push from a mozilla-central repo to reviewboard, but it failed:
$ hg push review
pushing to ssh://reviewboard-hg.mozilla.org/autoreview/
searching for appropriate review repository
redirecting push to ssh://reviewboard-hg.mozilla.org/gecko
running checkstyle...abort: %1 ist keine zulõssige Win32-Anwendung
Translation of the last line is:
running checkstyle...abort: %1 is not a valid Win32 application.
I have successfully pushed to reviewboard in the past. The machine runs Windows 8.1 64 bit + MozillaBuild 2.2.0.
we run checkstyle when android code is changed (via bug 1263201).
perhaps we should treat OSError exceptions as non-fatal.
aryx, can you try running checkstyle manually to see if it produces the same error:
./mach gradle checkstyle
Flags: needinfo?(aryx.bugmail)
![]() |
Reporter | |
Comment 2•9 years ago
|
||
|./mach gradle checkstyle| exits with:
> It looks like you tried to run a mach command from an invalid context. The gradle
> command failed to meet the following conditions:
>
> is_android - Must have an Android build.
>
> Run |mach help| to show a list of all commands available to the current context.
Flags: needinfo?(aryx.bugmail)
Comment 3•9 years ago
|
||
`mach` isn't a valid win32 executable: it is a shell/Python script. We need to execute `mach` via bash.exe or python.exe.
Depends on: 1263201
Comment 4•8 years ago
|
||
I'm hitting this now even though the changeset I'm pushing doesn't not modify any android code.
I suppose it might be because I rebased on top of autoland and there are some changesets on autoland that touch android code?
Comment 5•8 years ago
|
||
Confirmed that rebasing on top of central (instead of autoland) and pushing again works.
Comment 6•8 years ago
|
||
Glob, can we please make this P1? It's a real blocker to doing work on Windows especially since we often need to rebase MozReview requests on top of autoland for Stylo work (to generate up-to-date bindings etc.).
Flags: needinfo?(glob)
caught brian on irc...
we're running ['c:\\moz\\src1/gradlew', '--quiet', '--project-dir', 'c:\\moz\\src1', 'app:checkstyle']
which is throwing: [Error 193] %1 is not a valid Win32 application
so it looks like something in the gradlew wrapper is incorrect for our env.
the investigations continue.
Flags: needinfo?(glob)
pans out error win32 messages are misleading; it should be reporting that "c:\\moz\\src1/gradlew" is not a valid win32 application.
Comment hidden (mozreview-request) |
Comment 10•8 years ago
|
||
mozreview-review |
Comment on attachment 8888194 [details]
reviewboard: run gradlew with bash (bug 1304887)
https://reviewboard.mozilla.org/r/159132/#review165802
Attachment #8888194 -
Flags: review?(gps) → review+
Assignee | ||
Comment 11•8 years ago
|
||
mozreview-review |
Comment on attachment 8888194 [details]
reviewboard: run gradlew with bash (bug 1304887)
https://reviewboard.mozilla.org/r/159132/#review166046
Attachment #8888194 -
Flags: review+
Assignee | ||
Comment 12•8 years ago
|
||
Comment on attachment 8888194 [details]
reviewboard: run gradlew with bash (bug 1304887)
oops; someone needs more coffee.
Attachment #8888194 -
Flags: review+
Comment 13•8 years ago
|
||
Pushed by bjones@mozilla.com:
https://hg.mozilla.org/hgcustom/version-control-tools/rev/7239bee71bae
reviewboard: run gradlew with bash r=gps
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
You need to log in
before you can comment on or make changes to this bug.
Description
•