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

Docker and documentation updates #43

Open
wants to merge 4 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM java:8-jdk-alpine
FROM openjdk:8-jdk-alpine

RUN apk add --no-cache --update python3 git

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ A more thorough instruction in using Docker to produce the results can be found
There exists a *Dockerfile* in the repository. It contains all the steps in chronological order that is needed to generate the `fix_and_bug_introducing_pairs.json`. Simply run this command in the directory where the Dockerfile is located:

```bash
docker build -t ssz .
docker build -t szz .
```

Then start a temporary docker container:
Expand Down
2 changes: 1 addition & 1 deletion doc/Docker.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ docker run -it --name ssz_con szz ash
cd /root/fetch_jira_bugs
python3 fetch.py --issue-code JENKINS --jira-project issues.jenkins-ci.org
python3 git_log_to_array.py --repo-path ../jenkins --from-commit 02d6908ada70fcf8012833ddef628bc09c6f8389
python3 find_bug_fixes.py --gitlog ./gitlog.json --issue-list ./issues
python3 find_bug_fixes.py --gitlog ./gitlog.json --issue-list ./issues --gitlog-pattern "JENKINS-{nbr}\D|#{nbr}\D|HUDSON-{nbr}\D"
cd /root/szz
java -jar ./build/libs/szz_find_bug_introducers-0.1.jar -i ../fetch_jira_bugs/issue_list.json -r ../jenkins
```
Expand Down
12 changes: 9 additions & 3 deletions fetch_jira_bugs/find_bug_fixes.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,19 @@ def main():
the issue directory is created and populated using
the fetch.py script.""")
parser.add_argument('--gitlog', type=str,
help='Path to json file containing gitlog')
help='Path to json file containing gitlog',
required = True)
parser.add_argument('--issue-list', type=str,
help='Path to directory containing issue json files')
help='Path to directory containing issue json files',
required = True)
parser.add_argument('--gitlog-pattern', type=str,
help='Pattern to match a bugfix')
help='Pattern to match a bugfix',
required = True)
args = parser.parse_args()

# display gitlog_pattern to the console
print('Confirming gitlog_pattern: ' + args.gitlog_pattern)

issue_list = find_bug_fixes(args.issue_list, args.gitlog, args.gitlog_pattern)
with open('issue_list.json', 'w') as f:
f.write(json.dumps(issue_list))
Expand Down