Page MenuHomeSoftware Heritage

swh.core.config: Drop support for ini configuration file
ClosedPublic

Authored by ardumont on Sep 16 2020, 2:32 PM.

Details

Summary

This is no longer used [1]

This also adds some types on impacted changed functions.

[1] Historically, we started using .ini file as configuration file for swh.
We moved to yaml a while ago. Only one last instance of it is currently
getting rid of in D3963.

Related to T1532
Related to D3963

Test Plan

tox

Diff Detail

Event Timeline

Build is green

Patch application report for D3964 (id=13953)

Rebasing onto 60c535ddee...

Current branch diff-target is up to date.
Changes applied before test
commit a7dec76d7139ee6c3398c47d4215b2cbbd19d07f
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Wed Sep 16 14:32:19 2020 +0200

    swh.core.config: Drop support for ini configuration file
    
    This is no longer used.
    
    This also adds some types on impacted changed functions.
    
    Related to T1532

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

swh/core/config.py
131

Should be return conf.
Fixing it and adding a test for it.

Fix and add tests about edge case (no default config provided during read call)

Build is green

Patch application report for D3964 (id=13955)

Rebasing onto 60c535ddee...

Current branch diff-target is up to date.
Changes applied before test
commit 5efe22dec6debdcd27fe10abaef3094b9fbdf69a
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Wed Sep 16 14:32:19 2020 +0200

    swh.core.config: Drop support for ini configuration file
    
    This is no longer used.
    
    This also adds some types on impacted changed functions.
    
    Related to T1532

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

swh/core/config.py
28

This needs to get dropped as well indeed!

[1] D3963#97708

Drop unnecessary default configuration about log_db

Build is green

Patch application report for D3964 (id=13956)

Rebasing onto 60c535ddee...

Current branch diff-target is up to date.
Changes applied before test
commit 66ac6ed3aa31a63da3226f2857755f7398721d31
Author: Antoine R. Dumont (@ardumont) <ardumont@softwareheritage.org>
Date:   Wed Sep 16 14:32:19 2020 +0200

    swh.core.config: Drop support for ini configuration file
    
    This is no longer used.
    
    This also adds some types on impacted changed functions.
    
    Related to T1532

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

This revision is now accepted and ready to land.Sep 16 2020, 4:23 PM