Fix SBT Exit During Boot With Code 1 (#1108)

Fix the issue when sbt exits during the boot with error code 1
This commit is contained in:
Dmitry Bushev 2020-08-27 13:00:01 +03:00 committed by GitHub
parent 6b2356cf13
commit 170df5ebd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 52 additions and 18 deletions

View File

@ -78,19 +78,29 @@ jobs:
# Build Artifacts # Build Artifacts
- name: Bootstrap the Project - name: Bootstrap the Project
working-directory: repo working-directory: repo
run: sbt --no-colors bootstrap run: |
sleep 1
sbt --no-colors bootstrap
- name: Build the Runtime Uberjar - name: Build the Runtime Uberjar
working-directory: repo working-directory: repo
run: sbt --no-colors runtime/assembly run: |
sleep 1
sbt --no-colors runtime/assembly
- name: Build the Runner Uberjar - name: Build the Runner Uberjar
working-directory: repo working-directory: repo
run: sbt --no-colors runner/assembly run: |
sleep 1
sbt --no-colors runner/assembly
- name: Build the Project Manager Uberjar - name: Build the Project Manager Uberjar
working-directory: repo working-directory: repo
run: sbt --no-colors project-manager/assembly run: |
sleep 1
sbt --no-colors project-manager/assembly
- name: Build the Launcher Native Image - name: Build the Launcher Native Image
working-directory: repo working-directory: repo
run: sbt --no-colors launcher/buildNativeImage run: |
sleep 1
sbt --no-colors launcher/buildNativeImage
- name: Build the Manifest - name: Build the Manifest
working-directory: repo working-directory: repo
run: | run: |

View File

@ -86,9 +86,13 @@ jobs:
# Build # Build
- name: Bootstrap Enso project - name: Bootstrap Enso project
run: sbt --no-colors bootstrap run: |
sleep 1
sbt --no-colors bootstrap
- name: Build Enso - name: Build Enso
run: sbt --no-colors compile run: |
sleep 1
sbt --no-colors compile
# Tests # Tests
- name: Setup Tests on Windows - name: Setup Tests on Windows
@ -97,15 +101,25 @@ jobs:
echo '::set-env name=CI_TEST_TIMEFACTOR::2' echo '::set-env name=CI_TEST_TIMEFACTOR::2'
echo '::set-env name=CI_TEST_FLAKY_ENABLE::true' echo '::set-env name=CI_TEST_FLAKY_ENABLE::true'
- name: Test Enso - name: Test Enso
run: sbt --no-colors "set Global / parallelExecution := false; test" run: |
sleep 1
sbt --no-colors "set Global / parallelExecution := false; test"
- name: Check Runtime Benchmark Compilation - name: Check Runtime Benchmark Compilation
run: sbt -no-colors runtime/Benchmark/compile run: |
sleep 1
sbt --no-colors runtime/Benchmark/compile
- name: Check Language Server Benchmark Compilation - name: Check Language Server Benchmark Compilation
run: sbt -no-colors language-server/Benchmark/compile run: |
sleep 1
sbt --no-colors language-server/Benchmark/compile
- name: Check Searcher Benchmark Compilation - name: Check Searcher Benchmark Compilation
run: sbt -no-colors searcher/Benchmark/compile run: |
sleep 1
sbt --no-colors searcher/Benchmark/compile
- name: Build the Uberjar - name: Build the Uberjar
run: sbt -no-colors runner/assembly run: |
sleep 1
sbt --no-colors runner/assembly
- name: Test the Uberjar - name: Test the Uberjar
run: ./runner.jar --run tools/ci/Test.enso run: ./runner.jar --run tools/ci/Test.enso
- name: Test the Repl in the Uberjar - name: Test the Repl in the Uberjar
@ -163,7 +177,7 @@ jobs:
native-image: true native-image: true
- name: Set Up SBT - name: Set Up SBT
run: | run: |
curl -fSL -o sbt.tgz https://piccolo.link/sbt-${{env.sbtVersion}}.tgz curl --retry 4 --retry-connrefused -fsSL -o sbt.tgz https://piccolo.link/sbt-${{env.sbtVersion}}.tgz
tar -xzf sbt.tgz tar -xzf sbt.tgz
echo ::add-path::$GITHUB_WORKSPACE/sbt/bin/ echo ::add-path::$GITHUB_WORKSPACE/sbt/bin/
@ -180,15 +194,25 @@ jobs:
# Build Artifacts # Build Artifacts
- name: Bootstrap the Project - name: Bootstrap the Project
run: sbt --no-colors bootstrap run: |
sleep 1
sbt --no-colors bootstrap
- name: Build the Runtime Uberjar - name: Build the Runtime Uberjar
run: sbt --no-colors runtime/assembly run: |
sleep 1
sbt --no-colors runtime/assembly
- name: Build the Runner Uberjar - name: Build the Runner Uberjar
run: sbt --no-colors runner/assembly run: |
sleep 1
sbt --no-colors runner/assembly
- name: Build the Project Manager Uberjar - name: Build the Project Manager Uberjar
run: sbt --no-colors project-manager/assembly run: |
sleep 1
sbt --no-colors project-manager/assembly
- name: Build the Launcher Native Image - name: Build the Launcher Native Image
run: sbt --no-colors launcher/buildNativeImage run: |
sleep 1
sbt --no-colors launcher/buildNativeImage
- name: Build the Manifest - name: Build the Manifest
run: | run: |
cp distribution/manifest.template.yaml manifest.yaml cp distribution/manifest.template.yaml manifest.yaml