Skip to content

SRE-1422: Cache the OpenAPI Generator jar in CI - #10523

Open
claude[bot] wants to merge 3 commits into
mainfrom
claude/sre-1422-stop-maven-central-rate-limits-from-failing
Open

claude[bot] wants to merge 3 commits into
mainfrom
claude/sre-1422-stop-maven-central-rate-limits-from-failing

Conversation

@claude

@claude claude Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Requested via Slack thread

🌟 Purpose

@local/hash-graph-client codegen runs openapi-generator-cli, which downloads the generator jar from Maven Central whenever turbo has no cached result for the task. CI does not keep the jar between runs. When Maven Central answers HTTP 429, the download fails, codegen fails with Unable to access jarfile, and so does every job that depends on it. This ejected #10519 from the merge queue (job log).

This PR caches the jar in the Actions cache, keyed on the pinned generator version, and hands it to codegen both on the runner and inside the Docker image builds, so CI codegen finds it on disk and never contacts Maven Central. Moving to a generator version published on GitHub releases (SRE-1022) removes the Maven Central dependency for good; this is the short-term fix.

🔍 Changes

  • openapitools.json sets the CLI's own generator-cli.storageDir to ~/.cache/openapi-generator-cli. The default location is versions/ inside the CLI's package in node_modules, which depends on where Yarn hoists the package. Locally, the jar now also survives a fresh node_modules.
  • The new restore-openapi-generator action reads the version and storageDir from that file with mise's yq and restores the directory from the cache under openapi-generator-cli-<version> (openapi-generator-cli-6.6.0 for the pinned 6.6.0). It skips when the repository was pruned without the graph client, and when the config has no storageDir, as on a base-branch checkout in the bench workflow before this merges.
  • warm-up-repo runs it in every job that installs Yarn dependencies, so no workflow opts in. On a cache miss it runs openapi-generator-cli version in the graph client package: the CLI downloads the jar into storageDir before it starts, and the command fails unless the jar then runs, so a broken download is never saved. The first run on main after a version change therefore fills the cache whether or not turbo runs codegen, and branches read main's cache. The download step is continue-on-error; if it fails, codegen tries the download itself, as before.
  • docker-build-push runs the same restore (installing yq through jdx/mise-action, as the build job runs no install-tools) and, on a hit, passes the directory to every docker/build-push-action call as the openapi-generator-cli build context. It only reads the cache; warm-up-repo fills it.
  • The five Dockerfiles whose turbo build includes @local/hash-graph-client#codegen (hash-api, hash-frontend, hash-ai-worker-ts, hash-integration-worker, brunch-agent) bind-mount that context read-write at /root/.cache/openapi-generator-cli for the build step. The builder stage runs as root, so ~ resolves to /root. The context defaults to an empty scratch stage, so a build without it, such as a local docker build, downloads the jar into the mount as before; nothing in the mount ends up in the image. hash-graph and atlas do not run that codegen and are unchanged.
  • restore-openapi-generator/checksums.txt pins the jar's SHA-256 per version (6.6.0: 9718ff78…e4609, from the jar whose SHA-1 and MD5 match the files Maven Central publishes for it and whose PGP signature by the OpenAPI Tools key verifies). verify-jar.sh checks it with sha256sum -c after every cache hit, so before a Docker build gets the context, and after the download on a miss, before the save. A mismatch, or a version with no pinned checksum, fails the job with an ::error:: naming the jar and both hashes.

Review requested from Tim, who assigned SRE-1422. Please focus on the cache fill on a miss in warm-up-repo (download, continue-on-error, save only on success) and on the openapi-generator-cli named build context wiring in docker-build-push and the five Dockerfiles.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WERujAimwhvaFgWp15SyCJ

The graph client's `openapi-generator-cli` stores its jar in
`~/.cache/openapi-generator-cli`. `warm-up-repo` restores that directory
from the Actions cache, keyed on the generator version in
`openapitools.json`, and on a miss runs the CLI once to download the jar
and saves it, so codegen no longer fetches it from Maven Central.
@vercel

