0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-04 10:39:43 +08:00
discourse/script
Alan Guo Xiang Tan 9e2a10b427
DEV: Add image-processing regression coverage (#42117)
Previously, important image-processing behavior lacked precise
regression coverage, making image-library upgrades difficult to assess
safely.

This change adds coverage without changing production behavior:

- Exercises public upload and image-model outcomes for SVG sanitization,
format detection and conversion, transparency, animation metadata, EXIF
orientation normalization, malformed input rejection, crop positioning,
tiny-image resizing, dominant-color caching, and image-quality
selection.
- Keeps normal LetterAvatar RSpec coverage portable by generating one
representative PNG and checking its format and requested dimensions.
- Adds a separate Linux-only `script/letter_avatar_pixel_diff` workflow
that compares A–Z renders with committed baselines and generates an HTML
expected/actual/highlighted-diff report. Use `--update-baselines` when
intentionally accepting rendering changes.
- Uses deterministic fixtures with regeneration guidance beside the
relevant specs.
2026-07-30 15:28:07 +08:00
..
benchmarks
bulk_import FIX: Preserve user locale data in generic bulk imports (#41957) 2026-07-23 01:13:49 -04:00
demon_test
import_scripts FIX: Scope duplicate topic title check to what the user can see (#41871) 2026-07-24 15:35:35 +02:00
.gitignore
alice.txt
analyse_message_bus.rb
analyze_sidekiq_queues.rb
assemble_ember_build.rb FIX: Build plugin JS assets when there is no prebuilt bundle (#41659) 2026-07-13 17:08:49 +02:00
backport.rb DEV: More improvements to backport automation (#40839) 2026-06-14 16:01:28 +01:00
bench.rb DEV: Remove Unicorn web server in favor of Pitchfork (#39032) 2026-04-01 15:04:59 +02:00
biggest_objects.rb DEV: Enable Style/RedundantBegin rubocop rule (#40096) 2026-05-19 18:44:54 +02:00
boot_mem.rb DEV: Enable Style/RedundantBegin rubocop rule (#40096) 2026-05-19 18:44:54 +02:00
cache_critical_dns DEV: Enable Style/RedundantBegin rubocop rule (#40096) 2026-05-19 18:44:54 +02:00
check_forking.rb
check_reproducible_assets.rb DEV: Prepare for rename of app/assets/javascripts/ -> frontend/ 2025-10-22 16:24:11 +01:00
copyright-deposit
create_upcoming_change_status_prs DEV: Automatic upcoming change status report and PR creation (#40291) 2026-06-11 15:19:15 +10:00
db_timestamps_mover.rb DEV: Ensure db_timestamps_mover only touches non-null columns (#40851) 2026-06-14 14:53:07 +01:00
diff_heaps.rb DEV: Update to lastest rubocop-discourse 2024-05-27 18:06:14 +02:00
discourse DEV: Replace simple subprocesses with Ruby APIs (#42076) 2026-07-28 12:03:07 +08:00
docker_test.rb
generate_upcoming_change_status_report DEV: Fix UC status report when reverted files encountered (#41821) 2026-07-20 16:37:35 +10:00
i18n_lint.rb UX: Link to required settings from language switcher validation error (#38374) 2026-07-16 15:51:06 -04:00
install_minio_binaries.rb
letter_avatar_pixel_diff DEV: Add image-processing regression coverage (#42117) 2026-07-30 15:28:07 +08:00
list_bundled_plugins DEV: Update core lint commands to only affect bundled plugins (#29824) 2024-11-19 18:56:14 +00:00
local_minio_s3.rb DEV: Enable Style/RedundantBegin rubocop rule (#40096) 2026-05-19 18:44:54 +02:00
memory-analysis DEV: Enable Style/RedundantBegin rubocop rule (#40096) 2026-05-19 18:44:54 +02:00
memstats.rb DEV: Enable Style/RedundantSelf rubocop rule (#40098) 2026-05-19 19:27:45 +02:00
micro_bench.rb
mwrap_sidekiq DEV: Enable Style/RedundantBegin rubocop rule (#40096) 2026-05-19 18:44:54 +02:00
profile_db_generator.rb DEV: Enable Style/RedundantBegin rubocop rule (#40096) 2026-05-19 18:44:54 +02:00
promote_migrations DEV: Promote old post-deploy migrations to pre-deploy (#38595) 2026-03-13 19:09:30 +00:00
publish_built_assets.rb DEV: Remove (again) the old non-rollup plugin compiler (#39419) 2026-04-21 21:07:46 +02:00
rails
redis_memory.rb
require_profiler.rb DEV: Enable Style/RedundantBegin rubocop rule (#40096) 2026-05-19 18:44:54 +02:00
run-licensee DEV: Update licensee config & execution (#40454) 2026-06-03 15:48:08 +01:00
silence_successful_output
spawn_backup_restore.rb DEV: Rename Backuper to Creator 2026-01-22 18:46:02 +00:00
start_test_db.rb DEV: Improve db_structure tasks (#40067) 2026-05-15 11:40:07 +01:00
switch_container_ruby
test_email_settings.rb
test_mem.rb DEV: Enable Style/RedundantBegin rubocop rule (#40096) 2026-05-19 18:44:54 +02:00
test_memory_leak.rb DEV: Enable Style/RedundantParentheses rubocop rule (#40095) 2026-05-19 15:48:09 +02:00
test_pretty_text.rb
thread_detective.rb DEV: Enable Style/RedundantSelf rubocop rule (#40098) 2026-05-19 19:27:45 +02:00
upcoming_changes_status_report DEV: Automatic upcoming change status report and PR creation (#40291) 2026-06-11 15:19:15 +10:00
user_simulator.rb DEV: Clean up requires (#34946) 2025-09-24 12:00:22 +02:00