Skip to content

SRE-1093: Print clippy errors when cargo fails in the Lint workflow - #9843

Merged
TimDiekmann merged 1 commit into
mainfrom
claude/sre-1093-print-clippy-errors-on-cargo-failure
Sep 26, 2026
Merged

TimDiekmann merged 1 commit into
mainfrom
claude/sre-1093-print-clippy-errors-on-cargo-failure

Conversation

@claude

@claude claude Bot commented Sep 26, 2026

Copy link
Copy Markdown
Contributor

Requested by Tim Diekmann · Slack thread

🌟 What is the purpose of this PR?

Before: hard clippy failures leave the "Run clippy" step red with an empty log. These are compile errors, deny-level lints, and errors in a dependency crate. Since #8963 the step has run under shell: bash, which means -eo pipefail, and cargo's output goes only into clippy-output.log through tee. When cargo exits non-zero, the script stops at the pipeline before sarif-fmt prints anything. The step summary and SARIF annotations don't help either: they keep only spanned diagnostics located inside the job's own crate. So an error in, for example, hashql-core doesn't appear in the hashql-mir job at all. The failing hashql lint jobs on #9842 show this.

After: when cargo fails, the step log prints every rendered compiler message and every plain output line, including error: could not compile .... The step then fails with cargo's exit code.

How: cargo's exit code is captured instead of aborting the script, and clippy-sarif reads the log file. The path-filtered SARIF, sarif-fmt, the empty-results check for warnings, and the unused-dependency check all stay as they were.

🔗 Related links

🔍 What does this change?

  • .github/workflows/lint.yml, "Run clippy": redirect turbo run lint:clippy to clippy-output.log and record its exit code. Feed clippy-sarif from that file.
  • On a non-zero exit, print .message.rendered for each compiler-message line and each non-JSON line as-is, then exit with cargo's code.
  • On success, behaviour is unchanged: sarif-fmt output, then the jq -e empty-results gate, then the unused-dependency grep.

Pre-Merge Checklist 🚀

🚢 Has this modified a publishable library?

This PR:

  • does not modify any publishable blocks or libraries, or modifications do not need publishing

📜 Does this require a change to the docs?

The changes in this PR:

  • are internal and do not require a docs change

🕸️ Does this require a change to the Turbo Graph?

The changes in this PR:

  • do not affect the execution graph

⚠️ Known issues

  • On a hard failure, "Print clippy errors to summary" still shows only the path-filtered SARIF. The full errors are in the step log.

🛡 What tests cover this?

  • None in CI beyond the workflow running on this PR. The step script was run locally with a stubbed turbo, real cargo clippy, and clippy-sarif/sarif-fmt 0.8.0, against a two-crate workspace laid out like libs/@local/hashql/{core,mir}:
    • clean: exit 0
    • warning in the crate: sarif-fmt prints it, exit 1
    • compile error in the dependency crate: the rendered error[E0308] and could not compile lines print, exit 101 (the script on main prints nothing and exits 101)
    • unused-dependency line: printed, exit 1
  • actionlint with shellcheck: no findings beyond the existing $/ action-reference ones that main also reports. oxfmt --check passes.

❓ How to test this?

  1. Push a commit to a Rust crate that fails to compile, or that breaks a crate it depends on.
  2. Open that crate's "Run clippy" step in the Lint workflow.
  3. Confirm that the rendered compiler error and the could not compile line appear in the log.

🤖 Generated with Claude Code

https://claude.ai/code/session_014QA7ngz4iTMdUZUaX6kaVN


Generated by Claude Code

The clippy step ran cargo inside a `pipefail` pipeline that wrote its output only to a file, so a hard failure ended the script before anything was printed. Capture cargo's exit code instead and, when it is non-zero, print every rendered compiler message and plain output line before failing the step.
@vercel

vercel Bot commented Sep 26, 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 Sep 26, 2026 3:16pm UTC
hashdotdesign-tokens Ready Ready Preview Sep 26, 2026 3:16pm UTC
petrinaut Ready Ready Preview Sep 26, 2026 3:16pm UTC
petrinaut-docs Ready Ready Preview Sep 26, 2026 3:16pm UTC

Request Review

@codecov

codecov Bot commented Sep 26, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 65.90%. Comparing base (48e1582) to head (86a99fa).
⚠️ Report is 4 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9843      +/-   ##
==========================================
+ Coverage   65.56%   65.90%   +0.34%     
==========================================
  Files        1896     1905       +9     
  Lines      201506   210007    +8501     
  Branches     8028     8218     +190     
