Closed Bug 1964939 Opened 11 days ago Closed 3 days ago

Clobbering in jj repo on Windows complains about find command (with empty objdir)

Categories

(Firefox Build System :: General, defect, P3)

Desktop
Windows
defect

Tracking

(firefox140 fixed)

RESOLVED FIXED
140 Branch
Tracking Status
firefox140 --- fixed

People

(Reporter: Gijs, Assigned: ahochheiden)

Details

Attachments

(1 file)

https://searchfox.org/mozilla-central/rev/4c065f1df299065c305fb48b36cdae571a43d97c/python/mozbuild/mozbuild/mach_commands.py#569-582

    cmd = ["find", ".", "-type", "f", "-name", "*.py[cdo]", "-delete"]
    subprocess.call(cmd, cwd=command_context.topsrcdir)
    cmd = [
        "find",
        ".",
        "-type",
        "d",
        "-name",
        "__pycache__",
        "-empty",
        "-delete",
    ]
ret = subprocess.call(cmd, cwd=command_context.topsrcdir)

outputs:

File not found - *.py[cdo]
FIND: Parameter format not correct

When run from a mozilla-build shell. The all caps "FIND" makes me suspect the subprocess call is running inside cmd and using the Windows "find" executable instead of the *nix one.

(it's a colocated jj/git repo so it's also possible that this is an issue with the git command right above it.)

Mossop says this only shows up if the objdir is already empty.

Summary: Clobbering in jj repo on Windows complains about find command → Clobbering in jj repo on Windows complains about find command (with empty objdir)

For now, we assume all jj repos are git colocated, so we can do this
portion of the clobber the same way for jj as we do for git.

Assignee: nobody → ahochheiden
Status: NEW → ASSIGNED
Severity: -- → S4
Priority: -- → P3
Pushed by ahochheiden@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/4c71f8e790f4 Use `git` to clobber with `jj` and make the 'no-vcs' fallback pure python r=firefox-build-system-reviewers,glandium
Status: ASSIGNED → RESOLVED
Closed: 3 days ago
Resolution: --- → FIXED
Target Milestone: --- → 140 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: