mastodon.zunda.ninja is one of the many independent Mastodon servers you can use to participate in the fediverse.
Zundon is a single user instance as home of @zundan as well as a test bed for changes of the code.

Administered by:

Server stats:

1
active users

そいやruby-3.2.0ではまだテスト走らせてないな←

おや

Finished in 8 minutes 45 seconds (files took 13.61 seconds to load)
3682 examples, 7 failures, 26 pending

rspec ./spec/controllers/api/v1/statuses_controller_spec.rbがRails.cache.write(item, item)でundefined method `fetch_value' for nil:NilClassしてる…

$ bundle exec rspec ./spec/controllers/api/v1/statuses_controller_spec.rb
warning: parser/current is loading parser/ruby32, which recognizes3.2.0-dev-compliant syntax, but you are running 3.2.0.
Please see https://github.com/whitequark/parser#compatibility-with-ruby-mri.

Randomized with seed 33472
22/22 |======================== 100 =========================>| Time: 00:00:07

Finished in 7.96 seconds (files took 3.65 seconds to load)
22 examples, 0 failures

Randomized with seed 33472
Coverage report generated for RSpec to /home/zunda/c/src/github.com/zunda/mastodon/coverage. 3815 / 34126 LOC (11.18%) covered.

Failureが…消えた…

GitHubGitHub - whitequark/parser: A Ruby parser.A Ruby parser. Contribute to whitequark/parser development by creating an account on GitHub.

全部テストしても再現しないぬ…

$ bundle exec rspec
:
Finished in 8 minutes 42 seconds (files took 10.27 seconds to load)
3682 examples, 0 failures, 26 pending

Randomized with seed 24202
Coverage report generated for RSpec to /home/zunda/c/src/github.com/zunda/mastodon/coverage. 17500 / 27850 LOC (62.84%) covered.

@zundan 問題のIssueは
Rails.cache.read_multi(*raw).transform_keys(&:id)
で落っこちてるので、問題の場所に限りなく近い臭いが…

@ponapalt なるほどー。しかしなかなか再現しないんですよねえ

@zundan なんかすっごいめんどくさい条件がありそうな気がしますね…うちも発生まで24時間以上必要だったし…

@ponapalt ですです。弊ぼっちはruby-3.2で数週間かな?動かしてて3回とかしか再現してないです

@zundan nilにfetch_valueしようとしてるのでそこが原因のような気がする