Skip to content
Snippets Groups Projects
  1. Jun 01, 2020
  2. May 20, 2020
  3. May 19, 2020
  4. May 15, 2020
    • Antoine R. Dumont's avatar
      Migrate deposit SWHIDs (data) to the new specification · a631dabb
      Antoine R. Dumont authored
      Migrate both "recent" and "old" format deposits [1] to the new specification.
      
      That means the deposit swh_id* fields will be set to:
      - swh_id: directory SWHID (no context)
      - swh_id_context: directory SWHID (with context, origin, visit, anchor path)
      
      Optionally, those 2 fields will be kept (for now) and realigned where it was not
      set ("old" deposits) to:
      - swh_anchor_id: revision SWHID (no context)
      - swh_anchor_id_context: revision SWHID (context with only origin)
      
      It's expected some very "old" deposits won't be migrated as we cannot resolve
      those values. They will be rescheduled when it will be possible to do
      so (deploy [2]).
      
      [1] "recent" format means all swh_id fields are set:
      - swh_id: directory SWHID (no context)
      - swh_id_context: directory SWHID (context with only origin)
      - swh_anchor_id: revision SWHID (no context)
      - swh_anchor_id_context: revision SWHID (context with only origin)
      
      "old" format:
      - swh_id: revision SWHID (no context)
      - swh_id_context: not set
      - swh_anchor_id: not set
      - swh_anchor_id_context: not set
      
      [2] Related to D3141
      
      Related to T2398
      v0.0.87
      a631dabb
  5. May 14, 2020
  6. May 11, 2020
  7. May 07, 2020
  8. May 06, 2020
  9. May 04, 2020
  10. Apr 29, 2020
  11. Apr 23, 2020
  12. Apr 20, 2020
  13. Apr 17, 2020
  14. Apr 08, 2020
  15. Jan 23, 2020
  16. Jan 17, 2020
  17. Jan 16, 2020
  18. Jan 13, 2020
  19. Jan 10, 2020
    • David Douard's avatar
      Make tests pass with django 2 · 75e7385e
      David Douard authored
      For this we:
      
      - ensure we create the DepositRequest with str as raw_metadata (instead
        of a bytes), and
      - make atom_dataset return a str instead of a bytes
      
        Every time this chunk of data is sent on the wire (http req to the django app)
        this needs to be an str, otherwise we have things like:
      
          raw_metadata = "b'[...]'"
      
        especially when testing against django 2, which is the only django version
        available on debian sid, so this is needed to make it possible to build the
        deb file on sid *with* tests enabled.
      - add a py3-django2 environment in tox
      - bump the dependency to django <3 in requirements-server.txt (otherwise it
        will take precendence on the deps: field of the tox file, thus execute tests
        in py3-django2 with django 1.11).
      
      Note that no other tests than executing pytest have been done with django2, so
      do not expect it works flawlessly.
      75e7385e
    • David Douard's avatar
      00eadef4
  20. Jan 09, 2020
  21. Jan 08, 2020
  22. Jan 07, 2020
  23. Dec 20, 2019
    • David Douard's avatar
      cli/client: add a --format option to cli client commands · c8cf77bd
      David Douard authored
      This new option allows these cli commands (upload and status) to produce
      JSON or YAML output, so it's easier to test.
      c8cf77bd
    • David Douard's avatar
      tests: make tests run with a proper scheduler · 5a635951
      David Douard authored
      so the scheduler interaction code is executed.
      
      Note that this does not test for correctness in these interactions yet.
      
      also move tests/__init__.py content in tests/conftest.py and adapt test code
      accordingly.
      
      This also ensures retries_left is set otherwise tests may fail when using
      the local sheduler.
      5a635951
Loading