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

Jar mode execution ci pipeline and status json add [not ready] #241

Open
wants to merge 7 commits into
base: main
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
22 changes: 16 additions & 6 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,16 +43,26 @@ jobs:
python main.py
- name: Check evaluation status
run: diff -uw src/main/resources/target_status.json specimin-evaluation/ISSUES/target_status.json
- name: Compile minimized programs
run: |
cd specimin-evaluation
sh check_compilation.sh
- name: Check targets compile status
run: |
cd specimin-evaluation
sh check_compilation.sh
sh check_compilation.sh 1
cd ..
diff -uw src/main/resources/min_program_compile_status.json specimin-evaluation/ISSUES/compile_status.json
- name: Check preservation status
run: diff -uw src/main/resources/preservation_status.json specimin-evaluation/ISSUES/preservation_status.json

- name: Jar mode evaluation script execution
run: |
cd specimin-evaluation
echo "specimin path-> $SPECIMIN"
python main.py -j true
- name: Jar mode specimin execution status check
run: diff -uw src/main/resources/jar_mode_target_status.json specimin-evaluation/ISSUES/jar_target_status.json
- name: Jar mode targets compile status check
run: |
cd specimin-evaluation
sh check_jar_mode_compilation.sh 2
cd ..
diff -uw src/main/resources/jar_mode_min_program_compilation_status.json specimin-evaluation/ISSUES/jar_compile_status.json
- name: Jar mode preservation status check
run: diff -uw src/main/resources/jar_mode_preservation_status.json specimin-evaluation/ISSUES/jar_preservation_status.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ public static void main(String... args) throws IOException {
jarFiles = getJarFiles(jarDirectory);
}

jarFiles.stream().forEach(System.out::println);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has to be removed before merging.


performMinimization(
options.valueOf(rootOption),
options.valuesOf(targetFilesOption),
Expand Down
22 changes: 22 additions & 0 deletions src/main/resources/jar_mode_min_program_compilation_status.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"cf-1291": "FAIL",
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are these accurate? If so, that's very concerning.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Projects where I could not write the script to pull dependencies, specimin was not run on them and results are showing as FAIL.
specimin was not executed on cf-1291 in jar mode. Thats why status is FAIL

"cf-6282": "PASS",
"cf-6077": "FAIL",
"cf-6060": "FAIL",
"cf-6030": "FAIL",
"cf-6019": "FAIL",
"cf-4614": "PASS",
"cf-3850": "FAIL",
"cf-577": "PASS",
"cf-3032": "FAIL",
"cf-3619": "FAIL",
"cf-3021": "FAIL",
"cf-3020": "FAIL",
"cf-3022": "FAIL",
"cf-691": "PASS",
"Issue689": "PASS",
"cf-6388": "FAIL",
"cf-3025": "FAIL",
"jdk-8319461": "PASS",
"jdk-8288590": "FAIL"
}
22 changes: 22 additions & 0 deletions src/main/resources/jar_mode_preservation_status.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"cf-1291": "FAIL",
"cf-6282": "PASS",
"cf-6077": "FAIL",
"cf-6060": "FAIL",
"cf-6030": "FAIL",
"cf-6019": "FAIL",
"cf-4614": "PASS",
"cf-3850": "FAIL",
"cf-577": "FAIL",
"cf-3032": "FAIL",
"cf-3619": "FAIL",
"cf-3021": "PASS",
"cf-3020": "FAIL",
"cf-3022": "PASS",
"cf-691": "FAIL",
"Issue689": "PASS",
"cf-6388": "FAIL",
"cf-3025": "FAIL",
"jdk-8319461": "FAIL",
"jdk-8288590": "FAIL"
}
22 changes: 22 additions & 0 deletions src/main/resources/jar_mode_target_status.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"cf-1291": "FAIL",
"cf-6282": "PASS",
"cf-6077": "FAIL",
"cf-6060": "FAIL",
"cf-6030": "FAIL",
"cf-6019": "PASS",
"cf-4614": "PASS",
"cf-3850": "FAIL",
"cf-577": "PASS",
"cf-3032": "FAIL",
"cf-3619": "FAIL",
"cf-3021": "PASS",
"cf-3020": "PASS",
"cf-3022": "PASS",
"cf-691": "PASS",
"Issue689": "PASS",
"cf-6388": "FAIL",
"cf-3025": "PASS",
"jdk-8319461": "PASS",
"jdk-8288590": "FAIL"
}
Loading