Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[kie-issues#1169] Add license headers to files #5902

Merged
merged 30 commits into from
May 9, 2024

Conversation

baldimir
Copy link
Contributor

@baldimir baldimir commented May 7, 2024

@kie-ci3
Copy link

kie-ci3 commented May 7, 2024

PR job #1 was: UNSTABLE
Possible explanation: This should be test failures

Reproducer

build-chain build full_downstream -f 'https://raw.githubusercontent.com/${AUTHOR:apache}/incubator-kie-kogito-pipelines/${BRANCH:main}/.ci/buildchain-config-pr-cdb.yaml' -o 'bc' -p apache/incubator-kie-drools -u #5902 --skipParallelCheckout

NOTE: To install the build-chain tool, please refer to https://github.com/kiegroup/github-action-build-chain#local-execution

Please look here: https://ci-builds.apache.org/job/KIE/job/drools/job/main/job/pullrequest_jobs/job/drools-pr/job/PR-5902/1/display/redirect

Test results:

  • PASSED: 21919
  • FAILED: 72

Those are the test failures:

org.drools.drlonyaml.cli.tests.ConversionsUsingCliTest.testDrl2Yaml [the converted Yaml matches the expected content)] expected:<"[##LicensedtotheApacheSoftwareFoundation(ASF)underone#ormorecontributorlicenseagreements.SeetheNOTICEfile#distributedwiththisworkforadditionalinformation#regardingcopyrightownership.TheASFlicensesthisfile#toyouundertheApacheLicense,Version2.0(the#"License");youmaynotusethisfileexceptincompliance#withtheLicense.YoumayobtainacopyoftheLicenseat##http://www.apache.org/licenses/LICENSE-2.0##Unlessrequiredbyapplicablelaworagreedtoinwriting,#softwaredistributedundertheLicenseisdistributedonan#"ASIS"BASIS,WITHOUTWARRANTIESORCONDITIONSOFANY#KIND,eitherexpressorimplied.SeetheLicenseforthe#specificlanguagegoverningpermissionsandlimitations#undertheLicense.#]---name:mypkgdialect...> but was:<"[]---name:mypkgdialect...>
org.drools.scenariosimulation.backend.util.ScenarioSimulationXMLPersistenceTest.migrateIfNecessary_1_2_to_1_3 The processing instruction target matching "[xX][mM][lL]" is not allowed.
org.drools.scenariosimulation.backend.util.ScenarioSimulationXMLPersistenceTest.migrateIfNecessary_1_7_to_1_8 The processing instruction target matching "[xX][mM][lL]" is not allowed.
org.drools.scenariosimulation.backend.util.ScenarioSimulationXMLPersistenceTest.migrateIfNecessary_1_0_to_1_1 The processing instruction target matching "[xX][mM][lL]" is not allowed.
org.drools.scenariosimulation.backend.util.ScenarioSimulationXMLPersistenceTest.migrateIfNecessary_1_5_to_1_6 The processing instruction target matching "[xX][mM][lL]" is not allowed.
org.drools.scenariosimulation.backend.util.ScenarioSimulationXMLPersistenceTest.migrateIfNecessary_1_3_to_1_4 The processing instruction target matching "[xX][mM][lL]" is not allowed.
org.drools.scenariosimulation.backend.util.ScenarioSimulationXMLPersistenceTest.unmarshalRULE The processing instruction target matching "[xX][mM][lL]" is not allowed.
org.drools.scenariosimulation.backend.util.ScenarioSimulationXMLPersistenceTest.migrateIfNecessary_1_1_to_1_2 The processing instruction target matching "[xX][mM][lL]" is not allowed.
org.drools.scenariosimulation.backend.util.ScenarioSimulationXMLPersistenceTest.migrateIfNecessary_1_6_to_1_7 The processing instruction target matching "[xX][mM][lL]" is not allowed.
org.drools.scenariosimulation.backend.util.ScenarioSimulationXMLPersistenceTest.migrateIfNecessary_1_4_to_1_5 The processing instruction target matching "[xX][mM][lL]" is not allowed.
org.drools.scenariosimulation.backend.util.ScenarioSimulationXMLPersistenceTest.unmarshalDMN The processing instruction target matching "[xX][mM][lL]" is not allowed.
org.drools.scenariosimulation.integrationtest.ScenarioTest.initializationError Issue on parsing file: /home/jenkins/jenkins-agent/workspace/llrequest_jobs_drools-pr_PR-5902/kogito-pipelines/bc/apache_incubator-kie-drools/drools-scenario-simulation/drools-scenario-simulation-integrationtest/target/test-classes/importedDMN/TrafficViolationTest.scesim
org.drools.mvel.compiler.lang.ErrorsParserTest.testExpanderErrorsAfterExpansion expected:<[6]> but was:<[8]>
org.drools.mvel.integrationtests.DslTest.testMultiLineTemplates[KieBase type=CLOUD_IDENTITY] expected:<"[when Car(color=="Red") then doSomething();]"> but was:<"[Add 2 percent
to all Red cars]">
org.drools.mvel.integrationtests.DslTest.testMultiLineTemplates[KieBase type=CLOUD_IDENTITY_MODEL_PATTERN] expected:<"[when Car(color=="Red") then doSomething();]"> but was:<"[Add 2 percent
to all Red cars]">
it.pkg.ScenarioJunitActivatorTest.initializationError Issue on parsing file: /home/jenkins/jenkins-agent/workspace/llrequest_jobs_drools-pr_PR-5902/kogito-pipelines/bc/apache_incubator-kie-drools/kie-archetypes/kie-drools-dmn-archetype/target/test-classes/projects/integrationtestDefaults/project/basic/target/test-classes/TrafficViolationTest.scesim
org.kie.dmn.backend.marshalling.v1_1.UnmarshalMarshalTest.qNameSerialization [XML are NOT similar: Expected child nodelist length '2' but was '1' - comparing at / to at /]
Expecting value to be false but was true
org.kie.dmn.backend.marshalling.v1_1.UnmarshalMarshalTest.test0001 [XML are NOT similar: Expected child nodelist length '2' but was '1' - comparing at / to at /]
Expecting value to be false but was true
org.kie.dmn.backend.marshalling.v1_1.UnmarshalMarshalTest.test0002 [XML are NOT similar: Expected child nodelist length '2' but was '1' - comparing at / to at /]
Expecting value to be false but was true
org.kie.dmn.backend.marshalling.v1_1.UnmarshalMarshalTest.test0003 [XML are NOT similar: Expected child nodelist length '2' but was '1' - comparing at / to at /]
Expecting value to be false but was true
org.kie.dmn.backend.marshalling.v1_1.UnmarshalMarshalTest.test0004 [XML are NOT similar: Expected child nodelist length '2' but was '1' - comparing at / to at /]
Expecting value to be false but was true
org.kie.dmn.backend.marshalling.v1_1.UnmarshalMarshalTest.test0005_decision_list [XML are NOT similar: Expected child nodelist length '2' but was '1' - comparing at / to at /]
Expecting value to be false but was true
org.kie.dmn.backend.marshalling.v1_1.UnmarshalMarshalTest.helloWorldSemanticNamespaceWithExtensionsOtherNsLocation [XML are NOT similar: Expected child nodelist length '2' but was '1' - comparing at / to at /]
Expecting value to be false but was true
org.kie.dmn.backend.marshalling.v1_1.UnmarshalMarshalTest.ch11 [XML are NOT similar: Expected child nodelist length '2' but was '1' - comparing at / to at /]
Expecting value to be false but was true
org.kie.dmn.backend.marshalling.v1_1.UnmarshalMarshalTest.dish [XML are NOT similar: Expected child nodelist length '2' but was '1' - comparing at / to at /]
Expecting value to be false but was true
org.kie.dmn.backend.marshalling.v1_1.UnmarshalMarshalTest.test0004_ns_other_location [XML are NOT similar: Expected child nodelist length '2' but was '1' - comparing at / to at /]
Expecting value to be false but was true
org.kie.dmn.backend.marshalling.v1_1.UnmarshalMarshalTest.dummyRelation [XML are NOT similar: Expected child nodelist length '2' but was '1' - comparing at / to at /]
Expecting value to be false but was true
org.kie.dmn.backend.marshalling.v1_1.UnmarshalMarshalTest.helloWorldSemanticNamespaceWithExtensions [XML are NOT similar: Expected child nodelist length '2' but was '1' - comparing at / to at /]
Expecting value to be false but was true
org.kie.dmn.backend.marshalling.v1_1.UnmarshalMarshalTest.semanticNamespace [XML are NOT similar: Expected child nodelist length '2' but was '1' - comparing at / to at /]
Expecting value to be false but was true
org.kie.dmn.backend.marshalling.v1_1.UnmarshalMarshalTest.hardcoded_java_max_call [XML are NOT similar: Expected child nodelist length '2' but was '1' - comparing at / to at /]
Expecting value to be false but was true
org.kie.dmn.backend.marshalling.v1_1.UnmarshalMarshalTest.helloWorldSemanticNamespace [XML are NOT similar: Expected child nodelist length '2' but was '1' - comparing at / to at /]
Expecting value to be false but was true
org.kie.dmn.backend.marshalling.v1_2.UnmarshalMarshalTest.font_size_shared_style [XML are NOT similar: Expected child nodelist length '2' but was '1' - comparing at / to at /]
Expecting value to be false but was true
org.kie.dmn.backend.marshalling.v1_2.UnmarshalMarshalTest.v12_dmndiDiagramElementExtensionWithContent [XML are NOT similar: Expected child nodelist length '2' but was '1' - comparing at / to at /]
Expecting value to be false but was true
org.kie.dmn.backend.marshalling.v1_2.UnmarshalMarshalTest.dmnlabel_text [XML are NOT similar: Expected child nodelist length '2' but was '1' - comparing at / to at /]
Expecting value to be false but was true
org.kie.dmn.backend.marshalling.v1_2.UnmarshalMarshalTest.v12_DecisionService20180911v12 [XML are NOT similar: Expected child nodelist length '2' but was '1' - comparing at / to at /]
Expecting value to be false but was true
org.kie.dmn.backend.marshalling.v1_2.UnmarshalMarshalTest.v12Simple [XML are NOT similar: Expected child nodelist length '2' but was '1' - comparing at / to at /]
Expecting value to be false but was true
org.kie.dmn.backend.marshalling.v1_2.UnmarshalMarshalTest.v12_DiamondWithColors [XML are NOT similar: Expected child nodelist length '2' but was '1' - comparing at / to at /]
Expecting value to be false but was true
org.kie.dmn.backend.marshalling.v1_2.UnmarshalMarshalTest.v12_dmndiDiagramElementExtension [XML are NOT similar: Expected child nodelist length '2' but was '1' - comparing at / to at /]
Expecting value to be false but was true
org.kie.dmn.backend.marshalling.v1_2.UnmarshalMarshalTest.hardcoded_java_max_call [XML are NOT similar: Expected child nodelist length '2' but was '1' - comparing at / to at /]
Expecting value to be false but was true
org.kie.dmn.backend.marshalling.v1_2.UnmarshalMarshalTest.v12Ch11example [XML are NOT similar: Expected child nodelist length '2' but was '1' - comparing at / to at /]
Expecting value to be false but was true
org.kie.dmn.backend.marshalling.v1_2.UnmarshalMarshalTest.v12DecisionList [XML are NOT similar: Expected child nodelist length '2' but was '1' - comparing at / to at /]
Expecting value to be false but was true
org.kie.dmn.backend.marshalling.v1_2.UnmarshalMarshalTest.v12_ImportName [XML are NOT similar: Expected child nodelist length '2' but was '1' - comparing at / to at /]
Expecting value to be false but was true
org.kie.dmn.backend.marshalling.v1_3.UnmarshalMarshalTest.v13RecommendedLoanProduct [XML are NOT similar: Expected child nodelist length '2' but was '1' - comparing at / to at /]
Expecting value to be false but was true
org.kie.dmn.backend.marshalling.v1_3.UnmarshalMarshalTest.v13Ch11exampleAsFromOMG [XML are NOT similar: Expected child nodelist length '2' but was '1' - comparing at / to at /]
Expecting value to be false but was true
org.kie.dmn.backend.marshalling.v1_3.UnmarshalMarshalTest.v13FunctionItem [XML are NOT similar: Expected child nodelist length '2' but was '1' - comparing at / to at /]
Expecting value to be false but was true
org.kie.dmn.backend.marshalling.v1_3.UnmarshalMarshalTest.v13Financial [XML are NOT similar: Expected child nodelist length '2' but was '1' - comparing at / to at /]
Expecting value to be false but was true
org.kie.dmn.backend.marshalling.v1_3.UnmarshalMarshalTest.v13Simple [XML are NOT similar: Expected child nodelist length '2' but was '1' - comparing at / to at /]
Expecting value to be false but was true
org.kie.dmn.backend.marshalling.v1_3.UnmarshalMarshalTest.v13DecisionList [XML are NOT similar: Expected child nodelist length '2' but was '1' - comparing at / to at /]
Expecting value to be false but was true
org.kie.dmn.backend.marshalling.v1_3.UnmarshalMarshalTest.v13Group [XML are NOT similar: Expected child nodelist length '2' but was '1' - comparing at / to at /]
Expecting value to be false but was true
org.kie.dmn.backend.marshalling.v1_3.UnmarshalMarshalTest.v13LoanInfo [XML are NOT similar: Expected child nodelist length '2' but was '1' - comparing at / to at /]
Expecting value to be false but was true
org.kie.dmn.backend.marshalling.v1_3.UnmarshalMarshalTest.v13Dmnedge [XML are NOT similar: Expected child nodelist length '2' but was '1' - comparing at / to at /]
Expecting value to be false but was true
org.kie.dmn.backend.marshalling.v1_4.UnmarshalMarshalTest.v14Simple [XML are NOT similar: Expected child nodelist length '2' but was '1' - comparing at / to at /]
Expecting value to be false but was true
org.kie.dmn.backend.marshalling.v1_4.UnmarshalMarshalTest.v14Quantified [XML are NOT similar: Expected child nodelist length '2' but was '1' - comparing at / to at /]
Expecting value to be false but was true
org.kie.dmn.backend.marshalling.v1_4.UnmarshalMarshalTest.v14For [XML are NOT similar: Expected child nodelist length '2' but was '1' - comparing at / to at /]
Expecting value to be false but was true
org.kie.dmn.backend.marshalling.v1_4.UnmarshalMarshalTest.v14LoanInfo [XML are NOT similar: Expected child nodelist length '2' but was '1' - comparing at / to at /]
Expecting value to be false but was true
org.kie.dmn.backend.marshalling.v1_4.UnmarshalMarshalTest.v14Conditional [XML are NOT similar: Expected child nodelist length '2' but was '1' - comparing at / to at /]
Expecting value to be false but was true
org.kie.dmn.backend.marshalling.v1_4.UnmarshalMarshalTest.v14Ch11exampleAsFromOMG [XML are NOT similar: Expected child nodelist length '2' but was '1' - comparing at / to at /]
Expecting value to be false but was true
org.kie.dmn.backend.marshalling.v1_4.UnmarshalMarshalTest.v14Financial [XML are NOT similar: Expected child nodelist length '2' but was '1' - comparing at / to at /]
Expecting value to be false but was true
org.kie.dmn.backend.marshalling.v1_4.UnmarshalMarshalTest.v14RecommendedLoanProduct [XML are NOT similar: Expected child nodelist length '2' but was '1' - comparing at / to at /]
Expecting value to be false but was true
org.kie.dmn.backend.marshalling.v1_4.UnmarshalMarshalTest.v14Filter [XML are NOT similar: Expected child nodelist length '2' but was '1' - comparing at / to at /]
Expecting value to be false but was true
org.kie.dmn.backend.marshalling.v1_5.UnmarshalMarshalTest.testv15_loan_info The schema is invalid
org.kie.dmn.backend.marshalling.v1_5.UnmarshalMarshalTest.testv15_ch11example_asFromOMG The schema is invalid
org.kie.dmn.backend.marshalling.v1_5.UnmarshalMarshalTest.testv15_recommended_loan_product The schema is invalid
org.kie.dmn.backend.marshalling.v1_5.UnmarshalMarshalTest.testv15_quantified The schema is invalid
org.kie.dmn.backend.marshalling.v1_5.UnmarshalMarshalTest.testv15_filter The schema is invalid
org.kie.dmn.backend.marshalling.v1_5.UnmarshalMarshalTest.testv15_financial The schema is invalid
org.kie.dmn.backend.marshalling.v1_5.UnmarshalMarshalTest.testv15_for The schema is invalid
org.kie.dmn.backend.marshalling.v1_5.UnmarshalMarshalTest.testv15_simple The schema is invalid
org.kie.dmn.backend.marshalling.v1_5.UnmarshalMarshalTest.testv15_conditional The schema is invalid
org.kie.dmn.trisotech.backend.marshalling.v1_3.xstream.UnmarshalMarshalTest.v13Conditional [XML are NOT similar: Expected child nodelist length '2' but was '1' - comparing at / to at /]
Expecting value to be false but was true
org.kie.dmn.trisotech.backend.marshalling.v1_3.xstream.UnmarshalMarshalTest.v13Iterator [XML are NOT similar: Expected child nodelist length '2' but was '1' - comparing at / to at /]
Expecting value to be false but was true
org.kie.dmn.trisotech.backend.marshalling.v1_3.xstream.UnmarshalMarshalTest.v13Filter [XML are NOT similar: Expected child nodelist length '2' but was '1' - comparing at / to at /]
Expecting value to be false but was true

