Closed Bug 1621845 Opened 4 years ago Closed 4 years ago

Normalize fetch path in fetch-content

Categories

(Firefox Build System :: Task Configuration, task)

task
Not set
normal

Tracking

(firefox76 fixed)

RESOLVED FIXED
mozilla76
Tracking Status
firefox76 --- fixed

People

(Reporter: glandium, Assigned: glandium)

References

Details

Attachments

(1 file)

No description provided.

The win64-aarch64 have a kind of a nasty trick that makes fetch-content
download artifacts of a dependent task directly as artifacts of the task
itself. For some reason, while this pattern works on native Windows
jobs, it doesn't on Linux. What happens is essentially that:

pathlib.Path(path).joinpath('../foo').mkdir(parents=True, exist=ok=True)

fails when path doesn't exist first. I guess the fetches directory
already exists on Windows worker or something.

Unfortunately, os.path.normpath doesn't take pathlib.Paths in
still-supported python 3.5, so we have to convert to str first.

Pushed by mh@glandium.org:
https://hg.mozilla.org/integration/autoland/rev/a48e8598f76f
Normalize fetch path in fetch-content. r=rstewart
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla76
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: