-
Notifications
You must be signed in to change notification settings - Fork 715
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
java.net.SocketException: Broken pipe (Write failed) when on remote-linux/openshift #1283
Comments
I assume your running your tests via a FitNesse (wiki) server, but starting them from a browser (so not from the command line or via jUnit runner). Is this correct? I get a similar error in my console on my Mac when running the wiki locally and deep linking directly to a test page (i.e. open a url with Do the tests run ok in your situation, or are they actually stopping because of this error? I believe the cause of the error is that the browser is doing an extra request to the url, but it doesn't wait to receive the full response but aborts its request. This extra request is done in parallel to the original request. The original request (which is shown in the browser) runs as normal. |
Hi, the tests do NOT run fine, they will hang indefinetly, but in the server-log on our openshift-server I find the exception i mentioned in my first post. In the long run we plan to start the tests over jenkins-pipelines by using the fitnesse-jenkins plugin. |
accidently closed this issue, problems remain like described |
Thanks for the additional information. That is indeed another problem then the one I encounter on my Mac, and much worse. With regards to running your tests on Jenkins: may I suggest you look at running your tests via the jUnit runner? This removes the need for an extra plugin on the build server, always works with the latest version of FitNesse, also makes it easy to debug your tests from an IDE and allows you to run your tests in parallel (if your fixtures, SUT/test setup support it). It will give you results in surefire XML format (which Jenkins supports out-of-the-box) and HTML reports (which, if I recall correctly, could be published using a generic HTML publishing plugin). I believe the Jenkins FitNesse plugin can be used, but haven't done so myself, but I have seen some problems/questions on stackoverflow which remained unanswered. |
Hi, Jenkins-FitNesse-Plugin
Calling a single test from plugin works fine, as long as the test passes. If the test fails: same error and no fitnesse-result.xml being written which sadly prevents analyzing the failure. |
@fhoeben: To answer Your last comment: |
Seems to be related with #1187 @stefanfoxfiducia what browser(s) did you try? Earlier, this seemed to occur mostly in Firefox but not in Chrome. @reators I think if you're already using hsac-fitnesse-fixtures, using the hsac junit runner might prove a valuable alternative to the jenkins plugin |
@stefanfoxfiducia running with the jUnit runner does not have to mean you expose your testing staff to jUnit. You can just write one generic jUnit Java test (which runs your specific suite, or is configurable via property from Jenkins) and have that executed by Jenkins (via Maven, Gradle or Ant, or...). The jUnit test just acts as a launcher for a local FitNesse Java proces, and saves results in HTML and surefire XML format. |
@fhoeben , @tcnh: Thanks for your suggestions. The solution in this case is to add in OpenShift for FitNesse-POD these lines to Actually only the three lines after - apiVersion: v1
kind: Route
metadata:
labels:
app: ${{APP}}
name: ${{APP}}
annotations:
haproxy.router.openshift.io/timeout: 1h
team: ${{NAMESPACE}} |
Hi there,
we're using Fitnesse v20200404 on an openshift-system under jre-8u251-linux-x64.rpm.
More, in our fixture-code we've implemented selenium calls (org.openqa.selenium) für automatically testing our slim-test-suites (all with script-tables).
When runnning tests under local windows10-Systems everything works fine.
Running tests in openshift we almost everytime get the exceptions which I've put to the end of this issue.
We've raised the memory für fitnesse and slim, played around with timeouts but nothing did work.
Maybe you've got some tips for us?
Thanx in advance,
Stefan
look at the log: error_broken_pipe.txt
The text was updated successfully, but these errors were encountered: