1. 27 Oct, 2021 1 commit
  2. 19 Oct, 2021 1 commit
  3. 15 Oct, 2021 2 commits
  4. 14 Oct, 2021 1 commit
  5. 11 Oct, 2021 2 commits
  6. 10 Oct, 2021 1 commit
  7. 03 Oct, 2021 1 commit
    • Kevin Morris's avatar
      feat(PHP): add aurweb Prometheus metrics · 986fa9ee
      Kevin Morris authored
      
      
      Along with this initial requests metric implementation,
      we also now serve the `/metrics` route, which grabs request
      metrics out of cache and renders them properly for Prometheus.
      
      **NOTE** Metrics are only enabled when the aurweb system admin
      has enabled caching by configuring `options.cache` correctly
      in `$AUR_CONFIG`. Otherwise, an error is logged about no cache
      being configured.
      
      New dependencies have been added which require the use of
      `composer`. See `INSTALL` for the dependency section in regards
      to composer dependencies and how to install them properly for
      aurweb.
      
      Metrics are in the following forms:
      
          aurweb_http_requests_count(method="GET",route="/some_route")
          aurweb_api_requests_count(method="GET",route="/rpc",type="search")
      
      This should allow us to search through the requests for specific routes
      and queries.
      Signed-off-by: Kevin Morris's avatarKevin Morris <kevr@0cost.org>
      986fa9ee
  8. 04 Sep, 2021 2 commits
  9. 01 Sep, 2021 1 commit
    • Kevin Morris's avatar
      RPC: add deprecation warning for v1-v4 usage · cfa95ef8
      Kevin Morris authored
      
      
      With FastAPI starting to come closer to a close, we've got to advertise
      this deprecation so that users have some time to adjust before making
      the changes. We have not specified a specific time here, but we'd like
      this message to reach users of the RPC API for at least a month before
      any modifications are made to the interface.
      Signed-off-by: Kevin Morris's avatarKevin Morris <kevr@0cost.org>
      cfa95ef8
  10. 27 Jul, 2021 1 commit
  11. 15 Jul, 2021 1 commit
  12. 11 Jul, 2021 1 commit
  13. 30 Jun, 2021 1 commit
  14. 25 Jun, 2021 3 commits
  15. 23 Jun, 2021 1 commit
  16. 21 Jun, 2021 3 commits
  17. 13 Jun, 2021 3 commits
  18. 10 Jun, 2021 2 commits
  19. 06 Jun, 2021 1 commit
  20. 05 Jun, 2021 1 commit
  21. 18 May, 2021 5 commits
  22. 13 May, 2021 1 commit
  23. 11 May, 2021 2 commits
    • Eli Schwartz's avatar
      git update hook: gracefully error on completely broken .SRCINFO · e454a020
      Eli Schwartz authored
      
      
      I've seen this happen a bunch of times now. Someone cannot push to the
      AUR, and the error report is some traceback with a KeyError which is
      difficult to understand without context:
      
      remote: Traceback (most recent call last):
      remote:   File "/srv/http/aurweb/aur.git/hooks/update", line 33, in <module>
      remote:     sys.exit(load_entry_point('aurweb==5.0.0', 'console_scripts', 'aurweb-git-update')())
      remote:   File "/usr/lib/python3.9/site-packages/aurweb-5.0.0-py3.9.egg/aurweb/git/update.py", line 306, in main
      remote: KeyError: 'pkgbase'
      
      Eventually it turns out that their .SRCINFO file is... badly corrupted.
      Generally, they managed to accidentally commit an *empty* file instead
      of a .SRCINFO, and in all cases, the problem was on the very first
      lookup for 'pkgbase'.
      
      Point people to the actual failing commit, and have a nicely formatted
      message indicating that the .SRCINFO is completely invalid.
      Signed-off-by: Eli Schwartz's avatarEli Schwartz <eschwartz@archlinux.org>
      e454a020
    • Kevin Morris's avatar
      swap uvicorn out for hypercorn · 19652d6c
      Kevin Morris authored and Eli Schwartz's avatar Eli Schwartz committed
      
      
      uvicorn is subjectively nicer to play with for local dev work, but
      hypercorn is required in order to do HTTP/2 which is fairly
      performance-important.
      Signed-off-by: Kevin Morris's avatarKevin Morris <kevr@0cost.org>
      Signed-off-by: Lukas Fleischer's avatarLukas Fleischer <lfleischer@archlinux.org>
      Co-authored-by: Eli Schwartz's avatarEli Schwartz <eschwartz@archlinux.org>
      Signed-off-by: Eli Schwartz's avatarEli Schwartz <eschwartz@archlinux.org>
      19652d6c
  24. 09 May, 2021 1 commit
  25. 03 May, 2021 1 commit