Skip to content
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
10 changes: 2 additions & 8 deletions .github/workflows/ion-java-performance-regression-detector.yml
Original file line number Diff line number Diff line change
Expand Up @@ -130,16 +130,10 @@ jobs:
name: Benchmark result
path: benchmarkResults

output-result:
name: Output Results
needs: detect-regression
runs-on: ubuntu-latest

steps:
- name: Fail the workflow if regression happened
env:
regression_detect: ${{needs.detect-regression.outputs.output1}}
regression_detect: ${{steps.regression_result.outputs.regression-result}}
if: ${{ env.regression_detect == 'false' }}
run: |
cd benchmarkResults && echo "| Benchmark command | GC Allocation Rate | Heap Usage | Speed |" >> $GITHUB_STEP_SUMMARY && echo "| ----------- | ----------- |----------- | ----------- |" >> $GITHUB_STEP_SUMMARY && for FILE in *; do regressionDetection=$(java -jar /home/runner/work/ion-java/ion-java/ion-java-benchmark-cli/target/ion-java-benchmark-cli-0.0.1-SNAPSHOT-jar-with-dependencies.jar compare --benchmark-result-previous $FILE/previous.ion --benchmark-result-new $FILE/new.ion $FILE/report.ion) && if [ "$regressionDetection" != "no regression detected" ]; then command=$(echo $FILE | sed "s/_/ /g") && read gc heapUsage speed <<< $( echo ${regressionDetection} | awk -F", " '{print $1" "$2" "$3}' ) && echo "|$command|$gc|$heapUsage|$speed|" >> $GITHUB_STEP_SUMMARY; fi; done
exit 1
exit 1
10 changes: 5 additions & 5 deletions .github/workflows/ion-test-driver.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
name: ion-test-driver

on:
workflow_run:
workflows: [ PR Content Check ]
types:
- completed
pull_request

jobs:
PR-Content-Check:
uses: linlin-s/ion-java/.github/workflows/PR-content-check.yml@master
ion-test-driver:
runs-on: macos-10.15
if: ${{ github.event.workflow_run.conclusion == 'success' }}
needs: PR-Content-Check
if: ${{ needs.PR-Content-Check.outputs.result == 'pass' }}
steps:
- name: Checkout ion-java
uses: actions/checkout@master
Expand Down
2 changes: 1 addition & 1 deletion src/com/amazon/ion/apps/BaseApp.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStream;
//test only

/**
* ion_encode ion_print
*/
Expand Down