Page MenuHomeSoftware Heritage

Add a --non-interactive flag to the `swh db upgrade` command
ClosedPublic

Authored by douardda on Mar 14 2022, 11:38 AM.

Details

Summary

so it can be used in a script (e.g. docker entrypoint).

Diff Detail

Repository
rDCORE Foundations and core functionalities
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 D7343 (id=26544)

Rebasing onto f40adde2a9...

Current branch diff-target is up to date.
Changes applied before test
commit ed2b54ebc5799e38315da63176ba5eeb9af3a850
Author: David Douard <david.douard@sdfa3.org>
Date:   Mon Mar 14 11:35:57 2022 +0100

    Add a --non-interactive flag to the `swh db upgrade` command
    
    so it can be used in a script (e.g. docker entrypoint).

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

vlorentz added inline comments.
swh/core/cli/db.py
325–332

what about this? It doesn't significantly change the interface, and makes the code easier to understand IMO

swh/core/cli/db.py
325–332

what about this? It doesn't significantly change the interface, and makes the code easier to understand IMO

agreed, thx

update according to vlorentz' suggestion

Build is green

Patch application report for D7343 (id=26547)

Rebasing onto f40adde2a9...

Current branch diff-target is up to date.
Changes applied before test
commit e2415c009f12fda8708d252b25b53f4411336e9a
Author: David Douard <david.douard@sdfa3.org>
Date:   Mon Mar 14 11:35:57 2022 +0100

    Add a --(non-)interactive flag to the `swh db upgrade` command
    
    so it can be used in a script (e.g. docker entrypoint).

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

Include a small (unrelated) typo fix

Build is green

Patch application report for D7343 (id=26550)

Rebasing onto f40adde2a9...

Current branch diff-target is up to date.
Changes applied before test
commit 89d7442beacb9dc6220e3377715609aef262a5b0
Author: David Douard <david.douard@sdfa3.org>
Date:   Mon Mar 14 13:36:34 2022 +0100

    Fix a typo

commit e2415c009f12fda8708d252b25b53f4411336e9a
Author: David Douard <david.douard@sdfa3.org>
Date:   Mon Mar 14 11:35:57 2022 +0100

    Add a --(non-)interactive flag to the `swh db upgrade` command
    
    so it can be used in a script (e.g. docker entrypoint).

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

This revision is now accepted and ready to land.Mar 14 2022, 2:06 PM