Copy link
Contributor

@LightGuard LightGuard left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. However, I did notice while I was doing these changes on runtimes, I think there's a bug in our XML parsing :) DMN and BPMN didn't like the comments. Things blew up. Oddly enough, it didn't seem to affect PMML though.

@LightGuard
Copy link
Contributor

Not exactly the same error I was receiving, but it does look like it is related to the XML parsing.

@@ -5,7 +5,7 @@
<xsd:annotation>
<xsd:documentation>
Include the DMN Diagram Interchange (DI) schema
</xsd:documentation>
</xsd:documentation>¡
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a problem

@LightGuard
Copy link
Contributor

The scesim files look like they're going to be a problem too. I believe the XML declaration is supposed to be the the first thing in the file. Having a comment first seemed problematic while I was changing things in runtimes as well.

@baldimir baldimir marked this pull request as ready for review May 9, 2024 10:07
@baldimir
Copy link
Contributor Author

baldimir commented May 9, 2024

I pushed some fixes. Moving this to Ready for review as the tests pass for me, when I run it locally.

@porcelli porcelli merged commit 200c469 into apache:main May 9, 2024
12 of 21 checks passed
rgdoliveira added a commit to rgdoliveira/drools that referenced this pull request Jun 10, 2024
* Add missing Apache copyright headers.

