Page MenuHomeSoftware Heritage

nixguix: Reject Git SSH URLs and pseudo-URLs
ClosedPublic

Authored by vlorentz on Nov 4 2022, 1:51 PM.

Details

Reviewers
anlambert
Group Reviewers
Reviewers
Maniphest Tasks
Unknown Object (Maniphest Task)
Commits
rDLSe8699422d757: nixguix: Reject Git SSH URLs and pseudo-URLs
Summary

For consistency with Maven and Packagist listers

Depends on D8812.

Tangentially related to T4670.

Diff Detail

Repository
rDLS Listers
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 D8813 (id=31753)

Could not rebase; Attempt merge onto 60707a45dd...

Updating 60707a4..34bad1c
Fast-forward
 swh/lister/maven/lister.py                         |   3 +-
 .../maven/tests/data/sprova4j-0.1.0.invalidurl.pom |  30 ++++
 swh/lister/maven/tests/test_lister.py              |  47 +++++++
 swh/lister/nixguix/lister.py                       |   5 +-
 swh/lister/nixguix/tests/data/sources-failure.json |  10 ++
 swh/lister/nixguix/tests/test_lister.py            |  13 +-
 swh/lister/packagist/lister.py                     |   4 +
 .../packagist/tests/data/payrix_payrix-php.json    | 151 +++++++++++++++++++++
 .../packagist/tests/data/with_invalid_url.json     |  24 ++++
 swh/lister/packagist/tests/test_lister.py          |  10 +-
 swh/lister/utils.py                                |  50 ++++++-
 11 files changed, 336 insertions(+), 11 deletions(-)
 create mode 100644 swh/lister/maven/tests/data/sprova4j-0.1.0.invalidurl.pom
 create mode 100644 swh/lister/packagist/tests/data/payrix_payrix-php.json
 create mode 100644 swh/lister/packagist/tests/data/with_invalid_url.json
Changes applied before test
commit 34bad1c39d1cec3769a5b43e7b08f5fc40e50c8a
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Fri Nov 4 13:50:25 2022 +0100

    nixguix: Reject Git SSH URLs and pseudo-URLs
    
    For consistency with Maven and Packagist listers

commit 15101487ad9676f3b0df2a0685bc0782342cb212
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Fri Nov 4 13:48:14 2022 +0100

    maven, packagist: Validate origin URLs

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

Build has FAILED

Patch application report for D8813 (id=31757)

Could not rebase; Attempt merge onto 60707a45dd...

Updating 60707a4..545da61
Fast-forward
 .../maven/tests/data/sprova4j-0.1.0.invalidurl.pom |  30 ++++
 swh/lister/maven/tests/test_lister.py              |  47 +++++++
 swh/lister/nixguix/lister.py                       |   2 +-
 swh/lister/nixguix/tests/data/sources-failure.json |  10 ++
 swh/lister/nixguix/tests/test_lister.py            |  13 +-
 .../packagist/tests/data/payrix_payrix-php.json    | 151 +++++++++++++++++++++
 .../packagist/tests/data/with_invalid_url.json     |  24 ++++
 swh/lister/packagist/tests/test_lister.py          |  10 +-
 swh/lister/pattern.py                              |  11 +-
 swh/lister/utils.py                                |  50 ++++++-
 10 files changed, 337 insertions(+), 11 deletions(-)
 create mode 100644 swh/lister/maven/tests/data/sprova4j-0.1.0.invalidurl.pom
 create mode 100644 swh/lister/packagist/tests/data/payrix_payrix-php.json
 create mode 100644 swh/lister/packagist/tests/data/with_invalid_url.json
Changes applied before test
commit 545da61c6b7ea71c33b1aecf0a9071271d559a24
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Fri Nov 4 13:50:25 2022 +0100

    nixguix: Reject Git SSH URLs and pseudo-URLs
    
    For consistency with Maven and Packagist listers

commit fc353ca6ea01a33cc0e96bc55ea9306addec056a
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Fri Nov 4 13:48:14 2022 +0100

    Validate origin URLs before sending to the scheduler

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

Build is green

Patch application report for D8813 (id=31759)

Could not rebase; Attempt merge onto 60707a45dd...

Updating 60707a4..e869942
Fast-forward
 .../maven/tests/data/sprova4j-0.1.0.invalidurl.pom |  30 ++++
 swh/lister/maven/tests/test_lister.py              |  47 +++++++
 swh/lister/nixguix/lister.py                       |   2 +-
 swh/lister/nixguix/tests/data/sources-failure.json |  10 ++
 swh/lister/nixguix/tests/test_lister.py            |  13 +-
 swh/lister/opam/tests/test_lister.py               |  28 +++-
 .../packagist/tests/data/payrix_payrix-php.json    | 151 +++++++++++++++++++++
 .../packagist/tests/data/with_invalid_url.json     |  24 ++++
 swh/lister/packagist/tests/test_lister.py          |  10 +-
 swh/lister/pattern.py                              |  11 +-
 swh/lister/utils.py                                |  50 ++++++-
 11 files changed, 360 insertions(+), 16 deletions(-)
 create mode 100644 swh/lister/maven/tests/data/sprova4j-0.1.0.invalidurl.pom
 create mode 100644 swh/lister/packagist/tests/data/payrix_payrix-php.json
 create mode 100644 swh/lister/packagist/tests/data/with_invalid_url.json
Changes applied before test
commit e8699422d757eb968779a9e44fc5017fb5a6dd97
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Fri Nov 4 13:50:25 2022 +0100

    nixguix: Reject Git SSH URLs and pseudo-URLs
    
    For consistency with Maven and Packagist listers

commit 8ea4200909ad096ca92de20bacb8c9df655ba90f
Author: Valentin Lorentz <vlorentz@softwareheritage.org>
Date:   Fri Nov 4 13:48:14 2022 +0100

    Validate origin URLs before sending to the scheduler

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

This revision is now accepted and ready to land.Nov 4 2022, 4:17 PM