etl icon indicating copy to clipboard operation
etl copied to clipboard

Something might be resetting MySQL database on staging servers

Open Marigold opened this issue 8 months ago • 1 comments

It looks like something might be resetting MySQL database on staging servers. This happened two times already

By @pabloarosado

is it possible that this staging server has been reverted to master at some point in the last 6 days? I have the memory of having spent 1 or 2 hours replacing instances of "caloric intake" -> "calorie supply" in multiple charts, and now I don't see those changes. I did make some changes in metadata, but I think I also changed some FASTT. Could this have happened somehow? I'm puzzled

by @lucasrodes

mmmh ー I just experienced the same. I was working yesterday on drafting some charts, which I shared in this comment. I went back now to the stging server and the charts are gone. unsure if related, but today i re-ran a job in master to see if that solved Pablo’s issue. here the ci/cd job: https://buildkite.com/our-world-in-data/etl-automated-staging-environment/builds/5306 could it be that i triggered something that overwrote stuff on staging servers?

This looks like make refresh has been run on those servers. There are only a couple of places we run it in Buildkite

Hypotheses:

  • It doesn't run on master only, but might be run on other branches too
  • Manual triggers from Buildkite (restarting the job and selecting the wrong branch)

To mitigate this, we could enable general log in MySQL on staging servers and start backing it up to disk.

Marigold avatar May 30 '24 08:05 Marigold