slapos.recipe.cmmi:master commitshttps://lab.node.vifib.com/xiaowu.zhang/slapos.recipe.cmmi/-/commits/master2018-08-01T10:37:57+02:00https://lab.node.vifib.com/xiaowu.zhang/slapos.recipe.cmmi/-/commit/7e417d69667b49cab56c0381f788968ae05cfabbuse correctly log function2018-08-01T10:37:57+02:00Xiaowu Zhangxiaowu.zhang@nexedi.comhttps://lab.node.vifib.com/xiaowu.zhang/slapos.recipe.cmmi/-/commit/41d13aa035498408091016840a9e5725fc2791eboption is string type2018-07-31T17:10:02+02:00Xiaowu Zhangxiaowu.zhang@nexedi.comhttps://lab.node.vifib.com/xiaowu.zhang/slapos.recipe.cmmi/-/commit/2f3e5d8213a487edf3ff8964d48c82fc643efe2eset shared to false for compile directory2018-06-22T08:53:07+02:00Xiaowu Zhangxiaowu.zhang@nexedi.comhttps://lab.node.vifib.com/xiaowu.zhang/slapos.recipe.cmmi/-/commit/5239a27d0f8891b6dae8b7541538f6e93bac2e03Reimplement shared features2018-05-31T09:42:10+02:00Xiaowu Zhangxiaowu.zhang@nexedi.com
1.use shared-part in [buildout] section to define shared path
2.shared option is True or Flase
3.a magic substitution @@LOCATION@@ is used to for dynamic pathhttps://lab.node.vifib.com/xiaowu.zhang/slapos.recipe.cmmi/-/commit/aa5a651b4160fa3e761d9f22dadeba6bd25a581ffixup! Fix random test failure with make flags on test node2018-03-28T09:08:56+02:00Jérome Perrinjerome@nexedi.com
```
======================================================================
ERROR: /srv/slapgrid/slappart0/parts/slapos.recipe.cmmi/slapos/recipe/cmmi/README.txt
Doctest: README.txt
----------------------------------------------------------------------
Traceback (most recent call last):
File "/opt/slapgrid/298b8e2a56fa3803aa68aa4cfe6a3b96/parts/python2.7/lib/python2.7/doctest.py", line 2194, in setUp
self._dt_setUp(test)
File "/srv/slapgrid/slappart0/parts/slapos.recipe.cmmi/slapos/recipe/cmmi/tests.py", line 26, in setUp
os.environ.pop('MAKEFLAGS')
File "/opt/slapgrid/298b8e2a56fa3803aa68aa4cfe6a3b96/parts/python2.7/lib/python2.7/os.py", line 505, in pop
return self.data.pop(key, *args)
KeyError: 'MAKEFLAGS'
```https://lab.node.vifib.com/xiaowu.zhang/slapos.recipe.cmmi/-/commit/36b9d633c5296916143b549e790512a8e0bbfe0fFix random test failure with make flags on test node2018-03-09T19:12:20+01:00Jérome Perrinjerome@nexedi.com
When running under testnode, there was sometimes this failure:
```
File "/srv/slapgrid/slappart8/srv/testnode/bee/inst/test0-0/parts/slapos.recipe.cmmi/slapos/recipe/cmmi/README.txt", line 521, in README.txt
Failed example:
print(system(buildout))
Expected:
Uninstalling package.
Installing package.
package: [ENV] CFLAGS = -I/sw/include
package: [ENV] LDFLAGS = -L/sw/lib -L/some/extra/lib
package: [ENV] TMP = /sample_buildout/parts/package/tmp
package: Applying patches
patching file configure
patching file Makefile.dist
patched-configure --prefix=/somewhere/else --with-threads --without-foobar
building patched package
installing patched package
installing patched package-lib
<BLANKLINE>
Got:
Uninstalling package.
Installing package.
package: [ENV] CFLAGS = -I/sw/include
package: [ENV] LDFLAGS = -L/sw/lib -L/some/extra/lib
package: [ENV] TMP = /sample_buildout/parts/package/tmp
package: Applying patches
patching file configure
patching file Makefile.dist
patched-configure --prefix=/somewhere/else --with-threads --without-foobar
building patched package
installing patched package-lib
installing patched package
<BLANKLINE>
```
The order of in which `installing patched package-lib` and ` installing patched package` are printed is not always same.
This test does `make install install-lib` with a Makefile containing:
```
all:
@echo building package
install:
@echo installing package
install-lib:
@echo installing package-lib
```
<a href="/vpelletier" data-user="23" data-reference-type="user" data-container="body" data-placement="top" data-html="true" class="gfm gfm-project_member" title="Vincent Pelletier">@vpelletier</a> and I investigated this and he pointed out that order of parts depends is not stable when make is invoked with `-j` option.
Turned out that [on test node](<a href="https://nexedi.erp5.net/test_result_module/20180308-55459479/7" rel="nofollow noreferrer noopener" target="_blank">https://nexedi.erp5.net/test_result_module/20180308-55459479/7</a>) `MAKEFLAGS` is set to `-j12`.
/reviewed-on <a href="https://lab.nexedi.com/nexedi/slapos.recipe.cmmi/merge_requests/5" data-original="https://lab.nexedi.com/nexedi/slapos.recipe.cmmi/merge_requests/5" data-link="false" data-link-reference="true" data-project="125" data-merge-request="1906" data-project-path="nexedi/slapos.recipe.cmmi" data-iid="5" data-mr-title="Fix random test failure with make flags on test node" data-reference-type="merge_request" data-container="body" data-placement="top" data-html="true" title="" class="gfm gfm-merge_request">!5</a>https://lab.node.vifib.com/xiaowu.zhang/slapos.recipe.cmmi/-/commit/0b91fa692e7d74f27f55d769090c8eb4610765e8prevent buildout to log "Unused options for x: md5sum"2018-03-07T15:36:40+01:00Jérome Perrinjerome@nexedi.com
option is used, so this warning is incorrect.https://lab.node.vifib.com/xiaowu.zhang/slapos.recipe.cmmi/-/commit/70b1d03d99b9568dbc3156fead014909fefdab11test: update expected output2018-03-07T15:36:40+01:00Jérome Perrinjerome@nexedi.com
There is no `Unused options for package: 'md5sum'.` (and this option is
used, so we don't want to ignore this)https://lab.node.vifib.com/xiaowu.zhang/slapos.recipe.cmmi/-/commit/e9f10ddbfbe5cefb922f4fd71d9d99b2dfe557a3test: ignore "Not Found: /tmp/.../zc.buildout" messages in doctests2018-03-07T15:36:40+01:00Jérome Perrinjerome@nexedi.com
Instead of using ellipsys use buildout provided way of ignoring these
messages.https://lab.node.vifib.com/xiaowu.zhang/slapos.recipe.cmmi/-/commit/b05377c57edc71894551b07328cf12ea1d233260test: do not rely on external resources2018-03-07T15:36:40+01:00Jérome Perrinjerome@nexedi.com
Use buildout testing utility to start a webserver instead of downloading
from the internet.
This also fixes the test because the downloaded content changed.https://lab.node.vifib.com/xiaowu.zhang/slapos.recipe.cmmi/-/commit/820ca23aeb5591a8e10e38a745819009a403761bRelease 0.72017-06-06T11:25:38+02:00Julien Muchembledjm@nexedi.comhttps://lab.node.vifib.com/xiaowu.zhang/slapos.recipe.cmmi/-/commit/330d2f7350c22474c42dfd91d046055cdedfd356Release 0.62017-06-06T11:08:22+02:00Julien Muchembledjm@nexedi.comhttps://lab.node.vifib.com/xiaowu.zhang/slapos.recipe.cmmi/-/commit/5233c7f128ddef687606838eaef5ec0ce7fe687aFix Changelog rendering on GitLab2017-06-05T21:32:06+02:00Julien Muchembledjm@nexedi.comhttps://lab.node.vifib.com/xiaowu.zhang/slapos.recipe.cmmi/-/commit/c416b8822aa7d9cfe1558d36ebb34f5a572a1d5eCHANGES.txt -> CHANGELOG.rst2017-06-05T21:31:37+02:00Julien Muchembledjm@nexedi.comhttps://lab.node.vifib.com/xiaowu.zhang/slapos.recipe.cmmi/-/commit/d5199b9d4e620a11c4803b7a0ecaf5b2438746e6Add support for Python 32017-06-05T21:24:43+02:00Julien Muchembledjm@nexedi.comhttps://lab.node.vifib.com/xiaowu.zhang/slapos.recipe.cmmi/-/commit/26f3d2e9ad8f3978fb5f678cbfc1f97a0fa0dc2fslapos.recipe.downloadunpacked will only accept 'false' as false value2017-06-05T21:24:43+02:00Julien Muchembledjm@nexedi.comhttps://lab.node.vifib.com/xiaowu.zhang/slapos.recipe.cmmi/-/commit/7d73caa068c85ab89b4c89b298b0372f25253f87Optimize wrapper to scripts with long shebangs2017-06-05T21:24:43+02:00Julien Muchembledjm@nexedi.comhttps://lab.node.vifib.com/xiaowu.zhang/slapos.recipe.cmmi/-/commit/339b320eb4ebb29fb8839a39b5dc5ab27a7ca673Release 0.52017-05-30T18:20:22+02:00Kazuhiko Shiozakikazuhiko@nexedi.comhttps://lab.node.vifib.com/xiaowu.zhang/slapos.recipe.cmmi/-/commit/cceefef57ab68353b57c909ac5aadd5481ebf67eCreate a wrapper shell script for very long shebang scripts.2017-04-06T12:44:12+02:00Kazuhiko Shiozakikazuhiko@nexedi.comhttps://lab.node.vifib.com/xiaowu.zhang/slapos.recipe.cmmi/-/commit/2304e1f296d657d7f22c8880ea50076bda99bf46md5sum of welcome.msg changed.2017-04-03T16:47:20+00:00Rafael Monneratrafael@nexedi.comhttps://lab.node.vifib.com/xiaowu.zhang/slapos.recipe.cmmi/-/commit/3f4f732973e2df3e823457e22da72bb4aac851c6Ignore files generated by tests.2017-04-03T16:46:41+00:00Rafael Monneratrafael@nexedi.comhttps://lab.node.vifib.com/xiaowu.zhang/slapos.recipe.cmmi/-/commit/c3991a6df736a94cb455ba11ecc032cf27eff37fUpdate README.txt to fix tests2017-03-14T12:33:26+00:00Rafael Monneratrafael@nexedi.com
Update the file to reflect current implementation, as the tests
were left w/o run for very long, some messages outputs were changed
overtime.https://lab.node.vifib.com/xiaowu.zhang/slapos.recipe.cmmi/-/commit/1124ececc4f63d3a0cc97466d850a5ccb3545093Do not import Download directly.2017-03-14T12:31:28+00:00Rafael Monneratrafael@nexedi.com
This may cause an import chicken-egg problem, so this also reduce
the amount of imports to be done.https://lab.node.vifib.com/xiaowu.zhang/slapos.recipe.cmmi/-/commit/ba0e7204a7552c120ceed8056dc550063a1806d5fix RST syntax.2017-03-09T14:31:37+01:00Kazuhiko Shiozakikazuhiko@nexedi.comhttps://lab.node.vifib.com/xiaowu.zhang/slapos.recipe.cmmi/-/commit/314a2e70d53a0cd5e65607dcaacc4e3b5b87b383Release 0.4.2017-03-08T15:18:21+01:00Kazuhiko Shiozakikazuhiko@nexedi.comhttps://lab.node.vifib.com/xiaowu.zhang/slapos.recipe.cmmi/-/commit/f2940c5b828578b59aebfedb65b873e805bb662duse slapos.recipe.build:downloadunpacked instead of hexagonit.recipe.download.2017-03-08T15:18:21+01:00Kazuhiko Shiozakikazuhiko@nexedi.comhttps://lab.node.vifib.com/xiaowu.zhang/slapos.recipe.cmmi/-/commit/98f1574c8b15e84615c5122f926c9d2a3c216c43Revert "Fix tests"2016-11-09T11:25:08+01:00Kazuhiko Shiozakikazuhiko@nexedi.com
This reverts commit <a href="/nexedi/slapos.recipe.cmmi/-/commit/18402f9ffbcb01a1cddaecbed6530db3876ae1af" data-original="18402f9ffbcb01a1cddaecbed6530db3876ae1af" data-link="false" data-link-reference="false" data-project="125" data-commit="18402f9ffbcb01a1cddaecbed6530db3876ae1af" data-reference-type="commit" data-container="body" data-placement="top" data-html="true" title="Fix tests" class="gfm gfm-commit has-tooltip">18402f9f</a>.https://lab.node.vifib.com/xiaowu.zhang/slapos.recipe.cmmi/-/commit/10191ed390da997a95dedf68580a50c41cc66791Revert "test update: Url is printed when downloaded by libnetworkcache."2016-11-09T11:16:55+01:00Kazuhiko Shiozakikazuhiko@nexedi.com
This reverts commit <a href="/nexedi/slapos.recipe.cmmi/-/commit/3e54ec0c6e4148225400be7c29a7aeab4319c9d4" data-original="3e54ec0c6e4148225400be7c29a7aeab4319c9d4" data-link="false" data-link-reference="false" data-project="125" data-commit="3e54ec0c6e4148225400be7c29a7aeab4319c9d4" data-reference-type="commit" data-container="body" data-placement="top" data-html="true" title="test update: Url is printed when downloaded by libnetworkcache." class="gfm gfm-commit has-tooltip">3e54ec0c</a>.https://lab.node.vifib.com/xiaowu.zhang/slapos.recipe.cmmi/-/commit/24977bca64c99c440d2775be5521a9bb725c3a90Revert "strip installed binaries."2016-11-09T10:52:30+01:00Kazuhiko Shiozakikazuhiko@nexedi.com
Use slapos.extension.strip instead.
This reverts commit <a href="/nexedi/slapos.recipe.cmmi/-/commit/f26567c45040861c859f3eb5cfb7336c0d35aa3e" data-original="f26567c45040861c859f3eb5cfb7336c0d35aa3e" data-link="false" data-link-reference="false" data-project="125" data-commit="f26567c45040861c859f3eb5cfb7336c0d35aa3e" data-reference-type="commit" data-container="body" data-placement="top" data-html="true" title="strip installed binaries." class="gfm gfm-commit has-tooltip">f26567c4</a>.https://lab.node.vifib.com/xiaowu.zhang/slapos.recipe.cmmi/-/commit/98d93463ed6e93e4a638055325e570022036293bfix RST syntax.2016-11-09T10:47:06+01:00Kazuhiko Shiozakikazuhiko@nexedi.comhttps://lab.node.vifib.com/xiaowu.zhang/slapos.recipe.cmmi/-/commit/3e54ec0c6e4148225400be7c29a7aeab4319c9d4test update: Url is printed when downloaded by libnetworkcache.2016-08-04T17:18:19+02:00Rafael Monneratrafael@nexedi.comhttps://lab.node.vifib.com/xiaowu.zhang/slapos.recipe.cmmi/-/commit/18402f9ffbcb01a1cddaecbed6530db3876ae1afFix tests2016-05-03T14:59:24+02:00Rafael Monneratrafael@nexedi.comhttps://lab.node.vifib.com/xiaowu.zhang/slapos.recipe.cmmi/-/commit/56a63e647e299cdcab69572696defa2ae743d148Implement compatibility with buildout22016-02-15T18:33:43+01:00Rafael Monneratrafael@nexedi.com
And it is also backward compatible with buildout<2 and with current testshttps://lab.node.vifib.com/xiaowu.zhang/slapos.recipe.cmmi/-/commit/c4f9a9e125b47a5d43bf1c49d29678736b3f55bcCompare list as set to prevent false positives due order2016-02-15T18:32:39+01:00Rafael Monneratrafael@nexedi.comhttps://lab.node.vifib.com/xiaowu.zhang/slapos.recipe.cmmi/-/commit/f26567c45040861c859f3eb5cfb7336c0d35aa3estrip installed binaries.2014-10-21T17:07:47+02:00Kazuhiko Shiozakikazuhiko@nexedi.comhttps://lab.node.vifib.com/xiaowu.zhang/slapos.recipe.cmmi/-/commit/651071c2503fb742a2754225f5602f01565e8789improve Popen usage in get_installed_files.2014-10-21T17:07:47+02:00Kazuhiko Shiozakikazuhiko@nexedi.comhttps://lab.node.vifib.com/xiaowu.zhang/slapos.recipe.cmmi/-/commit/2636c6f96ef60c0e66e00e4a32e4c3beb74bc4dbDownload cache is unusable if url aren't hashed2013-08-13T17:34:39+02:00Julien Muchembledjm@nexedi.com
It looks even better to change the default value on Download.__init__()
And something should also be done not to cache something local.https://lab.node.vifib.com/xiaowu.zhang/slapos.recipe.cmmi/-/commit/5c9f52e53c221d2d20f607410a1e5deb632bec79Release 0.32013-07-31T08:41:23+08:00Jondy Zhaojondy.zhao@gmail.comhttps://lab.node.vifib.com/xiaowu.zhang/slapos.recipe.cmmi/-/commit/9b90e12a847145be3daa059889a7e36f04652fa7support arch in section name as [part:platform:arch]2013-07-31T08:39:49+08:00Jondy Zhaojondy.zhao@gmail.comhttps://lab.node.vifib.com/xiaowu.zhang/slapos.recipe.cmmi/-/commit/fc7b1f79854cbc37360899525526a83b4a2a0540Replace environment variable CYGCONF_ARGS with CYGCONF_PREFIX2013-07-14T22:22:03+08:00Jondy Zhaojondy.zhao@gmail.com