Skip to content

Commit 1566621

Browse files
authored
Merge pull request #2744 from IntersectMBO/imp_ci_grouping2
refactor: update group names in shell scripts
2 parents 6f23543 + c80e299 commit 1566621

File tree

5 files changed

+18
-20
lines changed

5 files changed

+18
-20
lines changed

.github/node_upgrade.sh

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ unset ENABLE_LEGACY MIXED_P2P
6060

6161
echo "::endgroup::" # end group for "Script setup"
6262

63-
echo "::group::Nix env setup"
63+
echo "::group::Nix env setup step1"
6464
printf "start: %(%H:%M:%S)T\n" -1
6565

6666
# shellcheck disable=SC1090,SC1091
@@ -85,11 +85,11 @@ nix flake update --accept-flake-config $NODE_OVERRIDE
8585
nix develop --accept-flake-config .#venv --command bash -c '
8686
: > "$WORKDIR/.nix_step1"
8787
printf "finish: %(%H:%M:%S)T\n" -1
88-
echo "::endgroup::" # end group for "Nix env setup"
88+
echo "::endgroup::" # end group for "Nix env setup step1"
8989

90-
echo "::group::Python venv setup"
90+
echo "::group::Python venv setup step1"
9191
. .github/setup_venv.sh clean
92-
echo "::endgroup::" # end group for "Python venv setup"
92+
echo "::endgroup::" # end group for "Python venv setup step1"
9393

9494
echo "::group::-> PYTEST STEP1 <-"
9595
df -h .
@@ -107,7 +107,8 @@ fi
107107
[ "$retval" -le 1 ] || exit "$retval"
108108

109109
echo "::endgroup::" # end group for "-> PYTEST STEP1 <-"
110-
echo "::group::-> PYTEST STEP2 <-"
110+
echo "::group::Nix env setup steps 2 & 3"
111+
printf "start: %(%H:%M:%S)T\n" -1
111112

112113
# update cardano-node to specified branch and/or revision, or to the latest available revision
113114
if [ -n "${UPGRADE_REVISION:-""}" ]; then
@@ -121,12 +122,15 @@ nix flake update --accept-flake-config $NODE_OVERRIDE
121122
# shellcheck disable=SC2016
122123
nix develop --accept-flake-config .#venv --command bash -c '
123124
: > "$WORKDIR/.nix_step2"
124-
df -h .
125+
printf "finish: %(%H:%M:%S)T\n" -1
126+
echo "::endgroup::" # end group for "Nix env setup steps 2 & 3"
125127

126-
echo "::group::Python venv setup"
128+
echo "::group::Python venv setup steps 2 & 3"
127129
. .github/setup_venv.sh clean
128-
echo "::endgroup::" # end group for "Python venv setup"
130+
echo "::endgroup::" # end group for "Python venv setup steps 2 & 3"
129131

132+
echo "::group::-> PYTEST STEP2 <-"
133+
df -h .
130134
# update cluster nodes, run smoke tests
131135
./.github/node_upgrade_pytest.sh step2
132136
retval="$?"

.github/regression.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,11 @@ case "${DBSYNC_REV:-""}" in
9595
unset DBSYNC_REV
9696
;;
9797
* )
98+
echo "::group::db-sync setup"
9899
# shellcheck disable=SC1090,SC1091
99100
. .github/source_dbsync.sh
100101
df -h .
102+
echo "::endgroup::"
101103
;;
102104
esac
103105

@@ -111,8 +113,10 @@ case "${PLUTUS_APPS_REV:="none"}" in
111113
unset PLUTUS_APPS_REV
112114
;;
113115
* )
116+
echo "::group::plutus-apps setup"
114117
# shellcheck disable=SC1090,SC1091
115118
. .github/source_plutus_apps.sh
119+
echo "::endgroup::"
116120
;;
117121
esac
118122

@@ -124,8 +128,10 @@ case "${CARDANO_CLI_REV:-""}" in
124128
unset CARDANO_CLI_REV
125129
;;
126130
* )
131+
echo "::group::cardano-cli setup"
127132
# shellcheck disable=SC1090,SC1091
128133
. .github/source_cardano_cli.sh
134+
echo "::endgroup::"
129135
;;
130136
esac
131137

.github/source_cardano_cli.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#!/bin/bash
22

3-
echo "::group::cardano-cli setup"
4-
53
pushd "$WORKDIR" || exit 1
64

75
case "${CARDANO_CLI_REV:-""}" in
@@ -39,5 +37,3 @@ nix build --accept-flake-config .#cardano-cli -o cardano-cli-build || exit 1
3937
[ -e cardano-cli-build/bin/cardano-cli ] || exit 1
4038

4139
pushd "$REPODIR" || exit 1
42-
43-
echo "::endgroup::"

.github/source_dbsync.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#!/bin/bash
22

3-
echo "::group::db-sync setup"
4-
53
TEST_THREADS="${TEST_THREADS:-15}"
64
CLUSTERS_COUNT="${CLUSTERS_COUNT:-4}"
75
export TEST_THREADS CLUSTERS_COUNT
@@ -121,5 +119,3 @@ export PGPORT=5432
121119

122120
# start and setup postgres
123121
./scripts/postgres-start.sh "$WORKDIR/postgres" -k
124-
125-
echo "::endgroup::"

.github/source_plutus_apps.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#!/bin/bash
22

3-
echo "::group::plutus-apps setup"
4-
53
pushd "$WORKDIR" || exit 1
64

75
case "${PLUTUS_APPS_REV:-""}" in
@@ -43,5 +41,3 @@ PATH="$(readlink -m create-script-context-build/bin)":"$PATH"
4341
export PATH
4442

4543
pushd "$REPODIR" || exit 1
46-
47-
echo "::endgroup::"

0 commit comments

Comments
 (0)