Skip to content

Conversation

CiaranMn
Copy link
Member

@CiaranMn CiaranMn commented Aug 8, 2025

🌟 What is the purpose of this PR?

This branch exists to create canary releases from.

Currently isn't working because the prepublish script fails, even though it succeeds locally. Not clear why. Tracked in H-5163.

Copy link

codecov bot commented Aug 8, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 54.43%. Comparing base (9d53dc8) to head (3fe4ecc).
⚠️ Report is 6 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7716      +/-   ##
==========================================
- Coverage   54.54%   54.43%   -0.11%     
==========================================
  Files        1083     1083              
  Lines       96241    96428     +187     
  Branches     4514     4528      +14     
==========================================
  Hits        52490    52490              
- Misses      42764    42951     +187     
  Partials      987      987              
Flag Coverage Δ
apps.hash-ai-worker-ts 1.32% <ø> (ø)
apps.hash-api 0.00% <ø> (ø)
blockprotocol.type-system 35.85% <ø> (ø)
local.harpc-client 50.93% <ø> (ø)
local.hash-backend-utils 3.69% <ø> (ø)
local.hash-graph-sdk 0.00% <ø> (ø)
local.hash-isomorphic-utils 0.00% <ø> (ø)
rust.antsi 0.00% <ø> (ø)
rust.harpc-codec 83.94% <ø> (ø)
rust.harpc-types 0.00% <ø> (ø)
rust.harpc-wire-protocol 91.62% <ø> (ø)
rust.hash-graph-postgres-store 19.89% <ø> (-0.20%) ⬇️
rust.hash-graph-temporal-versioning 48.22% <ø> (ø)
rust.hash-graph-types 0.00% <ø> (ø)
rust.hashql-diagnostics 50.24% <ø> (ø)
rust.sarif 97.93% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 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.

@CiaranMn CiaranMn force-pushed the cm/canary-release branch from d5988fa to 63fa1e8 Compare August 8, 2025 09:55
@CiaranMn CiaranMn added the meta/DO NOT MERGE DO NOT MERGE. May be used in combination with `state/blocked` label Aug 8, 2025
Copy link
Contributor

github-actions bot commented Aug 8, 2025

Benchmark results

@rust/hash-graph-benches – Integrations

policy_resolution_small

