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

Given a bug, how to get the buggy version and fixed version code? #11

Open
zqudm opened this issue May 3, 2022 · 0 comments
Open

Given a bug, how to get the buggy version and fixed version code? #11

zqudm opened this issue May 3, 2022 · 0 comments

Comments

@zqudm
Copy link

zqudm commented May 3, 2022

I have used downloads.sh and unpacking.sh scripts to successfully downloaded and unzipped the dataset locally.
Therefore, in data directory, there are six groups, that is, Apache, Commons, JBoss , Previous , Spring , Wildfly. And, in each group, several projects exist in the directory.
For a project, there is a directory bugrepo and gitrepo. In the directory bugrepo , the file repository_merge.xml contains all
bug reports in the project.
For example , the project CAMEL, one bug is listed in repository_merge.xml file as follows.

[cxfrs] Bus features aren't initialized CxfRsEndpoint has no features property
CxfRsEndpoint doesn't support custom feture support like
org.apache.camel.component.cxf.CxfEndpoint.setFeatures(List<AbstractFeature>)
org.apache.camel.component.cxf.jaxrs.CxfRsEndpoint.createJAXRSClientFactoryBean() can&apos;t be used for additional configuration because org.apache.camel.component.cxf.jaxrs.CxfRsProducer.ClientFactoryBeanCache used
in case bus was initialized with required features they aren&apos;t initialized for WebClient
2.12.2Bugorg.apache.camel.component.cxf.jaxrs.CxfRsSpringEndpoint.javaorg.apache.camel.component.cxf.jaxrs.CxfRsProducerTest.javaorg.apache.camel.component.cxf.jaxrs.CxfRsEndpoint.java71797194

So my question is , given a bug report in repository_merge.xml , how to get its buggy version and fixed version code ?

Generally, in order to get the fixed version code, we have to git checkout the specific bug fix commit. But, the file repository_merge.xml does not contain any information about the fix commit ID.
With the gitrepo of the project, it is easy to mine fix commit log, but how to map the bug in repository_merge.xml to its commit ID in log?

In repository_merge.xml, the bug element has an attribute master, does it represent the bug id in fix commit log ? For example, the above bug is camel-7194 since the attribute master="7194". So search the commit log and if the log contains the "camel-7194", then the corresponding commit is the fix commit that repairs the bug? Right?

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

No branches or pull requests

1 participant