Skip to content
Snippets Groups Projects
  1. Aug 23, 2022
  2. Aug 22, 2022
  3. Jun 27, 2022
  4. Jan 23, 2022
  5. Jan 18, 2022
    • Kevin Morris's avatar
      feat: support LOG_CONFIG environment variable · 7bcc8d7c
      Kevin Morris authored
      
      This variable allows users to override the logging.conf used
      for Python logging configuration. By default, this is set
      to logging.conf, which is a production config. LOG_CONFIG
      is treated relative to [options] aurwebdir.
      
      This patch allows us to specify the logging config as opposed
      to copying over logging.conf in our test docker and gitlab
      test scripts, as well as ease-of-testing as a developer.
      
      Signed-off-by: Kevin Morris's avatarKevin Morris <kevr@0cost.org>
      Verified
      7bcc8d7c
  6. Jan 17, 2022
  7. Jan 14, 2022
  8. Jan 10, 2022
  9. Dec 10, 2021
  10. Dec 07, 2021
  11. Nov 29, 2021
  12. Nov 23, 2021
  13. Nov 17, 2021
  14. Nov 06, 2021
    • Kevin Morris's avatar
      fix(mkpkglists): improve package meta archive · 51fb24ab
      Kevin Morris authored
      
      The SQL logic in this file for package metadata now exactly
      reflects RPC's search logic, without searching for specific
      packages.
      
      Two command line arguments are available:
      
          --extended | Include License, Keywords, Groups, relations
                       and dependencies.
      
      When --extended is passed, the script will create a
      packages-meta-ext-v1.json.gz, configured via packagesmetaextfile.
      
      Archive JSON is in the following format: line-separated package objects
      enclosed in a list:
      
          [
          {...},
          {...},
          {...}
          ]
      
      Signed-off-by: Kevin Morris's avatarKevin Morris <kevr@0cost.org>
      Verified
      51fb24ab
  15. Oct 31, 2021
  16. Oct 28, 2021
  17. Oct 24, 2021
    • Kevin Morris's avatar
      fix(fastapi): increase recursion limit during tests · 94d49486
      Kevin Morris authored
      
      The default recursion limit used by Docker's archlinux:base-devel
      Python package becomes problematic in some cases when running tests
      against our FastAPI application using starlette.testclient.TestClient
      (aliased to fastapi.testclient.TestClient). starlette ends up with
      test failures because it exceeds the recursion limit, but this only
      happens when using the `TestClient`. When the ASGI servers are run,
      this is not an issue and so in that case, the recursion limit has
      not been touched.
      
      This change uses a `TEST_RECURSION_LIMIT` environment variable to
      modify the recursion limit of the FastAPI application. This variable
      is, by default, only supplied when running pytests in Docker, but
      can be force-supplied by the user.
      
      TEST_RECURSION_LIMIT=10000 has been added to `.env` and `.gitlab-ci.yml`.
      
      Signed-off-by: Kevin Morris's avatarKevin Morris <kevr@0cost.org>
      Verified
      94d49486
  18. Sep 21, 2021
  19. Sep 04, 2021
    • Kevin Morris's avatar
      use Poetry to deal with deps and package install · 2f999480
      Kevin Morris authored
      
      As the new-age Python package manager, Poetry brings a lot
      of good additions to the table. It allows us to more easily
      deal with virtualenvs for the project and resolve dependencies.
      
      As of this commit, `requirements.txt` is replaced by Poetry,
      configured at `pyproject.toml`.
      
      In Docker and GitLab, we currently use Poetry in a root fashion.
      We should work toward purely using virtualenvs in Docker, but,
      for now we'd like to move forward with other things. The project
      can still be installed to a virtualenv and used on a user's system
      through Poetry; it is just not yet doing so in Docker.
      
      Modifications:
      
      * docker/scripts/install-deps.sh
          * Remove python dependencies.
      * conf/config.defaults
          * Script paths have been updated to use '/usr/bin'.
      * docker/git-entrypoint.sh
          * Use '/usr/bin/aurweb-git-auth' instead of
            '/usr/local/bin/aurweb-git-auth'.
      
      Additions:
      
      * docker/scripts/install-python-deps.sh
          * A script used purely to install Python dependencies with Poetry.
            This has to be used within the aurweb project directory and
            requires system-wide dependencies are installed beforehand.
          * Also upgrades system-wide pip.
      
      Signed-off-by: Kevin Morris's avatarKevin Morris <kevr@0cost.org>
      Verified
      2f999480
  20. Aug 29, 2021
  21. Jun 30, 2021
  22. Jun 25, 2021
  23. Jun 06, 2021
Loading