Page MenuHomeSoftware Heritage

Clean up old scheduler archival task related services
ClosedPublic

Authored by ardumont on Dec 7 2021, 2:37 PM.

Details

Summary

This is dead code now as this has long been stopped and disabled in production.

Note:
Also, it was probably not that well tested (and the coverage peek we have with
this diff seems to approve)

Related to T3782

Test Plan

tox (should be happy)

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 D6772 (id=24570)

Rebasing onto 0a6aac583a...

Current branch diff-target is up to date.
Changes applied before test
commit 4ca80a31e20c33146cd653535a37d9f28ddb8a5c
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Tue Dec 7 14:31:34 2021 +0100

    Clean up old ghtorrent scheduler related services
    
    This is dead code now as hhis has long been stopped and disabled in production.
    
    Related to T3777

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

Harbormaster returned this revision to the author for changes because remote builds failed.Dec 7 2021, 2:38 PM
Harbormaster failed remote builds in B25442: Diff 24570!

Build is green

Patch application report for D6772 (id=24571)

Rebasing onto 0a6aac583a...

Current branch diff-target is up to date.
Changes applied before test
commit de2ed04ec5e3293e6cc55cb31254ff1abfa2b692
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Tue Dec 7 14:31:34 2021 +0100

    Clean up old ghtorrent scheduler related services
    
    This is dead code now as hhis has long been stopped and disabled in production.
    
    Related to T3777

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

Build is green

Patch application report for D6772 (id=24606)

Rebasing onto 5de8ba42c2...

Current branch diff-target is up to date.
Changes applied before test
commit f0369228b933f76c5f70e6aef5cf59594f8bf9bb
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Tue Dec 7 14:31:34 2021 +0100

    Clean up old ghtorrent scheduler related services
    
    This is dead code now as hhis has long been stopped and disabled in production.
    
    Related to T3777

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

ardumont retitled this revision from Clean up old ghtorrent scheduler related services to Clean up old scheduler archival task related services.EditedDec 8 2021, 10:40 AM
ardumont added a subscriber: olasd.

Thank @olasd to make me realize it's not ghtorrent stuff (it's already been removed a while back), it's about the old task archival which got disabled as it was no longer running with decent time.

So, I think archiving old task entries is still something that we should want to do, but then again as this scheduler is slowly being phased out it may not be as critical as it used to be. Meh.

Aren't there some (test?) requirements that can be cleaned up now?

So, I think archiving old task entries is still something that we should want to do, but then again as this scheduler is slowly being phased out it may not be as critical as it used to be. Meh.

I agree.

Like i said in irc, given (in any order)

  • the somewhat complexity of the code
  • the poor coverage (of the time) and my lazyness to actually parse through it and improve the actual coverage
  • the fact that's not running.
  • what you said about this scheduler being phased out
  • you are neutral on the matter

I'd pretty much vote to drop that code.
That's less code to maintain or discover (with possibly questions which i probably no longer have answers for) for newcomers.

Aren't there some (test?) requirements that can be cleaned up now?

I'll double check.

You should be able to remove elasticsearch from requirements.txt

  • Amend commit
  • Drop no longer necessary requirement

You should be able to remove elasticsearch from requirements.txt

yes, done ;)

Build is green

Patch application report for D6772 (id=24613)

Rebasing onto 5de8ba42c2...

Current branch diff-target is up to date.
Changes applied before test
commit a8edbdbb00717f62e44ce87bfe6c1f698abfd728
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Tue Dec 7 14:31:34 2021 +0100

    Clean up disabled scheduler archival task related services
    
    This is dead code now as this has long been stopped and disabled in production.
    
    Related to T3777

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

This revision is now accepted and ready to land.Dec 9 2021, 10:33 AM