Skip to content

enhance(backend): summalyの結果をキャッシュするように#17367

Open
kakkokari-gtyih wants to merge 11 commits into
misskey-dev:developfrom
kakkokari-gtyih:enh-summaly-cache-2
Open

enhance(backend): summalyの結果をキャッシュするように#17367
kakkokari-gtyih wants to merge 11 commits into
misskey-dev:developfrom
kakkokari-gtyih:enh-summaly-cache-2

Conversation

@kakkokari-gtyih

@kakkokari-gtyih kakkokari-gtyih commented May 3, 2026

Copy link
Copy Markdown
Member

What

Why

Close #15175

Additional info (optional)

Checklist

  • Read the contribution guide
  • Test working in a local environment
  • (If needed) Add story of storybook
  • (If needed) Update CHANGELOG.md
  • (If possible) Add tests

@codecov

codecov Bot commented May 3, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 31.57895% with 26 lines in your changes missing coverage. Please review.
✅ Project coverage is 24.97%. Comparing base (3817f00) to head (02583e6).

Files with missing lines Patch % Lines
...ckages/backend/src/server/web/UrlPreviewService.ts 0.00% 20 Missing and 4 partials ⚠️
packages/backend/src/misc/cache.ts 85.71% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop   #17367      +/-   ##
===========================================
+ Coverage    24.92%   24.97%   +0.05%     
===========================================
  Files         1165     1165              
  Lines        39730    39754      +24     
  Branches     11060    11066       +6     
===========================================
+ Hits          9903     9930      +27     
+ Misses       23891    23890       -1     
+ Partials      5936     5934       -2     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions

github-actions Bot commented May 3, 2026

Copy link
Copy Markdown
Contributor

このPRによるapi.jsonの差分
差分はありません。
Get diff files from Workflow Page

@github-actions

github-actions Bot commented May 3, 2026

Copy link
Copy Markdown
Contributor

⚙️ Backend Memory Usage Report

After GC

Metric Base Head Δ median Δ MAD Δ min Δ max
HeapUsed 83.8 MB
± 0 MB
83.8 MB
± 0 MB
$\text{+0 MB}$
$\text{+0\%}$
0 MB $\text{-0 MB}$ $\text{+0 MB}$
Pss 329.3 MB
± 0.1 MB
330.1 MB
± 3.1 MB
$\color{orange}{\text{+3.3 MB}}$
$\color{orange}{\text{+1\%}}$
2.1 MB $\color{green}{\text{-43.9 MB}}$ $\color{orange}{\text{+5.4 MB}}$
Private_Dirty 267.7 MB
± 0.1 MB
268.4 MB
± 3.2 MB
$\color{orange}{\text{+3 MB}}$
$\color{orange}{\text{+1.1\%}}$
2.3 MB $\color{green}{\text{-43.9 MB}}$ $\color{orange}{\text{+5.4 MB}}$
VmRSS 367.1 MB
± 0.1 MB
368 MB
± 3 MB
$\color{orange}{\text{+3.4 MB}}$
$\color{orange}{\text{+0.9\%}}$
2 MB $\color{green}{\text{-44 MB}}$ $\color{orange}{\text{+5.4 MB}}$
External 10.7 MB
± 0 MB
10.7 MB
± 0 MB
0 MB
0%
0 MB 0 MB 0 MB

V8 Heap Snapshot Statistics

