discourse/lib/turbo_tests
Alan Guo Xiang Tan 655c106101
DEV: Capture and log AR debug logs on GitHub actions for flaky tests (#25048)
Why this change?

We have been running into flaky tests which seems to be related to
AR transaction problems. However, we are not able to reproduce this
locally and do not have sufficient information on our builds now to
debug the problem.

What does this change do?

Noe the following changes only applies when `ENV["GITHUB_ACTIONS"]` is
present.

This change introduces an RSpec around hook when `capture_log: true` has
been set for a test. The responsibility of the hook is to capture the
ActiveRecord debug logs and print them out.
2023-12-27 14:40:00 +08:00
..
flaky DEV: Remove flaky tests report when there are too many failures (#25031) 2023-12-26 09:23:17 +08:00
base_formatter.rb DEV: Summarize JS deprecations at end of system spec run (#24824) 2023-12-13 16:04:25 +00:00
documentation_formatter.rb DEV: Capture and log AR debug logs on GitHub actions for flaky tests (#25048) 2023-12-27 14:40:00 +08:00
json_example.rb DEV: Capture and log AR debug logs on GitHub actions for flaky tests (#25048) 2023-12-27 14:40:00 +08:00
json_rows_formatter.rb DEV: Introduce automatic reruns to RSpec tests on Github actions (#24811) 2023-12-13 07:18:27 +08:00
progress_formatter.rb DEV: Add `--profile=[COUNT]` option for `turbo_rspec` 2023-05-30 13:46:14 +09:00
reporter.rb DEV: Introduce automatic reruns to RSpec tests on Github actions (#24811) 2023-12-13 07:18:27 +08:00
runner.rb DEV: Remove flaky tests report when there are too many failures (#25031) 2023-12-26 09:23:17 +08:00