zebra/.github
Gustavo Valverde 5c3a02a1d0
fix(ci): disk validation for docker volume mount (#7665)
* fix(ci): disk validation for docker volume mount

* Use a symlink for lightwalletd cached state rather than mounting the same volume twice

* Avoid "sdb seems to be busy" errors from docker by adding extra sleeps

* Add a missing backslash

* Remove symlink from workflow

* Symlink lightwalletd path in entrypoint.sh

* Retry on failure and check Docker logs

* End ssh shell lines with explicit terminators

* Delete Docker containers if Docker mount fails

* Revert symlink changes in entrypoint.sh

* Debug using lsof

* Use correct lsof commands

* Use correct syntax for lsof +D

* fix(ci): make multiple validations before mounting

Loop and checks for three conditions:
The device `/dev/sdb` exists.
No process is using the device `/dev/sdb`.
No process is using the Docker volume directory.

* fix: do not pre-mount docker volume

The Docker version available with the newer `cos-stable` OS (https://cloud.google.com/release-notes#cos-109-17800-0-45) allows to mount the image when running it.

Mounting it before makes the disk unavailable.

* fix: remove extra `;`

* fix: just confirm with `lsof` and show it's output

* chore: reduce diff

---------

Co-authored-by: teor <teor@riseup.net>
2023-10-06 14:00:57 +01:00
..
ISSUE_TEMPLATE change(release): Add "wait for a full sync" to the release checklist and ticket template (#7612) 2023-09-28 22:53:30 +00:00
PULL_REQUEST_TEMPLATE change(release): Add "wait for a full sync" to the release checklist and ticket template (#7612) 2023-09-28 22:53:30 +00:00
workflows fix(ci): disk validation for docker volume mount (#7665) 2023-10-06 14:00:57 +01:00
CODEOWNERS fit(whitespace): Update CODEOWNERS (#7296) 2023-08-03 15:21:02 +00:00
dependabot.yml Add bridgetree to the ECC dependabot group (#7537) 2023-09-13 08:30:20 +00:00
mergify.yml change(merge): Require 2 reviews for PRs with an extra-reviews label (#7158) 2023-07-11 09:34:15 +10:00
pull_request_template.md updates pull request template (#5988) 2023-01-18 02:23:19 +00:00
release-drafter.yml change(merge): Require 2 reviews for PRs with an extra-reviews label (#7158) 2023-07-11 09:34:15 +10:00
zbot.yml Create zbot.yml 2020-06-13 06:15:20 -04:00