1. 20 Dec, 2018 1 commit
  2. 14 Dec, 2018 2 commits
  3. 11 Dec, 2018 2 commits
  4. 06 Dec, 2018 1 commit
  5. 04 Dec, 2018 1 commit
  6. 03 Dec, 2018 3 commits
    • Thomas Gambier's avatar
      Add tests for default argument · 0c0b92fb
      Thomas Gambier authored
      0c0b92fb
    • Thomas Gambier's avatar
      CLEANUP: remove trailing spaces · 9df6ecd8
      Thomas Gambier authored
      9df6ecd8
    • Thomas Gambier's avatar
      BUGFIX: fix c931d60c · 3b8cf767
      Thomas Gambier authored
      After c931d60c, default options were changed and we didn't want that.
      
      Rewrite the code so that we have a clearer scheme:
       * all options of format are listed as FormatConfig attributes with default values
       * all values present in configuration file (.cfg) erase the previous options
       * all values present in command line erase the previous options
      
      We use the special default argparse.SUPPRESS that removes totally the arg from arg dict so that only PRESENT options erase something
      3b8cf767
  7. 30 Nov, 2018 2 commits
  8. 27 Nov, 2018 1 commit
  9. 26 Nov, 2018 9 commits
  10. 20 Nov, 2018 1 commit
  11. 19 Nov, 2018 5 commits
  12. 15 Nov, 2018 1 commit
  13. 14 Nov, 2018 2 commits
  14. 08 Nov, 2018 1 commit
  15. 02 Nov, 2018 1 commit
  16. 24 Oct, 2018 2 commits
  17. 28 Sep, 2018 2 commits
    • Julien Muchembled's avatar
      Release 1.4.11 · fd954c43
      Julien Muchembled authored
      fd954c43
    • Bryton Lacquement's avatar
      slapgrid-sr: do not rebootstrap unnecessarily · 7f279836
      Bryton Lacquement authored
      Currently, bootstrapBuildout is called unconditionally, and since
      Software Releases use slapos.reboostrap, we end up with the
      following behaviour in the best case:
      
          Processing software releases...
          Installing software release /srv/slapgrid/slappart9/srv/testnode/aai/software.cfg...
          Generated script '/srv/slapgrid/slappart9/srv/testnode/aai/soft/08f8010370c519147fe23fed3170be9e/bin/buildout'.
          slapos.rebootstrap: Make sure that the section 'python2.7' won't be reinstalled after rebootstrap.
          Unused options for buildout: 'allowed-eggs-from-site-packages' 'exec-sitecustomize' 'include-site-packages' 'unzip'.
          Updating xz-utils.
          Updating patch.
          ...
          Updating gcc.
          Updating python2.7.
          Stripping binaries ...
          Done.
          slapos.rebootstrap:
          ************ REBOOTSTRAP: IMPORTANT NOTICE ************
          bin/buildout is being reinstalled right now, as new python:
            /srv/slapgrid/slappart9/srv/testnode/aai/soft/08f8010370c519147fe23fed3170be9e/parts/python2.7/bin/python2.7
          is available, and buildout is using another python:
            /opt/slapgrid/b9f9e0967ab8491759399f306d65239a/parts/python2.7/bin/python2.7
          Buildout will be restarted automatically to have this change applied.
          ************ REBOOTSTRAP: IMPORTANT NOTICE ************
      
          Unused options for buildout: 'allowed-eggs-from-site-packages' 'exec-sitecustomize' 'include-site-packages' 'unzip'.
          Updating xz-utils.
          Updating patch.
          ...
          Updating gcc.
          Updating python2.7.
          Updating autoconf.
          ...
      
      Which means that bin/buildout always runs twice: updating parts is usually fast
      but loading extends and checking that binaries are stripped can take a while.
      
      The idea of this commit is minimize the amount of work when bin/buildout
      already exists, in particular if it is already changed by slapos.reboostrap
      to use the built Python. We also hope this will avoid complete rebuilds when
      building a different version of Python:
      
          Installing software release /srv/slapgrid/slappart1/srv/testnode/bsu/software.cfg...
          Generated script '/srv/slapgrid/slappart1/srv/testnode/bsu/soft/90adf14823b5e2bc7dd89ccfbd9388df/bin/buildout'.
          slapos.rebootstrap: Make sure that the section 'python3.5' won't be reinstalled after rebootstrap.
          Uninstalling python3.5.
          Uninstalling file.
          Uninstalling file-msooxml.
          Uninstalling gettext.
          Uninstalling lunzip.
          Uninstalling libxml2.
          Uninstalling sqlite3.
          Uninstalling openssl.
          Uninstalling ca-certificates.
          Uninstalling perl.
          Uninstalling gdbm.
          Uninstalling bzip2.
          Uninstalling libffi.
          Uninstalling libexpat.
          Uninstalling readline.
          Uninstalling ncurses.
          Uninstalling zlib.
          Uninstalling patch.
          Uninstalling xz-utils.
          Unused options for buildout: 'allowed-eggs-from-site-packages' 'exec-sitecustomize' 'include-site-packages' 'unzip'.
          Installing xz-utils.
          ...
          Stripping binaries ...
          Done.
          slapos.rebootstrap:
          ************ REBOOTSTRAP: IMPORTANT NOTICE ************
          bin/buildout is being reinstalled right now, as new python:
            /srv/slapgrid/slappart1/srv/testnode/bsu/soft/90adf14823b5e2bc7dd89ccfbd9388df/parts/python3.5/bin/python3.5
          is available, and buildout is using another python:
            /opt/slapgrid/b9f9e0967ab8491759399f306d65239a/parts/python2.7/bin/python2.7
          Buildout will be restarted automatically to have this change applied.
          ************ REBOOTSTRAP: IMPORTANT NOTICE ************
      
          Uninstalling template.
          ...
          Uninstalling m4.
          Unused options for buildout: 'allowed-eggs-from-site-packages' 'exec-sitecustomize' 'include-site-packages' 'unzip'.
          Updating xz-utils.
          ...
          Updating python3.5.
          Installing m4.
          ...
      
      About the implementation, we could merely add a `if not os.path.exists(...):`.
      I fear cases where a previous run may have left bin/buildout in a non-working
      state, so I suggest the use of a marker to force bootstrap if a previous run
      failed whereas the existing bin/buildout was reused.
      
      /reviewed-on !54
      7f279836
  18. 20 Sep, 2018 2 commits
  19. 19 Sep, 2018 1 commit