Skip to content

Commit

Permalink
Add CI fold control, reduce line groupings (#2240)
Browse files Browse the repository at this point in the history
  • Loading branch information
prasannavl authored Jul 27, 2023
1 parent 11d92da commit 95d975a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
env:
GITHUB_PULL_REQUEST: ${{ github.event.number }}
TESTS_FAILFAST: 1
TESTS_COMBINED_LOGS: 10000
TESTS_COMBINED_LOGS: 500
steps:
- name: Checkout base branch and/or merge
if: github.event_name != 'pull_request'
Expand Down
10 changes: 7 additions & 3 deletions make.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ setup_vars() {
MAKE_DEPS_ARGS=${MAKE_DEPS_ARGS:-}
TESTS_FAILFAST=${TESTS_FAILFAST:-"0"}
TESTS_COMBINED_LOGS=${TESTS_COMBINED_LOGS:-"0"}
CI_GROUP_LOGS=${CI_GROUP_LOGS:-"1"}
}

main() {
Expand Down Expand Up @@ -384,7 +385,6 @@ test_py() {
fi

_ensure_enter_dir "${build_target_dir}"

py_ensure_env_active

# shellcheck disable=SC2086
Expand Down Expand Up @@ -1053,11 +1053,15 @@ _safe_rm_rf() {
}

_fold_start() {
echo "::group::${*:-}"
if [[ "${CI_GROUP_LOGS}" == "1" ]]; then
echo "::group::${*:-}";
fi
}

_fold_end() {
echo "::endgroup::"
if [[ "${CI_GROUP_LOGS}" == "1" ]]; then
echo "::endgroup::"
fi
}

_ensure_enter_dir() {
Expand Down

0 comments on commit 95d975a

Please sign in to comment.