vercel Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
hash Ready Ready Preview Nov 16, 2026 3:46pm UTC
hashdotdesign-tokens Ready Ready Preview Nov 16, 2026 3:46pm UTC
petrinaut Ready Ready Preview Nov 16, 2026 3:46pm UTC
petrinaut-docs Ready Ready Preview Nov 16, 2026 3:46pm UTC

Request Review

@github-actions github-actions Bot added area/infra Relates to version control, CI, CD or IaC (area) area/libs Relates to first-party libraries/crates/packages (area) type/eng > backend Owned by the @backend team labels Nov 16, 2026
@claude
claude Bot deployed to pull-request November 16, 2026 14:20 Active
@claude
claude Bot deployed to pull-request November 16, 2026 14:20 Active
@codecov

codecov Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 69.03%. Comparing base (e6bdf6d) to head (69f61d7).
⚠️ Report is 5 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #10523      +/-   ##
==========================================
- Coverage   69.03%   69.03%   -0.01%     
==========================================
  Files        2082     2082              
  Lines      214463   214463              
  Branches     9256     9256              
==========================================
- Hits       148057   148055       -2     
- Misses      64519    64520       +1     
- Partials     1887     1888       +1     
Flag Coverage Δ
apps.hash-ai-worker-ts 9.44% <ø> (ø)
apps.hash-api 16.23% <ø> (ø)
blockprotocol.type-system 41.73% <ø> (ø)
durable-kernel 86.62% <ø> (-0.03%) ⬇️
error-stack 90.55% <ø> (ø)
harpc-codec 84.61% <ø> (ø)
harpc-net 96.30% <ø> (ø)
harpc-tower 67.11% <ø> (ø)
harpc-types 0.00% <ø> (ø)
harpc-wire-protocol 93.85% <ø> (ø)
hash-codec 71.20% <ø> (ø)
hash-config 83.57% <ø> (ø)
hash-crypto 94.76% <ø> (ø)
hash-graph 21.71% <ø> (ø)
hash-graph-api 49.01% <ø> (ø)
hash-graph-atlas 80.10% <ø> (-0.01%) ⬇️
hash-graph-authentication 96.83% <ø> (ø)
hash-graph-authorization 68.20% <ø> (ø)
hash-graph-embeddings 91.92% <ø> (ø)
hash-graph-postgres-store 31.48% <ø> (ø)
hash-graph-store 51.17% <ø> (ø)
hash-graph-temporal-versioning 50.53% <ø> (ø)
hash-graph-types 0.00% <ø> (ø)
hash-graph-validation 84.91% <ø> (ø)
hash-integrations-definition 93.70% <ø> (ø)
hash-integrations-engine 92.36% <ø> (ø)
hash-middleware 87.62% <ø> (ø)
hashql-ast 90.02% <ø> (ø)
hashql-compiletest 28.71% <ø> (ø)
hashql-core 81.73% <ø> (ø)
hashql-diagnostics 72.85% <ø> (ø)
hashql-eval 81.55% <ø> (ø)
hashql-hir 89.10% <ø> (ø)
hashql-mir 87.34% <ø> (ø)
hashql-syntax-jexpr 94.29% <ø> (ø)
local.harpc-client 56.88% <ø> (ø)
local.hash-backend-utils 24.83% <ø> (ø)
local.hash-graph-sdk 9.79% <ø> (ø)
local.hash-isomorphic-utils 40.16% <ø> (ø)
problematic 90.23% <ø> (ø)
railroad-plugin 45.28% <ø> (ø)

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

☔ 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.

@codspeed

codspeed Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Merging this PR will not alter performance

1 warning

⚠️ Unable to measure the execution of 6 benchmarks

These benchmarks measured no execution time, so their results are not comparable and count as unchanged. This usually happens when the compiler removes the code under test.

Prevent compiler optimizations

See affected benchmarks

✅ 98 untouched benchmarks


Comparing claude/sre-1422-stop-maven-central-rate-limits-from-failing (69f61d7) with main (164699c)1

Open in CodSpeed

