From 6e4f752cae9a315a12f6a09ba5d24afc8ace2868 Mon Sep 17 00:00:00 2001 From: tsai Date: Mon, 5 Jul 2021 13:45:58 +0800 Subject: [PATCH 1/5] refine --- .github/workflows/test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6008b747160..6eae84ee5c9 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -144,6 +144,7 @@ jobs: cmake --build . -j$(nproc) - name: Tar core if: always() + continue-on-error: true run: | set -ex tar -cvf build_core.tar ${PWD}/build/core.* From f7ce612958de273d2c1628aa7a0193a03bac9496 Mon Sep 17 00:00:00 2001 From: Shenghang Tsai Date: Mon, 5 Jul 2021 15:12:50 +0800 Subject: [PATCH 2/5] Update test.yml --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6eae84ee5c9..acf60ae98f3 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -172,7 +172,7 @@ jobs: exit 0 fi echo "is_secrets_accessible=1" >> $GITHUB_ENV - - uses: Oneflow-Inc/gh-action-scheduler-v2@849c5f271f5a3673ea33ce6d75ce5ebc0b288b3d + - uses: Oneflow-Inc/gh-action-scheduler-v2@1e45bd715c873bc3a14a87ddaf494f9b686137de name: Wait for GPU slot if: env.is_secrets_accessible == '1' env: From f484af1173b129f494d08f63e478ba67f9ecea54 Mon Sep 17 00:00:00 2001 From: Shenghang Tsai Date: Mon, 5 Jul 2021 15:31:44 +0800 Subject: [PATCH 3/5] Update test.yml --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index acf60ae98f3..936c7f80e7c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -147,7 +147,7 @@ jobs: continue-on-error: true run: | set -ex - tar -cvf build_core.tar ${PWD}/build/core.* + tar -cvf build_core.tar ${PWD}/build/**/core* - name: Upload core if: always() uses: actions/upload-artifact@v2 From fb25f4f9154d4b37311acdd120cfd1c96f5e85de Mon Sep 17 00:00:00 2001 From: Shenghang Tsai Date: Mon, 5 Jul 2021 15:33:35 +0800 Subject: [PATCH 4/5] Update test.yml --- .github/workflows/test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 936c7f80e7c..5cca464d363 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -147,7 +147,7 @@ jobs: continue-on-error: true run: | set -ex - tar -cvf build_core.tar ${PWD}/build/**/core* + tar -cvf build_core.tar ${PWD}/build/**/core.* ${PWD}/build/**/core - name: Upload core if: always() uses: actions/upload-artifact@v2 From d289ea441ad6c525ab3d41f461c0ea9f29b8547d Mon Sep 17 00:00:00 2001 From: tsai Date: Mon, 5 Jul 2021 15:49:25 +0800 Subject: [PATCH 5/5] refine --- .github/workflows/simple.yml | 6 ++++++ .github/workflows/test.yml | 8 +++++++- 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/simple.yml b/.github/workflows/simple.yml index fa4aa5d21f9..b2c2dbb2f53 100644 --- a/.github/workflows/simple.yml +++ b/.github/workflows/simple.yml @@ -141,6 +141,9 @@ jobs: if: always() continue-on-error: true run: | + ulimit -c + ulimit -c unlimited + ulimit -c mkdir -p build cd build ./bin/oneflow_testexe @@ -149,6 +152,9 @@ jobs: if: always() continue-on-error: true run: | + ulimit -c + ulimit -c unlimited + ulimit -c source build/source.sh ONEFLOW_TEST_GITHUB_HOSTED=1 ONEFLOW_TEST_CPU_ONLY=1 bash ci/test/1node_op_test.sh shell: bash diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5cca464d363..caf3a99c708 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -136,10 +136,16 @@ jobs: -DCMAKE_CXX_FLAGS="-fplugin=${{ env.clang_plugin_path }}" - name: Build (third party) run: | + ulimit -c + ulimit -c unlimited + ulimit -c cd build cmake --build . -j$(nproc) --target oneflow_deps - name: Check unused Maybe (by building OneFlow with Clang plug-in) run: | + ulimit -c + ulimit -c unlimited + ulimit -c cd build cmake --build . -j$(nproc) - name: Tar core @@ -147,7 +153,7 @@ jobs: continue-on-error: true run: | set -ex - tar -cvf build_core.tar ${PWD}/build/**/core.* ${PWD}/build/**/core + tar -cvf build_core.tar ${PWD}/build/**/core.* - name: Upload core if: always() uses: actions/upload-artifact@v2