Skip to content

Commit

Permalink
Merge pull request #51 from naver/develop
Browse files Browse the repository at this point in the history
master merge for the v1.0.4 release

Reviewed-by: @kojandy @junoyoon
  • Loading branch information
taeyeon-Kim authored Mar 13, 2023
2 parents 0228dc8 + eef0f6c commit 47f7826
Show file tree
Hide file tree
Showing 144 changed files with 776 additions and 689 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @naver/scavenger-dev @junoyoon
94 changes: 94 additions & 0 deletions .github/workflows/build-develop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,94 @@
name: Build and Test

on:
pull_request:
branches: [ develop ]

jobs:
set-up:
name: "Event File"
runs-on: ubuntu-latest
steps:
- name: Upload
uses: actions/upload-artifact@v2
with:
name: Event File
path: ${{ github.event_path }}
scavenger-agent-java:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Java JDK
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '11'
- name: Gradle Caching
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Build with Gradle
run: ./gradlew :scavenger-agent-java:clean scavenger-agent-java:build
- name: Upload test results
uses: actions/upload-artifact@v3
if: always()
with:
name: scavenger-agent-java
path: scavenger-agent-java/build/test-results
scavenger-collector:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Java JDK
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '11'
- name: Gradle Caching
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Build with Gradle
run: ./gradlew :scavenger-collector:clean scavenger-collector:build
- name: Upload Test Results
if: always()
uses: actions/upload-artifact@v3
with:
name: scavenger-collector
path: scavenger-collector/build/test-results
scavenger-api:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Java JDK
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '11'
- name: Gradle Caching
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Build with Gradle
run: ./gradlew :scavenger-api:clean scavenger-api:build
- name: Upload Test Results
if: always()
uses: actions/upload-artifact@v3
with:
name: scavenger-api
path: scavenger-api/build/test-results
34 changes: 34 additions & 0 deletions .github/workflows/build-main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Main Build

on:
pull_request:
branches: [ main ]

jobs:
Build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Java JDK
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: '11'
- name: Gradle Caching
uses: actions/cache@v3
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*', '**/gradle-wrapper.properties') }}
restore-keys: |
${{ runner.os }}-gradle-
- name: Test with Gradle
run: ./gradlew clean build
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
report_individual_runs: true
check_name: "Scavenger Test Results"
junit_files: "**/build/test-results/**/*.xml"
36 changes: 36 additions & 0 deletions .github/workflows/build-test-reports.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Unit Test Results
on:
workflow_run:
workflows: [Build and Test]
types:
- completed
jobs:
unit-test-results:
name: Unit Test Results
runs-on: ubuntu-latest
if: github.event.workflow_run.conclusion != 'skipped'
steps:
- name: Download and Extract Artifacts
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
run: |
mkdir -p artifacts && cd artifacts
artifacts_url=${{ github.event.workflow_run.artifacts_url }}
gh api "$artifacts_url" -q '.artifacts[] | [.name, .archive_download_url] | @tsv' | while read artifact
do
IFS=$'\t' read name url <<< "$artifact"
gh api $url > "$name.zip"
unzip -d "$name" "$name.zip"
done
- name: Publish Unit Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
if: always()
with:
report_individual_runs: true
check_name: "Scavenger Test Results"
commit: ${{ github.event.workflow_run.head_sha }}
event_file: artifacts/Event File/event.json
event_name: ${{ github.event.workflow_run.event }}
junit_files: "artifacts/**/**/*.xml"
16 changes: 9 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,22 +23,24 @@ Scavenger provides more sophisticated and clear UI and elaborate the instrumenta
* Analyze runtime dead code with no code changes.
* Support JVM based languages.
* Agent for Java 1.7 is officially not supported any more.
* However, if you can not avoid, please
use [old agent](https://repo1.maven.org/maven2/com/navercorp/scavenger/scavenger-old-agent-java/1.0.0/scavenger-old-agent-java-1.0.0.jar)
* However, if you cannot avoid, please use the old agent.
* Provide a web-based interface for project management, invocation snapshot, and project dashboard.
* Supports MySQL, Vitess, and H2 as databases.

# Download

You can download the latest Scavenger in the following link.

- Collector, API
- https://github.com/naver/scavenger/releases
- Agent
- Download the latest version from
* Collector, API
* https://github.com/naver/scavenger/releases
* Agent for Java
* Download the latest version from
https://repo1.maven.org/maven2/com/navercorp/scavenger/scavenger-agent-java/{VERSION}/scavenger-agent-java-{VERSION}.jar
* You can find out what latest VERSION is
in [maven central](https://search.maven.org/search?q=g:com.navercorp.scavenger%20AND%20a:scavenger-agent-java)
* Old agent for Java (support java 1.7 but not maintained any more)
* Download the latest version from https://repo1.maven.org/maven2/com/navercorp/scavenger/scavenger-old-agent-java/{VERSION}/scavenger-old-agent-java-{VERSION}.jar
* You can find out what latest VERSION is in [maven central](https://search.maven.org/search?q=g:com.navercorp.scavenger%20AND%20a:scavenger-old-agent-java)

# Documentation

Expand All @@ -48,7 +50,7 @@ You can find the installation guide at the following link.

You can find the user guide at the following location link.

- TBD
- https://github.com/naver/scavenger/blob/develop/doc/user-guide.md

# Contribution?

Expand Down
Binary file added doc/image/analyze-snapshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/image/configuration-button.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/image/create-configuration.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/image/create-snapshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/image/create-workspace.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added doc/image/example-create-snapshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 47f7826

Please sign in to comment.