Footnotes

  1. No successful run was found on main (3ba805b) during the generation of this report, so 164699c was used instead as the comparison base. There might be some changes unrelated to this pull request in this report. ↩

The images whose `turbo build` runs graph client codegen downloaded the
jar from Maven Central inside the build. `restore-openapi-generator`
now holds the cache lookup that `warm-up-repo` used, and
`docker-build-push` runs it too and passes the restored directory as the
`openapi-generator-cli` build context. The Dockerfiles bind-mount that
context at the generator's storage directory for the build step, and
default it to an empty stage, so a build without it downloads the jar
as before.
@veria-ai

veria-ai Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

PR overview

All previously flagged issues have been addressed. No open security concerns remain on this pull request.

Fixed/addressed: 1 · PR risk: 0/10

Reviews

@cursor

cursor Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

PR Summary

Medium Risk
Touches shared CI warm-up and all five codegen Docker images; checksum verification limits supply-chain risk from a bad cache entry.

Overview
CI and Docker builds stop re-downloading the OpenAPI Generator jar from Maven Central by caching it in GitHub Actions and reusing it during codegen.

openapitools.json now pins the jar location to ~/.cache/openapi-generator-cli. A new restore-openapi-generator composite action reads that config, restores the version-keyed cache directory, and fails the job if the jar’s SHA-256 doesn’t match checksums.txt.

warm-up-repo runs restore on every Yarn install; on a miss it downloads via openapi-generator-cli version (with continue-on-error), verifies, then saves to the cache. docker-build-push installs yq, restores the jar, and on a cache hit passes the directory as the openapi-generator-cli build context to all build-push-action steps.

Five app Dockerfiles that run graph-client codegen add an optional openapi-generator-cli stage and bind-mount that context at /root/.cache/openapi-generator-cli during turbo build, so in-CI image builds use the cached jar instead of Maven.

Reviewed by Cursor Bugbot for commit 69f61d7. Bugbot is set up for automated code reviews on this repo. Configure here.

@github-actions

Copy link
Copy Markdown
Contributor

Benchmark results

hash-graph-benches – Integrations

policy_resolution_large

