1. 10 Jun, 2022 1 commit
    • Jérome Perrin's avatar
      software/theia: fix instance error when instance is not ASCII · faaebbf3
      Jérome Perrin authored
      b'💥' is a SyntaxError in python.
      
      Instead, switch to accessing options from option variable and apply
      this to other options from this part.
      
      This fixes this issue:
      
          While:
            Installing switch-softwaretype.
            Installing favicon.ico.
      
          An internal error occurred due to a bug in either zc.buildout or in a
          recipe being used:
          Traceback (most recent call last):
            File "zc.buildout-2.7.1+slapos019-py3.7.egg/zc/buildout/buildout.py", line 2360, in main
              getattr(buildout, command)(args)
            File "zc.buildout-2.7.1+slapos019-py3.7.egg/zc/buildout/buildout.py", line 640, in install
              self._install_parts(install_args)
            File "zc.buildout-2.7.1+slapos019-py3.7.egg/zc/buildout/buildout.py", line 820, in _install_parts
              installed_files = self[part]._call(recipe.install)
            File "zc.buildout-2.7.1+slapos019-py3.7.egg/zc/buildout/buildout.py", line 1668, in _call
              return f()
            File "slapos.cookbook-1.0.244-py3.7.egg/slapos/recipe/switch_softwaretype.py", line 108, in install
              sub_buildout.install([])
            File "zc.buildout-2.7.1+slapos019-py3.7.egg/zc/buildout/buildout.py", line 640, in install
              self._install_parts(install_args)
            File "zc.buildout-2.7.1+slapos019-py3.7.egg/zc/buildout/buildout.py", line 820, in _install_parts
              installed_files = self[part]._call(recipe.install)
            File "zc.buildout-2.7.1+slapos019-py3.7.egg/zc/buildout/buildout.py", line 1668, in _call
              return f()
            File "slapos.recipe.build-0.54-py3.7.egg/slapos/recipe/build/__init__.py", line 268, in install
              return self._shared.install(self.__install)
            File "slapos.recipe.build-0.54-py3.7.egg/slapos/recipe/__init__.py", line 150, in install
              install()
            File "slapos.recipe.build-0.54-py3.7.egg/slapos/recipe/build/__init__.py", line 278, in __install
              self._exec(self._install)
            File "slapos.recipe.build-0.54-py3.7.egg/slapos/recipe/build/__init__.py", line 261, in _exec
              code = compile(script, self.name, 'exec')
            File "favicon.ico", line 6
          SyntaxError: bytes can only contain ASCII literal characters.
      faaebbf3
  2. 09 Jun, 2022 1 commit
  3. 08 Jun, 2022 5 commits
  4. 06 Jun, 2022 1 commit
  5. 05 Jun, 2022 1 commit
  6. 02 Jun, 2022 1 commit
  7. 01 Jun, 2022 3 commits
  8. 31 May, 2022 3 commits
  9. 27 May, 2022 4 commits
  10. 26 May, 2022 2 commits
    • Jérome Perrin's avatar
      deploy-test: pre-install requests · 5ffe2fec
      Jérome Perrin authored
      These tests are still using `python setup.py test` which installs
      missing packages to their latest versions. Recently, certifi (a
      requests dependency) published a new release with python3 only
      syntax, so running the test now got an error installing missing
      packages:
      
          File "parts/slapos-package/playbook/roles/standalone-shared/.eggs/certifi-2022.5.18.1-py2.7.egg/certifi/core.py", line 17
              def where() -> str:
                          ^
          SyntaxError: invalid syntax
      
      The `playbook/roles/standalone-shared` is defined on the test suite
      as instance parameters, so it seems we can not already install this
      package directly from playbook/roles/standalone-shared because
      test suite may define something different. For now, just install
      requests. All this will have to be addressed when we change this
      test to pre-install packages with slapos and use `python -m unittest`
      instead of `python setup.py test`.
      5ffe2fec
    • Jérome Perrin's avatar
      slapos.recipe:wrapper: add py3 support for pidfile and private-tmpfs · b0e43f8a
      Jérome Perrin authored
      These two options were unusable for software releases using python3.
      
      This also adds test coverage for the recipe.
      b0e43f8a
  11. 25 May, 2022 2 commits
  12. 24 May, 2022 4 commits
  13. 23 May, 2022 8 commits
  14. 20 May, 2022 1 commit
  15. 19 May, 2022 3 commits