==========================================
+ Hits       132115   138406    +6291     
- Misses      67841    70052    +2211     
+ Partials     1550     1549       -1     
Flag Coverage Δ
antsi 1.96% <ø> (?)
apps.hash-ai-worker-ts 1.99% <ø> (ø)
apps.hash-api 15.35% <ø> (ø)
blockprotocol.type-system 38.15% <ø> (ø)
error-stack 90.55% <ø> (?)
harpc-codec 84.61% <ø> (?)
harpc-net 96.26% <ø> (?)
harpc-tower 67.11% <ø> (?)
harpc-types 0.00% <ø> (?)
harpc-wire-protocol 93.85% <ø> (?)
hash-codec 72.09% <ø> (?)
hash-config 83.57% <ø> (?)
hash-graph 14.11% <ø> (+1.78%) ⬆️
hash-graph-api 33.18% <ø> (+0.98%) ⬆️
hash-graph-atlas 80.01% <ø> (-0.18%) ⬇️
hash-graph-authentication 97.34% <ø> (?)
hash-graph-authorization 67.68% <ø> (?)
hash-graph-embeddings 91.54% <ø> (?)
hash-graph-postgres-store 31.94% <ø> (-0.15%) ⬇️
hash-graph-store 51.71% <ø> (?)
hash-graph-temporal-versioning 50.53% <ø> (?)
hash-graph-types 0.00% <ø> (?)
hash-graph-validation 85.37% <ø> (?)
hash-middleware 88.93% <ø> (?)
hashql-ast 90.01% <ø> (+0.39%) ⬆️
hashql-compiletest 28.71% <ø> (+0.30%) ⬆️
hashql-core 81.47% <ø> (?)
hashql-diagnostics 72.85% <ø> (?)
hashql-eval 79.77% <ø> (-0.30%) ⬇️
hashql-hir 89.10% <ø> (+<0.01%) ⬆️
hashql-mir 87.74% <ø> (+0.12%) ⬆️
hashql-syntax-jexpr 94.77% <ø> (+0.73%) ⬆️
local.claude-hooks 0.00% <ø> (ø)
local.harpc-client 51.49% <ø> (ø)
local.hash-backend-utils 3.27% <ø> (ø)
local.hash-graph-sdk 10.02% <ø> (ø)
local.hash-isomorphic-utils 12.22% <ø> (ø)
problematic 89.25% <ø> (?)

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.

@TimDiekmann
TimDiekmann marked this pull request as ready for review September 26, 2026 15:09
Copilot AI balanced review requested due to automatic review settings September 26, 2026 15:09
@cursor

cursor Bot commented Sep 26, 2026 •

Copy link
Copy Markdown

PR Summary

Low Risk
CI-only change to the Lint workflow clippy step; no application or library runtime behavior is affected.

Overview
Fixes empty "Run clippy" logs when cargo/clippy exits non-zero (compile failures, deny lints, or errors in dependency crates). With bash and a tee pipeline, pipefail stopped the script before sarif-fmt ran, and path-filtered SARIF never surfaced off-crate or span-less messages like could not compile.

The step now writes clippy JSON to a log file, records cargo’s exit code without aborting early, feeds clippy-sarif from that file, and on failure reprints rendered compiler-message lines and plain text from the log before exiting with the same code. Successful runs keep the existing SARIF gate, sarif-fmt, and unused-dependency checks.

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

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@claude

claude Bot commented Sep 26, 2026

Copy link
Copy Markdown
Contributor Author

The copilot-pull-request-reviewer failure (job 108428776837) has nothing to do with this change. Copilot never reviewed the diff. Its review says: "Copilot was unable to review this pull request because the user who requested the review has reached their quota limit." This PR only changes the "Run clippy" step in .github/workflows/lint.yml.


Generated by Claude Code

@TimDiekmann

Copy link
Copy Markdown
Member

Thanks, Claude, luckily you echoed the review from copilot so I can read it again. Just in case someone have not read the comment right above yours 😉 /sarcasm

@codspeed

codspeed Bot commented Sep 26, 2026

Copy link
Copy Markdown

Merging this PR will not alter performance

⚠️ 6 benchmarks measured no execution time

Nothing ran under measurement, usually because the compiler removed the code under test. These results are not comparable, so they count as unchanged.

Preventing compiler optimizations

✅ 98 untouched benchmarks

Performance Changes

Benchmark BASE HEAD Efficiency
⚠️ as_constant < 1 ns < 1 ns N/A
⚠️ constant_equal < 1 ns < 1 ns N/A
⚠️ constant_not_equal < 1 ns < 1 ns N/A
⚠️ access < 1 ns < 1 ns N/A
⚠️ runtime_equal < 1 ns < 1 ns N/A
⚠️ runtime_not_equal < 1 ns < 1 ns N/A

