Coder Social home page Coder Social logo

eclipse / repairnator Goto Github PK

View Code? Open in Web Editor NEW
381.0 32.0 83.0 60.07 MB

Software development bots for Github. Join the bot revolution! :star2::robot::star2::revolving_hearts:

License: MIT License

Java 88.41% Shell 2.38% JavaScript 5.23% HTML 1.86% Python 0.72% Dockerfile 0.28% Sass 1.03% SCSS 0.09%
java program-repair bot ci research open-science kth inria repair hacktoberfest

repairnator's Introduction

Repairnator: an open-source platform for software bots on Github

Repairnator is an open-source project for software bots on Github, in particular for automated program repair: build failure repair, static warning repair (SoraldBot), etc. The project is hosted at the Eclipse open-source foundation.

Eclipse/repairnator is a welcoming community :-) You're welcome to contribute, we have a number of open issues on which new contributors can jump in. Say hello!

Repairnator is done by a a nice team of welcoming engineers and researchers.

youtube video about Repairnator

Documentation

The entry point to the documentation is https://github.com/eclipse/repairnator/blob/master/doc/README.md. The post "Repairnator patches programs automatically" gives a high-level overview of Repairnator.

Media coverage

See https://github.com/eclipse/repairnator/blob/master/doc/media.md.

Releases

License

The content of this repository is licensed under the MIT and the EPL licenses.

repairnator's People

Contributors

andre15silva avatar bloriot97 avatar btellstrom avatar cokefh avatar dependabot[bot] avatar dginelli avatar fermadeiral avatar fredloiret avatar gluckzhang avatar gustavopinto avatar henry-lp avatar javierron avatar khaes-kth avatar martinezmatias avatar monperrus avatar poojachandak avatar shrin18 avatar sofiabobadilla avatar sophiehye avatar spaetow avatar surli avatar vianneypayelle avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

repairnator's Issues

bug: RepairNator is crashing when project have a large number of tests (>800K)

When building google/guava:

Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded
	at java.text.DecimalFormat.parse(DecimalFormat.java:2096)
	at java.text.NumberFormat.parse(NumberFormat.java:383)
	at org.apache.maven.plugins.surefire.report.TestSuiteXmlParser.startElement(TestSuiteXmlParser.java:170)
	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:509)
	at com.sun.org.apache.xerces.internal.parsers.AbstractXMLDocumentParser.emptyElement(AbstractXMLDocumentParser.java:182)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanStartElement(XMLDocumentFragmentScannerImpl.java:1339)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:2784)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:602)
	at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:505)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:841)
	at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:770)
	at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:141)
	at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1213)
	at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:643)
	at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(SAXParserImpl.java:327)
	at org.apache.maven.plugins.surefire.report.TestSuiteXmlParser.parse(TestSuiteXmlParser.java:95)
	at org.apache.maven.plugins.surefire.report.TestSuiteXmlParser.parse(TestSuiteXmlParser.java:74)
	at org.apache.maven.plugins.surefire.report.SurefireReportParser.parseXMLReportFiles(SurefireReportParser.java:83)
	at fr.inria.spirals.repairnator.process.step.GatherTestInformation.businessExecute(GatherTestInformation.java:89)

bug: sometimes travis request timeout breaking RepairNator

13:29:00.482 [main] DEBUG f.i.s.jtravis.helpers.LogHelper - Execute get request to the following URL: https://api.travis-ci.org/logs/146593459
13:29:10.486 [main] WARN  f.i.s.jtravis.helpers.LogHelper - Error when getting log id 146593459 : timeout
Exception in thread "main" java.lang.NullPointerException
	at fr.inria.spirals.repairnator.process.ProjectScanner.testBuild(ProjectScanner.java:210)
	at fr.inria.spirals.repairnator.process.ProjectScanner.getListOfBuildsFromRepo(ProjectScanner.java:239)
	at fr.inria.spirals.repairnator.process.ProjectScanner.getListOfBuildsFromProjectsByBuildStatus(ProjectScanner.java:159)
	at fr.inria.spirals.repairnator.process.ProjectScanner.getListOfFailingBuildFromProjects(ProjectScanner.java:146)
	at fr.inria.spirals.repairnator.Launcher.mainProcess(Launcher.java:302)
	at fr.inria.spirals.repairnator.Launcher.run(Launcher.java:249)
	at fr.inria.spirals.repairnator.Launcher.main(Launcher.java:399)