Function Value Mean Flame graphs
resolve_policies_for_actor user: empty, selectivity: high, policies: 2002 $$27.7 \mathrm{ms} \pm 238 \mathrm{μs}\left({\color{gray}1.18 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: low, policies: 1 $$2.99 \mathrm{ms} \pm 22.6 \mathrm{μs}\left({\color{gray}2.35 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: medium, policies: 1002 $$12.3 \mathrm{ms} \pm 109 \mathrm{μs}\left({\color{gray}2.77 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: high, policies: 3314 $$115 \mathrm{ms} \pm 1.99 \mathrm{ms}\left({\color{red}7.68 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: low, policies: 1 $$12.3 \mathrm{ms} \pm 148 \mathrm{μs}\left({\color{gray}0.918 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: medium, policies: 1527 $$22.7 \mathrm{ms} \pm 355 \mathrm{μs}\left({\color{gray}3.58 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: high, policies: 2078 $$28.5 \mathrm{ms} \pm 320 \mathrm{μs}\left({\color{gray}2.60 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: low, policies: 1 $$3.26 \mathrm{ms} \pm 31.1 \mathrm{μs}\left({\color{gray}2.77 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: medium, policies: 1033 $$13.2 \mathrm{ms} \pm 109 \mathrm{μs}\left({\color{gray}3.85 \mathrm{\%}}\right) $$ Flame Graph

policy_resolution_medium

Function Value Mean Flame graphs
resolve_policies_for_actor user: empty, selectivity: high, policies: 102 $$3.26 \mathrm{ms} \pm 28.7 \mathrm{μs}\left({\color{gray}2.53 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: low, policies: 1 $$2.51 \mathrm{ms} \pm 22.6 \mathrm{μs}\left({\color{gray}1.07 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: medium, policies: 52 $$2.88 \mathrm{ms} \pm 36.3 \mathrm{μs}\left({\color{gray}2.60 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: high, policies: 269 $$4.53 \mathrm{ms} \pm 50.1 \mathrm{μs}\left({\color{gray}0.355 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: low, policies: 1 $$2.98 \mathrm{ms} \pm 33.1 \mathrm{μs}\left({\color{gray}1.36 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: medium, policies: 108 $$3.58 \mathrm{ms} \pm 41.0 \mathrm{μs}\left({\color{gray}1.48 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: high, policies: 133 $$3.86 \mathrm{ms} \pm 46.4 \mathrm{μs}\left({\color{gray}0.905 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: low, policies: 1 $$2.92 \mathrm{ms} \pm 31.1 \mathrm{μs}\left({\color{gray}1.48 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: medium, policies: 63 $$3.46 \mathrm{ms} \pm 35.5 \mathrm{μs}\left({\color{gray}-0.289 \mathrm{\%}}\right) $$ Flame Graph

policy_resolution_none

Function Value Mean Flame graphs
resolve_policies_for_actor user: empty, selectivity: high, policies: 2 $$2.20 \mathrm{ms} \pm 22.1 \mathrm{μs}\left({\color{gray}0.863 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: low, policies: 1 $$2.09 \mathrm{ms} \pm 16.4 \mathrm{μs}\left({\color{gray}-0.659 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: medium, policies: 2 $$2.20 \mathrm{ms} \pm 22.9 \mathrm{μs}\left({\color{gray}0.618 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: high, policies: 8 $$2.41 \mathrm{ms} \pm 24.2 \mathrm{μs}\left({\color{gray}0.244 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: low, policies: 1 $$2.23 \mathrm{ms} \pm 19.3 \mathrm{μs}\left({\color{gray}-1.823 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: medium, policies: 3 $$2.40 \mathrm{ms} \pm 20.0 \mathrm{μs}\left({\color{gray}-1.177 \mathrm{\%}}\right) $$ Flame Graph

policy_resolution_small

Function Value Mean Flame graphs
resolve_policies_for_actor user: empty, selectivity: high, policies: 52 $$2.55 \mathrm{ms} \pm 25.4 \mathrm{μs}\left({\color{gray}1.14 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: low, policies: 1 $$2.28 \mathrm{ms} \pm 19.5 \mathrm{μs}\left({\color{gray}1.58 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: medium, policies: 26 $$2.48 \mathrm{ms} \pm 19.2 \mathrm{μs}\left({\color{gray}0.999 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: high, policies: 94 $$2.83 \mathrm{ms} \pm 21.4 \mathrm{μs}\left({\color{gray}0.118 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: low, policies: 1 $$2.47 \mathrm{ms} \pm 15.2 \mathrm{μs}\left({\color{gray}1.09 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: medium, policies: 27 $$2.69 \mathrm{ms} \pm 22.8 \mathrm{μs}\left({\color{gray}1.57 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: high, policies: 66 $$2.81 \mathrm{ms} \pm 21.8 \mathrm{μs}\left({\color{gray}0.874 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: low, policies: 1 $$2.44 \mathrm{ms} \pm 18.6 \mathrm{μs}\left({\color{gray}0.996 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: medium, policies: 29 $$2.71 \mathrm{ms} \pm 26.9 \mathrm{μs}\left({\color{gray}0.872 \mathrm{\%}}\right) $$ Flame Graph

read_scaling_complete

Function Value Mean Flame graphs
entity_by_id;one_depth 1 entities $$37.7 \mathrm{ms} \pm 336 \mathrm{μs}\left({\color{gray}1.04 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;one_depth 10 entities $$28.6 \mathrm{ms} \pm 261 \mathrm{μs}\left({\color{gray}-1.609 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;one_depth 25 entities $$32.0 \mathrm{ms} \pm 294 \mathrm{μs}\left({\color{gray}0.153 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;one_depth 5 entities $$28.0 \mathrm{ms} \pm 258 \mathrm{μs}\left({\color{lightgreen}-14.115 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;one_depth 50 entities $$39.7 \mathrm{ms} \pm 356 \mathrm{μs}\left({\color{gray}2.75 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 1 entities $$44.7 \mathrm{ms} \pm 308 \mathrm{μs}\left({\color{gray}-1.157 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 10 entities $$35.5 \mathrm{ms} \pm 252 \mathrm{μs}\left({\color{gray}-0.162 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 25 entities $$105 \mathrm{ms} \pm 897 \mathrm{μs}\left({\color{gray}-2.690 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 5 entities $$28.8 \mathrm{ms} \pm 204 \mathrm{μs}\left({\color{lightgreen}-25.628 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 50 entities $$305 \mathrm{ms} \pm 1.70 \mathrm{ms}\left({\color{lightgreen}-7.560 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 1 entities $$8.91 \mathrm{ms} \pm 72.0 \mathrm{μs}\left({\color{gray}-0.100 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 10 entities $$8.96 \mathrm{ms} \pm 57.7 \mathrm{μs}\left({\color{gray}-0.257 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 25 entities $$8.92 \mathrm{ms} \pm 59.1 \mathrm{μs}\left({\color{gray}-0.461 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 5 entities $$8.71 \mathrm{ms} \pm 74.5 \mathrm{μs}\left({\color{gray}-1.911 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 50 entities $$9.04 \mathrm{ms} \pm 66.8 \mathrm{μs}\left({\color{gray}0.971 \mathrm{\%}}\right) $$ Flame Graph

read_scaling_linkless

Function Value Mean Flame graphs
entity_by_id 1 entities $$8.91 \mathrm{ms} \pm 64.1 \mathrm{μs}\left({\color{gray}-0.431 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 10 entities $$8.89 \mathrm{ms} \pm 58.3 \mathrm{μs}\left({\color{gray}-0.828 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 100 entities $$9.06 \mathrm{ms} \pm 61.7 \mathrm{μs}\left({\color{gray}1.73 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 1000 entities $$9.42 \mathrm{ms} \pm 82.3 \mathrm{μs}\left({\color{red}5.35 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 10000 entities $$9.45 \mathrm{ms} \pm 69.6 \mathrm{μs}\left({\color{gray}0.897 \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/block/v/1 $$9.41 \mathrm{ms} \pm 62.9 \mathrm{μs}\left({\color{gray}-0.846 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/book/v/1 $$9.43 \mathrm{ms} \pm 67.0 \mathrm{μs}\left({\color{gray}0.548 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/building/v/1 $$9.41 \mathrm{ms} \pm 76.3 \mathrm{μs}\left({\color{gray}1.75 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/organization/v/1 $$9.37 \mathrm{ms} \pm 75.9 \mathrm{μs}\left({\color{gray}0.041 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/page/v/2 $$9.43 \mathrm{ms} \pm 75.4 \mathrm{μs}\left({\color{gray}-1.565 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/person/v/1 $$9.61 \mathrm{ms} \pm 76.0 \mathrm{μs}\left({\color{gray}4.49 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/playlist/v/1 $$9.45 \mathrm{ms} \pm 62.4 \mathrm{μs}\left({\color{gray}0.807 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/song/v/1 $$9.49 \mathrm{ms} \pm 72.9 \mathrm{μs}\left({\color{gray}2.32 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/uk-address/v/1 $$9.80 \mathrm{ms} \pm 97.4 \mathrm{μs}\left({\color{gray}4.81 \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 $$6.76 \mathrm{ms} \pm 41.9 \mathrm{μs}\left({\color{gray}-0.381 \mathrm{\%}}\right) $$ Flame Graph

representative_read_multiple_entities

Function Value Mean Flame graphs
entity_by_property traversal_paths=0 0 $$50.2 \mathrm{ms} \pm 385 \mathrm{μs}\left({\color{gray}-1.241 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=255 1,resolve_depths=inherit:1;values:255;properties:255;links:127;link_dests:126;type:true $$95.5 \mathrm{ms} \pm 962 \mathrm{μs}\left({\color{gray}-0.277 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:0;properties:0;links:0;link_dests:0;type:false $$56.5 \mathrm{ms} \pm 426 \mathrm{μs}\left({\color{gray}-1.509 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:0;properties:0;links:1;link_dests:0;type:true $$65.1 \mathrm{ms} \pm 583 \mathrm{μs}\left({\color{gray}-0.414 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:0;properties:2;links:1;link_dests:0;type:true $$72.3 \mathrm{ms} \pm 545 \mathrm{μs}\left({\color{gray}-1.011 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:2;properties:2;links:1;link_dests:0;type:true $$77.6 \mathrm{ms} \pm 597 \mathrm{μs}\left({\color{gray}0.315 \mathrm{\%}}\right) $$
link_by_source_by_property traversal_paths=0 0 $$40.0 \mathrm{ms} \pm 307 \mathrm{μs}\left({\color{gray}0.170 \mathrm{\%}}\right) $$
link_by_source_by_property traversal_paths=255 1,resolve_depths=inherit:1;values:255;properties:255;links:127;link_dests:126;type:true $$65.3 \mathrm{ms} \pm 637 \mathrm{μs}\left({\color{gray}1.04 \mathrm{\%}}\right) $$
link_by_source_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:0;properties:0;links:0;link_dests:0;type:false $$45.8 \mathrm{ms} \pm 324 \mathrm{μs}\left({\color{gray}0.800 \mathrm{\%}}\right) $$
link_by_source_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:0;properties:0;links:1;link_dests:0;type:true $$53.6 \mathrm{ms} \pm 359 \mathrm{μs}\left({\color{gray}-0.055 \mathrm{\%}}\right) $$
link_by_source_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:0;properties:2;links:1;link_dests:0;type:true $$55.5 \mathrm{ms} \pm 422 \mathrm{μs}\left({\color{gray}0.065 \mathrm{\%}}\right) $$
link_by_source_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:2;properties:2;links:1;link_dests:0;type:true $$55.3 \mathrm{ms} \pm 428 \mathrm{μs}\left({\color{gray}-1.968 \mathrm{\%}}\right) $$

scenarios

Function Value Mean Flame graphs
full_test query-limited $$109 \mathrm{ms} \pm 937 \mathrm{μs}\left({\color{gray}1.00 \mathrm{\%}}\right) $$ Flame Graph
full_test query-unlimited $$118 \mathrm{ms} \pm 678 \mathrm{μs}\left({\color{gray}-1.659 \mathrm{\%}}\right) $$ Flame Graph
linked_queries query-limited $$16.5 \mathrm{ms} \pm 146 \mathrm{μs}\left({\color{gray}2.14 \mathrm{\%}}\right) $$ Flame Graph
linked_queries query-unlimited $$466 \mathrm{ms} \pm 1.45 \mathrm{ms}\left({\color{gray}2.42 \mathrm{\%}}\right) $$ Flame Graph

`checksums.txt` pins the SHA-256 of each generator version's jar.
`verify-jar.sh` checks the jar with `sha256sum -c` after a cache restore,
in every job and before a Docker build gets it as a build context, and
after the download on a miss, before the jar is saved. A mismatch, or a
configured version with no pinned checksum, fails the job.

This branch was successfully deployed

5 active deployments
Preview – hash — 69f61d7c Deployed Nov 16, 2026 by vercel[bot]
Preview – petrinaut-docs — 69f61d7c Deployed Nov 16, 2026 by vercel[bot]
Preview – petrinaut — 69f61d7c Deployed Nov 16, 2026 by vercel[bot]
Preview – hashdotdesign-tokens — 69f61d7c Deployed Nov 16, 2026 by vercel[bot]
pull-request — 69f61d7c Deployed Nov 16, 2026 by claude[bot] via Sourcemaps (@apps/hash-ai-worker-ts) #45314
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/apps > hash* Affects HASH (a `hash-*` app) area/apps > hash-api Affects the HASH API (app) area/apps area/infra Relates to version control, CI, CD or IaC (area) area/libs Relates to first-party libraries/crates/packages (area) type/eng > backend Owned by the @backend team type/eng > frontend Owned by the @frontend team

Development

Successfully merging this pull request may close these issues.

2 participants