Metric Base Head Δ median Δ MAD Δ min Δ max
$\color{gray}{\rule{8pt}{8pt}}$ Total 102 MB
± 3.1 KB
102 MB
± 12 KB
$\text{+29 KB}$
$\text{+0\%}$
2.7 KB $\text{-17 KB}$ $\text{+32 KB}$
$\color{orange}{\rule{8pt}{8pt}}$ Code24.5% → 24.5%
25 MB 25 MB $\text{+10 KB}$ 4.4 KB $\text{-24 KB}$ $\text{+15 KB}$
$\color{red}{\rule{8pt}{8pt}}$ Strings42.1% → 42.1%
43 MB 43 MB $\text{+4 KB}$ 2 KB $\text{+952 B}$ $\text{+6.1 KB}$
$\color{cyan}{\rule{8pt}{8pt}}$ JS arrays4.1% → 4.1%
4.1 MB 4.1 MB $\text{+40 B}$ 0 B $\text{+40 B}$ $\text{+40 B}$
$\color{green}{\rule{8pt}{8pt}}$ Typed arrays0.5% → 0.5%
533 KB 533 KB 0 B 0 B 0 B 0 B
$\color{yellow}{\rule{8pt}{8pt}}$ System objects2.2% → 2.2%
2.2 MB 2.2 MB $\text{+2.2 KB}$ 2.7 KB $\text{-560 B}$ $\text{+9.7 KB}$
$\color{violet}{\rule{8pt}{8pt}}$ Other JS objs26.6% → 26.6%
27 MB 27 MB $\text{+3.7 KB}$ 3.2 KB $\text{+152 B}$ $\text{+27 KB}$
$\color{pink}{\rule{8pt}{8pt}}$ Other non-JS objs0% → 0%
38 KB 38 KB 0 B 0 B 0 B 0 B
Head heap snapshot composition
%%{init: {"sankey":{"showValues":false,"linkColor":"target","labelStyle":"outlined","nodeAlignment":"center","nodePadding":10,"nodeColors":{"Head":"#888888","code":"#f28e2c","bytecode":"#f28e2c","Other":"#888888","strings":"#e15759","string":"#e15759","jsArrays":"#76b7b2","typedArrays":"#59a14f","systemObjects":"#edc949","otherJsObjects":"#af7aa1","array":"#af7aa1","otherNonJsObjects":"#ff9da7"}}}}%%
sankey-beta
"Head","Code",24.51
"Code","bytecode",8.1
"Code","Other",16.41
"Head","Strings",42.14
"Strings","string",41.57
"Strings","Other",0.57
"Head","JS arrays",4.06
"Head","Typed arrays",0.52
"Head","System objects",2.18
"Head","Other JS objs",26.55
"Other JS objs","array",9.75
"Other JS objs","Other",16.81
"Head","Other non-JS objs",0.04
Loading

Download representative V8 heap snapshot (head)

Runtime Loaded JS Footprint

Click to show
Metric Base Head Δ Δ (%)
Loaded JS modules 152 152 0 0%
Loaded JS source 13 MB 13 MB $\color{orange}{\text{+1.2 KB}}$ $\color{orange}{\text{+0\%}}$
External packages loaded 19 19 0 0%
Native addon packages 2 2 0 0%

Largest Newly Loaded Modules

Module Package Loaded JS
packages/backend/built/ApNoteService-q-QC1zj2.js backend 4 MB
packages/backend/built/QueueService-DFMHxNg9.js backend 1 MB
packages/backend/built/ServerService-BlyPy7S9.js backend 974 KB
packages/backend/built/endpoints-Bf1Q9xiu.js backend 874 KB
packages/backend/built/MetaEntityService-B737Op-L.js backend 627 KB
packages/backend/built/gen-spec-VgXO5D1P.js backend 57 KB
packages/backend/built/GlobalModule-lhIXzAgq.js backend 53 KB
packages/backend/built/ApInboxService-BNi93Q8v.js backend 18 KB
packages/backend/built/master-luJ5ebMt.js backend 5.8 KB
packages/backend/built/QueueStatsService-C4jrCzhc.js backend 1.7 KB

@kakkokari-gtyih kakkokari-gtyih marked this pull request as ready for review June 20, 2026 14:04
@dosubot dosubot Bot added the size:L This PR changes 100-499 lines, ignoring generated files. label Jun 20, 2026
@dosubot dosubot Bot added size:M This PR changes 30-99 lines, ignoring generated files. and removed size:L This PR changes 100-499 lines, ignoring generated files. labels Jul 5, 2026
@kakkokari-gtyih

Copy link
Copy Markdown
Member Author

コンフリクト解消

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

packages/backend:test packages/backend Server side specific issue/PR size:M This PR changes 30-99 lines, ignoring generated files.

Projects

Development

Successfully merging this pull request may close these issues.

1 participant