feature: add strategy in GatherTestInformation to explicit the contract

GatherTestInformation can have several different contracts depending on the pipeline goal and step, for example in the repair pipeline, it should stop the pipeline if no failing/error tests is found, but in bear pipeline it first should continue only if no fail/error is found, and then continue if a fail/error is found.
To be able to use a unique step you should add a strategy mechanism to the step to specify the contract.

goal: # of failures per day

# of failed builds per day
# of compilable failed builds per day
# of reproducible failed builds per day (ie with tests)
# of reproducible assertion-failed builds per day

(and per project)
leaderboard: top failing projects

JSON serialization

Show information of reproduced build in a summary of the JSON distinguished with travis information.

jTravis: fix bug related to the usage of date depending on timezone

Travis is failing (see: https://travis-ci.org/Spirals-Team/librepair/builds/202171182) because of a date problem I did not encounter locally:

Failed tests: testGetBuildWithPR(fr.inria.spirals.jtravis.helpers.PRInformationHelperTest): expected:<PRInformation{head=CommitPojo{id='0', sha='567bbabd0c21214107dd8eb23edaf1e31c6ef1b3', branch='doc-typo-wording-fixes', message='Typo and wording fixes', committedAt=Tue Dec 27 18:59:07 UTC 2016, authorName='null', authorEmail='null', committerName='Lionel Seinturier', committerEmail='[email protected]', compareUrl='seintur/spoon@567bbabd0c21214107dd8eb23edaf1e31c6ef1b3'}, base=CommitPojo{id='0', sha='2b13f0f7e82f805b2480f6ff759b2d2e8debb493', branch='master', message='Typo: fixes a typo in doc/gradle.md', committedAt=Tue Dec 27 15:46:43 UTC 2016, authorName='null', authorEmail='null', committerName='Дмитрий', committerEmail='[email protected]', compareUrl='INRIA/spoon@2b13f0f7e82f805b2480f6ff759b2d2e8debb493'}, otherRepo=RepositoryPojo{id=27972573, slug='seintur/spoon', active=true, description='Spoon is a library for analyzing and transforming Java source code.', lastBuildId=0}}> but was:<PRInformation{head=CommitPojo{id='0', sha='567bbabd0c21214107dd8eb23edaf1e31c6ef1b3', branch='doc-typo-wording-fixes', message='Typo and wording fixes', committedAt=Tue Dec 27 17:59:07 UTC 2016, authorName='null', authorEmail='null', committerName='Lionel Seinturier', committerEmail='[email protected]', compareUrl='seintur/spoon@567bbabd0c21214107dd8eb23edaf1e31c6ef1b3'}, base=CommitPojo{id='0', sha='2b13f0f7e82f805b2480f6ff759b2d2e8debb493', branch='master', message='Typo: fixes a typo in doc/gradle.md', committedAt=Tue Dec 27 14:46:43 UTC 2016, authorName='null', authorEmail='null', committerName='Дмитрий', committerEmail='[email protected]', compareUrl='INRIA/spoon@2b13f0f7e82f805b2480f6ff759b2d2e8debb493'}, otherRepo=RepositoryPojo{id=27972573, slug='seintur/spoon', active=true, description='Spoon is a library for analyzing and transforming Java source code.', lastBuildId=0}}>

Apparently date are shifted one hour before. It should come from a different timezone on Travis server

Dashboard

Size of librepair-experiments
Stats from spreadhseet (24h / 1 month / 1 week)

Spreadsheet: improve data displayed

Add the following information:

  • Nopol Status (patch, timeout, exception...)
  • PR URL if the build failed from a PR
  • Test type of failures (AssertException, ...)
  • Change color for rows containing test failures
  • Add graph displaying reproduced build in the graph showing getting builds
  • Add total time of running script

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.