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)

defect
Not set
normal

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)
|./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)
`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
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?
Confirmed that rebasing on top of central (instead of autoland) and pushing again works.
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.
Assignee: nobody → glob
Attachment #8888194 - Flags: review?(gps) → review+
Attachment #8888194 - Flags: review+
Comment on attachment 8888194 [details] reviewboard: run gradlew with bash (bug 1304887) oops; someone needs more coffee.
Attachment #8888194 - Flags: review+
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.

Attachment

General

Creator:
Created:
Updated:
Size: