run-task removes MOZ_FETCHES_DIR at the end of the build
Categories
(Firefox Build System :: Task Configuration, task)
Tracking
(firefox82 fixed)
Tracking | Status | |
---|---|---|
firefox82 | --- | fixed |
People
(Reporter: glandium, Assigned: tomprince)
References
Details
Attachments
(4 files)
Assignee | ||
Comment 1•6 years ago
|
||
Comment 2•6 years ago
|
||
Assignee | ||
Comment 3•6 years ago
|
||
Comment 4•6 years ago
|
||
I'm guessing no cache is declared in the task?
See "Writable Directory Cache" on https://docs.taskcluster.net/docs/reference/workers/generic-worker/docs/payload
Reporter | ||
Comment 5•6 years ago
|
||
The cleanup is done by the fetches code when MOZ_FETCHES_DIR is set, which it is set to /builds/worker/workspace/build for those jobs, which is where the source also is. I don't know if the fetches code can be changed to stop doing that, which is essentially the question from comment 2.
Reporter | ||
Comment 6•6 years ago
|
||
Another problem this causes is that for jobs using fetches, the contents of MOZ_FETCHES_DIR disappears from under you when the build finishes on an interactive task. That's not exactly pleasant.
(In reply to Mike Hommey [:glandium] from comment #6)
Another problem this causes is that for jobs using fetches, the contents of MOZ_FETCHES_DIR disappears from under you when the build finishes on an interactive task. That's not exactly pleasant.
To do a quickish fix for just the interactive task case, would it be possible to make run-task aware of whether it's running in interactive mode, and just not do this cleanup[1] if that's true?
Reporter | ||
Comment 8•6 years ago
|
||
We can't really know if a task is interactive from the task itself, unfortunately. The best approximation is the TASKCLUSTER_INTERACTIVE environment variable, and that's only set if you "Edit as interactive task", which is not supported on Windows. In fact, "interactive tasks" on Windows don't even have the interactive feature enabled.
Reporter | ||
Comment 9•6 years ago
|
||
With bug 1524637 being closed (by having disabled caches), can we make run-task stop this cleanup?
Assignee | ||
Comment 10•6 years ago
|
||
Bug 1466660 was the source of this cleanup (this commit. The workers in question are generic-workers, thus the changes in bug 1524637 aren't relevant to the original reason for this code. I think once Bug 1499054 is deployed on the linux talos workers that we can remove this workaround.
Comment 12•5 years ago
|
||
Got bit by this again today; with Bug 1499054 resolved, can we remove it now?
Assignee | ||
Comment 13•5 years ago
|
||
I don't think that workers have been updated to take advantage of Bug 1499054.
Comment 14•5 years ago
|
||
android-hw TC jobs (that run on Bitbar) run in a clean environment (a new docker container) for each job. They shouldn't block disabling cleanup.
Bug 1583936 tracks making the android-hw jobs use g-w multiuser.
Comment 15•5 years ago
|
||
(In reply to Tom Prince [:tomprince] from comment #13)
I don't think that workers have been updated to take advantage of Bug 1499054.
The testing and switch to multi-user generic-worker on linux hardware is in bug 1585389
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 16•5 years ago
|
||
We added the removal of fetches in Bug 1466660. It turns out this is because we have a few tests that use hard-coded directories in a few tests (here and here, rather than the already existing per-task directories. If we update those to use the per-task directories, we don't need to remove the fetches at the end of a task.
Assignee | ||
Comment 17•5 years ago
|
||
We define a value run.workdir
to point to the defaut directory to use for
all sorts of paths, including checkouts, in the job transform. However, that
directory only makes sense for docker-worker tasks, and relative paths should
be used elsewhere. Adjust the paths on non-docker-worker linux tasks to match
macOS paths.
Assignee | ||
Comment 18•5 years ago
|
||
After changing the default checkout path on linux generic-worker tasks to be
relative these settings have no effect.
Assignee | ||
Comment 19•5 years ago
|
||
In Bug 1466660, we started deleting the fetches after a task had run, to avoid
interference between tasks. It turns out the only tasks this was for were the
source-test-jsshell
tasks, which were changed to use an absolute directory in
Bug 1465181. However, since Bug 1568460 we've always used a per-task directory
for fetches, so can remove the work-around of removing fethes.
Assignee | ||
Comment 20•5 years ago
|
||
Comment 21•5 years ago
|
||
(In reply to Tom Prince [:tomprince] from comment #19)
Created attachment 9169350 [details]
Bug 1492362: [taskgraph] Don't delete fetches after running a task; r?glandiumIn Bug 1466660, we started deleting the fetches after a task had run, to avoid
interference between tasks. It turns out the only tasks this was for were the
source-test-jsshell
tasks, which were changed to use an absolute directory in
Bug 1465181. However, since Bug 1568460 we've always used a per-task directory
for fetches, so can remove the work-around of removing fethes.
ah, so we likely shouldn't use the change in https://bugzilla.mozilla.org/show_bug.cgi?id=1658000 but instead change ccov to not remove the entire fetches directory as well
Comment 22•4 years ago
|
||
Comment 23•4 years ago
|
||
Backed out for causing gecko decision task bustage
backout: https://hg.mozilla.org/integration/autoland/rev/4255a87fdd98cca564b89f79350e310d855d6f9d
failure log: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=313382885&repo=autoland&lineNumber=6233
Comment 24•4 years ago
|
||
Comment 25•4 years ago
|
||
Backed out for android wpt failures.
Backout link: https://hg.mozilla.org/integration/autoland/rev/aed8ee7d70f420c7ff93109dcf9f3f3733bcfff6
Log link: https://treeherder.mozilla.org/logviewer.html#/jobs?job_id=313426019&repo=autoland&lineNumber=637
Reporter | ||
Updated•4 years ago
|
Updated•4 years ago
|
Comment 26•4 years ago
|
||
Comment 27•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/99bba94234ca
https://hg.mozilla.org/mozilla-central/rev/b9ba4f0099c6
https://hg.mozilla.org/mozilla-central/rev/673b01c81db2
https://hg.mozilla.org/mozilla-central/rev/4b9deff4865e
Description
•