Page MenuHomeSoftware Heritage

coverage: Drop the cran origins computation workaround
ClosedPublic

Authored by ardumont on Oct 22 2021, 5:29 PM.

Details

Summary

The origin visit type were mistyped which rendered those actually not visited. This is
now properly fixed upstream.

Related to T3675

Test Plan

tox

Diff Detail

Repository
rDWAPPS Web applications
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

Build is green

Patch application report for D6544 (id=23785)

Rebasing onto 0c04ede6c0...

Current branch diff-target is up to date.
Changes applied before test
commit 9dd66d99eecdea711689b20ec397d566802da022
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Fri Oct 22 17:22:58 2021 +0200

    coverage: Drop the cran origins computation workaround
    
    The origin visit type were mistyped which rendered those actually not visited. This is
    now properly fixed upstream.
    
    Related to T3675

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

anlambert added inline comments.
swh/web/misc/coverage.py
320–325

This code must stay as only visited origins are counted and displayed.

327

Simply remove that if condition.

This revision now requires changes to proceed.Oct 22 2021, 6:44 PM
swh/web/misc/coverage.py
320–325

the linter mentioned it was unused...
i'll double check.

swh/web/misc/coverage.py
320–325

yes, that's it.

my buffer linter mentioned as much, looking at the code, i did not see it used.

And finally, pre-commit did not want me to commit:

swh/web/misc/coverage.py:320:9: F841 local variable 'count_never_visited' is assigned to but never used
swh/web/misc/coverage.py
320–325

It mentioned it was unused because you removed the whole if block, only the if line must be removed.

Adapt correctly according to review

This revision is now accepted and ready to land.Oct 25 2021, 11:38 AM

Build is green

Patch application report for D6544 (id=23794)

Rebasing onto 0c04ede6c0...

Current branch diff-target is up to date.
Changes applied before test
commit 1edcf35c484912c82b0557924a06eb8993a8d8d6
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Fri Oct 22 17:22:58 2021 +0200

    coverage: Drop the cran origins computation workaround
    
    The origin visit type were mistyped which rendered those actually not visited. This is
    now properly fixed upstream.
    
    Related to T3675

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