Function Value Mean Flame graphs
resolve_policies_for_actor user: seeded, selectivity: high, policies: 94 $$3.25 \mathrm{ms} \pm 12.3 \mathrm{μs}\left({\color{gray}-0.563 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: medium, policies: 26 $$3.15 \mathrm{ms} \pm 18.5 \mathrm{μs}\left({\color{gray}0.364 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: medium, policies: 25 $$2.75 \mathrm{ms} \pm 9.39 \mathrm{μs}\left({\color{gray}-0.164 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: low, policies: 1 $$2.61 \mathrm{ms} \pm 7.40 \mathrm{μs}\left({\color{gray}0.264 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: low, policies: 1 $$2.90 \mathrm{ms} \pm 11.5 \mathrm{μs}\left({\color{gray}-0.471 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: high, policies: 66 $$3.19 \mathrm{ms} \pm 16.8 \mathrm{μs}\left({\color{gray}-3.681 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: low, policies: 1 $$2.93 \mathrm{ms} \pm 14.3 \mathrm{μs}\left({\color{gray}0.121 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: high, policies: 52 $$2.90 \mathrm{ms} \pm 12.5 \mathrm{μs}\left({\color{gray}0.862 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: medium, policies: 29 $$3.16 \mathrm{ms} \pm 14.1 \mathrm{μs}\left({\color{gray}0.113 \mathrm{\%}}\right) $$ Flame Graph

representative_read_entity

Function Value Mean Flame graphs
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/organization/v/1 $$29.4 \mathrm{ms} \pm 262 \mathrm{μs}\left({\color{gray}2.93 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/uk-address/v/1 $$29.2 \mathrm{ms} \pm 275 \mathrm{μs}\left({\color{gray}-1.734 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/person/v/1 $$28.9 \mathrm{ms} \pm 249 \mathrm{μs}\left({\color{gray}-0.828 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/playlist/v/1 $$29.6 \mathrm{ms} \pm 276 \mathrm{μs}\left({\color{gray}0.502 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/block/v/1 $$29.2 \mathrm{ms} \pm 295 \mathrm{μs}\left({\color{gray}-0.165 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/song/v/1 $$30.8 \mathrm{ms} \pm 280 \mathrm{μs}\left({\color{gray}3.04 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/book/v/1 $$30.2 \mathrm{ms} \pm 267 \mathrm{μs}\left({\color{gray}4.65 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/building/v/1 $$29.9 \mathrm{ms} \pm 283 \mathrm{μs}\left({\color{gray}0.463 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/page/v/2 $$28.8 \mathrm{ms} \pm 261 \mathrm{μs}\left({\color{lightgreen}-11.684 \mathrm{\%}}\right) $$ Flame Graph

policy_resolution_none

Function Value Mean Flame graphs
resolve_policies_for_actor user: system, selectivity: high, policies: 8 $$3.14 \mathrm{ms} \pm 17.9 \mathrm{μs}\left({\color{gray}-0.129 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: medium, policies: 1 $$2.72 \mathrm{ms} \pm 10.5 \mathrm{μs}\left({\color{gray}-0.571 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: low, policies: 1 $$2.71 \mathrm{ms} \pm 12.4 \mathrm{μs}\left({\color{gray}0.086 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: low, policies: 1 $$2.97 \mathrm{ms} \pm 12.9 \mathrm{μs}\left({\color{gray}0.530 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: high, policies: 2 $$2.76 \mathrm{ms} \pm 14.2 \mathrm{μs}\left({\color{gray}0.432 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: medium, policies: 3 $$3.13 \mathrm{ms} \pm 15.5 \mathrm{μs}\left({\color{gray}0.382 \mathrm{\%}}\right) $$ Flame Graph

policy_resolution_medium

Function Value Mean Flame graphs
resolve_policies_for_actor user: seeded, selectivity: high, policies: 269 $$5.58 \mathrm{ms} \pm 23.4 \mathrm{μs}\left({\color{gray}-0.795 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: medium, policies: 63 $$4.87 \mathrm{ms} \pm 27.7 \mathrm{μs}\left({\color{gray}0.525 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: low, policies: 1 $$3.65 \mathrm{ms} \pm 16.8 \mathrm{μs}\left({\color{gray}0.883 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: medium, policies: 107 $$5.00 \mathrm{ms} \pm 32.2 \mathrm{μs}\left({\color{gray}0.633 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: low, policies: 1 $$4.33 \mathrm{ms} \pm 24.4 \mathrm{μs}\left({\color{gray}0.873 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: low, policies: 1 $$4.58 \mathrm{ms} \pm 19.1 \mathrm{μs}\left({\color{gray}-0.412 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: high, policies: 133 $$4.88 \mathrm{ms} \pm 24.2 \mathrm{μs}\left({\color{gray}1.85 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: high, policies: 102 $$4.03 \mathrm{ms} \pm 24.6 \mathrm{μs}\left({\color{gray}0.022 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: medium, policies: 51 $$3.92 \mathrm{ms} \pm 21.9 \mathrm{μs}\left({\color{gray}-0.061 \mathrm{\%}}\right) $$ Flame Graph

scaling_read_entity_linkless

Function Value Mean Flame graphs
entity_by_id 10000 entities $$21.2 \mathrm{ms} \pm 160 \mathrm{μs}\left({\color{gray}0.207 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 1000 entities $$14.5 \mathrm{ms} \pm 86.7 \mathrm{μs}\left({\color{gray}1.88 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 1 entities $$14.4 \mathrm{ms} \pm 55.0 \mathrm{μs}\left({\color{gray}0.026 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 10 entities $$14.5 \mathrm{ms} \pm 69.9 \mathrm{μs}\left({\color{gray}-0.009 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 100 entities $$13.9 \mathrm{ms} \pm 68.7 \mathrm{μs}\left({\color{gray}-0.708 \mathrm{\%}}\right) $$ Flame Graph

scaling_read_entity_complete_one_depth

Function Value Mean Flame graphs
entity_by_id 1 entities $$55.0 \mathrm{ms} \pm 297 \mathrm{μs}\left({\color{gray}0.485 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 50 entities $$5.57 \mathrm{s} \pm 550 \mathrm{ms}\left({\color{red}1423 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 10 entities $$99.4 \mathrm{ms} \pm 2.91 \mathrm{ms}\left({\color{gray}-3.048 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 25 entities $$253 \mathrm{ms} \pm 1.49 \mathrm{ms}\left({\color{gray}4.86 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 5 entities $$66.0 \mathrm{ms} \pm 348 \mathrm{μs}\left({\color{gray}0.721 \mathrm{\%}}\right) $$ Flame Graph

scaling_read_entity_complete_zero_depth

Function Value Mean Flame graphs
entity_by_id 1 entities $$14.3 \mathrm{ms} \pm 51.2 \mathrm{μs}\left({\color{gray}0.557 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 50 entities $$17.3 \mathrm{ms} \pm 49.8 \mathrm{μs}\left({\color{gray}-3.613 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 10 entities $$15.7 \mathrm{ms} \pm 38.6 \mathrm{μs}\left({\color{gray}0.218 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 25 entities $$16.7 \mathrm{ms} \pm 144 \mathrm{μs}\left({\color{gray}-0.882 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 5 entities $$14.4 \mathrm{ms} \pm 50.9 \mathrm{μs}\left({\color{gray}0.203 \mathrm{\%}}\right) $$ Flame Graph

policy_resolution_large

Function Value Mean Flame graphs
resolve_policies_for_actor user: seeded, selectivity: high, policies: 3314 $$47.1 \mathrm{ms} \pm 300 \mathrm{μs}\left({\color{gray}-0.042 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: high, policies: 2078 $$33.7 \mathrm{ms} \pm 296 \mathrm{μs}\left({\color{gray}-0.587 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: low, policies: 1 $$25.0 \mathrm{ms} \pm 205 \mathrm{μs}\left({\color{gray}-3.948 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: high, policies: 2002 $$31.8 \mathrm{ms} \pm 221 \mathrm{μs}\left({\color{gray}-1.274 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: low, policies: 1 $$26.3 \mathrm{ms} \pm 262 \mathrm{μs}\left({\color{gray}-1.573 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: low, policies: 1 $$36.3 \mathrm{ms} \pm 262 \mathrm{μs}\left({\color{gray}-2.591 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: medium, policies: 1001 $$28.3 \mathrm{ms} \pm 172 \mathrm{μs}\left({\color{gray}-1.456 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: medium, policies: 1526 $$40.7 \mathrm{ms} \pm 276 \mathrm{μs}\left({\color{gray}-0.737 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: medium, policies: 1033 $$30.1 \mathrm{ms} \pm 234 \mathrm{μs}\left({\color{gray}0.063 \mathrm{\%}}\right) $$ Flame Graph

representative_read_entity_type

Function Value Mean Flame graphs
get_entity_type_by_id Account ID: bf5a9ef5-dc3b-43cf-a291-6210c0321eba $$8.74 \mathrm{ms} \pm 47.4 \mathrm{μs}\left({\color{gray}-0.014 \mathrm{\%}}\right) $$ Flame Graph

policy_resolution_extra_large

Function Value Mean Flame graphs
resolve_policies_for_actor user: empty, selectivity: medium, policies: 5001 $$114 \mathrm{ms} \pm 704 \mathrm{μs}\left({\color{gray}0.340 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: high, policies: 27604 $$383 \mathrm{ms} \pm 1.52 \mathrm{ms}\left({\color{gray}-0.452 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: medium, policies: 13450 $$342 \mathrm{ms} \pm 1.10 \mathrm{ms}\left({\color{gray}-0.308 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: low, policies: 1 $$103 \mathrm{ms} \pm 524 \mathrm{μs}\left({\color{gray}0.818 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: high, policies: 11308 $$587 \mathrm{ms} \pm 30.3 \mathrm{ms}\left({\color{gray}0.905 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: low, policies: 1 $$177 \mathrm{ms} \pm 896 \mathrm{μs}\left({\color{gray}0.083 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: high, policies: 10002 $$130 \mathrm{ms} \pm 789 \mathrm{μs}\left({\color{gray}1.10 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: low, policies: 1 $$307 \mathrm{ms} \pm 989 \mathrm{μs}\left({\color{gray}-0.365 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: medium, policies: 5628 $$192 \mathrm{ms} \pm 1.04 \mathrm{ms}\left({\color{gray}0.872 \mathrm{\%}}\right) $$ Flame Graph

representative_read_multiple_entities

Function Value Mean Flame graphs
link_by_source_by_property depths: DT=2, PT=2, ET=2, E=2 $$261 \mathrm{ms} \pm 2.01 \mathrm{ms}\left({\color{gray}-0.041 \mathrm{\%}}\right) $$ Flame Graph
link_by_source_by_property depths: DT=0, PT=0, ET=0, E=2 $$237 \mathrm{ms} \pm 1.19 \mathrm{ms}\left({\color{gray}1.48 \mathrm{\%}}\right) $$ Flame Graph
link_by_source_by_property depths: DT=255, PT=255, ET=255, E=255 $$278 \mathrm{ms} \pm 1.39 \mathrm{ms}\left({\color{gray}-0.408 \mathrm{\%}}\right) $$ Flame Graph
link_by_source_by_property depths: DT=0, PT=0, ET=0, E=0 $$189 \mathrm{ms} \pm 420 \mathrm{μs}\left({\color{gray}-0.349 \mathrm{\%}}\right) $$ Flame Graph
link_by_source_by_property depths: DT=0, PT=0, ET=2, E=2 $$249 \mathrm{ms} \pm 1.69 \mathrm{ms}\left({\color{gray}1.11 \mathrm{\%}}\right) $$ Flame Graph
link_by_source_by_property depths: DT=0, PT=2, ET=2, E=2 $$254 \mathrm{ms} \pm 1.28 \mathrm{ms}\left({\color{gray}-2.148 \mathrm{\%}}\right) $$ Flame Graph
entity_by_property depths: DT=2, PT=2, ET=2, E=2 $$130 \mathrm{ms} \pm 551 \mathrm{μs}\left({\color{gray}-0.404 \mathrm{\%}}\right) $$ Flame Graph
entity_by_property depths: DT=0, PT=0, ET=0, E=2 $$109 \mathrm{ms} \pm 460 \mathrm{μs}\left({\color{gray}-0.141 \mathrm{\%}}\right) $$ Flame Graph
entity_by_property depths: DT=255, PT=255, ET=255, E=255 $$151 \mathrm{ms} \pm 608 \mathrm{μs}\left({\color{gray}-1.397 \mathrm{\%}}\right) $$ Flame Graph
entity_by_property depths: DT=0, PT=0, ET=0, E=0 $$100 \mathrm{ms} \pm 536 \mathrm{μs}\left({\color{gray}-1.885 \mathrm{\%}}\right) $$ Flame Graph
entity_by_property depths: DT=0, PT=0, ET=2, E=2 $$117 \mathrm{ms} \pm 471 \mathrm{μs}\left({\color{gray}-0.333 \mathrm{\%}}\right) $$ Flame Graph
entity_by_property depths: DT=0, PT=2, ET=2, E=2 $$124 \mathrm{ms} \pm 673 \mathrm{μs}\left({\color{gray}-0.486 \mathrm{\%}}\right) $$ Flame Graph

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
meta/DO NOT MERGE DO NOT MERGE. May be used in combination with `state/blocked`
Development

Successfully merging this pull request may close these issues.

1 participant