Skip to content
Open
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
39 changes: 39 additions & 0 deletions .github/workflows/ci_integration_reseach_test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: ci_integration_tests_reseach
concurrency:
group: ci_integration_tests_reseach-${{ github.ref }}
cancel-in-progress: true
on:
pull_request:
types: [labeled ]
# push:
# branches:
# - master
# - develop
# - trying
# - staging
# - 'rc/*'
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: full
RUSTFLAGS: -D warnings
RUST_LOG: info,ckb_test=debug,ckb_sync=debug,ckb_relay=debug,ckb_network=debug
CKB_TEST_SEC_COEFFICIENT: 5
CKB_TEST_ARGS: -c 4 --no-report --no-fail-fast
RUSTC_WRAPPER: sccache
SCCACHE_CACHE_SIZE: 8G
jobs:
ci_integration_tests_reseach:
name: ci_integration_tests_reseach
timeout-minutes: 70
runs-on: self-hosted-ci-ubuntu-20.04
steps:
- uses: actions/checkout@v2
- run: |
devtools/ci/ci_main.sh
shell: bash
- uses: actions/upload-artifact@v2
with:
name: Integration Logs (${{ runner.os }}, ${{ matrix.os }})
path: target/integration.log
env:
RUNNER_LABEL: self-hosted-ci-ubuntu-20.04
3 changes: 2 additions & 1 deletion .github/workflows/ci_integration_tests_windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,8 @@ jobs:
scoop install llvm yasm
- run: |
if [[ ${{ needs.prologue.outputs.os_skip }} == run ]] && [[ ${{ needs.prologue.outputs.job_skip }} == run ]];then
devtools/ci/ci_main.sh
# devtools/ci/ci_main.sh
devtools/windows/make CKB_TEST_SEC_COEFFICIENT=5 CKB_TEST_ARGS="-c 4 --no-report" integration
else
echo "skip job"
exit 0
Expand Down
5 changes: 4 additions & 1 deletion devtools/ci/ci_main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,18 @@ set -euo pipefail
is_self_runner=`echo $RUNNER_LABEL | awk -F '-' '{print $1}'`
clean_threshold=40000
available_space=`df -m "$GITHUB_WORKSPACE" | tail -1 | awk '{print $4}'`
echo "available_space is "$available_space
echo "RUNNER_LABEL is " $RUNNER_LABEL
if [[ $is_self_runner == "self" ]];then
CARGO_TARGET_DIR=$GITHUB_WORKSPACE/../target
export CARGO_TARGET_DIR=$GITHUB_WORKSPACE/../target
#clean space when disk full
if [[ $available_space -lt $clean_threshold ]]; then
echo "Run clean command"
cargo clean --target-dir "${CARGO_TARGET_DIR}" || true
fi
fi
CARGO_TARGET_DIR=${CARGO_TARGET_DIR:-"$GITHUB_WORKSPACE/target"}
echo "CARGO_TARGET_DIR is "$CARGO_TARGET_DIR
EXIT_CODE=0
case $GITHUB_WORKFLOW in
ci_linters*)
Expand Down