Skip to content
Snippets Groups Projects
  1. Apr 26, 2021
    • Antoine Lambert's avatar
      tox: Add sphinx environments to check sane doc build · d7c3a7e1
      Antoine Lambert authored
      Enable to check package documentation can be built without producing
      sphinx warnings.
      
      The sphinx environment is designed to be used in continuous integration
      in order to prevent breaking documentation build when committing changes.
      
      The sphinx-dev environment is designed to be used inside a full swh
      development environment.
      
      Related to T3258
      v0.4.1
      d7c3a7e1
  2. Apr 15, 2021
  3. Mar 27, 2021
  4. Mar 26, 2021
  5. Mar 10, 2021
  6. Mar 08, 2021
  7. Mar 06, 2021
  8. Mar 01, 2021
  9. Dec 19, 2020
    • Stefano Zacchiroli's avatar
      DB import: skip invalid SWHIDs during import · 33a9cd4e
      Stefano Zacchiroli authored
      This makes DB import much more rosbut, at the price of ~15% performance
      impact (which is still very much bearable, in light of recent DB import
      improvements).  If needed, this cost can be mitigated in the future by
      pipelining SWHID validation with SQLite insertion, using either a thread or
      asyncio.
      
      Closes T2813
      v0.3.0
      33a9cd4e
    • Stefano Zacchiroli's avatar
      DB import: massive speed up, via sqlite tuning and better mem handling · fe844030
      Stefano Zacchiroli authored
      - avoid loading into memory the entire input file, and rely on DB unicity
        constraints to spot duplicated
      
      - tune sqlite disabling sync writes and journal; this is unsafe, but insertion
        is all or nothing anyway
      
      - minor: improve exception handling, propagating SQLite errors up the stack
      
      With this chagen import time for 30M SWHIDs went down from ~6m30s to ~55s, and
      memory usage down from 5 GiB to a few tens MiB
      
      Closes T2836
      Closes T2812
      fe844030
    • Stefano Zacchiroli's avatar
      CLI: improve exit handling upon failure · d9299920
      Stefano Zacchiroli authored
      - preserve error message from DBError exception
      - do *not* remove DB if it exists, as it might help in debugging
      - fail using click's fail() instead of bypassing it with sys.exit
      d9299920
  10. Nov 25, 2020
  11. Nov 24, 2020
  12. Nov 23, 2020
  13. Nov 21, 2020
  14. Oct 22, 2020
  15. Oct 13, 2020
  16. Oct 08, 2020
    • Tenma's avatar
      PEP8 renaming of scanner modules · 88ded863
      Tenma authored
      Also rename private methods from leading 2 underscores to 1 to match
      project coding style
      88ded863
    • Tenma's avatar
      model: fix Tree.toDict to be side-effect free · bb5ccd81
      Tenma authored
      Remove reliance on default arg child_nodes which is a dict.
      
      It is unused in client code, breaks tests, and is not needed to build
      the dict representation of the tree.
      
      This also refines types on related impacted methods which helps
      reasoning about them.
      bb5ccd81
  17. Oct 05, 2020
  18. Oct 02, 2020
  19. Sep 25, 2020
  20. Sep 23, 2020
  21. Sep 17, 2020
  22. Sep 14, 2020
Loading