Comparing claude/sre-1093-print-clippy-errors-on-cargo-failure (86a99fa) with main (1c14c9e)

Open in CodSpeed

@TimDiekmann
TimDiekmann added this pull request to the merge queue Sep 26, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Sep 26, 2026
@TimDiekmann
TimDiekmann added this pull request to the merge queue Sep 26, 2026
Merged via the queue into main with commit f9b74c5 Sep 26, 2026
230 of 231 checks passed
@TimDiekmann
TimDiekmann deleted the claude/sre-1093-print-clippy-errors-on-cargo-failure branch September 26, 2026 16:09
@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 $$18.6 \mathrm{ms} \pm 150 \mathrm{μs}\left({\color{gray}-4.341 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: low, policies: 1 $$2.18 \mathrm{ms} \pm 11.2 \mathrm{μs}\left({\color{lightgreen}-5.173 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: medium, policies: 1002 $$8.75 \mathrm{ms} \pm 80.4 \mathrm{μs}\left({\color{lightgreen}-5.404 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: high, policies: 3314 $$26.6 \mathrm{ms} \pm 223 \mathrm{μs}\left({\color{lightgreen}-6.549 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: low, policies: 1 $$8.70 \mathrm{ms} \pm 61.1 \mathrm{μs}\left({\color{gray}-0.021 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: medium, policies: 1527 $$15.4 \mathrm{ms} \pm 154 \mathrm{μs}\left({\color{gray}-2.866 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: high, policies: 2078 $$20.4 \mathrm{ms} \pm 161 \mathrm{μs}\left({\color{gray}3.49 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: low, policies: 1 $$2.44 \mathrm{ms} \pm 19.7 \mathrm{μs}\left({\color{gray}-1.914 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: medium, policies: 1033 $$9.66 \mathrm{ms} \pm 95.4 \mathrm{μs}\left({\color{gray}-0.122 \mathrm{\%}}\right) $$ Flame Graph

policy_resolution_medium

Function Value Mean Flame graphs
resolve_policies_for_actor user: empty, selectivity: high, policies: 102 $$2.82 \mathrm{ms} \pm 20.2 \mathrm{μs}\left({\color{red}11.6 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: low, policies: 1 $$2.10 \mathrm{ms} \pm 13.6 \mathrm{μs}\left({\color{red}9.08 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: medium, policies: 52 $$2.43 \mathrm{ms} \pm 17.4 \mathrm{μs}\left({\color{red}8.76 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: high, policies: 269 $$3.66 \mathrm{ms} \pm 27.0 \mathrm{μs}\left({\color{red}5.88 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: low, policies: 1 $$2.51 \mathrm{ms} \pm 17.8 \mathrm{μs}\left({\color{red}10.0 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: medium, policies: 108 $$2.86 \mathrm{ms} \pm 21.8 \mathrm{μs}\left({\color{red}6.65 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: high, policies: 133 $$3.26 \mathrm{ms} \pm 28.5 \mathrm{μs}\left({\color{red}11.2 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: low, policies: 1 $$2.57 \mathrm{ms} \pm 24.7 \mathrm{μs}\left({\color{red}16.3 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: medium, policies: 63 $$3.01 \mathrm{ms} \pm 26.3 \mathrm{μs}\left({\color{red}13.8 \mathrm{\%}}\right) $$ Flame Graph

policy_resolution_none

Function Value Mean Flame graphs
resolve_policies_for_actor user: empty, selectivity: high, policies: 2 $$1.83 \mathrm{ms} \pm 14.8 \mathrm{μs}\left({\color{gray}0.140 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: low, policies: 1 $$1.86 \mathrm{ms} \pm 16.9 \mathrm{μs}\left({\color{gray}2.56 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: medium, policies: 2 $$2.04 \mathrm{ms} \pm 26.0 \mathrm{μs}\left({\color{red}10.3 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: high, policies: 8 $$1.98 \mathrm{ms} \pm 13.1 \mathrm{μs}\left({\color{gray}-1.801 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: low, policies: 1 $$1.86 \mathrm{ms} \pm 10.3 \mathrm{μs}\left({\color{gray}-1.847 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: medium, policies: 3 $$2.08 \mathrm{ms} \pm 18.1 \mathrm{μs}\left({\color{gray}0.067 \mathrm{\%}}\right) $$ Flame Graph

policy_resolution_small

Function Value Mean Flame graphs
resolve_policies_for_actor user: empty, selectivity: high, policies: 52 $$2.07 \mathrm{ms} \pm 20.0 \mathrm{μs}\left({\color{gray}2.36 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: low, policies: 1 $$1.89 \mathrm{ms} \pm 15.0 \mathrm{μs}\left({\color{gray}3.53 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: empty, selectivity: medium, policies: 26 $$2.05 \mathrm{ms} \pm 20.0 \mathrm{μs}\left({\color{red}7.62 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: high, policies: 94 $$2.32 \mathrm{ms} \pm 23.6 \mathrm{μs}\left({\color{gray}1.52 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: low, policies: 1 $$2.02 \mathrm{ms} \pm 18.1 \mathrm{μs}\left({\color{gray}2.17 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: seeded, selectivity: medium, policies: 27 $$2.19 \mathrm{ms} \pm 15.0 \mathrm{μs}\left({\color{gray}0.110 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: high, policies: 66 $$2.46 \mathrm{ms} \pm 20.0 \mathrm{μs}\left({\color{red}13.8 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: low, policies: 1 $$2.14 \mathrm{ms} \pm 18.8 \mathrm{μs}\left({\color{red}6.25 \mathrm{\%}}\right) $$ Flame Graph
resolve_policies_for_actor user: system, selectivity: medium, policies: 29 $$2.42 \mathrm{ms} \pm 18.1 \mathrm{μs}\left({\color{red}16.1 \mathrm{\%}}\right) $$ Flame Graph

read_scaling_complete

Function Value Mean Flame graphs
entity_by_id;one_depth 1 entities $$22.6 \mathrm{ms} \pm 177 \mathrm{μs}\left({\color{gray}-1.803 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;one_depth 10 entities $$48.9 \mathrm{ms} \pm 260 \mathrm{μs}\left({\color{gray}2.92 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;one_depth 25 entities $$25.6 \mathrm{ms} \pm 156 \mathrm{μs}\left({\color{gray}3.65 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;one_depth 5 entities $$29.1 \mathrm{ms} \pm 175 \mathrm{μs}\left({\color{gray}2.77 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;one_depth 50 entities $$30.2 \mathrm{ms} \pm 234 \mathrm{μs}\left({\color{red}6.80 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 1 entities $$24.2 \mathrm{ms} \pm 172 \mathrm{μs}\left({\color{gray}0.649 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 10 entities $$290 \mathrm{ms} \pm 1.37 \mathrm{ms}\left({\color{gray}4.90 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 25 entities $$60.4 \mathrm{ms} \pm 460 \mathrm{μs}\left({\color{gray}1.56 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 5 entities $$61.8 \mathrm{ms} \pm 427 \mathrm{μs}\left({\color{gray}3.17 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;two_depth 50 entities $$186 \mathrm{ms} \pm 1.02 \mathrm{ms}\left({\color{lightgreen}-8.795 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 1 entities $$7.91 \mathrm{ms} \pm 42.4 \mathrm{μs}\left({\color{gray}2.44 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 10 entities $$7.74 \mathrm{ms} \pm 45.5 \mathrm{μs}\left({\color{gray}0.141 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 25 entities $$7.52 \mathrm{ms} \pm 38.5 \mathrm{μs}\left({\color{gray}-3.282 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 5 entities $$7.68 \mathrm{ms} \pm 37.6 \mathrm{μs}\left({\color{gray}-1.378 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id;zero_depth 50 entities $$7.65 \mathrm{ms} \pm 46.1 \mathrm{μs}\left({\color{gray}-1.386 \mathrm{\%}}\right) $$ Flame Graph

read_scaling_linkless

Function Value Mean Flame graphs
entity_by_id 1 entities $$7.60 \mathrm{ms} \pm 50.2 \mathrm{μs}\left({\color{gray}1.06 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 10 entities $$7.54 \mathrm{ms} \pm 46.8 \mathrm{μs}\left({\color{gray}0.843 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 100 entities $$7.84 \mathrm{ms} \pm 42.9 \mathrm{μs}\left({\color{red}5.24 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 1000 entities $$7.73 \mathrm{ms} \pm 48.0 \mathrm{μs}\left({\color{gray}0.486 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 10000 entities $$8.03 \mathrm{ms} \pm 42.2 \mathrm{μs}\left({\color{gray}1.41 \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 $$8.08 \mathrm{ms} \pm 53.5 \mathrm{μs}\left({\color{gray}1.95 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/book/v/1 $$7.87 \mathrm{ms} \pm 38.1 \mathrm{μs}\left({\color{gray}-1.662 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/building/v/1 $$7.88 \mathrm{ms} \pm 39.6 \mathrm{μs}\left({\color{gray}-0.452 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/organization/v/1 $$7.89 \mathrm{ms} \pm 41.3 \mathrm{μs}\left({\color{gray}-2.219 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/page/v/2 $$7.81 \mathrm{ms} \pm 39.5 \mathrm{μs}\left({\color{gray}-1.368 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/person/v/1 $$7.88 \mathrm{ms} \pm 62.7 \mathrm{μs}\left({\color{gray}-3.071 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/playlist/v/1 $$7.77 \mathrm{ms} \pm 40.5 \mathrm{μs}\left({\color{gray}-1.942 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/song/v/1 $$7.93 \mathrm{ms} \pm 43.0 \mathrm{μs}\left({\color{gray}0.604 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/uk-address/v/1 $$7.74 \mathrm{ms} \pm 63.3 \mathrm{μs}\left({\color{gray}0.930 \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 $$5.84 \mathrm{ms} \pm 31.3 \mathrm{μs}\left({\color{gray}-2.319 \mathrm{\%}}\right) $$ Flame Graph

representative_read_multiple_entities

Function Value Mean Flame graphs
entity_by_property traversal_paths=0 0 $$45.6 \mathrm{ms} \pm 255 \mathrm{μs}\left({\color{gray}-2.792 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=255 1,resolve_depths=inherit:1;values:255;properties:255;links:127;link_dests:126;type:true $$87.8 \mathrm{ms} \pm 541 \mathrm{μs}\left({\color{red}7.74 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:0;properties:0;links:0;link_dests:0;type:false $$49.8 \mathrm{ms} \pm 333 \mathrm{μs}\left({\color{gray}-4.075 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:0;properties:0;links:1;link_dests:0;type:true $$56.0 \mathrm{ms} \pm 273 \mathrm{μs}\left({\color{gray}-1.783 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:0;properties:2;links:1;link_dests:0;type:true $$62.9 \mathrm{ms} \pm 381 \mathrm{μs}\left({\color{gray}0.387 \mathrm{\%}}\right) $$
entity_by_property traversal_paths=2 1,resolve_depths=inherit:0;values:2;properties:2;links:1;link_dests:0;type:true $$69.3 \mathrm{ms} \pm 504 \mathrm{μs}\left({\color{gray}-0.692 \mathrm{\%}}\right) $$
link_by_source_by_property traversal_paths=0 0 $$34.0 \mathrm{ms} \pm 239 \mathrm{μs}\left({\color{gray}2.99 \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 $$52.5 \mathrm{ms} \pm 353 \mathrm{μs}\left({\color{lightgreen}-6.903 \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 $$38.9 \mathrm{ms} \pm 265 \mathrm{μs}\left({\color{gray}2.78 \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 $$46.1 \mathrm{ms} \pm 582 \mathrm{μs}\left({\color{gray}4.22 \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 $$46.7 \mathrm{ms} \pm 313 \mathrm{μs}\left({\color{gray}4.81 \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 $$45.2 \mathrm{ms} \pm 239 \mathrm{μs}\left({\color{gray}-3.656 \mathrm{\%}}\right) $$

scenarios

Function Value Mean Flame graphs
full_test query-limited $$83.7 \mathrm{ms} \pm 399 \mathrm{μs}\left({\color{gray}4.85 \mathrm{\%}}\right) $$ Flame Graph
full_test query-unlimited $$95.3 \mathrm{ms} \pm 588 \mathrm{μs}\left({\color{red}11.8 \mathrm{\%}}\right) $$ Flame Graph
linked_queries query-limited $$16.2 \mathrm{ms} \pm 90.1 \mathrm{μs}\left({\color{red}7.59 \mathrm{\%}}\right) $$ Flame Graph
linked_queries query-unlimited $$353 \mathrm{ms} \pm 1.09 \mathrm{ms}\left({\color{gray}-0.361 \mathrm{\%}}\right) $$ Flame Graph

This branch was successfully deployed

5 active deployments
Preview – hash — 86a99fa7 Deployed Sep 26, 2026 by vercel[bot]
Preview – petrinaut-docs — 86a99fa7 Deployed Sep 26, 2026 by vercel[bot]
Preview – petrinaut — 86a99fa7 Deployed Sep 26, 2026 by vercel[bot]
Preview – hashdotdesign-tokens — 86a99fa7 Deployed Sep 26, 2026 by vercel[bot]
pull-request — 86a99fa7 Deployed Sep 26, 2026 by claude[bot] via Sourcemaps (@apps/hash-integration-worker) #37444
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/infra Relates to version control, CI, CD or IaC (area)

Development

Successfully merging this pull request may close these issues.

3 participants