Skip to content
Snippets Groups Projects
  1. Mar 04, 2021
  2. Feb 26, 2021
    • Stefano Zacchiroli's avatar
    • Stefano Zacchiroli's avatar
      bin/install: install packages one by one and enforce prerequisites · e6fbb0f3
      Stefano Zacchiroli authored
      This is trying to make bin/install (again) a click-button developer setup
      installation tool, simplifying the process for newcomers and making it faster
      for everyone.
      
      To that end:
      
      - we ensure that pip is up to date before using it for anything else
      
      - we install the prerequisites (flake8, mypy, etc.) to avoid having to name
      them one by one in user documentation
      
      - we install packages one by one, rather them all together, to avoid that pip
      failures force users to restart the whole process from scratch. In passing,
      this makes also things much easier for the new pip resolver. To avoid
      dependency inconsistencies we install packages in bin/pip-swh-packages, which
      is already supposed to be topologically sorted
      
      - we also install packages only *once*, rather than first without -with-testing
      and later with it (as currently documented in the developer setup), because the
      "[testing]" markers are extra requires, which always depend on the base
      package (hopefully)
      
      When this gets landed, the developer setup can be shortened to just say "run
      bin/install".
      e6fbb0f3
  3. Feb 23, 2021
  4. Feb 19, 2021
  5. Feb 18, 2021
    • Vincent Sellier's avatar
      swh-search: activate metrics · 75ce4026
      Vincent Sellier authored
      Related to T3042
      75ce4026
    • Antoine R. Dumont's avatar
      Separate loader-deposit from other loaders · 467abd4d
      Antoine R. Dumont authored
      Fix the build [1]
      
      Loaders have been reworked to only deal with configuration as constructor parameters. As
      the current docker configuration is shared amongst all loaders, this can no longer work.
      
      The current "next-gen" loaders share a subset of those configuration though so most can
      run together. Except for the loader deposit which needs dedicated extra keys (deposit,
      url).
      
      Note that some configuration keys (scheduler for example) referenced in the current
      configuration are not for loaders. This make instantiation fails. So they need to be
      removed.
      
      All in all, trying to separate the dedicated deposit loader with its configuration in
      its own container and let the other loaders running as before fixes the build.
      
      That and stop referecing the scheduler configuration in the loader configuration.
      Instead use a dedicated environment variable to specify the scheduler url to use.
      
      Related to T1410
      
      [1] https://jenkins.softwareheritage.org/view/all/job/swh-docker-dev/730/console
      467abd4d
  6. Feb 17, 2021
  7. Feb 16, 2021
  8. Feb 03, 2021
  9. Jan 21, 2021
  10. Dec 15, 2020
  11. Dec 09, 2020
  12. Nov 20, 2020
    • Antoine R. Dumont's avatar
      Revert "vault: Fix tests using the new key names" · 35e31d32
      Antoine R. Dumont authored
      This was initially changed because the assumption was the vault tests were
      directly using the vault backend api. They are not, they are using the web api.
      
      So there was actually nothing to change in the test_vault.py as the web vault
      api got fixed and released.
      
      This reverts commit 84e927d2.
      35e31d32
  13. Nov 19, 2020
  14. Nov 18, 2020
  15. Nov 03, 2020
  16. Oct 29, 2020
    • Vincent Sellier's avatar
      Simplify the scheduler's database initialization · 2a5d9a27
      Vincent Sellier authored
      Use the new "init-admin" command to initialize the database and fallback to the standard postgresql initialization.
      The database creation is delegated to the postgresql entrypoint, the extensions and the tables are configured respectively by the init-admin and init commands.
      
      Related to T2736
      2a5d9a27
  17. Oct 16, 2020
  18. Oct 15, 2020
  19. Oct 11, 2020
    • Antoine R. Dumont's avatar
      deposit/conf: Add back the storage key config · 7f2c74de
      Antoine R. Dumont authored
      The (django) migration steps are happening during the docker `up` phase.
      Deposit wise, one migration script (`deposit.0018_migrate_swhids`) is requiring
      a storage. As this key got removed, this makes that migration step fail.
      
      This commit adds back that storage key.
      7f2c74de
  20. Oct 09, 2020
  21. Oct 08, 2020
  22. Oct 06, 2020
  23. Oct 01, 2020
Loading