Page MenuHomeMiraheze

Consider Icinga alert for undeployed code
Open, LowPublic

Description

We should alert if mediawiki-staging does not match mediawiki and the last commit was in staging was more than 30 minutes ago.

We can't just compare SHA512 of the whole folder they are intentional divergences. (PS,OAUTH2.key,removal of .git folder)

Event Timeline

RhinosF1 triaged this task as Low priority.
RhinosF1 created this task.

diff <(find /dir1/ -type f -exec md5sum {} + | sort -k 2 | sed 's/ .*\ /') <(find /dir2/ -type f -exec md5sum {} + | sort -k 2 | sed 's/ .*\ /')

Should detect a mismatch, probably just need to push this to a script that icinga can run.

diff -qr is enough. i will just make something parse it's output and throw away safe things.

diff -qr is enough. i will just make something parse it's output and throw away safe things.

Or use -X (--exclude-from) and pass in a file that contains a set of patters to exclude as safe.