oss-review-toolkit / ort

A suite of tools to automate software compliance checks.
https://oss-review-toolkit.org
Apache License 2.0
1.59k stars 309 forks source link

Test cases of ScanCodeScannerFunTest failed #5002

Open ldang0 opened 2 years ago

ldang0 commented 2 years ago
$ ./gradlew :scanner:funTest --tests org.ossreviewtoolkit.scanner.scanners.scancode.ScanCodeScannerFunTest

> Configure project :
Building ORT version 64bfa05d8d.

> Task :scanner:funTest

org.ossreviewtoolkit.scanner.scanners.scancode.ScanCodeScannerFunTest > Scanning a single file succeeds STARTED

org.ossreviewtoolkit.scanner.scanners.scancode.ScanCodeScannerFunTest > Scanning a single file succeeds PASSED

org.ossreviewtoolkit.scanner.scanners.scancode.ScanCodeScannerFunTest > Scanning a directory succeeds STARTED

org.ossreviewtoolkit.scanner.scanners.scancode.ScanCodeScannerFunTest > Scanning a directory succeeds PASSED

org.ossreviewtoolkit.scanner.scanners.scancode.ScanCodeScannerFunTest > return the full license text for the HERE proprietary license STARTED

org.ossreviewtoolkit.scanner.scanners.scancode.ScanCodeScannerFunTest > return the full license text for the HERE proprietary license FAILED
    java.lang.AssertionError: Expecting actual not to be null
        at org.ossreviewtoolkit.scanner.scanners.scancode.ScanCodeScannerFunTest$1.invokeSuspend(ScanCodeScannerFunTest.kt:43)
        at org.ossreviewtoolkit.scanner.scanners.scancode.ScanCodeScannerFunTest$1.invoke(ScanCodeScannerFunTest.kt)
        at org.ossreviewtoolkit.scanner.scanners.scancode.ScanCodeScannerFunTest$1.invoke(ScanCodeScannerFunTest.kt)

        Caused by:
        java.lang.AssertionError: Expecting actual not to be null
            at org.ossreviewtoolkit.scanner.scanners.scancode.ScanCodeScannerFunTest$1.invokeSuspend(ScanCodeScannerFunTest.kt:43)
            ... 2 more

org.ossreviewtoolkit.scanner.scanners.scancode.ScanCodeScannerFunTest > return the full license text for a known SPDX LicenseRef STARTED

org.ossreviewtoolkit.scanner.scanners.scancode.ScanCodeScannerFunTest > return the full license text for a known SPDX LicenseRef FAILED
    java.lang.AssertionError: Expecting actual not to be null
        at org.ossreviewtoolkit.scanner.scanners.scancode.ScanCodeScannerFunTest$2.invokeSuspend(ScanCodeScannerFunTest.kt:50)
        at org.ossreviewtoolkit.scanner.scanners.scancode.ScanCodeScannerFunTest$2.invoke(ScanCodeScannerFunTest.kt)
        at org.ossreviewtoolkit.scanner.scanners.scancode.ScanCodeScannerFunTest$2.invoke(ScanCodeScannerFunTest.kt)

        Caused by:
        java.lang.AssertionError: Expecting actual not to be null
            at org.ossreviewtoolkit.scanner.scanners.scancode.ScanCodeScannerFunTest$2.invokeSuspend(ScanCodeScannerFunTest.kt:50)
            ... 2 more

org.ossreviewtoolkit.scanner.scanners.scancode.ScanCodeScannerFunTest > return the ort license text for a license ID known by ort and also in custom dir STARTED

org.ossreviewtoolkit.scanner.scanners.scancode.ScanCodeScannerFunTest > return the ort license text for a license ID known by ort and also in custom dir FAILED
    java.lang.AssertionError: Expected null but actual was "x
    y
    "
        at org.ossreviewtoolkit.scanner.scanners.scancode.ScanCodeScannerFunTest$3.invokeSuspend(ScanCodeScannerFunTest.kt:60)
        at org.ossreviewtoolkit.scanner.scanners.scancode.ScanCodeScannerFunTest$3.invoke(ScanCodeScannerFunTest.kt)
        at org.ossreviewtoolkit.scanner.scanners.scancode.ScanCodeScannerFunTest$3.invoke(ScanCodeScannerFunTest.kt)

        Caused by:
        java.lang.AssertionError: Expected null but actual was "x
        y
        "
            at org.ossreviewtoolkit.scanner.scanners.scancode.ScanCodeScannerFunTest$3.invokeSuspend(ScanCodeScannerFunTest.kt:60)
            ... 2 more

5 tests completed, 3 failed
sschuberth commented 2 years ago

Can you set a breakpoint in ScanCode's bootstrap() function and debug the test from the IDE to verify ScanCode has actually been bootstrapped correctly?

ldang0 commented 2 years ago

Can you set a breakpoint in ScanCode's bootstrap() function and debug the test from the IDE to verify ScanCode has actually been bootstrapped correctly?

Did that and ScanCode has been bootstrapped successfully.