1. 16 Dec, 2019 2 commits
    • Jérome Perrin's avatar
      Improvements to ERP5 instance json schemas · 6e62c95b
      Jérome Perrin authored
      - make profiles for software-types "self contained"
      - add default ports ( because port is marked required )
      
      /reviewed-on nexedi/slapos!664
      6e62c95b
    • Jérome Perrin's avatar
      theia: set $TMPDIR when installing · dc777bc1
      Jérome Perrin authored
      installing vscode-ripgrep creates a folder in temporary directory, but
      never removes it.
      
      On our test nodes it was observed that a first testnode running installs
      and create this folder in /tmp/ then another testnode running as another
      unix user installs and we had this error:
      
          Command: node ./lib/postinstall.js
          Arguments:
          Directory: /srv/slapgrid/slappart13/srv/testnode/cqg/inst/test0-0/tmp/soft/c3f3d686d3e77f9e5c20a555a2698c98/parts/theia/node_modules/vscode-ripgrep
          Output:
          Finding release for v11.0.1-2
          GET https://api.github.com/repos/microsoft/ripgrep-prebuilt/releases/tags/v11.0.1-2
          Downloading from https://api.github.com/repos/microsoft/ripgrep-prebuilt/releases/assets/13800816
          Downloading to /tmp/vscode-ripgrep-cache-1.5.7/ripgrep-v11.0.1-2-x86_64-unknown-linux-musl.tar.gz
          Download options: {"headers":{"user-agent":"vscode-ripgrep","accept":"application/octet-stream"}}
          events.js:167
              throw er; // Unhandled 'error' event
              ^
      
          Error: EACCES: permission denied, open '/tmp/vscode-ripgrep-cache-1.5.7/ripgrep-v11.0.1-2-x86_64-unknown-linux-musl.tar.gz'
          Emitted 'error' event at:
              at fs.open (internal/fs/streams.js:250:12)
              at FSReqWrap.oncomplete (fs.js:145:20)
          info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
          theia: Non zero exit code (1) while running command.
          While:
          Installing theia.
          Error: Non zero exit code (1) while running command.
      
      /reviewed-on !668
      dc777bc1
  2. 13 Dec, 2019 2 commits
  3. 12 Dec, 2019 2 commits
  4. 10 Dec, 2019 3 commits
  5. 09 Dec, 2019 3 commits
  6. 05 Dec, 2019 19 commits
  7. 04 Dec, 2019 5 commits
    • Julien Muchembled's avatar
      version up: hmac-nxd2 · 6bc0a3e8
      Julien Muchembled authored
      6bc0a3e8
    • Julien Muchembled's avatar
      NEO/ERP5: new schema of parameters, with overriding mechanism · d4821f87
      Julien Muchembled authored
      The main change is a new and unique way to override parameters depending on where these parameters are used:
      - for NEO, the goal is to avoid a huge `node_list` value (in particular with MyRocks settings), whereas most of the time all values in the list are the same
      - for ERP5, we need a way to define different ZODB cache settings depending on the zope id (e.g. huge cache for some specialized zopes, a small cache for the validation node, etc. whereas currently a huge cache for all nodes would waste a lot of RAM)
      
      For any `key=value` parameter that can be overridden, overriding is done as follows:
      - `key` defines the default value (not required if the SR already defines one)
      - `key!=[[pattern, value],...]`: the SR takes the value of the first 2-tuple whose *some reference* matches the pattern
      
      For NEO:
      - new `node_count` and `node` parameters
      - `node!` can be used to override `node`: the *reference* is the partition reference (`node-<i>` for standalone NEO, and `neo-<i>` for ERP5)
      - `node_list` is deprecated (if still passed, the new parameters must not be present)
      
      For ERP5 ZODB settings, parameters can be overridden at both:
      - zodb level (e.g. `pool-size`, `cache-size`... oh, I've just discovered there exists `cache-size-bytes`)
      - storage level (e.g. `compress`, `cache-size`, etc. in the case of NEO)
      
      Here, the *reference* is the zope id (e.g. `actitivies-0`)
      
      The `pattern` is a Python regex that must match the whole reference.
      
      Another not-so-small change is that the schema is fixed to only require NEO `cluster` parameter when instanciating a standalone NEO.
      
      And a few fixes.
      
      /reviewed-on nexedi/slapos!661
      d4821f87
    • Julien Muchembled's avatar
      9c356374
    • Julien Muchembled's avatar
    • Łukasz Nowak's avatar
      2ec92336
  8. 03 Dec, 2019 1 commit
  9. 02 Dec, 2019 3 commits