Closed Bug 1013705 Opened 10 years ago Closed 10 years ago

release l10n repacks failed due to failed "rm"

Categories

(Release Engineering :: Release Automation: Other, defect, P2)

x86_64
Windows Server 2008
defect

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: rail, Assigned: coop)

References

Details

Attachments

(1 file)

Smells like a winrm issue to me.

It runs "rm -rf current" and then tries to "mkdir current", but the directory is still there.

command: START
command: rm -rf /c/builds/moz2_slave/rel-m-beta-w32_rpk_5-000000000/mozilla-beta/obj-l10n/dist/current
command: cwd: c:\builds\moz2_slave\rel-m-beta-w32_rpk_5-000000000
command: output:
command: END (0.00s elapsed)

command: START
command: mkdir /c/builds/moz2_slave/rel-m-beta-w32_rpk_5-000000000/mozilla-beta/obj-l10n/dist/current
command: cwd: c:\builds\moz2_slave\rel-m-beta-w32_rpk_5-000000000
command: output:
command: ERROR
Traceback (most recent call last):
  File "c:\builds\moz2_slave\rel-m-beta-w32_rpk_5-000000000\scripts\lib\python\util\commands.py", line 47, in run_cmd
    return subprocess.check_call(cmd, **kwargs)
  File "c:\mozilla-build\python27\lib\subprocess.py", line 511, in check_call
    raise CalledProcessError(retcode, cmd)
CalledProcessError: Command '['mkdir', '/c/builds/moz2_slave/rel-m-beta-w32_rpk_5-000000000/mozilla-beta/obj-l10n/dist/current']' returned non-zero exit status 1
mkdir: cannot create directory `/c/builds/moz2_slave/rel-m-beta-w32_rpk_5-000000000/mozilla-beta/obj-l10n/dist/current': File exists
command: END (0.01s elapsed)
Blocks: 1013700
Are we using a jacuzzi for this? We could roll back just the slaves in that jacuzzi temporarily to unblock while I debug.

 cp /bin/rm-msys.exe /bin/rm.exe
Not currently, no.
The release isn't blocked on this any more, so downgrading to critical.
Severity: blocker → critical
Assignee: nobody → coop
Status: NEW → ASSIGNED
Priority: -- → P2
We still need a platform-specific switch in the code, but at least we're using a single tool again.

I was able to successfully repack Windows beta builds in staging with this patch. Log is here:

http://dev-master1.srv.releng.scl3.mozilla.com:8044/builders/release-mozilla-beta-win32_standalone_repack/builds/14/steps/run_script/logs/stdio
Attachment #8428770 - Flags: review?(rail)
Comment on attachment 8428770 [details] [diff] [review]
Convert paths to Windows-style prior to removal

Review of attachment 8428770 [details] [diff] [review]:
-----------------------------------------------------------------

You can also call msys2windows() for all platforms, it has that check internally.
Attachment #8428770 - Flags: review?(rail) → review+
Comment on attachment 8428770 [details] [diff] [review]
Convert paths to Windows-style prior to removal

Review of attachment 8428770 [details] [diff] [review]:
-----------------------------------------------------------------

(In reply to Rail Aliiev [:rail] from comment #5) 
> You can also call msys2windows() for all platforms, it has that check
> internally.

Hawt. Landed with simplified logic.

https://hg.mozilla.org/build/tools/rev/2ee071e99643
Attachment #8428770 - Flags: checked-in+
Blocks: 692715
This is pretty crappy -- applying msys2windows() just for this call and not elsewhere seems wrong.

How about I make winrm check for something in the environment.. maybe OSTYPE=msys (that seems to be set), and then have it handle msys style paths?
(In reply to Vladimir Vukicevic [:vlad] [:vladv] from comment #7)
> This is pretty crappy -- applying msys2windows() just for this call and not
> elsewhere seems wrong.
> 
> How about I make winrm check for something in the environment.. maybe
> OSTYPE=msys (that seems to be set), and then have it handle msys style paths?

Sure, if you want. I don't want to sign you up for more work.
Status: ASSIGNED → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: