Closed Bug 1461398 Opened 6 years ago Closed 6 years ago

autospider.py with default setup fails when deleting its own directory (Exception: Refusing to delete objdir <src>/obj-spider because it was not created by autospider)

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla62
Tracking Status
firefox62 --- fixed

People

(Reporter: sfink, Assigned: sfink)

References

Details

Attachments

(1 file, 1 obsolete file)

autospider.py errors out if you run it with the default options, when obj-spider does not exist.
The problem is that it defaults the upload directory to be the same as the objdir. Then it creates the upload dir but intentionally does not create the sentinel CREATED-BY-AUTOSPIDER file (because then that gets uploaded and shows up in treeherder). Later, it tries to delete and recreate the objdir, but that directory now exists and doesn't have the sentinel, so autospider.py refuses to delete it in case it's something the user cares about. (This doesn't affect automation because the sentinel check is skipped there.)
Attachment #8975561 - Flags: review?(jcoppeard)
Blocks: 1431766
Oops, sorry. I used a stale bzexport $EDITOR window and ended up uploading entirely the wrong patch.
Attachment #8975577 - Flags: review?(jcoppeard)
Attachment #8975561 - Attachment is obsolete: true
Attachment #8975561 - Flags: review?(jcoppeard)
Attachment #8975577 - Flags: review?(jcoppeard) → review+
Pushed by sfink@mozilla.com:
https://hg.mozilla.org/integration/mozilla-inbound/rev/03ab395e5d7e
Reorder directory creation in autospider.py to unbreak local usage, r=jonco
https://hg.mozilla.org/mozilla-central/rev/03ab395e5d7e
Status: ASSIGNED → RESOLVED
Closed: 6 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla62
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: