-
Notifications
You must be signed in to change notification settings - Fork 83
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
FIX CI - Issue #1253 #1256
FIX CI - Issue #1253 #1256
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't have suggestions specific to the project, but I thought I would write two cents about commit messages.
Make sure that a commit message explains what exactly it does. The first two commit messages are 'PatchFilterTest connects to Github with Jenkins field'
. There are two problems with this:
- I, personally, do not immediately understand what it is supposed to do.
1. Proposed solution: A better commit message, in my opinion, would be 'use Jenkins credentials to connect to GitHub' - The commit message is same which means they both do the same thing.
1. It is usually nice to split commits, but not when they have the same purpose. One commit should do one task. It is arbitrary, however, for this case, it seems that you are doing same things for multiple invocations consolidating them into one single task. Such independent commits make reversal easy.
...ator-realtime/src/test/java/fr/inria/spirals/repairnator/realtime/utils/PatchFilterTest.java
Show resolved
Hide resolved
Great, CI seems to fail because of #1254 (comment) |
CI still failing. @javierron does Jenkins already know about credential GITHUB_OAUTH? |
@monperrus @Sofi1410 Credentials used in the test class seem to be fine. The problem is that the calls from inside the tested class don't use the GitHub client library and are probably being rate-limited (unclear from logs). We did it that way to be able "to change target URLs to a mirror in case rate limits are exceeded". In case rate-limits are actually the issue, we would need to either use mirrors, or the GitHub client w/ token. |
… PatchFilter class on Jenkins
…rnator into patch-filter-test
…Github. Tests and other usages are refactor aswell
Thanks for the analysis.
So we have to make readFromURL configurable (with or without token), and use the configurable
version from PatchFilterTest.
WDYT?
|
The CI keeps falling with this error: Apparently, this is a common bug related to dependencies. I will try this solution :https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=948286 |
Yes, that's known as the "dependency hell", a topic we will research about in project Chains.
|
…ryWithSuccessfulBuildIsInteresting()
… with. eclipse/repairnator is not an option
…ror: org/codehaus/plexus/util/xml/Xpp3DomBuilder
…spirals/repairnator/pipeline/TestPipeline.java & TestPipelineFaultLocalization.java & TestPipelinebTravisMode.java to avoid RunTImeProblems in the CI, all test passed in execution 15 PR-1256
At the same time I'm not entirely sure if it is related to the error I comment above, but, on local, the test fr.inria.spirals.repairnator.process.inspectors.TestProjectInspector4Maven.testPatchFailingProject reproduces the same error as CI only if I don't provide the M2_HOME var, but this parameter is present o the Jenkins File so I still don't understand completely what is going on. |
I did my experiment here. Looking back at it, I did not do anything because the problem did not persist.
Successfully reaching this URL is flaky. Sometimes, it is fetched successfully, sometimes the CI just fails. I would recommend you to run you CI job again and it should pass. |
I'm looking at the execution: https://ci.eclipse.org/repairnator/job/repairnator-ci/job/PR-1263/2/testReport/
I don't understand how reaching the URL could be flaky for this, could you extend a bit on this? |
Now, when I look back at the report, it seems that the test pipeline timed out and it never really executed the Sorald tests. I was trying to minimise the tests run in the build and accidentally prevented execution of the Sorald tests. I cannot test it right now because I am away from keyboard. However, the errors which you are posting it is because of failure to fetch the jar at runtime.
It is not flaky for this. It is flaky in general. Sometimes the CI is just not able to reach the URL due to network issues. It happens in Sorald's |
…ernet agent on the jenkins file
Related to last commit: https://bugs.eclipse.org/bugs/show_bug.cgi?id=575400 |
Change GitHub.connectAnonymously() in PatchFilterTest.java to connect with Github using Jenkins environment variables instead.