1. 27 Oct, 2023 1 commit
    • Jérome Perrin's avatar
      testnode: make killall support processes with changed title · 21147419
      Jérome Perrin authored
      testnode uses ProcessManager.killall to terminate all processes from a
      path. To determine if a process is from a path, it looks at the command
      line. This does not work for processes using setproctitle to change
      their command line.
      
      We can see in ps:
      
          $ ps -edf | grep nginx
          slapuse+ 115059  45574  0 16:14 ?        00:00:00 nginx: master process /srv/slapgrid/slappart46/t/cvt/i/0/tmp/shared/nginx/6d79cb0e7d81dce1be97eec8a5712f08/sbin/nginx -c /srv/slapgrid/slappart46/t/cvt/i/0/tmp/inst/T-0/etc/nginx-master-introspection.conf
          slapuse+ 115090 115059  0 16:14 ?        00:00:00 nginx: worker process
      
      or by looking at cmdline, which is what psutil.Process.cmdline is using:
      
          $ cat /proc/115090/cmdline
          nginx: worker process
      
      and that's why sometimes when cancelling a software release test while
      it is running tests from a software using nginx, some processes are
      leaked, they keep using the port and next test running on this testnode
      fail.
      
      In that case, killall is called with /srv/slapgrid/slappart46/t/cvt , we
      can not find such process with cmdline, but we can extend this heuristic
      to use the current working directory:
      
          $ ls -al /proc/115090/cwd
          lrwxrwxrwx 1 slapuser46 slapuser46 0 Oct 19 16:16 /proc/115090/cwd -> /srv/slapgrid/slappart46/t/cvt/i/0/tmp/inst/T-0
      
      This also applies an optimization of only considering processes of the
      current unix user.
      21147419
  2. 20 Oct, 2023 3 commits
  3. 19 Oct, 2023 2 commits
  4. 18 Oct, 2023 3 commits
  5. 17 Oct, 2023 4 commits
  6. 13 Oct, 2023 2 commits
  7. 11 Oct, 2023 3 commits
  8. 10 Oct, 2023 5 commits
  9. 06 Oct, 2023 1 commit
  10. 04 Oct, 2023 2 commits
  11. 03 Oct, 2023 1 commit
  12. 02 Oct, 2023 4 commits
    • Roque's avatar
      Capture the flag game new features · 3a9d947c
      Roque authored
      See merge request nexedi/erp5!1824
      3a9d947c
    • Roque's avatar
      erp5_officejs_drone_capture_flag: new map randomization strategy · 36b5ce60
      Roque authored
      - grid of blocks
      - set of block templates
      - randomization conditions
      - new terrarin texture
      - refine enemy drone collision
      - more aggressive enemies
      36b5ce60
    • Roque's avatar
      erp5_officejs_drone_capture_flag: app display using dialog steps pattern · 26d6772a
      Roque authored
      - drop import/export json
      - API for operator script
      - map utils class update
      - doc api update
      - all visible map parameters are geo
      - allow to run twice
      - fix default ai drone script distance fn
      - fix flag elements position (altitude)
      - better error handling
      26d6772a
    • Roque's avatar
      erp5_officejs_drone_capture_flag: new script operator feature and more · cbf008fa
      Roque authored
      - add a new operator script editor
      - update finish rules and scoring system
      - refactor map parameters
      - map randomization is done now by new class map utils
      - update init flag info msg
      - import/export script feature
      - update web site CSP
      - ui: activate js syntax in user script editor
      - ui: styles, section titles, etc - doc api update
      - fixes/refactoring
      -- fix default target coordinates bug
      -- control empty/invalid user scripts
      -- raise an error on user script syntax error
      -- fix onUpdate timestamp parameter (to integer milliseconds)
      -- fix drone loiter (based on !1817/)
      cbf008fa
  13. 29 Sep, 2023 1 commit
  14. 28 Sep, 2023 2 commits
  15. 27 Sep, 2023 1 commit
  16. 19 Sep, 2023 2 commits
  17. 14 Sep, 2023 2 commits
  18. 12 Sep, 2023 1 commit
    • Jérome Perrin's avatar
      Update officejs support request app for strict CSP · 2dc9f19a
      Jérome Perrin authored
      This is a first step to stop using "unsafe" web sections.
      
      This updates support request app to not require `script-src: unsafe-eval` and `style-src: unsafe-inline` in the CSP.
      Dropping `script-src: unsafe-eval` is made possible by using domsugar instead of handlebars for dynamic content. Dropping `style-src: unsafe-inline` by using CSS files instead of inline `style` attributes in the DOM. One minor regression is that the tooltips from the graph on the front page gadget will cause warning because of `unsafe-inline` and not render the series color.
      
      This application was also modernized a bit, it now uses the HTML viewer gadget to display post contents and supports translation.
      
      See merge request nexedi/erp5!1821
      2dc9f19a