Takuya Yoshida
Takuya Yoshida
# What Fix #9104 # Why * キャッシュの効きをよくする * 無駄な処理を減らす * イメージ容量削減 * hadolintのベストプラクティスを極力適用する # Additional info (optional)
## Summary ビルド時に毎回apt-getやpnpmがダウンロードするのは時間がかかるし、相手にも迷惑がかかる(要出典)ので - Dockerfile内では`RUN --mount=type=cache`を使う - GHAでは`cache-from`と`cache-to`を使う
## 💡 Summary pollイベントをAP経由で受信時にエラーが出る もしかしたら投票終了イベント? ## 🥰 Expected Behavior No error ## 🤬 Actual Behavior ``` Error: Question is not registed at ApQuestionService.updateQuestion (file:///misskey/packages/backend/built/core/activitypub/models/ApQuestionService.js:64:19) at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async ApInboxService.update...
## Summary PgHeroがインデックスの重複を出してきたので整理した方がパフォーマンスの向上に繋がるかもしれない おま環かも PgHero曰く ``` Duplicate Indexes These indexes exist, but aren’t needed. Remove them for faster writes. Details On announcement_readIDX_8288151386172b8109f7239ab2 (userId) is covered by IDX_924fa71815cfa3941d003702a0 (userId, announcementId) On...
# What Fix #9614 # Additional info (optional) https://github.com/docker/build-push-action/issues/716 と https://github.com/moby/buildkit/issues/1512 が原因でGHAではdownload cacheが効かないのでcache-fromとcache-toでレイヤを再利用できるようにしている。 ローカルではレイヤキャッシュは勝手に処理してくれるはずだし、なにか事前情報が変わったとしてもaptとpnpmのdownload cacheを再利用できるようにしている。 注意点として、BuildKitの機能を利用しているのでSUSE系のビルダーツール(Podman, Buildah)では動かないかもしれない。(kanikoは勝手に無視してくれたっぽい)
**Describe the bug** A clear and concise description of what the bug is. **To Reproduce** Steps to reproduce the behavior: 1. Run docker compose with `DEBUG=knex:query` 2. See log **Expected...