Page MenuHomeSoftware Heritage

Adapt scheduler to swh.core 2.0.0
ClosedPublic

Authored by douardda on Feb 11 2022, 5:14 PM.

Details

Summary
  • add the get_datastore function in swh.scheduler
  • add the get_current_version method in SchedulerBackend,
  • remove dbversion management from sql init script
  • update tests accordingly

Depends on D7155
Related to T3894

Diff Detail

Repository
rDSCH Scheduling utilities
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Build has FAILED

Patch application report for D7165 (id=25967)

Rebasing onto 234e165967...

First, rewinding head to replay your work on top of it...
Applying: Adapt to swh.core 2.0.0
Changes applied before test
commit 7688a7f388a3ee935fcefee80aca7f912a0608d2
Author: David Douard <david.douard@sdfa3.org>
Date:   Tue Feb 8 14:59:29 2022 +0100

    Adapt to swh.core 2.0.0
    
    - add the `get_datastore` function in `swh.scheduler`
    - add the `get_current_version` method in `SchedulerBackend`,
    - remove dbversion management from sql init script
    - update tests accordingly

Link to build: https://jenkins.softwareheritage.org/job/DSCH/job/tests-on-diff/519/
See console output for more information: https://jenkins.softwareheritage.org/job/DSCH/job/tests-on-diff/519/console

Harbormaster returned this revision to the author for changes because remote builds failed.Feb 11 2022, 5:15 PM
Harbormaster failed remote builds in B26843: Diff 25967!

Build is green

Patch application report for D7165 (id=25967)

Rebasing onto 234e165967...

First, rewinding head to replay your work on top of it...
Applying: Adapt to swh.core 2.0.0
Changes applied before test
commit 794f99dae15e1cf1d4afc1a2c0db118e92775ee9
Author: David Douard <david.douard@sdfa3.org>
Date:   Tue Feb 8 14:59:29 2022 +0100

    Adapt to swh.core 2.0.0
    
    - add the `get_datastore` function in `swh.scheduler`
    - add the `get_current_version` method in `SchedulerBackend`,
    - remove dbversion management from sql init script
    - update tests accordingly

See https://jenkins.softwareheritage.org/job/DSCH/job/tests-on-diff/520/ for more details.

This revision is now accepted and ready to land.Feb 23 2022, 11:38 AM

Build is green

Patch application report for D7165 (id=26242)

Rebasing onto 234e165967...

Current branch diff-target is up to date.
Changes applied before test
commit c72e1797188abeaad1394492b2e30b63f6223fc7
Author: David Douard <david.douard@sdfa3.org>
Date:   Tue Feb 8 14:59:29 2022 +0100

    Adapt to swh.core 2.0.0
    
    - add the `get_datastore` function in `swh.scheduler`
    - add the `get_current_version` method in `SchedulerBackend`,
    - remove dbversion management from sql init script
    - update tests accordingly

See https://jenkins.softwareheritage.org/job/DSCH/job/tests-on-diff/521/ for more details.

Add types-toml to requirements-test.txt to please mypy

on my machine, 'tox -e mypy' is unhappy without it.

Build is green

Patch application report for D7165 (id=26251)

Rebasing onto 234e165967...

Current branch diff-target is up to date.
Changes applied before test
commit b953975ff69cd28ab85a4295a88948a35185d7f1
Author: David Douard <david.douard@sdfa3.org>
Date:   Tue Feb 8 14:59:29 2022 +0100

    Adapt to swh.core 2.0.0
    
    - add the `get_datastore` function in `swh.scheduler`
    - add the `get_current_version` method in `SchedulerBackend`,
    - remove dbversion management from sql init script
    - update tests accordingly

commit aabbee7862abbd62c4a2a64121f1442e66b369c8
Author: David Douard <david.douard@sdfa3.org>
Date:   Thu Feb 24 12:20:50 2022 +0100

    Add types-toml to requirements-test.txt
    
    to please mypy.

See https://jenkins.softwareheritage.org/job/DSCH/job/tests-on-diff/522/ for more details.

Remove the rev adding the dep. on types-toml

this should come from swh.core if any (see D7247).

Build is green

Patch application report for D7165 (id=26267)

Rebasing onto 234e165967...

Current branch diff-target is up to date.
Changes applied before test
commit 5cc62be1a4059680b534c810ee97b8b80ac9cd56
Author: David Douard <david.douard@sdfa3.org>
Date:   Tue Feb 8 14:59:29 2022 +0100

    Adapt to swh.core 2.0.0
    
    - add the `get_datastore` function in `swh.scheduler`
    - add the `get_current_version` method in `SchedulerBackend`,
    - remove dbversion management from sql init script
    - update tests accordingly

See https://jenkins.softwareheritage.org/job/DSCH/job/tests-on-diff/523/ for more details.

Remove the rev adding the dep. on types-toml

this should come from swh.core if any (see D7247).

this is actually not needed at all it seems...

This revision was automatically updated to reflect the committed changes.