slapos.recipe.cmmi:master commitshttps://lab.nexedi.com/nexedi/slapos.recipe.cmmi/-/commits/master2024-03-19T14:05:01+09:00https://lab.nexedi.com/nexedi/slapos.recipe.cmmi/-/commit/d086699ab2f4b404d93fef2d9d23525bc0d536b9Fix missing date in CHANGELOG2024-03-19T14:05:01+09:00Jérome Perrinjerome@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.recipe.cmmi/-/commit/6296110cabcc276b5315de3b1fc653c1c7e05f39Release 0.202024-03-18T11:51:14+02:00Xavier Thompsonxavier.thompson@nexedi.com
See merge request <a href="/nexedi/slapos.recipe.cmmi/-/merge_requests/17" data-original="nexedi/slapos.recipe.cmmi!17" data-link="false" data-link-reference="false" data-project="125" data-merge-request="7625" data-project-path="nexedi/slapos.recipe.cmmi" data-iid="17" data-mr-title="Adapt imports to moved path in slapos.recipe.build" data-reference-type="merge_request" data-container="body" data-placement="top" data-html="true" title="" class="gfm gfm-merge_request">!17</a>https://lab.nexedi.com/nexedi/slapos.recipe.cmmi/-/commit/f35ae6b2792c9a9e36dc17cc88e8744f6c6750e6Adapt imports to moved path in slapos.recipe.build2024-02-15T12:04:49+02:00Xavier Thompsonxavier.thompson@nexedi.com
In slapos.recipe.build >= 0.57, code slapos/recipe/__init__.py
(which is a legacy namespace) was moved to slapos/recipe/utils.py
Also version up slapos.recipe.build requirement to >= 0.57https://lab.nexedi.com/nexedi/slapos.recipe.cmmi/-/commit/d68c3b688ae0dd30852da10ef8d690f1c720d9a1Fix two error messages.2022-02-21T11:29:12+01:00Ophelieophelie.gagnard@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.recipe.cmmi/-/commit/129ecae631282e0b69611eff6bf712e7daf75b46Release 0.192022-01-12T20:04:52+01:00Julien Muchembledjm@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.recipe.cmmi/-/commit/cccdf380fb152112f426de06bd759b30dc714137tests: remove unused import2021-12-29T12:22:20+01:00Julien Muchembledjm@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.recipe.cmmi/-/commit/e1cc82936423919c1ec38505bd87018a2fa54bebSmall clean-up2021-12-29T12:22:20+01:00Julien Muchembledjm@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.recipe.cmmi/-/commit/924f1ca5df9f23b977339df6039fb1f3c0bd3c66generate slapos.recipe.build.env.sh if keep-compile-dir is true.2021-12-06T14:39:01+00:00Kazuhiko SHIOZAKIkazuhiko@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.recipe.cmmi/-/commit/071fd7c2869411842665aa541766636f41ce8f59Fix shebang workaround on Python 32021-12-02T21:46:55+01:00Julien Muchembledjm@nexedi.com
This fixes up commit <a href="/nexedi/slapos.recipe.cmmi/-/commit/d5199b9d4e620a11c4803b7a0ecaf5b2438746e6" data-original="d5199b9d4e620a11c4803b7a0ecaf5b2438746e6" data-link="false" data-link-reference="false" data-project="125" data-commit="d5199b9d4e620a11c4803b7a0ecaf5b2438746e6" data-reference-type="commit" data-container="body" data-placement="top" data-html="true" title="Add support for Python 3" class="gfm gfm-commit has-tooltip">d5199b9d</a>
("Add support for Python 3").https://lab.nexedi.com/nexedi/slapos.recipe.cmmi/-/commit/4e38cc88ec2579c9ee700d3ab798ac36c0c48144Release 0.182021-11-30T17:09:57+01:00Julien Muchembledjm@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.recipe.cmmi/-/commit/deda41082016ebdee7f67c0299c6d54ca6fb7cf5Switch to slapos.recipe.build implementation of environment & shared options2021-11-30T16:56:25+01:00Julien Muchembledjm@nexedi.com
'environment-section' option is dropped.https://lab.nexedi.com/nexedi/slapos.recipe.cmmi/-/commit/3b128565477ff0fa726f8f6c9ac82749a2361cf2More reliable cleanup of temporary downloaded file2021-09-23T21:25:47+02:00Julien Muchembledjm@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.recipe.cmmi/-/commit/6b76cb03cfddb530ffd578c250fc8b971f0de9f3Remove dead code2021-09-23T21:25:47+02:00Julien Muchembledjm@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.recipe.cmmi/-/commit/9a2415dbc8b795d3df16366baa511dff80bb8117Remove slapos.recipe.cmmi way of having conditional sections2021-09-23T21:25:47+02:00Julien Muchembledjm@nexedi.com
It was broken because it conflicts with buildout,
which has similar feature.https://lab.nexedi.com/nexedi/slapos.recipe.cmmi/-/commit/d6fe5d64ec269dbd356405588f29f7402e007005Clean up reading of options2021-09-23T21:25:47+02:00Julien Muchembledjm@nexedi.com
In particular, buildout already strips values.https://lab.nexedi.com/nexedi/slapos.recipe.cmmi/-/commit/509ee4a097a2b082d89994380650b7f42a6d038aFor compiling, use a temporary directory that is inside the part location2021-09-23T21:25:47+02:00Julien Muchembledjm@nexedi.com
We want to keep the build directory when keep-compile-dir=true,
whereas sharing a part is reliable only if everything goes inside
the same directory.https://lab.nexedi.com/nexedi/slapos.recipe.cmmi/-/commit/73f3f296e229730096f7ceef8a07eeb9cb0bb26aFix error handling with new slapos.recipe.build when download fails2021-09-23T21:25:47+02:00Julien Muchembledjm@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.recipe.cmmi/-/commit/b422c0165c3dce589b5b17cc09c26839916c4af8Do not do in __init__ what is fine to do in install2021-09-23T21:25:47+02:00Julien Muchembledjm@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.recipe.cmmi/-/commit/9bf0241a341ab9486f7bd4e4a95321bc38db52bfCleanup imports2021-09-23T21:25:47+02:00Julien Muchembledjm@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.recipe.cmmi/-/commit/9bb2c613bded5700f2327ae6065cf1c57611f17cDrop compatibility code for zc.buildout<22021-09-23T21:25:47+02:00Julien Muchembledjm@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.recipe.cmmi/-/commit/4f14e1ff8d3cb27222c2e4da82e2d97a2e0eb049Clean up usage of logging module2021-09-23T21:25:47+02:00Julien Muchembledjm@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.recipe.cmmi/-/commit/9c0113de8937316ccf4545c72845a88d3b4e96dbtest: fix tests on python22021-08-17T16:49:16+09:00Jérome Perrinjerome@nexedi.com
<a href="/nexedi/slapos.recipe.cmmi/-/commit/1dc49d3e8c01bb5bdbac5af34cb1b385a73d991e" data-original="1dc49d3" data-link="false" data-link-reference="false" data-project="125" data-commit="1dc49d3e8c01bb5bdbac5af34cb1b385a73d991e" data-reference-type="commit" data-container="body" data-placement="top" data-html="true" title="tests: ignore CryptographyDeprecationWarning on python2" class="gfm gfm-commit has-tooltip">1dc49d3e</a> (tests: ignore CryptographyDeprecationWarning on python2, 2021-08-13)
was wrong, because this warning includes the path of the software, which
also has a md5sum hash, so the normalization has to be done before the
md5sum normalization, otherwise this consumes an md5sum and they become
off by one, with errors like:
Expected:
package: shared at /shared/package/<MD5SUM:0>
Uninstalling package.
Installing package.
package: Checking whether package is installed at shared path: /shared/package/<MD5SUM:0>
package: [ENV] FOO = bar
package: Command 'set -e;./configure --prefix=/shared/package/<MD5SUM:0>"' returned non-zero exit status 127.
package: Compilation error. The package is left as is at /shared/package/<MD5SUM:0>__compile__ where you can inspect what went wrong.
A shell script slapos.recipe.build.env.sh has been generated. You can source it in your shell to reproduce build environment.
/bin/sh: 1: ./configure: not found
While:
Installing package.
Error: System error
Got:
package: shared at /shared/package/<MD5SUM:1>
Uninstalling package.
Installing package.
package: Checking whether package is installed at shared path: /shared/package/<MD5SUM:1>
package: [ENV] FOO = bar
package: Command 'set -e;./configure --prefix=/shared/package/<MD5SUM:1>"' returned non-zero exit status 127.
package: Compilation error. The package is left as is at /shared/package/<MD5SUM:1>__compile__ where you can inspect what went wrong.
A shell script slapos.recipe.build.env.sh has been generated. You can source it in your shell to reproduce build environment.
<BLANKLINE>
/bin/sh: 1: ./configure: not found
While:
Installing package.
Error: System error
<BLANKLINE>https://lab.nexedi.com/nexedi/slapos.recipe.cmmi/-/commit/1dc49d3e8c01bb5bdbac5af34cb1b385a73d991etests: ignore CryptographyDeprecationWarning on python22021-08-13T07:01:18+02:00Jérome Perrinjerome@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.recipe.cmmi/-/commit/7282161764e819095f2f08a1c59cccd1fe6ee687tests: define load_tests otherwise doctest are not run in software/slapos-tes...2021-08-13T04:38:29+02:00Jérome Perrinjerome@nexedi.com
When we switch to using `python -m unittest discover -v` test_suite is not
used, but load_tests is used instead.https://lab.nexedi.com/nexedi/slapos.recipe.cmmi/-/commit/6c30d897874ae04c133bcd59d30482d9800f215aRelease 0.172021-02-26T15:39:14+01:00Julien Muchembledjm@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.recipe.cmmi/-/commit/6f2744462a4f3bb20a1fbdb3360b410d825d68cbfix_shebang: don't touch symlinks2021-02-26T15:35:27+01:00Julien Muchembledjm@nexedi.com
Symlinks can point anywhere outside the parts. Also symlinks can be
broken.
By using lstat instead of stat, the symlink is not considered as a
regular file.
See merge request <a href="/nexedi/slapos.recipe.cmmi/-/merge_requests/14" data-original="nexedi/slapos.recipe.cmmi!14" data-link="false" data-link-reference="false" data-project="125" data-merge-request="4588" data-project-path="nexedi/slapos.recipe.cmmi" data-iid="14" data-mr-title="fix_shebang supports invalid symlink" data-reference-type="merge_request" data-container="body" data-placement="top" data-html="true" title="" class="gfm gfm-merge_request">!14</a>https://lab.nexedi.com/nexedi/slapos.recipe.cmmi/-/commit/02a086dda293441b224b0845569562fd9e74c748Release 0.162020-05-08T17:44:28+09:00Jérome Perrinjerome@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.recipe.cmmi/-/commit/f672573a19553e5faa867ca1fb38d0a07bc80ad9propagate strip_top_level_dir option to slapos.recipe.build:downloadunpacked2020-05-04T10:23:27+00:00Dmitry Blinovdmitry.blinov@nexedi.com
Don't force strip_top_level_dir option to be false when calling for slapos.recipe.build:downloadunpacked - let the user decide.
Effectively adds strip_top_level_dir option to the script which allows for shorter and more consistent paths.
Also it can help mitigating the variability of path length between archives downloaded for branch, commit hash and release.https://lab.nexedi.com/nexedi/slapos.recipe.cmmi/-/commit/2563fc98c54fda321e7ef18135c4960b920e92detests: cover slapos usage2020-05-01T13:06:02+09:00Jérome Perrinjerome@nexedi.com
Add some doctests to describe the use cases of shared parts with slapos,
including the need for our `${:_profile_base_location_}` buildout patch
and the need to save signature files.https://lab.nexedi.com/nexedi/slapos.recipe.cmmi/-/commit/3de46334699e1bb59c3c2f34e0cf6fb5d8441585Fix tests2020-04-26T06:10:35+02:00Julien Muchembledjm@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.recipe.cmmi/-/commit/a76ec7be0f2f779e92d94bcd89393fb88a2d58c2Release 0.152020-04-23T17:40:15+02:00Julien Muchembledjm@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.recipe.cmmi/-/commit/06bb53b9f8b4e523f3823cbfce2570c888d713f9fixup! slapos.recipe.build.env.sh improvements/fixes2020-04-23T17:40:15+02:00Julien Muchembledjm@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.recipe.cmmi/-/commit/88f8884bf9fd4f1de702f67fd5e858bb97091c6bslapos.recipe.build.env.sh improvements/fixes2020-04-23T14:35:41+02:00Julien Muchembledjm@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.recipe.cmmi/-/commit/3d5cb514c5ebc0ce21c97236e6d3728fe8c7623bFix tests2020-04-23T09:41:00+02:00Jérome Perrinjerome@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.recipe.cmmi/-/commit/1d4bffbc3b308abacda986d4efd406e89dd5e52eRelease 0.142020-04-22T16:30:28+02:00Julien Muchembledjm@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.recipe.cmmi/-/commit/79ad6b8f786f5c03d87da47b194de28ee19eb615Include part signature inside shared signature2020-04-22T16:30:16+02:00Julien Muchembledjm@nexedi.comhttps://lab.nexedi.com/nexedi/slapos.recipe.cmmi/-/commit/6e754e0c64c890db7c0bb4bc2005dfb8aca559c1Drop 'dependencies' option2020-04-22T16:30:16+02:00Julien Muchembledjm@nexedi.com
It is redundant with the fact that slapos.buildout already rebuilds
if any dependency is modified. slapos.buildout does not yet understand
the new => syntax from upstream buildout but meanwhile a dummy option
can be set to any options of required parts.https://lab.nexedi.com/nexedi/slapos.recipe.cmmi/-/commit/539e1112a6b4d702b3e28d8e240ca9a7451686a2Remove useless '_profile_base_location_' entry from shared signature2020-04-22T16:30:16+02:00Julien Muchembledjm@nexedi.com
The value was always '${:_profile_base_location_}'https://lab.nexedi.com/nexedi/slapos.recipe.cmmi/-/commit/09e68ba51210e1ba782833685ffb8ca3bf20dbc6Expand environment variables during install (rather than during init)2020-04-22T16:30:01+02:00Julien Muchembledjm@nexedi.com
In conjunction with the new Options.barrier() in buildout,
parts will be able to modify the environment during install/update.https://lab.nexedi.com/nexedi/slapos.recipe.cmmi/-/commit/772a4579650177da2feb50332354690686094eb6Small clean-up2020-04-15T23:18:10+02:00Julien Muchembledjm@nexedi.com