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

ASTDiff Tests and Benchmark Worflow #663

Merged
merged 3 commits into from
Feb 13, 2024
Merged
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
51 changes: 51 additions & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Benchmark

on:
workflow_dispatch:
repository_dispatch:
types: [run-project]

jobs:
build-and-run-project:
runs-on: ubuntu-latest

env:
OAuthToken: ${{ secrets.OAUTHTOKEN }}
releaseVersion: CI-benchmark-SNAPSHOT

steps:
- uses: actions/checkout@v4
- name: Set up JDK 17
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'

- name: Checkout code
uses: actions/checkout@v2

# Build the project and publish to Maven local
- name: Publish to Maven local
run: ./gradlew publishToMavenLocal -x test -x javadoc -Pversion=${{ env.releaseVersion }}

# Clone the DiffBenchmark repository and run benchmarks
- name: Clone DiffBenchmark repository and run benchmarks
run: |
git clone -b automation --depth 1 --single-branch https://github.com/pouryafard75/DiffBenchmark.git &&
cd DiffBenchmark &&
./gradlew -b build.gradle clean run \
-PrefactoringMinerVersion=${{ env.releaseVersion }} \
-DrefactoringMinerPath=$(pwd)/.. \
-PmainClass=benchmark.CmdRunner \
--args="refOracle defects4j"
- name: Zip directory
run: |
zip -r Stats.zip DiffBenchmark/out/oracle/
- name: Upload artifact
uses: actions/upload-artifact@v2
with:
name: Stats
path: Stats.zip
4 changes: 3 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ plugins {
}

group = "com.github.tsantalis"
version = "3.0.4"
def version = project.hasProperty('version') ?
project.version
: '3.0.4'

applicationName = rootProject.name
mainClassName = "org.refactoringminer.RefactoringMiner"
Expand Down
3 changes: 0 additions & 3 deletions src/test/resources/astDiff/defects4j/cases-problematic.json
Original file line number Diff line number Diff line change
Expand Up @@ -310,9 +310,6 @@
}, {
"repo" : "JacksonDatabind",
"commit" : "22"
}, {
"repo" : "Jsoup",
"commit" : "16"
}, {
"repo" : "Codec",
"commit" : "14"
Expand Down
3 changes: 3 additions & 0 deletions src/test/resources/astDiff/defects4j/cases.json
Original file line number Diff line number Diff line change
Expand Up @@ -2045,6 +2045,9 @@
"repo" : "Mockito",
"commit" : "10"
},{
"repo" : "Jsoup",
"commit" : "16"
}, {
"repo" : "Jsoup",
"commit" : "3"
} ]
Loading