···1515 with subtest("whether logrotate works"):
1616 machine.succeed(
1717 # we must rotate once first to create logrotate stamp
1818- "systemctl start --wait logrotate.service",
1818+ "systemctl start logrotate.service")
1919+ # we need to wait for console text once here to
2020+ # clear console buffer up to this point for next wait
2121+ machine.wait_for_console_text('logrotate.service: Deactivated successfully')
19222323+ machine.succeed(
2024 # wtmp is present in default config.
2125 "rm -f /var/log/wtmp*",
2226 # we need to give it at least 1MB
2327 "dd if=/dev/zero of=/var/log/wtmp bs=2M count=1",
24282525- # move into the future and rotate
2626- "date -s 'now + 1 month + 1 day'",
2727- # systemd will run logrotate from logrotate.timer automatically
2828- # on date change, but if we want to wait for it to terminate
2929- # it's easier to run again...
3030- "systemctl start --wait logrotate.service",
3131-2929+ # move into the future and check rotation.
3030+ "date -s 'now + 1 month + 1 day'")
3131+ machine.wait_for_console_text('logrotate.service: Deactivated successfully')
3232+ machine.succeed(
3233 # check rotate worked
3334 "[ -e /var/log/wtmp.1 ]",
3435 )
···207207 end
208208 end
209209 end
210210+diff --git a/scripts/decomposition/generate-loose-foreign-key b/scripts/decomposition/generate-loose-foreign-key
211211+index 35f84c64ce1..c2fecf3404c 100755
212212+--- a/scripts/decomposition/generate-loose-foreign-key
213213++++ b/scripts/decomposition/generate-loose-foreign-key
214214+@@ -1,4 +1,4 @@
215215+-#!/usr/bin/env -S ENABLE_SPRING=0 bin/rails runner -e test
216216++#!/usr/bin/env rails
217217+218218+ # This is helper script to swap foreign key to loose foreign key
219219+ # using DB schema