balena-io-modules / open-balena-base

17 stars 12 forks source link

lock to prevent concurrent config updates #291

Closed ab77 closed 1 year ago

ab77 commented 1 year ago

when multiple instances initialise (in BoB for example) and write to /balena/{{uuid}}.{{tld}}.env, it could lead to config corruption (e.g. duplicate env var keys). So we get random test failures.

.. as was the case here:

https://github.com/balena-io/balena-cloud/pull/1260 https://github.com/balena-io/balena-cloud/actions/runs/4801183207/jobs/8543115448

ab77 commented 1 year ago

lgtm