You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Jacques Le Roux (Jira)" <ji...@apache.org> on 2022/04/09 07:20:00 UTC

[jira] [Comment Edited] (OFBIZ-12595) Test run was unsuccessful because of failing solr tests

    [ https://issues.apache.org/jira/browse/OFBIZ-12595?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17519916#comment-17519916 ] 

Jacques Le Roux edited comment on OFBIZ-12595 at 4/9/22 7:19 AM:
-----------------------------------------------------------------

Hi Tom,

I can't easily show you a proof because of INFRA-23076. Nevertheless here is a copy of my screen (Win7and JDK 11, BuildBot runs on last Ubuntu and JDK 8)

{noformat}
2022-04-09 09:09:40,676 |main                 |ServiceDispatcher             |I| Shutting down the service engine...
2022-04-09 09:09:40,676 |main                 |ContainerLoader               |I| Stopped container service-container
2022-04-09 09:09:40,676 |main                 |ContainerLoader               |I| Stopping container component-container
2022-04-09 09:09:40,676 |main                 |ContainerLoader               |I| Stopped container component-container
> Task :createTestReports
Trying to override old definition of datatype junitreport
> Task :testIntegration
BUILD SUCCESSFUL in 9m 37s
27 actionable tasks: 23 executed, 4 up-to-date
C:\projectsASF\Git\ofbiz-framework>
{noformat}
 
Please check that you have this block in ControlFilter:

{code:java}
if (!GenericValue.getStackTraceAsString().contains("ControlFilterTests")
        && !(System.getProperty("java.class.path").contains("--test component=solr") // Allows Solr tests
                || System.getProperty("java.class.path").contains("ofbiz --test_ManifestJar.jar")) // Allows Solr tests in testIntegration
        && SecurityUtil.containsFreemarkerInterpolation(req, resp, uri)) {
    return;
}
{code}
It was committed for OFBIZ-12594 with https://github.com/apache/ofbiz-framework/commit/b5370cbf51

HTH



was (Author: jacques.le.roux):
Hi Tom,

I can't easily show you a proof because of INFRA-23076. Nevertheless here is a copy of my screen (Win7and JDK 11, BuildBot run on last Ubuntu and JDK 8)

{noformat}
2022-04-09 09:09:40,676 |main                 |ServiceDispatcher             |I| Shutting down the service engine...
2022-04-09 09:09:40,676 |main                 |ContainerLoader               |I| Stopped container service-container
2022-04-09 09:09:40,676 |main                 |ContainerLoader               |I| Stopping container component-container
2022-04-09 09:09:40,676 |main                 |ContainerLoader               |I| Stopped container component-container
> Task :createTestReports
Trying to override old definition of datatype junitreport
> Task :testIntegration
BUILD SUCCESSFUL in 9m 37s
27 actionable tasks: 23 executed, 4 up-to-date
C:\projectsASF\Git\ofbiz-framework>
{noformat}
 
Please check that you have this block in ControlFilter:

{code:java}
if (!GenericValue.getStackTraceAsString().contains("ControlFilterTests")
        && !(System.getProperty("java.class.path").contains("--test component=solr") // Allows Solr tests
                || System.getProperty("java.class.path").contains("ofbiz --test_ManifestJar.jar")) // Allows Solr tests in testIntegration
        && SecurityUtil.containsFreemarkerInterpolation(req, resp, uri)) {
    return;
}
{code}
It was committed for OFBIZ-12594 with https://github.com/apache/ofbiz-framework/commit/b5370cbf51

HTH


> Test run was unsuccessful because of failing solr tests
> -------------------------------------------------------
>
>                 Key: OFBIZ-12595
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-12595
>             Project: OFBiz
>          Issue Type: Bug
>          Components: framework, solr
>    Affects Versions: Upcoming Branch
>            Reporter: Tom Pietsch
>            Priority: Critical
>              Labels: failure, solr, tests
>         Attachments: Screenshot 2022-04-08 at 17.12.20.png
>
>
> Prepare:
> {code:java}
> git clone https://github.com/apache/ofbiz-framework.git solr-bug
> cd solr-bug
> # optional cleanup local gradle/maven files
> # rm -fr ~/.gradle && rm -fr ~/.m2
> ./gradlew pullAllPluginsSource{code}
> Running the tests with
> {code:java}
> ./gradlew cleanAll loadAll "ofbiz --test"
> {code}
> on {{trunk}} causes an unsuccessful test run.
> The failures occurs on and after commit 2aeb282cdc7. 
> Last successful run was on: 5d4dcd2ed49
> I also tested various commits of the ofbiz-plugin repos. however, this does not seem to have introduced the problems. So use the newest current commit 4cce082e931 which pullAllPluginsSource pulls.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)