DEPRECATION WARNING: Using legacy connection handling is deprecated. Please set
`legacy_connection_handling` to `false` in your application.
The new connection handling does not support `connection_handlers`
getter and setter.
Read more about how to migrate at: https://guides.rubyonrails.org/active_record_multiple_databases.html#migrate-to-the-new-connection-handling
(called from at /home/jan/discourse/config/environment.rb:7)
Randomized with seed 7614
..........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................^[[3~
.
............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................oxipng worker: `oxipng` not found; please provide proper binary or disable this worker (--no-oxipng argument or `:oxipng => false` through options)
..............................................................................................................................................................DEPRECATION WARNING: ActiveRecord::Base.writing_role is deprecated and will be removed in Rails 7.1.
Use `ActiveRecord.writing_role` instead.
(called from test_multisite_connection at /home/jan/discourse/spec/rails_helper.rb:420)
..........................................................*..............................................................................................................................................................................................................................................................................................................................................................................*.............................................................................................................................................................................................................................................................................................................F...............................................................................................................................................................................................................................................................................................................................................................................................................................................~~~~~~ JS ERRORS: ~~~~~~~
http://localhost:31337/t/this-is-a-test-topic-706/841 303:18 "Unable to load splash screen JS"
http://localhost:31337/assets/browser-update.js - Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:31337/assets/browser-detect.js - Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:31337/assets/start-discourse.js - Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:31337/assets/vendor.js - Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:31337/assets/discourse.js - Failed to load resource: the server responded with a status of 404 (Not Found)
F~~~~~~ JS ERRORS: ~~~~~~~
http://localhost:31337/t/this-is-a-test-topic-706/841 303:18 "Unable to load splash screen JS"
http://localhost:31337/assets/browser-update.js - Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:31337/assets/discourse.js - Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:31337/assets/start-discourse.js - Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:31337/assets/vendor.js - Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:31337/assets/browser-detect.js - Failed to load resource: the server responded with a status of 404 (Not Found)
F~~~~~~ JS ERRORS: ~~~~~~~
http://localhost:31337/t/this-is-a-test-topic-706/841 303:18 "Unable to load splash screen JS"
http://localhost:31337/assets/browser-update.js - Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:31337/assets/start-discourse.js - Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:31337/assets/discourse.js - Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:31337/assets/vendor.js - Failed to load resource: the server responded with a status of 404 (Not Found)
http://localhost:31337/assets/browser-detect.js - Failed to load resource: the server responded with a status of 404 (Not Found)
F.....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................*............................................................F.....oxipng worker: `oxipng` not found; please provide proper binary or disable this worker (--no-oxipng argument or `:oxipng => false` through options)
F...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................F.........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................F...........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................F...................................................................................................................................................F..F.F....................................................................................................................................................................................................................... ..................................................................................................................................................................................................................................................................................................................*.................................................................................................................................................................................................................F.F.........................................................................................................................FF....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................*.....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................*......................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................*.....................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................F...F...F......F..............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................F.........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................FFF.F..................................................................................................................................................................................................................................................................................................................................................................................................................................FFFF..........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
Pending: (Failures listed here are expected and do not affect your suite's status)
1) CookedPostProcessor#post_process when processing images with large images with s3_uploads when the upload is attached to the correct post handles secure images with the correct lightbox link href
# Temporarily skipped with xit
# ./spec/lib/cooked_post_processor_spec.rb:514
2) backups /admin/backups.json post success response
# Temporarily skipped with xit
# ./spec/requests/api/backups_spec.rb:78
3) Imap::Sync invalidated previous sync is updated
# Temporarily skipped with xit
# ./spec/lib/imap/sync_spec.rb:542
4) Onebox::Helpers redirects cookie handling does not send cookies to the wrong domain
# unimplemented
# ./spec/lib/onebox/helpers_spec.rb:115
5) uploads /uploads.json post file uploaded
# Temporarily skipped with xit
# ./spec/requests/api/uploads_spec.rb:38
6) UrlHelper#normalized_encode leaves reserved chars alone in edge cases
# see: https://github.com/sporkmonger/addressable/issues/472
# ./spec/lib/url_helper_spec.rb:125
7) PostAction#add_moderator_post_if_needed should not add a moderator post when post is flagged via private message
# No reason given
# ./spec/models/post_action_spec.rb:892
Mocha deprecation warning at /home/jan/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/oauth-1.1.0/lib/oauth/errors/unauthorized.rb:15:in `to_s': # was instantiated in one test but it is receiving invocations within another test. This can lead to unintended interactions between tests and hence unexpected test failures. Ensure that every test correctly cleans up any state that it introduces. A Mocha::StubbingError will be raised in this scenario in the future.
Mocha deprecation warning at /home/jan/.rbenv/versions/2.7.2/lib/ruby/gems/2.7.0/gems/oauth-1.1.0/lib/oauth/errors/unauthorized.rb:15:in `to_s': # was instantiated in one test but it is receiving invocations within another test. This can lead to unintended interactions between tests and hence unexpected test failures. Ensure that every test correctly cleans up any state that it introduces. A Mocha::StubbingError will be raised in this scenario in the future.
Failures:
1) ApplicationHelper application_logo_dark_url when dark theme is present when dark logo is present should return correct url
Failure/Error: expect(helper.application_logo_dark_url).to eq(SiteSetting.site_logo_dark_url)
expected: "http://test.localhost/images/logo-dark.png"
got: nil
(compared using ==)
# ./spec/helpers/application_helper_spec.rb:270:in `block (5 levels) in '
# ./spec/rails_helper.rb:328:in `block (2 levels) in '
2) Bookmarking posts and topics allows logged in user to create bookmarks with and without reminders
Failure/Error: find("#post_#{post.post_number}")
Capybara::ElementNotFound:
Unable to find css "#post_1"
[Screenshot Image]: /home/jan/discourse/tmp/capybara/failures_r_spec_example_groups_bookmarking_posts_and_topics_allows_logged_in_user_to_create_bookmarks_with_and_without_reminders_859.png
# ./spec/system/page_objects/pages/topic.rb:56:in `post_by_number'
# ./spec/system/page_objects/pages/topic.rb:14:in `has_post_content?'
# ./spec/system/bookmarks_spec.rb:13:in `block (2 levels) in '
# ./spec/rails_helper.rb:328:in `block (2 levels) in '
3) Bookmarking posts and topics does not create a bookmark if the modal is closed with the cancel button
Failure/Error: find("#post_#{post.post_number}")
Capybara::ElementNotFound:
Unable to find css "#post_1"
[Screenshot Image]: /home/jan/discourse/tmp/capybara/failures_r_spec_example_groups_bookmarking_posts_and_topics_does_not_create_a_bookmark_if_the_modal_is_closed_with_the_cancel_button_393.png
# ./spec/system/page_objects/pages/topic.rb:56:in `post_by_number'
# ./spec/system/page_objects/pages/topic.rb:30:in `expand_post_actions'
# ./spec/system/bookmarks_spec.rb:40:in `block (2 levels) in '
# ./spec/rails_helper.rb:328:in `block (2 levels) in '
4) Bookmarking posts and topics allows the topic to be bookmarked
Failure/Error: find(topic_footer_button_id(button))
Capybara::ElementNotFound:
Unable to find css "#topic-footer-button-bookmark"
[Screenshot Image]: /home/jan/discourse/tmp/capybara/failures_r_spec_example_groups_bookmarking_posts_and_topics_allows_the_topic_to_be_bookmarked_401.png
# ./spec/system/page_objects/pages/topic.rb:46:in `find_topic_footer_button'
# ./spec/system/page_objects/pages/topic.rb:38:in `click_topic_footer_button'
# ./spec/system/bookmarks_spec.rb:55:in `block (2 levels) in '
# ./spec/rails_helper.rb:328:in `block (2 levels) in '
5) OptimizedImage.crop should produce cropped images (requires ImageMagick 7)
Failure/Error: expect(cropped_size).to be < 200
expected: < 200
got: 264
# ./spec/models/optimized_image_spec.rb:26:in `block (3 levels) in '
# ./spec/rails_helper.rb:328:in `block (2 levels) in '
6) OptimizedImage.crop .resize should work correctly when extension is bad
Failure/Error: expect(orig_size).to be > new_size
expected: > 9586
got: 2297
# ./spec/models/optimized_image_spec.rb:117:in `block (4 levels) in '
# ./spec/rails_helper.rb:328:in `block (2 levels) in '
7) ExternalUploadManager#transform! when stubbed upload is < DOWNLOAD_LIMIT (small enough to download + generate sha) when the upload does get changed by the UploadCreator creates a new upload in s3 (not copy) and deletes the original stubbed upload
Failure/Error:
raise CommandError.new(
"#{caller[0]}: #{failure_message}#{stderr}",
stdout: stdout,
stderr: stderr,
status: status
)
Discourse::Utils::CommandError:
/home/jan/discourse/lib/discourse.rb:131:in `exec': An error happened when converting from PNG to JPG.
2022-10-19T12:53:39+00:00 0:00.000 0.000u 6.9.12 Configure convert[11029]: utility.c/ExpandFilenames/970/Configure
Command line: convert {/tmp/discourse-upload-card_background20221019-9168-1qwv9cc.png} {-auto-orient} {-background} {white} {-interlace} {none} {-flatten} {-debug} {all} {/tmp/image20221019-9168-f9pg2.jpg}
2022-10-19T12:53:39+00:00 0:00.000 0.000u 6.9.12 Configure convert[11029]: configure.c/GetConfigureOptions/658/Configure
Searching for configure file: "/usr/share/ImageMagick-6/coder.xml"
2022-10-19T12:53:39+00:00 0:00.000 0.000u 6.9.12 Configure convert[11029]: configure.c/GetConfigureOptions/658/Configure
Searching for configure file: "/usr/lib64/ImageMagick-6.9.12//config-Q16/coder.xml"
2022-10-19T12:53:39+00:00 0:00.000 0.000u 6.9.12 Configure convert[11029]: configure.c/GetConfigureOptions/658/Configure
Searching for configure file: "/etc/ImageMagick-6/coder.xml"
2022-10-19T12:53:39+00:00 0:00.001 0.000u 6.9.12 Configure convert[11029]: configure.c/GetConfigureOptions/658/Configure
Searching for configure file: "/usr/share/doc/ImageMagick-6/coder.xml"
2022-10-19T12:53:39+00:00 0:00.001 0.000u 6.9.12 Configure convert[11029]: configure.c/GetConfigureOptions/658/Configure
Searching for configure file: "/home/jan/.config/ImageMagick/coder.xml"
2022-10-19T12:53:39+00:00 0:00.001 0.000u 6.9.12 Configure convert[11029]: configure.c/GetConfigureOptions/658/Configure
Searching for configure file: "/home/jan/.magick/coder.xml"
2022-10-19T12:53:39+00:00 0:00.001 0.000u 6.9.12 Configure convert[11029]: coder.c/LoadCoderCache/829/Configure
Loading coder configuration file "/etc/ImageMagick-6/coder.xml" ...
2022-10-19T12:53:39+00:00 0:00.001 0.000u 6.9.12 Policy convert[11029]: policy.c/IsRightsAuthorized/633/Policy
Domain: Module; rights=Unrecognized; pattern="PNG" ...
2022-10-19T12:53:39+00:00 0:00.001 0.000u 6.9.12 Module convert[11029]: module.c/OpenModule/1303/Module
Searching for module "PNG" using filename "png.la"
2022-10-19T12:53:39+00:00 0:00.001 0.000u 6.9.12 Module convert[11029]: module.c/GetMagickModulePath/548/Module
Searching for coder module file "png.la" ...
2022-10-19T12:53:39+00:00 0:00.001 0.000u 6.9.12 Module convert[11029]: module.c/OpenModule/1312/Module
Opening module at path "/usr/lib64/ImageMagick-6.9.12/modules-Q16/coders/png.la"
2022-10-19T12:53:39+00:00 0:00.001 0.000u 6.9.12 Module convert[11029]: module.c/OpenModule/1339/Module
Method "RegisterPNGImage" in module "PNG" at address 0x7fa9472c2be0
2022-10-19T12:53:39+00:00 0:00.001 0.000u 6.9.12 Module convert[11029]: module.c/OpenModule/1353/Module
Method "UnregisterPNGImage" in module "PNG" at address 0x7fa9472c3980
2022-10-19T12:53:39+00:00 0:00.001 0.000u 6.9.12 Policy convert[11029]: policy.c/IsRightsAuthorized/633/Policy
Domain: Path; rights=Read; pattern="/tmp/discourse-upload-card_background20221019-9168-1qwv9cc.png" ...
2022-10-19T12:53:39+00:00 0:00.001 0.000u 6.9.12 Blob convert[11029]: blob.c/OpenBlob/2840/Blob
read 3 magic header bytes
2022-10-19T12:53:39+00:00 0:00.001 0.000u 6.9.12 Resource convert[11029]: resource.c/AcquireMagickResource/439/Resource
Map: 166532B/166532B/15.3443GiB
2022-10-19T12:53:39+00:00 0:00.001 0.000u 6.9.12 Resource convert[11029]: resource.c/RelinquishMagickResource/1263/Resource
Map: 166532B/0B/15.3443GiB
2022-10-19T12:53:39+00:00 0:00.001 0.000u 6.9.12 Cache convert[11029]: cache.c/DestroyPixelCache/1196/Cache
destroy
2022-10-19T12:53:39+00:00 0:00.002 0.000u 6.9.12 Configure convert[11029]: configure.c/GetConfigureOptions/658/Configure
Searching for configure file: "/usr/share/ImageMagick-6/magic.xml"
2022-10-19T12:53:39+00:00 0:00.002 0.000u 6.9.12 Configure convert[11029]: configure.c/GetConfigureOptions/658/Configure
Searching for configure file: "/usr/lib64/ImageMagick-6.9.12//config-Q16/magic.xml"
2022-10-19T12:53:39+00:00 0:00.002 0.000u 6.9.12 Configure convert[11029]: configure.c/GetConfigureOptions/658/Configure
Searching for configure file: "/etc/ImageMagick-6/magic.xml"
2022-10-19T12:53:39+00:00 0:00.002 0.000u 6.9.12 Configure convert[11029]: configure.c/GetConfigureOptions/658/Configure
Searching for configure file: "/usr/share/doc/ImageMagick-6/magic.xml"
2022-10-19T12:53:39+00:00 0:00.002 0.000u 6.9.12 Configure convert[11029]: configure.c/GetConfigureOptions/658/Configure
Searching for configure file: "/home/jan/.config/ImageMagick/magic.xml"
2022-10-19T12:53:39+00:00 0:00.002 0.000u 6.9.12 Configure convert[11029]: configure.c/GetConfigureOptions/658/Configure
Searching for configure file: "/home/jan/.magick/magic.xml"
2022-10-19T12:53:39+00:00 0:00.002 0.000u 6.9.12 Configure convert[11029]: magic.c/LoadMagicCache/822/Configure
Loading magic configure file "/etc/ImageMagick-6/magic.xml" ...
2022-10-19T12:53:39+00:00 0:00.002 0.000u 6.9.12 Policy convert[11029]: policy.c/IsRightsAuthorized/633/Policy
Domain: Module; rights=Unrecognized; pattern="HEIC" ...
2022-10-19T12:53:39+00:00 0:00.002 0.000u 6.9.12 Module convert[11029]: module.c/OpenModule/1303/Module
Searching for module "HEIC" using filename "heic.la"
2022-10-19T12:53:39+00:00 0:00.002 0.000u 6.9.12 Module convert[11029]: module.c/GetMagickModulePath/548/Module
Searching for coder module file "heic.la" ...
2022-10-19T12:53:39+00:00 0:00.002 0.000u 6.9.12 Policy convert[11029]: policy.c/IsRightsAuthorized/633/Policy
Domain: Module; rights=Unrecognized; pattern="HEIC" ...
2022-10-19T12:53:39+00:00 0:00.002 0.000u 6.9.12 Module convert[11029]: module.c/OpenModule/1303/Module
Searching for module "HEIC" using filename "heic.la"
2022-10-19T12:53:39+00:00 0:00.002 0.000u 6.9.12 Module convert[11029]: module.c/GetMagickModulePath/548/Module
Searching for coder module file "heic.la" ...
2022-10-19T12:53:39+00:00 0:00.002 0.000u 6.9.12 Configure convert[11029]: configure.c/GetConfigureOptions/658/Configure
Searching for configure file: "/usr/share/ImageMagick-6/delegates.xml"
2022-10-19T12:53:39+00:00 0:00.002 0.000u 6.9.12 Configure convert[11029]: configure.c/GetConfigureOptions/658/Configure
Searching for configure file: "/usr/lib64/ImageMagick-6.9.12//config-Q16/delegates.xml"
2022-10-19T12:53:39+00:00 0:00.002 0.000u 6.9.12 Configure convert[11029]: configure.c/GetConfigureOptions/658/Configure
Searching for configure file: "/etc/ImageMagick-6/delegates.xml"
2022-10-19T12:53:39+00:00 0:00.002 0.000u 6.9.12 Configure convert[11029]: configure.c/GetConfigureOptions/658/Configure
Searching for configure file: "/usr/share/doc/ImageMagick-6/delegates.xml"
2022-10-19T12:53:39+00:00 0:00.002 0.000u 6.9.12 Configure convert[11029]: configure.c/GetConfigureOptions/658/Configure
Searching for configure file: "/home/jan/.config/ImageMagick/delegates.xml"
2022-10-19T12:53:39+00:00 0:00.002 0.000u 6.9.12 Configure convert[11029]: configure.c/GetConfigureOptions/658/Configure
Searching for configure file: "/home/jan/.magick/delegates.xml"
2022-10-19T12:53:39+00:00 0:00.002 0.000u 6.9.12 Configure convert[11029]: delegate.c/LoadDelegateCache/2162/Configure
Loading delegate configuration file "/etc/ImageMagick-6/delegates.xml" ...
2022-10-19T12:53:39+00:00 0:00.002 0.000u 6.9.12 Policy convert[11029]: policy.c/IsRightsAuthorized/633/Policy
Domain: Module; rights=Unrecognized; pattern="HEIC" ...
2022-10-19T12:53:39+00:00 0:00.002 0.000u 6.9.12 Module convert[11029]: module.c/OpenModule/1303/Module
Searching for module "HEIC" using filename "heic.la"
2022-10-19T12:53:39+00:00 0:00.002 0.000u 6.9.12 Module convert[11029]: module.c/GetMagickModulePath/548/Module
Searching for coder module file "heic.la" ...
2022-10-19T12:53:39+00:00 0:00.002 0.000u 6.9.12 Policy convert[11029]: policy.c/IsRightsAuthorized/633/Policy
Domain: Path; rights=Read; pattern="/tmp/discourse-upload-card_background20221019-9168-1qwv9cc.png" ...
2022-10-19T12:53:39+00:00 0:00.002 0.000u 6.9.12 Blob convert[11029]: blob.c/OpenBlob/2840/Blob
read 3 magic header bytes
2022-10-19T12:53:39+00:00 0:00.002 0.000u 6.9.12 Policy convert[11029]: policy.c/IsRightsAuthorized/633/Policy
Domain: Module; rights=Unrecognized; pattern="HEIC" ...
2022-10-19T12:53:39+00:00 0:00.002 0.000u 6.9.12 Module convert[11029]: module.c/OpenModule/1303/Module
Searching for module "HEIC" using filename "heic.la"
2022-10-19T12:53:39+00:00 0:00.002 0.000u 6.9.12 Module convert[11029]: module.c/GetMagickModulePath/548/Module
Searching for coder module file "heic.la" ...
2022-10-19T12:53:39+00:00 0:00.003 0.000u 6.9.12 Cache convert[11029]: cache.c/DestroyPixelCache/1196/Cache
destroy
2022-10-19T12:53:39+00:00 0:00.003 0.000u 6.9.12 Policy convert[11029]: policy.c/IsRightsAuthorized/633/Policy
Domain: Module; rights=Unrecognized; pattern="HEIC" ...
2022-10-19T12:53:39+00:00 0:00.003 0.000u 6.9.12 Module convert[11029]: module.c/OpenModule/1303/Module
Searching for module "HEIC" using filename "heic.la"
2022-10-19T12:53:39+00:00 0:00.003 0.000u 6.9.12 Module convert[11029]: module.c/GetMagickModulePath/548/Module
Searching for coder module file "heic.la" ...
2022-10-19T12:53:39+00:00 0:00.003 0.000u 6.9.12 Policy convert[11029]: policy.c/IsRightsAuthorized/633/Policy
Domain: Module; rights=Unrecognized; pattern="HEIC" ...
2022-10-19T12:53:39+00:00 0:00.003 0.000u 6.9.12 Module convert[11029]: module.c/OpenModule/1303/Module
Searching for module "HEIC" using filename "heic.la"
2022-10-19T12:53:39+00:00 0:00.003 0.000u 6.9.12 Module convert[11029]: module.c/GetMagickModulePath/548/Module
Searching for coder module file "heic.la" ...
2022-10-19T12:53:39+00:00 0:00.003 0.000u 6.9.12 Locale convert[11029]: locale.c/GetLocaleOptions/856/Locale
Searching for locale file: "/usr/share/ImageMagick-6/locale.xml"
2022-10-19T12:53:39+00:00 0:00.003 0.000u 6.9.12 Locale convert[11029]: locale.c/GetLocaleOptions/856/Locale
Searching for locale file: "/usr/lib64/ImageMagick-6.9.12//config-Q16/locale.xml"
2022-10-19T12:53:39+00:00 0:00.003 0.000u 6.9.12 Locale convert[11029]: locale.c/GetLocaleOptions/856/Locale
Searching for locale file: "/etc/ImageMagick-6/locale.xml"
2022-10-19T12:53:39+00:00 0:00.003 0.000u 6.9.12 Locale convert[11029]: locale.c/GetLocaleOptions/856/Locale
Searching for locale file: "/usr/share/doc/ImageMagick-6/locale.xml"
2022-10-19T12:53:39+00:00 0:00.003 0.000u 6.9.12 Locale convert[11029]: locale.c/GetLocaleOptions/856/Locale
Searching for locale file: "/home/jan/.config/ImageMagick/locale.xml"
2022-10-19T12:53:39+00:00 0:00.003 0.000u 6.9.12 Locale convert[11029]: locale.c/GetLocaleOptions/856/Locale
Searching for locale file: "/home/jan/.magick/locale.xml"
2022-10-19T12:53:39+00:00 0:00.003 0.000u 6.9.12 Configure convert[11029]: locale.c/LoadLocaleCache/1210/Configure
Loading locale configure file "/usr/share/ImageMagick-6/locale.xml" ...
2022-10-19T12:53:39+00:00 0:00.003 0.000u 6.9.12 Locale convert[11029]: locale.c/GetLocaleOptions/856/Locale
Searching for locale file: "/usr/share/ImageMagick-6/english.xml"
2022-10-19T12:53:39+00:00 0:00.003 0.000u 6.9.12 Locale convert[11029]: locale.c/GetLocaleOptions/856/Locale
Searching for locale file: "/usr/lib64/ImageMagick-6.9.12//config-Q16/english.xml"
2022-10-19T12:53:39+00:00 0:00.003 0.000u 6.9.12 Locale convert[11029]: locale.c/GetLocaleOptions/856/Locale
Searching for locale file: "/etc/ImageMagick-6/english.xml"
2022-10-19T12:53:39+00:00 0:00.003 0.000u 6.9.12 Locale convert[11029]: locale.c/GetLocaleOptions/856/Locale
Searching for locale file: "/usr/share/doc/ImageMagick-6/english.xml"
2022-10-19T12:53:39+00:00 0:00.003 0.000u 6.9.12 Locale convert[11029]: locale.c/GetLocaleOptions/856/Locale
Searching for locale file: "/home/jan/.config/ImageMagick/english.xml"
2022-10-19T12:53:39+00:00 0:00.003 0.000u 6.9.12 Locale convert[11029]: locale.c/GetLocaleOptions/856/Locale
Searching for locale file: "/home/jan/.magick/english.xml"
2022-10-19T12:53:39+00:00 0:00.003 0.000u 6.9.12 Configure convert[11029]: locale.c/LoadLocaleCache/1210/Configure
Loading locale configure file "/usr/share/ImageMagick-6/english.xml" ...
2022-10-19T12:53:39+00:00 0:00.004 0.000u 6.9.12 Exception convert[11029]: constitute.c/ReadImage/576/Exception
no decode delegate for this image format `HEIC'
2022-10-19T12:53:39+00:00 0:00.004 0.000u 6.9.12 Configure convert[11029]: configure.c/GetConfigureOptions/658/Configure
Searching for configure file: "/usr/share/ImageMagick-6/colors.xml"
2022-10-19T12:53:39+00:00 0:00.004 0.000u 6.9.12 Configure convert[11029]: configure.c/GetConfigureOptions/658/Configure
Searching for configure file: "/usr/lib64/ImageMagick-6.9.12//config-Q16/colors.xml"
2022-10-19T12:53:39+00:00 0:00.004 0.000u 6.9.12 Configure convert[11029]: configure.c/GetConfigureOptions/658/Configure
Searching for configure file: "/etc/ImageMagick-6/colors.xml"
2022-10-19T12:53:39+00:00 0:00.004 0.000u 6.9.12 Configure convert[11029]: configure.c/GetConfigureOptions/658/Configure
Searching for configure file: "/usr/share/doc/ImageMagick-6/colors.xml"
2022-10-19T12:53:39+00:00 0:00.004 0.000u 6.9.12 Configure convert[11029]: configure.c/GetConfigureOptions/658/Configure
Searching for configure file: "/home/jan/.config/ImageMagick/colors.xml"
2022-10-19T12:53:39+00:00 0:00.004 0.000u 6.9.12 Configure convert[11029]: configure.c/GetConfigureOptions/658/Configure
Searching for configure file: "/home/jan/.magick/colors.xml"
2022-10-19T12:53:39+00:00 0:00.004 0.000u 6.9.12 Configure convert[11029]: color.c/LoadColorCache/2226/Configure
Loading color file "/etc/ImageMagick-6/colors.xml" ...
2022-10-19T12:53:39+00:00 0:00.004 0.000u 6.9.12 Exception convert[11029]: convert.c/ConvertImageCommand/3229/Exception
no images defined `/tmp/image20221019-9168-f9pg2.jpg'
convert: no decode delegate for this image format `HEIC' @ error/constitute.c/ReadImage/576.
convert: no images defined `/tmp/image20221019-9168-f9pg2.jpg' @ error/convert.c/ConvertImageCommand/3229.
# ./lib/discourse.rb:158:in `execute_command'
# ./lib/discourse.rb:131:in `exec'
# ./lib/discourse.rb:28:in `execute_command'
# ./lib/upload_creator.rb:373:in `execute_convert'
# ./lib/upload_creator.rb:351:in `rescue in convert_heif!'
# ./lib/upload_creator.rb:347:in `convert_heif!'
# ./lib/upload_creator.rb:67:in `block in create_for'
# ./lib/distributed_mutex.rb:57:in `block in synchronize'
# ./lib/distributed_mutex.rb:53:in `synchronize'
# ./lib/distributed_mutex.rb:53:in `synchronize'
# ./lib/distributed_mutex.rb:38:in `synchronize'
# ./lib/upload_creator.rb:64:in `create_for'
# ./app/services/external_upload_manager.rb:154:in `promote_to_upload'
# ./app/services/external_upload_manager.rb:109:in `transform!'
# ./spec/services/external_upload_manager_spec.rb:108:in `block (5 levels) in '
# ./spec/rails_helper.rb:328:in `block (2 levels) in '
# ------------------
# --- Caused by: ---
# Discourse::Utils::CommandError:
# /home/jan/discourse/lib/discourse.rb:131:in `exec': An error happened when converting from PNG to JPG.
# convert: no decode delegate for this image format `HEIC' @ error/constitute.c/ReadImage/576.
# convert: no images defined `/tmp/image20221019-9168-f9pg2.jpg' @ error/convert.c/ConvertImageCommand/3229.
# ./lib/discourse.rb:158:in `execute_command'
8) UploadCreator#create_for converting HEIF to jpeg should store the upload with the right extension
Failure/Error:
raise CommandError.new(
"#{caller[0]}: #{failure_message}#{stderr}",
stdout: stdout,
stderr: stderr,
status: status
)
Discourse::Utils::CommandError:
/home/jan/discourse/lib/discourse.rb:131:in `exec': An error happened when converting from PNG to JPG.
2022-10-19T12:54:05+00:00 0:00.000 0.000u 6.9.12 Configure convert[11166]: utility.c/ExpandFilenames/970/Configure
Command line: convert {/tmp/rspec_9168_337b7f0adcae444154c4efeaf2c2e5d8/10424ee9c301f6b80f319d212cf3f541should_be_jpeg.heic} {-auto-orient} {-background} {white} {-interlace} {none} {-flatten} {-debug} {all} {/tmp/image20221019-9168-3zt56t.jpg}
2022-10-19T12:54:05+00:00 0:00.000 0.000u 6.9.12 Configure convert[11166]: configure.c/GetConfigureOptions/658/Configure
Searching for configure file: "/usr/share/ImageMagick-6/coder.xml"
2022-10-19T12:54:05+00:00 0:00.000 0.000u 6.9.12 Configure convert[11166]: configure.c/GetConfigureOptions/658/Configure
Searching for configure file: "/usr/lib64/ImageMagick-6.9.12//config-Q16/coder.xml"
2022-10-19T12:54:05+00:00 0:00.000 0.000u 6.9.12 Configure convert[11166]: configure.c/GetConfigureOptions/658/Configure
Searching for configure file: "/etc/ImageMagick-6/coder.xml"
2022-10-19T12:54:05+00:00 0:00.000 0.000u 6.9.12 Configure convert[11166]: configure.c/GetConfigureOptions/658/Configure
Searching for configure file: "/usr/share/doc/ImageMagick-6/coder.xml"
2022-10-19T12:54:05+00:00 0:00.000 0.000u 6.9.12 Configure convert[11166]: configure.c/GetConfigureOptions/658/Configure
Searching for configure file: "/home/jan/.config/ImageMagick/coder.xml"
2022-10-19T12:54:05+00:00 0:00.000 0.000u 6.9.12 Configure convert[11166]: configure.c/GetConfigureOptions/658/Configure
Searching for configure file: "/home/jan/.magick/coder.xml"
2022-10-19T12:54:05+00:00 0:00.001 0.000u 6.9.12 Configure convert[11166]: coder.c/LoadCoderCache/829/Configure
Loading coder configuration file "/etc/ImageMagick-6/coder.xml" ...
2022-10-19T12:54:05+00:00 0:00.001 0.000u 6.9.12 Policy convert[11166]: policy.c/IsRightsAuthorized/633/Policy
Domain: Module; rights=Unrecognized; pattern="HEIC" ...
2022-10-19T12:54:05+00:00 0:00.001 0.000u 6.9.12 Module convert[11166]: module.c/OpenModule/1303/Module
Searching for module "HEIC" using filename "heic.la"
2022-10-19T12:54:05+00:00 0:00.001 0.000u 6.9.12 Module convert[11166]: module.c/GetMagickModulePath/548/Module
Searching for coder module file "heic.la" ...
2022-10-19T12:54:05+00:00 0:00.001 0.000u 6.9.12 Policy convert[11166]: policy.c/IsRightsAuthorized/633/Policy
Domain: Module; rights=Unrecognized; pattern="HEIC" ...
2022-10-19T12:54:05+00:00 0:00.001 0.000u 6.9.12 Module convert[11166]: module.c/OpenModule/1303/Module
Searching for module "HEIC" using filename "heic.la"
2022-10-19T12:54:05+00:00 0:00.001 0.000u 6.9.12 Module convert[11166]: module.c/GetMagickModulePath/548/Module
Searching for coder module file "heic.la" ...
2022-10-19T12:54:05+00:00 0:00.001 0.000u 6.9.12 Policy convert[11166]: policy.c/IsRightsAuthorized/633/Policy
Domain: Path; rights=Read; pattern="/tmp/rspec_9168_337b7f0adcae444154c4efeaf2c2e5d8/10424ee9c301f6b80f319d212cf3f541should_be_jpeg.heic" ...
2022-10-19T12:54:05+00:00 0:00.001 0.000u 6.9.12 Blob convert[11166]: blob.c/OpenBlob/2840/Blob
read 3 magic header bytes
2022-10-19T12:54:05+00:00 0:00.001 0.000u 6.9.12 Policy convert[11166]: policy.c/IsRightsAuthorized/633/Policy
Domain: Module; rights=Unrecognized; pattern="HEIC" ...
2022-10-19T12:54:05+00:00 0:00.001 0.000u 6.9.12 Module convert[11166]: module.c/OpenModule/1303/Module
Searching for module "HEIC" using filename "heic.la"
2022-10-19T12:54:05+00:00 0:00.001 0.000u 6.9.12 Module convert[11166]: module.c/GetMagickModulePath/548/Module
Searching for coder module file "heic.la" ...
2022-10-19T12:54:05+00:00 0:00.001 0.000u 6.9.12 Cache convert[11166]: cache.c/DestroyPixelCache/1196/Cache
destroy
2022-10-19T12:54:05+00:00 0:00.001 0.000u 6.9.12 Configure convert[11166]: configure.c/GetConfigureOptions/658/Configure
Searching for configure file: "/usr/share/ImageMagick-6/magic.xml"
2022-10-19T12:54:05+00:00 0:00.001 0.000u 6.9.12 Configure convert[11166]: configure.c/GetConfigureOptions/658/Configure
Searching for configure file: "/usr/lib64/ImageMagick-6.9.12//config-Q16/magic.xml"
2022-10-19T12:54:05+00:00 0:00.001 0.000u 6.9.12 Configure convert[11166]: configure.c/GetConfigureOptions/658/Configure
Searching for configure file: "/etc/ImageMagick-6/magic.xml"
2022-10-19T12:54:05+00:00 0:00.001 0.000u 6.9.12 Configure convert[11166]: configure.c/GetConfigureOptions/658/Configure
Searching for configure file: "/usr/share/doc/ImageMagick-6/magic.xml"
2022-10-19T12:54:05+00:00 0:00.001 0.000u 6.9.12 Configure convert[11166]: configure.c/GetConfigureOptions/658/Configure
Searching for configure file: "/home/jan/.config/ImageMagick/magic.xml"
2022-10-19T12:54:05+00:00 0:00.001 0.000u 6.9.12 Configure convert[11166]: configure.c/GetConfigureOptions/658/Configure
Searching for configure file: "/home/jan/.magick/magic.xml"
2022-10-19T12:54:05+00:00 0:00.001 0.000u 6.9.12 Configure convert[11166]: magic.c/LoadMagicCache/822/Configure
Loading magic configure file "/etc/ImageMagick-6/magic.xml" ...
2022-10-19T12:54:05+00:00 0:00.001 0.000u 6.9.12 Policy convert[11166]: policy.c/IsRightsAuthorized/633/Policy
Domain: Module; rights=Unrecognized; pattern="HEIC" ...
2022-10-19T12:54:05+00:00 0:00.001 0.000u 6.9.12 Module convert[11166]: module.c/OpenModule/1303/Module
Searching for module "HEIC" using filename "heic.la"
2022-10-19T12:54:05+00:00 0:00.001 0.000u 6.9.12 Module convert[11166]: module.c/GetMagickModulePath/548/Module
Searching for coder module file "heic.la" ...
2022-10-19T12:54:05+00:00 0:00.001 0.000u 6.9.12 Policy convert[11166]: policy.c/IsRightsAuthorized/633/Policy
Domain: Module; rights=Unrecognized; pattern="HEIC" ...
2022-10-19T12:54:05+00:00 0:00.001 0.000u 6.9.12 Module convert[11166]: module.c/OpenModule/1303/Module
Searching for module "HEIC" using filename "heic.la"
2022-10-19T12:54:05+00:00 0:00.001 0.000u 6.9.12 Module convert[11166]: module.c/GetMagickModulePath/548/Module
Searching for coder module file "heic.la" ...
2022-10-19T12:54:05+00:00 0:00.001 0.000u 6.9.12 Configure convert[11166]: configure.c/GetConfigureOptions/658/Configure
Searching for configure file: "/usr/share/ImageMagick-6/delegates.xml"
2022-10-19T12:54:05+00:00 0:00.001 0.000u 6.9.12 Configure convert[11166]: configure.c/GetConfigureOptions/658/Configure
Searching for configure file: "/usr/lib64/ImageMagick-6.9.12//config-Q16/delegates.xml"
2022-10-19T12:54:05+00:00 0:00.001 0.000u 6.9.12 Configure convert[11166]: configure.c/GetConfigureOptions/658/Configure
Searching for configure file: "/etc/ImageMagick-6/delegates.xml"
2022-10-19T12:54:05+00:00 0:00.001 0.000u 6.9.12 Configure convert[11166]: configure.c/GetConfigureOptions/658/Configure
Searching for configure file: "/usr/share/doc/ImageMagick-6/delegates.xml"
2022-10-19T12:54:05+00:00 0:00.001 0.000u 6.9.12 Configure convert[11166]: configure.c/GetConfigureOptions/658/Configure
Searching for configure file: "/home/jan/.config/ImageMagick/delegates.xml"
2022-10-19T12:54:05+00:00 0:00.001 0.000u 6.9.12 Configure convert[11166]: configure.c/GetConfigureOptions/658/Configure
Searching for configure file: "/home/jan/.magick/delegates.xml"
2022-10-19T12:54:05+00:00 0:00.001 0.000u 6.9.12 Configure convert[11166]: delegate.c/LoadDelegateCache/2162/Configure
Loading delegate configuration file "/etc/ImageMagick-6/delegates.xml" ...
2022-10-19T12:54:05+00:00 0:00.002 0.000u 6.9.12 Policy convert[11166]: policy.c/IsRightsAuthorized/633/Policy
Domain: Module; rights=Unrecognized; pattern="HEIC" ...
2022-10-19T12:54:05+00:00 0:00.002 0.000u 6.9.12 Module convert[11166]: module.c/OpenModule/1303/Module
Searching for module "HEIC" using filename "heic.la"
2022-10-19T12:54:05+00:00 0:00.002 0.000u 6.9.12 Module convert[11166]: module.c/GetMagickModulePath/548/Module
Searching for coder module file "heic.la" ...
2022-10-19T12:54:05+00:00 0:00.002 0.000u 6.9.12 Policy convert[11166]: policy.c/IsRightsAuthorized/633/Policy
Domain: Path; rights=Read; pattern="/tmp/rspec_9168_337b7f0adcae444154c4efeaf2c2e5d8/10424ee9c301f6b80f319d212cf3f541should_be_jpeg.heic" ...
2022-10-19T12:54:05+00:00 0:00.002 0.000u 6.9.12 Blob convert[11166]: blob.c/OpenBlob/2840/Blob
read 3 magic header bytes
2022-10-19T12:54:05+00:00 0:00.002 0.000u 6.9.12 Policy convert[11166]: policy.c/IsRightsAuthorized/633/Policy
Domain: Module; rights=Unrecognized; pattern="HEIC" ...
2022-10-19T12:54:05+00:00 0:00.002 0.000u 6.9.12 Module convert[11166]: module.c/OpenModule/1303/Module
Searching for module "HEIC" using filename "heic.la"
2022-10-19T12:54:05+00:00 0:00.002 0.000u 6.9.12 Module convert[11166]: module.c/GetMagickModulePath/548/Module
Searching for coder module file "heic.la" ...
2022-10-19T12:54:05+00:00 0:00.002 0.000u 6.9.12 Cache convert[11166]: cache.c/DestroyPixelCache/1196/Cache
destroy
2022-10-19T12:54:05+00:00 0:00.002 0.000u 6.9.12 Policy convert[11166]: policy.c/IsRightsAuthorized/633/Policy
Domain: Module; rights=Unrecognized; pattern="HEIC" ...
2022-10-19T12:54:05+00:00 0:00.002 0.000u 6.9.12 Module convert[11166]: module.c/OpenModule/1303/Module
Searching for module "HEIC" using filename "heic.la"
2022-10-19T12:54:05+00:00 0:00.002 0.000u 6.9.12 Module convert[11166]: module.c/GetMagickModulePath/548/Module
Searching for coder module file "heic.la" ...
2022-10-19T12:54:05+00:00 0:00.002 0.000u 6.9.12 Policy convert[11166]: policy.c/IsRightsAuthorized/633/Policy
Domain: Module; rights=Unrecognized; pattern="HEIC" ...
2022-10-19T12:54:05+00:00 0:00.002 0.000u 6.9.12 Module convert[11166]: module.c/OpenModule/1303/Module
Searching for module "HEIC" using filename "heic.la"
2022-10-19T12:54:05+00:00 0:00.002 0.000u 6.9.12 Module convert[11166]: module.c/GetMagickModulePath/548/Module
Searching for coder module file "heic.la" ...
2022-10-19T12:54:05+00:00 0:00.002 0.000u 6.9.12 Locale convert[11166]: locale.c/GetLocaleOptions/856/Locale
Searching for locale file: "/usr/share/ImageMagick-6/locale.xml"
2022-10-19T12:54:05+00:00 0:00.002 0.000u 6.9.12 Locale convert[11166]: locale.c/GetLocaleOptions/856/Locale
Searching for locale file: "/usr/lib64/ImageMagick-6.9.12//config-Q16/locale.xml"
2022-10-19T12:54:05+00:00 0:00.002 0.000u 6.9.12 Locale convert[11166]: locale.c/GetLocaleOptions/856/Locale
Searching for locale file: "/etc/ImageMagick-6/locale.xml"
2022-10-19T12:54:05+00:00 0:00.002 0.000u 6.9.12 Locale convert[11166]: locale.c/GetLocaleOptions/856/Locale
Searching for locale file: "/usr/share/doc/ImageMagick-6/locale.xml"
2022-10-19T12:54:05+00:00 0:00.002 0.000u 6.9.12 Locale convert[11166]: locale.c/GetLocaleOptions/856/Locale
Searching for locale file: "/home/jan/.config/ImageMagick/locale.xml"
2022-10-19T12:54:05+00:00 0:00.002 0.000u 6.9.12 Locale convert[11166]: locale.c/GetLocaleOptions/856/Locale
Searching for locale file: "/home/jan/.magick/locale.xml"
2022-10-19T12:54:05+00:00 0:00.002 0.000u 6.9.12 Configure convert[11166]: locale.c/LoadLocaleCache/1210/Configure
Loading locale configure file "/usr/share/ImageMagick-6/locale.xml" ...
2022-10-19T12:54:05+00:00 0:00.002 0.000u 6.9.12 Locale convert[11166]: locale.c/GetLocaleOptions/856/Locale
Searching for locale file: "/usr/share/ImageMagick-6/english.xml"
2022-10-19T12:54:05+00:00 0:00.002 0.000u 6.9.12 Locale convert[11166]: locale.c/GetLocaleOptions/856/Locale
Searching for locale file: "/usr/lib64/ImageMagick-6.9.12//config-Q16/english.xml"
2022-10-19T12:54:05+00:00 0:00.002 0.000u 6.9.12 Locale convert[11166]: locale.c/GetLocaleOptions/856/Locale
Searching for locale file: "/etc/ImageMagick-6/english.xml"
2022-10-19T12:54:05+00:00 0:00.002 0.000u 6.9.12 Locale convert[11166]: locale.c/GetLocaleOptions/856/Locale
Searching for locale file: "/usr/share/doc/ImageMagick-6/english.xml"
2022-10-19T12:54:05+00:00 0:00.002 0.000u 6.9.12 Locale convert[11166]: locale.c/GetLocaleOptions/856/Locale
Searching for locale file: "/home/jan/.config/ImageMagick/english.xml"
2022-10-19T12:54:05+00:00 0:00.002 0.000u 6.9.12 Locale convert[11166]: locale.c/GetLocaleOptions/856/Locale
Searching for locale file: "/home/jan/.magick/english.xml"
2022-10-19T12:54:05+00:00 0:00.002 0.000u 6.9.12 Configure convert[11166]: locale.c/LoadLocaleCache/1210/Configure
Loading locale configure file "/usr/share/ImageMagick-6/english.xml" ...
2022-10-19T12:54:05+00:00 0:00.003 0.000u 6.9.12 Exception convert[11166]: constitute.c/ReadImage/576/Exception
no decode delegate for this image format `HEIC'
2022-10-19T12:54:05+00:00 0:00.003 0.000u 6.9.12 Configure convert[11166]: configure.c/GetConfigureOptions/658/Configure
Searching for configure file: "/usr/share/ImageMagick-6/colors.xml"
2022-10-19T12:54:05+00:00 0:00.003 0.000u 6.9.12 Configure convert[11166]: configure.c/GetConfigureOptions/658/Configure
Searching for configure file: "/usr/lib64/ImageMagick-6.9.12//config-Q16/colors.xml"
2022-10-19T12:54:05+00:00 0:00.003 0.000u 6.9.12 Configure convert[11166]: configure.c/GetConfigureOptions/658/Configure
Searching for configure file: "/etc/ImageMagick-6/colors.xml"
2022-10-19T12:54:05+00:00 0:00.003 0.000u 6.9.12 Configure convert[11166]: configure.c/GetConfigureOptions/658/Configure
Searching for configure file: "/usr/share/doc/ImageMagick-6/colors.xml"
2022-10-19T12:54:05+00:00 0:00.004 0.000u 6.9.12 Configure convert[11166]: configure.c/GetConfigureOptions/658/Configure
Searching for configure file: "/home/jan/.config/ImageMagick/colors.xml"
2022-10-19T12:54:05+00:00 0:00.004 0.000u 6.9.12 Configure convert[11166]: configure.c/GetConfigureOptions/658/Configure
Searching for configure file: "/home/jan/.magick/colors.xml"
2022-10-19T12:54:05+00:00 0:00.004 0.000u 6.9.12 Configure convert[11166]: color.c/LoadColorCache/2226/Configure
Loading color file "/etc/ImageMagick-6/colors.xml" ...
2022-10-19T12:54:05+00:00 0:00.004 0.000u 6.9.12 Exception convert[11166]: convert.c/ConvertImageCommand/3229/Exception
no images defined `/tmp/image20221019-9168-3zt56t.jpg'
convert: no decode delegate for this image format `HEIC' @ error/constitute.c/ReadImage/576.
convert: no images defined `/tmp/image20221019-9168-3zt56t.jpg' @ error/convert.c/ConvertImageCommand/3229.
# ./lib/discourse.rb:158:in `execute_command'
# ./lib/discourse.rb:131:in `exec'
# ./lib/discourse.rb:28:in `execute_command'
# ./lib/upload_creator.rb:373:in `execute_convert'
# ./lib/upload_creator.rb:351:in `rescue in convert_heif!'
# ./lib/upload_creator.rb:347:in `convert_heif!'
# ./lib/upload_creator.rb:67:in `block in create_for'
# ./lib/distributed_mutex.rb:57:in `block in synchronize'
# ./lib/distributed_mutex.rb:53:in `synchronize'
# ./lib/distributed_mutex.rb:53:in `synchronize'
# ./lib/distributed_mutex.rb:38:in `synchronize'
# ./lib/upload_creator.rb:64:in `create_for'
# ./spec/lib/upload_creator_spec.rb:288:in `block (5 levels) in '
# ./spec/lib/upload_creator_spec.rb:287:in `block (4 levels) in '
# ./spec/rails_helper.rb:328:in `block (2 levels) in '
# ------------------
# --- Caused by: ---
# Discourse::Utils::CommandError:
# /home/jan/discourse/lib/discourse.rb:131:in `exec': An error happened when converting from PNG to JPG.
# convert: no decode delegate for this image format `HEIC' @ error/constitute.c/ReadImage/576.
# convert: no images defined `/tmp/image20221019-9168-3zt56t.jpg' @ error/convert.c/ConvertImageCommand/3229.
# ./lib/discourse.rb:158:in `execute_command'
9) HashtagAutocompleteService#search appends type suffixes for the ref on conflicting slugs on items that are not the top priority type
Failure/Error:
expect(subject.search("book", %w[category tag]).map(&:ref)).to eq(
%w[book-club great-books book-club::tag],
)
expected: ["book-club", "great-books", "book-club::tag"]
got: ["book-club", "book-club::tag", "great-books"]
(compared using ==)
# ./spec/services/hashtag_autocomplete_service_spec.rb:111:in `block (3 levels) in '
# ./spec/rails_helper.rb:328:in `block (2 levels) in '
10) Topic.similar_to with a similar topic returns the similar topic even if raw is blank
Failure/Error: expect(Topic.similar_to("has evil trout made any topics?", "")).to eq([topic])
expected: [#]
got: []
(compared using ==)
Diff:
@@ -1 +1 @@
-[#]
+[]
# ./spec/models/topic_spec.rb:662:in `block (4 levels) in '
# ./spec/rails_helper.rb:328:in `block (2 levels) in '
11) Topic.similar_to with a similar topic returns the similar topic if the title is similar
Failure/Error: expect(Topic.similar_to("has evil trout made any topics?", "i am wondering has evil trout made any topics?")).to eq([topic])
expected: [#]
got: []
(compared using ==)
Diff:
@@ -1 +1 @@
-[#]
+[]
# ./spec/models/topic_spec.rb:658:in `block (4 levels) in '
# ./spec/rails_helper.rb:328:in `block (2 levels) in '
12) Topic.similar_to with a similar topic with secure categories should return the cat since the user can see it
Failure/Error: expect(Topic.similar_to("has evil trout made any topics?", "i am wondering has evil trout made any topics?", user)).to include(topic)
expected [] to include #
Diff:
@@ -1 +1 @@
-[#]
+[]
# ./spec/models/topic_spec.rb:700:in `block (5 levels) in '
# ./spec/rails_helper.rb:328:in `block (2 levels) in '
13) Users::OmniauthCallbacksController Google Oauth2 request should handle common errors
Failure/Error: expect(response.status).to eq(302)
expected: 302
got: 500
(compared using ==)
# ./spec/requests/omniauth_callbacks_controller_spec.rb:114:in `block (4 levels) in '
# ./spec/rails_helper.rb:328:in `block (2 levels) in '
# ------------------
# --- Caused by: ---
# OAuth::Unauthorized:
# 403 Message
# ./lib/middleware/omniauth_bypass_middleware.rb:50:in `call'
14) Users::OmniauthCallbacksController Google Oauth2 request with CSRF protection enabled should be CSRF protected
Failure/Error: expect(response.status).to eq(302)
expected: 302
got: 500
(compared using ==)
# ./spec/requests/omniauth_callbacks_controller_spec.rb:136:in `block (5 levels) in '
# ./spec/rails_helper.rb:328:in `block (2 levels) in '
# ------------------
# --- Caused by: ---
# CSRFTokenVerifier::InvalidCSRFToken:
# CSRFTokenVerifier::InvalidCSRFToken
# ./lib/csrf_token_verifier.rb:22:in `call'
15) ApplicationController#handle_theme does not allow non privileged user to preview themes
Failure/Error: expect(controller.theme_id).to eq(SiteSetting.default_theme_id)
expected: -1
got: nil
(compared using ==)
# ./spec/requests/application_controller_spec.rb:492:in `block (3 levels) in '
# ./spec/rails_helper.rb:328:in `block (2 levels) in '
16) ApplicationController#handle_theme selects the theme the user has selected
Failure/Error: expect(controller.theme_id).to eq(SiteSetting.default_theme_id)
expected: -1
got: nil
(compared using ==)
# ./spec/requests/application_controller_spec.rb:454:in `block (3 levels) in '
# ./spec/rails_helper.rb:328:in `block (2 levels) in '
17) Search Advanced search can search URLS correctly
Failure/Error: expect(Search.execute('/latest#test').posts.map(&:id)).to eq([post.id])
expected: [4292]
got: []
(compared using ==)
# ./spec/lib/search_spec.rb:1850:in `block (3 levels) in '
# ./spec/rails_helper.rb:328:in `block (2 levels) in '
18) Search Advanced search supports category slug and tags
Failure/Error: expect(Search.execute('sams post #categoRy-24').posts.length).to eq(1)
expected: 1
got: 0
(compared using ==)
# ./spec/lib/search_spec.rb:1859:in `block (3 levels) in '
# ./spec/rails_helper.rb:328:in `block (2 levels) in '
19) Search Advanced search can search numbers correctly, and match exact phrases
Failure/Error: expect(Search.execute('3.0 eta').posts).to eq([post, post2])
expected: [#]
got: [#]
(compared using ==)
Diff:
@@ -1,3 +1,2 @@
-[#3.0 eta is in 2 days horrah
", created_at: "2022-10-19 13:13:12.854537524 +0000", updated_at: "2022-10-19 13:13:12.854537524 +0000", reply_to_post_number: nil, reply_count: 0, quote_count: 0, deleted_at: nil, off_topic_count: 0, like_count: 0, incoming_link_count: 0, bookmark_count: 0, score: nil, reads: 0, post_type: 1, sort_order: 1, last_editor_id: 9182, hidden: false, hidden_reason_id: nil, notify_moderators_count: 0, spam_count: 0, illegal_count: 0, inappropriate_count: 0, last_version_at: "2022-10-19 13:13:12.867141939 +0000", user_deleted: false, reply_to_user_id: nil, percent_rank: 1.0, notify_user_count: 0, like_score: 0, deleted_by_id: nil, edit_reason: nil, word_count: 8, version: 1, cook_method: 1, wiki: false, baked_at: "2022-10-19 13:13:12.854444745 +0000", baked_version: 2, hidden_at: nil, self_edits: 0, reply_quoted: false, via_email: false, raw_email: nil, public_version: 1, action_code: nil, locked_by_id: nil, image_upload_id: nil, outbound_message_id: nil>,
- #3.0 is eta in 2 days horrah", created_at: "2022-10-19 13:13:12.956670592 +0000", updated_at: "2022-10-19 13:13:12.956670592 +0000", reply_to_post_number: nil, reply_count: 0, quote_count: 0, deleted_at: nil, off_topic_count: 0, like_count: 0, incoming_link_count: 0, bookmark_count: 0, score: nil, reads: 0, post_type: 1, sort_order: 1, last_editor_id: 9183, hidden: false, hidden_reason_id: nil, notify_moderators_count: 0, spam_count: 0, illegal_count: 0, inappropriate_count: 0, last_version_at: "2022-10-19 13:13:12.969226832 +0000", user_deleted: false, reply_to_user_id: nil, percent_rank: 1.0, notify_user_count: 0, like_score: 0, deleted_by_id: nil, edit_reason: nil, word_count: 8, version: 1, cook_method: 1, wiki: false, baked_at: "2022-10-19 13:13:12.956587748 +0000", baked_version: 2, hidden_at: nil, self_edits: 0, reply_quoted: false, via_email: false, raw_email: nil, public_version: 1, action_code: nil, locked_by_id: nil, image_upload_id: nil, outbound_message_id: nil>]
+[#3.0 eta is in 2 days horrah", created_at: "2022-10-19 13:13:12.854537000 +0000", updated_at: "2022-10-19 13:13:12.854537000 +0000", reply_to_post_number: nil, reply_count: 0, quote_count: 0, deleted_at: nil, off_topic_count: 0, like_count: 0, incoming_link_count: 0, bookmark_count: 0, score: nil, reads: 0, post_type: 1, sort_order: 1, last_editor_id: 9182, hidden: false, hidden_reason_id: nil, notify_moderators_count: 0, spam_count: 0, illegal_count: 0, inappropriate_count: 0, last_version_at: "2022-10-19 13:13:12.867141000 +0000", user_deleted: false, reply_to_user_id: nil, percent_rank: 1.0, notify_user_count: 0, like_score: 0, deleted_by_id: nil, edit_reason: nil, word_count: 8, version: 1, cook_method: 1, wiki: false, baked_at: "2022-10-19 13:13:12.854444000 +0000", baked_version: 2, hidden_at: nil, self_edits: 0, reply_quoted: false, via_email: false, raw_email: nil, public_version: 1, action_code: nil, locked_by_id: nil, image_upload_id: nil, outbound_message_id: nil>]
# ./spec/lib/search_spec.rb:1679:in `block (3 levels) in '
# ./spec/rails_helper.rb:328:in `block (2 levels) in '
20) Search Advanced search can match exact phrases
Failure/Error: expect(Search.execute("test post with 'a URL).posts").posts).to eq([post2, post])
expected: [#]
got: []
(compared using ==)
Diff:
@@ -1,3 +1,2 @@
-[#test URL post with", created_at: "2022-10-19 13:13:15.605850592 +0000", updated_at: "2022-10-19 13:13:15.605850592 +0000", reply_to_post_number: nil, reply_count: 0, quote_count: 0, deleted_at: nil, off_topic_count: 0, like_count: 0, incoming_link_count: 0, bookmark_count: 0, score: nil, reads: 0, post_type: 1, sort_order: 1, last_editor_id: 9204, hidden: false, hidden_reason_id: nil, notify_moderators_count: 0, spam_count: 0, illegal_count: 0, inappropriate_count: 0, last_version_at: "2022-10-19 13:13:15.618648191 +0000", user_deleted: false, reply_to_user_id: nil, percent_rank: 1.0, notify_user_count: 0, like_score: 0, deleted_by_id: nil, edit_reason: nil, word_count: 4, version: 1, cook_method: 1, wiki: false, baked_at: "2022-10-19 13:13:15.605770818 +0000", baked_version: 2, hidden_at: nil, self_edits: 0, reply_quoted: false, via_email: false, raw_email: nil, public_version: 1, action_code: nil, locked_by_id: nil, image_upload_id: nil, outbound_message_id: nil>,
- #this is a test post with 'a URL ]
+[]
# ./spec/lib/search_spec.rb:1669:in `block (3 levels) in '
# ./spec/rails_helper.rb:328:in `block (2 levels) in '
21) Jobs::PullHotlinkedImages#execute replaces images in an anchor tag with weird indentation
Failure/Error: @size_cache[url] = FastImage.size(absolute_url)
WebMock::NetConnectNotAllowedError:
Real HTTP connections are disabled. Unregistered request: GET http://test.localhost/uploads/default/test_0/original/2X/f/f59ea56fe8ebe42048491d43a19d9f34c5d0f8dc.gif with headers {'Accept'=>'*/*', 'Accept-Encoding'=>'identity', 'User-Agent'=>'Ruby'}
You can stub this request with the following snippet:
stub_request(:get, "http://test.localhost/uploads/default/test_0/original/2X/f/f59ea56fe8ebe42048491d43a19d9f34c5d0f8dc.gif").
with(
headers: {
'Accept'=>'*/*',
'Accept-Encoding'=>'identity',
'User-Agent'=>'Ruby'
}).
to_return(status: 200, body: "", headers: {})
registered request stubs:
stub_request(:get, "http://test.localhost/uploads/short-url/z2QSs1KJWoj51uYhDjb6ifCzxH6.gif")
stub_request(:get, "http://test.localhost/uploads/default/test_0/original/1X/c530c06cf89c410c0355d7852644a73fc3ec8c04.png")
stub_request(:get, "http://test.localhost/uploads/default/test_0/original/1X/f59ea56fe8ebe42048491d43a19d9f34c5d0f8dc.gif")
stub_request(:get, "http://wiki.mozilla.org/images/2/2e/Longcat3.png")
stub_request(:get, "http://wiki.mozilla.org/images/2/2e/Longcat2.png")
stub_request(:get, "https://example.com/%D7%90%D7%9C%D7%97%D7%95%D7%98-.jpg")
stub_request(:get, "http://wiki.mozilla.org/images/2/2e/Longcat1.png")
============================================================
# (eval):5:in `request'
# ./lib/cooked_processor_mixin.rb:186:in `get_size'
# ./lib/cooked_processor_mixin.rb:124:in `limit_size!'
# ./lib/cooked_post_processor.rb:151:in `convert_to_link!'
# ./lib/cooked_post_processor.rb:359:in `block in post_process_images'
# ./lib/cooked_post_processor.rb:357:in `post_process_images'
# ./lib/cooked_post_processor.rb:42:in `block in post_process'
# ./lib/distributed_mutex.rb:57:in `block in synchronize'
# ./lib/distributed_mutex.rb:53:in `synchronize'
# ./lib/distributed_mutex.rb:53:in `synchronize'
# ./lib/distributed_mutex.rb:38:in `synchronize'
# ./lib/cooked_post_processor.rb:38:in `post_process'
# ./app/jobs/regular/process_post.rb:26:in `block in execute'
# ./lib/distributed_mutex.rb:57:in `block in synchronize'
# ./lib/distributed_mutex.rb:53:in `synchronize'
# ./lib/distributed_mutex.rb:53:in `synchronize'
# ./lib/distributed_mutex.rb:38:in `synchronize'
# ./app/jobs/regular/process_post.rb:10:in `execute'
# ./app/jobs/base.rb:206:in `perform'
# ./app/jobs/base.rb:363:in `enqueue'
# ./app/models/post.rb:814:in `trigger_post_process'
# ./app/jobs/regular/pull_hotlinked_images.rb:61:in `execute'
# ./spec/jobs/pull_hotlinked_images_spec.rb:143:in `block (4 levels) in '
# ./spec/jobs/pull_hotlinked_images_spec.rb:142:in `block (3 levels) in '
# ./spec/rails_helper.rb:328:in `block (2 levels) in '
22) ShrinkUploadedImage when local uploads are enabled resizes the image
Failure/Error: self.custom_fields[Post::DOWNLOADED_IMAGES] || {}
NameError:
uninitialized constant #::DOWNLOADED_IMAGES
Did you mean? DownloadBackupMailer
# ./app/models/post.rb:993:in `downloaded_images'
# ./lib/shrink_uploaded_image.rb:86:in `block in perform'
# ./lib/shrink_uploaded_image.rb:81:in `each'
# ./lib/shrink_uploaded_image.rb:81:in `perform'
# ./spec/lib/shrink_uploaded_image_spec.rb:16:in `block (3 levels) in '
# ./spec/rails_helper.rb:328:in `block (2 levels) in '
23) ShrinkUploadedImage when local uploads are enabled returns false when the upload is above the size limit
Failure/Error: self.custom_fields[Post::DOWNLOADED_IMAGES] || {}
NameError:
uninitialized constant #::DOWNLOADED_IMAGES
Did you mean? DownloadBackupMailer
# ./app/models/post.rb:993:in `downloaded_images'
# ./lib/shrink_uploaded_image.rb:86:in `block in perform'
# ./lib/shrink_uploaded_image.rb:81:in `each'
# ./lib/shrink_uploaded_image.rb:81:in `perform'
# ./spec/lib/shrink_uploaded_image_spec.rb:63:in `block (3 levels) in '
# ./spec/rails_helper.rb:328:in `block (2 levels) in '
24) ShrinkUploadedImage when local uploads are enabled returns false if the image cannot be shrunk more
Failure/Error: self.custom_fields[Post::DOWNLOADED_IMAGES] || {}
NameError:
uninitialized constant #::DOWNLOADED_IMAGES
Did you mean? DownloadBackupMailer
# ./app/models/post.rb:993:in `downloaded_images'
# ./lib/shrink_uploaded_image.rb:86:in `block in perform'
# ./lib/shrink_uploaded_image.rb:81:in `each'
# ./lib/shrink_uploaded_image.rb:81:in `perform'
# ./spec/lib/shrink_uploaded_image_spec.rb:41:in `block (3 levels) in '
# ./spec/rails_helper.rb:328:in `block (2 levels) in '
25) ShrinkUploadedImage when S3 uploads are enabled resizes the image
Failure/Error: self.custom_fields[Post::DOWNLOADED_IMAGES] || {}
NameError:
uninitialized constant #::DOWNLOADED_IMAGES
Did you mean? DownloadBackupMailer
# ./app/models/post.rb:993:in `downloaded_images'
# ./lib/shrink_uploaded_image.rb:86:in `block in perform'
# ./lib/shrink_uploaded_image.rb:81:in `each'
# ./lib/shrink_uploaded_image.rb:81:in `perform'
# ./spec/lib/shrink_uploaded_image_spec.rb:98:in `block (3 levels) in '
# ./spec/rails_helper.rb:328:in `block (2 levels) in '
26) Wizard::Builder styling with colors when the default theme has not been override should set the right default values
Failure/Error: SiteSetting.find_by(name: "default_theme_id").destroy!
NoMethodError:
undefined method `destroy!' for nil:NilClass
# ./spec/lib/wizard/wizard_builder_spec.rb:107:in `block (5 levels) in '
# ./spec/rails_helper.rb:328:in `block (2 levels) in '
27) Wizard::Builder styling with colors when the default theme has been overridden by a theme with a color scheme should set the right default values
Failure/Error: expect(colors_field.required).to eq(false)
expected: false
got: true
(compared using ==)
Diff:
@@ -1 +1 @@
-false
+true
# ./spec/lib/wizard/wizard_builder_spec.rb:148:in `block (5 levels) in '
# ./spec/rails_helper.rb:328:in `block (2 levels) in '
28) Wizard::Builder styling with colors when the default theme has been overridden by a theme without a color scheme should set the right default values
Failure/Error: expect(colors_field.required).to eq(false)
expected: false
got: true
(compared using ==)
Diff:
@@ -1 +1 @@
-false
+true
# ./spec/lib/wizard/wizard_builder_spec.rb:136:in `block (5 levels) in '
# ./spec/rails_helper.rb:328:in `block (2 levels) in '
29) Wizard::Builder styling with colors when the default theme has been override and the color scheme doesn't have a base scheme fallbacks to the color scheme name
Failure/Error: expect(colors_field.required).to eq(false)
expected: false
got: true
(compared using ==)
Diff:
@@ -1 +1 @@
-false
+true
# ./spec/lib/wizard/wizard_builder_spec.rb:125:in `block (5 levels) in '
# ./spec/rails_helper.rb:328:in `block (2 levels) in '
Finished in 38 minutes 35 seconds (files took 21.55 seconds to load)
17048 examples, 29 failures, 7 pending
Failed examples:
rspec ./spec/helpers/application_helper_spec.rb:269 # ApplicationHelper application_logo_dark_url when dark theme is present when dark logo is present should return correct url
rspec ./spec/system/bookmarks_spec.rb:9 # Bookmarking posts and topics allows logged in user to create bookmarks with and without reminders
rspec ./spec/system/bookmarks_spec.rb:36 # Bookmarking posts and topics does not create a bookmark if the modal is closed with the cancel button
rspec ./spec/system/bookmarks_spec.rb:51 # Bookmarking posts and topics allows the topic to be bookmarked
rspec ./spec/models/optimized_image_spec.rb:8 # OptimizedImage.crop should produce cropped images (requires ImageMagick 7)
rspec ./spec/models/optimized_image_spec.rb:96 # OptimizedImage.crop .resize should work correctly when extension is bad
rspec ./spec/services/external_upload_manager_spec.rb:107 # ExternalUploadManager#transform! when stubbed upload is < DOWNLOAD_LIMIT (small enough to download + generate sha) when the upload does get changed by the UploadCreator creates a new upload in s3 (not copy) and deletes the original stubbed upload
rspec ./spec/lib/upload_creator_spec.rb:286 # UploadCreator#create_for converting HEIF to jpeg should store the upload with the right extension
rspec ./spec/services/hashtag_autocomplete_service_spec.rb:109 # HashtagAutocompleteService#search appends type suffixes for the ref on conflicting slugs on items that are not the top priority type
rspec ./spec/models/topic_spec.rb:661 # Topic.similar_to with a similar topic returns the similar topic even if raw is blank
rspec ./spec/models/topic_spec.rb:657 # Topic.similar_to with a similar topic returns the similar topic if the title is similar
rspec ./spec/models/topic_spec.rb:698 # Topic.similar_to with a similar topic with secure categories should return the cat since the user can see it
rspec ./spec/requests/omniauth_callbacks_controller_spec.rb:109 # Users::OmniauthCallbacksController Google Oauth2 request should handle common errors
rspec ./spec/requests/omniauth_callbacks_controller_spec.rb:134 # Users::OmniauthCallbacksController Google Oauth2 request with CSRF protection enabled should be CSRF protected
rspec ./spec/requests/application_controller_spec.rb:489 # ApplicationController#handle_theme does not allow non privileged user to preview themes
rspec ./spec/requests/application_controller_spec.rb:443 # ApplicationController#handle_theme selects the theme the user has selected
rspec ./spec/lib/search_spec.rb:1838 # Search Advanced search can search URLS correctly
rspec ./spec/lib/search_spec.rb:1853 # Search Advanced search supports category slug and tags
rspec ./spec/lib/search_spec.rb:1675 # Search Advanced search can search numbers correctly, and match exact phrases
rspec ./spec/lib/search_spec.rb:1665 # Search Advanced search can match exact phrases
rspec ./spec/jobs/pull_hotlinked_images_spec.rb:127 # Jobs::PullHotlinkedImages#execute replaces images in an anchor tag with weird indentation
rspec ./spec/lib/shrink_uploaded_image_spec.rb:7 # ShrinkUploadedImage when local uploads are enabled resizes the image
rspec ./spec/lib/shrink_uploaded_image_spec.rb:54 # ShrinkUploadedImage when local uploads are enabled returns false when the upload is above the size limit
rspec ./spec/lib/shrink_uploaded_image_spec.rb:34 # ShrinkUploadedImage when local uploads are enabled returns false if the image cannot be shrunk more
rspec ./spec/lib/shrink_uploaded_image_spec.rb:89 # ShrinkUploadedImage when S3 uploads are enabled resizes the image
rspec ./spec/lib/wizard/wizard_builder_spec.rb:110 # Wizard::Builder styling with colors when the default theme has not been override should set the right default values
rspec ./spec/lib/wizard/wizard_builder_spec.rb:147 # Wizard::Builder styling with colors when the default theme has been overridden by a theme with a color scheme should set the right default values
rspec ./spec/lib/wizard/wizard_builder_spec.rb:135 # Wizard::Builder styling with colors when the default theme has been overridden by a theme without a color scheme should set the right default values
rspec ./spec/lib/wizard/wizard_builder_spec.rb:124 # Wizard::Builder styling with colors when the default theme has been override and the color scheme doesn't have a base scheme fallbacks to the color scheme name
Randomized with seed 7614