Sebastian Schuberth
05/21/2024, 12:33 PMSebastian Schuberth
05/21/2024, 2:36 PMSebastian Schuberth
05/22/2024, 7:32 AMilya.chernikov
05/22/2024, 9:32 AMortResult
object that is passed to the script constructor here is exactly the same object that is created in the beginning of the test.
Why do you think it is a wrong one?
And also there are only a few failing tests. so some fundamental parameter passing bugs would probably break most of them.Sebastian Schuberth
05/22/2024, 9:48 AMincompatibleOrtResult
to get passed, see here, but instead that tests seems to use the ortResult
data from here (same file, earlier test case). Could there be some weird conflict between my global ortResult
variable (from org.ossreviewtoolkit.evaluator.ortResult
) and my DSL builder for the data class that is also called ortResult
and defined here?ilya.chernikov
05/22/2024, 9:59 AMincompatibleOrtResult
is marked.
First frame at the test body, and second - before constructing the script classSebastian Schuberth
05/22/2024, 10:15 AM12:13:49.202 [pool-1-thread-1] INFO org.ossreviewtoolkit.evaluator.Rule - Evaluating rule 'OSADL_MATRIX_COMPATIBILITY' for dependency 'Maven:org.ossreviewtoolkit:package-excluded:1.0' (project=Maven:org.ossreviewtoolkit:project-excluded:1.0, scope=compile, level=0).
12:13:49.203 [pool-1-thread-1] INFO org.ossreviewtoolkit.evaluator.Rule - !(isExcluded()) == false
12:13:49.203 [pool-1-thread-1] INFO org.ossreviewtoolkit.evaluator.Rule - Rule skipped.
where Maven:org.ossreviewtoolkit:project-excluded:1.0
is a project that's not even present in incompatibleOrtResult
, but only in the ortResult
global test data. Reverting to Kotlin 1.9.24 makes the test pass again.Sebastian Schuberth
05/22/2024, 10:16 AMSebastian Schuberth
05/22/2024, 11:00 AMilya.chernikov
05/22/2024, 12:15 PMorg.ossreviewtoolkit.evaluator.ortResult
imported by default, and the access is resolved to it instead of the constructor parameter.
Actually the usage of the constructor parameters is obsolete, we should probably issue a warning there. The recommended approach is to use providedProperties
. The patch below fixes it properly (and it should work for K1 as well).
But thank you for the issue - we should definitely address it in some way.ilya.chernikov
05/22/2024, 12:15 PMSebastian Schuberth
05/22/2024, 12:48 PMSebastian Schuberth
05/22/2024, 3:29 PMprovidedProperties
from script compilation and script evaluation do not add up, but replace each other. Is this expected?Sebastian Schuberth
05/22/2024, 3:30 PMprovidedProperties
for evaluation twice.Sebastian Schuberth
05/23/2024, 3:56 PMconstructorArgs
to providedProperties
, IntelliJ does not seem to be able to resolve them in scripts anymore... e.g. my ortResult
is now always marked in red, although the scripts runs fine:ilya.chernikov
05/23/2024, 4:14 PMSebastian Schuberth
05/23/2024, 4:15 PMSebastian Schuberth
05/23/2024, 4:18 PMilya.chernikov
05/24/2024, 7:36 AMSebastian Schuberth
05/24/2024, 8:05 AMilya.chernikov
05/24/2024, 8:42 AM