Skip to content

Commit

Permalink
ci: add poll-disk-space to logs
Browse files Browse the repository at this point in the history
Temporary (probably) commit to help debug disk space issues
  • Loading branch information
vindard committed Feb 6, 2024
1 parent 34b3562 commit 9535eb7
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
5 changes: 5 additions & 0 deletions dev/BUCK
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@ sh_binary(
main = "bin/init-lightning.sh",
)

sh_binary(
name = "poll-disk-space",
main = "bin/poll-disk-space.sh",
)

sh_binary(
name = "init-user",
main = "bin/init-user.sh",
Expand Down
9 changes: 9 additions & 0 deletions dev/Tiltfile
Original file line number Diff line number Diff line change
Expand Up @@ -498,6 +498,14 @@ local_resource(
]
)

local_resource(
name='poll-disk-space',
labels = ['health'],
auto_init = is_ci,
serve_cmd='buck2 run //dev:poll-disk-space',
allow_parallel = True,
)

api_keys_target = "//core/api-keys:api-keys"
local_resource(
"api-keys",
Expand Down Expand Up @@ -573,6 +581,7 @@ if to_test != []:
svc = TEST_RESOURCES.get(label)
if svc:
enabled_resources.append(svc)
enabled_resources.append("poll-disk-space")
config.set_enabled_resources(enabled_resources)

docker_compose("./docker-compose.deps.yml", project_name = "galoy-dev")
Expand Down
9 changes: 9 additions & 0 deletions dev/bin/poll-disk-space.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin/bash

while true
do
echo "Timestamp: $(date)"
df -h
sleep 5
echo
done

0 comments on commit 9535eb7

Please sign in to comment.