* Add missing Apache copyright headers.

* Add missing Apache copyright headers.

* Add missing Apache copyright headers.

* Add missing Apache copyright headers.

* Add missing Apache copyright headers.

* Add missing Apache copyright headers.

* Add missing Apache copyright headers.

* Add missing Apache copyright headers.

* Add missing Apache copyright headers.

* Add missing Apache copyright headers.

* Add missing Apache copyright headers.

* Add missing Apache copyright headers.

* Add missing Apache copyright headers.

* Add missing Apache copyright headers.

* Add missing Apache copyright headers.

* Add missing Apache copyright headers.

* Add missing Apache copyright headers.

* Add missing Apache copyright headers.

* Add missing Apache copyright headers.

* Add missing Apache copyright headers.

* Fix test.

* Fix tests.

* Fix tests.

* Fix tests.

* Fix tests.

* Fix tests.

* Fix tests.

* Fix tests.

* Fix tests.
# Conflicts:
#	.asf.yaml
#	.ci/buildchain-config-pr-cdb.yaml
#	.ci/jenkins/Jenkinsfile
#	.ci/jenkins/Jenkinsfile.weekly.deploy
#	.ci/jenkins/project/Jenkinsfile.weekly
@baldimir baldimir deleted the update-copyright branch October 11, 2024 08:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

incubator-kie-drools files missing license header
6 participants