Closed
Bug 760438
Opened 12 years ago
Closed 12 years ago
manage shared ccache directory with puppet
Categories
(Infrastructure & Operations :: RelOps: General, task, P2)
Infrastructure & Operations
RelOps: General
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: catlee, Assigned: catlee)
References
Details
(Whiteboard: [puppet])
Attachments
(1 file, 1 obsolete file)
(deleted),
patch
|
dustin
:
review+
|
Details | Diff | Splinter Review |
the mock configurations in bug 759975 assume that there will be a /builds/ccache directory that can be bind mounted into the mock environment.
this module manages that directory, as well as setting the max ccache size.
Attachment #629176 -
Flags: review?(dustin)
Comment 1•12 years ago
|
||
Comment on attachment 629176 [details] [diff] [review]
ccache modules
Review of attachment 629176 [details] [diff] [review]:
-----------------------------------------------------------------
::: modules/dirs/manifests/builds/ccache.pp
@@ +11,5 @@
> + }
> +
> + exec {
> + "ccache-maxsize":
> + require => [File["/builds/ccache"], Class["packages::ccache"]],
Two concerns here.
First, does this really need to run on every puppet invocation? From stracing it, it seems to store the cache size in the cache itself (in $digit/stats files, each getting 1/16th of the cache size).
Second, this (and the packages include) does not belong in the dirs module. Better to add a new 'ccache' module to manage this.
The new module should get docs on https://wiki.mozilla.org/ReleaseEngineering/PuppetAgain/Modules, too.
Attachment #629176 -
Flags: review?(dustin) → review-
Assignee | ||
Comment 2•12 years ago
|
||
this adds a ccache::ccache_dir define so we can set up multiple ccache directories if we want.
$ccache_dir/.puppet-maxsize is created with the contents of the $maxsize parameter, so that "ccache -M$maxsize" is only run when the maxsize changes. Running "ccache -C" also deletes this file and so would trigger re-running this exec; however we don't run "ccache -C" in any of the automation, so this shouldn't be a concern.
Attachment #629176 -
Attachment is obsolete: true
Attachment #629792 -
Flags: review?(dustin)
Comment 3•12 years ago
|
||
Comment on attachment 629792 [details] [diff] [review]
ccache module
Review of attachment 629792 [details] [diff] [review]:
-----------------------------------------------------------------
lgtm
Attachment #629792 -
Flags: review?(dustin) → review+
Assignee | ||
Comment 4•12 years ago
|
||
pushed
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Comment 5•12 years ago
|
||
Can you write up documentation on how to use the class linked from
https://wiki.mozilla.org/ReleaseEngineering/PuppetAgain
Thanks!
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Assignee | ||
Updated•12 years ago
|
Priority: -- → P2
Whiteboard: [puppet]
Assignee | ||
Comment 6•12 years ago
|
||
Status: REOPENED → RESOLVED
Closed: 12 years ago → 12 years ago
Resolution: --- → FIXED
Updated•11 years ago
|
Component: Server Operations: RelEng → RelOps
Product: mozilla.org → Infrastructure & Operations
You need to log in
before you can comment on or make changes to this bug.
Description
•