'clean' option can go in the way of the build
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| OpenERP buildout recipe |
Low
|
Unassigned |
Bug Description
The 'clean' option performs an aggressive cleaning, including VCS ignored files. The main use case so far being continuous integration bots and is indeed systematically passed by anybox.
In cases where the buildout is also an addon, a pattern which is useful to ship the testing harness in the same repository as the tested addons directory (also meant for CI), it goes as far as to remove buildout-generated technical directories, such as 'develop-eggs'.
This is currently demonstrated with the newly uploaded 'advanced_
Buildout configuration:
addons = bzr lp:openobject-addons/7.0 addons-openerp last:1
bzr lp:openerp-web/7.0 addons-web last:1 subdir=addons
local .
It works well on a developer's box, but ends like this in the buildbot :
Traceback (most recent call last):
(...)
File "/srv/buildslav
self.
File "/srv/buildslav
zc.
File "/srv/buildslav
tmp3 = tempfile.
File "/usr/lib/
_os.mkdir(file, 0700)
OSError: [Errno 2] No such file or directory: '/srv/buildslav
Note that a locally provided 'develop' distribution (with the 'develop' directive in buildout.cfg) would have the same problem.
At least, the default implementation of clean (rthat's used for a local addon, removes .pycfiles and subsequent empy directories) should exclude buildout's technical directories, such as this one.
In the meanwhile, this can probably be circumvented by placing a placeholder file in the needed directories.
Georges Racinet (gracinet) wrote : | #1 |
Changed in anybox.recipe.openerp: | |
importance: | Undecided → Low |
milestone: | none → 1.8.3 |
status: | New → Confirmed |
Georges Racinet (gracinet) wrote : | #2 |
'clean' should also exclude all addons directories and the parts directory (the latter being one of those technical ones)
Georges Racinet (gracinet) wrote : | #3 |
This can wait for 1.8.4, and I'm currently the only one that stumbled on it
Changed in anybox.recipe.openerp: | |
milestone: | 1.8.3 → 1.8.4 |
Georges Racinet (gracinet) wrote : | #4 |
It'll wait a bit more
Changed in anybox.recipe.openerp: | |
milestone: | 1.8.4 → 1.8.5 |
Georges Racinet (gracinet) wrote : | #5 |
Can wait a bit
Changed in anybox.recipe.openerp: | |
milestone: | 1.8.5 → 1.8.6 |
I confirm that committing a placeholder file in develop-eggs circumvents the problem (hence low importance).