Skip to content

Commit 10ade3d

Browse files
asaezpercodebot
authored andcommitted
ci,e2e: verbose print of e2e artifacts to discover big files
1 parent 2d053e1 commit 10ade3d

File tree

2 files changed

+24
-3
lines changed

2 files changed

+24
-3
lines changed

.gitlab/ci/e2e.yml

Lines changed: 22 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,11 +178,32 @@ e2e request and config validation:
178178
find . -iname "test_metrics.csv" -exec \
179179
influx write --host $INFLUXDB_URL --token $INFLUXDB_TOKEN --org $INFLUXDB_ORG \
180180
--bucket ci --file {} \;
181+
# Artifact size
182+
- echo -e "\e[0Ksection_start:`date +%s`:e2e_folder_section[collapsed=true]\r\e[0KLog folder's tree"
183+
- |
184+
print_tree() {
185+
local dir="$1"
186+
local prefix="$2"
187+
188+
# List directories first
189+
find "$dir" -mindepth 1 -maxdepth 1 -type d | while read -r subdir; do
190+
local size=$(du -sh "$subdir" | awk '{print $1}')
191+
echo "${prefix}├── $(basename "$subdir") [$size]"
192+
print_tree "$subdir" "$prefix│ "
193+
done
194+
195+
# List files afterwards
196+
find "$dir" -mindepth 1 -maxdepth 1 -type f | while read -r file; do
197+
local size=$(du -sh "$file" | awk '{print $1}')
198+
echo "${prefix}├── $(basename "$file") [$size]"
199+
done
200+
}
201+
print_tree "tests/e2e/log/" ""
202+
- echo -e "\e[0Ksection_end:`date +%s`:e2e_folder_section\r\e[0K"
181203
- |
182204
echo "*******************************************************************************************************************************"
183205
echo "Test report ---> https://softwareradiosystems.gitlab.io/-/$CI_PROJECT_NAME/-/jobs/$CI_JOB_ID/artifacts/tests/e2e/log//report.html"
184206
echo "*******************************************************************************************************************************"
185-
- du -hs tests/e2e/log/
186207
needs:
187208
- *retina-needs
188209

.gitlab/ci/e2e/retina_request_viavi.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
requests: 4Gi
2222
limits: 4Gi
2323
ephemeral-storage:
24-
requests: "20G"
25-
limits: "20G"
24+
requests: "50G"
25+
limits: "50G"
2626
taints: ["purpose=ci-amd64-avx512-onprem"]
2727
resources:
2828
- type: emulator

0 commit comments

Comments
 (0)