Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update Rust crate insta to v1.40.0 #5075

Merged
merged 1 commit into from
Sep 11, 2024
Merged

Update Rust crate insta to v1.40.0 #5075

merged 1 commit into from
Sep 11, 2024

Conversation

hash-worker[bot]
Copy link
Contributor

@hash-worker hash-worker bot commented Sep 10, 2024

This PR contains the following updates:

Package Type Update Change
insta (source) workspace.dependencies minor =1.39.0 -> =1.40.0

Release Notes

mitsuhiko/insta (insta)

v1.40.0

Compare Source

  • cargo-insta no longer panics when running cargo insta test --accept --workspace
    on a workspace with a default crate. #​532

  • MSRV for insta has been raised to 1.60, and for cargo-insta to 1.64.

  • Added support for compact debug snapshots (assert_compact_debug_snapshot). #​514

  • Deprecate --no-force-pass in cargo-insta. The --check option covers the
    same functionality and has a clearer name. #​513

  • Inline snapshots now use the required number of #s to escape the snapshot
    value, rather than always using ###. This allows snapshotting values which
    themselves contain ###. If there are no existing # characters in the
    snapshot value, a single # will be used. #​540

  • Inline snapshots can now be updated with --force-update-snapshots. #​569

  • cargo insta test accepts multiple --exclude flags. #​520

  • test runner in insta's yaml config works. #​544

  • Print a warning when encountering old snapshot formats. #​503

  • Group the options in cargo insta --help, upgrade to clap from structopt. #​518

  • No longer suggest running cargo insta message when running cargo insta test --check. #​515

  • Print a clearer error message when accepting a snapshot that was removed. #​516

  • Mark require-full-match as experimental, given some corner-cases are currently difficult to manage. #​497

  • Add a new integration test approach for cargo-insta and a set of integration tests. #​537

  • Enable Filters to be created from IntoIterator types, rather than just Vecs. #​570

  • Implemented total sort order for an internal Key type correctly. This prevents potential
    crashes introduced by the new sort algorithm in Rust 1.81. #​586


Configuration

📅 Schedule: Branch creation - "before 4am every weekday,every weekend" (UTC), Automerge - At any time (no schedule defined).

🚦 Automerge: Enabled.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

@github-actions github-actions bot added the area/deps Relates to third-party dependencies (area) label Sep 10, 2024
Copy link
Contributor

Benchmark results

@rust/graph-benches – Integrations

scaling_read_entity_complete_one_depth

Function Value Mean Flame graphs
entity_by_id 10 entities $$51.1 \mathrm{ms} \pm 221 \mathrm{μs}\left({\color{gray}3.55 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 50 entities $$270 \mathrm{ms} \pm 1.63 \mathrm{ms}\left({\color{gray}-0.250 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 1 entities $$19.7 \mathrm{ms} \pm 123 \mathrm{μs}\left({\color{gray}-0.157 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 25 entities $$73.0 \mathrm{ms} \pm 482 \mathrm{μs}\left({\color{gray}1.33 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 5 entities $$25.0 \mathrm{ms} \pm 179 \mathrm{μs}\left({\color{gray}2.20 \mathrm{\%}}\right) $$ Flame Graph

scaling_read_entity_complete_zero_depth

Function Value Mean Flame graphs
entity_by_id 10 entities $$2.06 \mathrm{ms} \pm 20.2 \mathrm{μs}\left({\color{gray}0.333 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 50 entities $$4.00 \mathrm{ms} \pm 20.6 \mathrm{μs}\left({\color{gray}0.777 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 1 entities $$1.91 \mathrm{ms} \pm 10.7 \mathrm{μs}\left({\color{gray}2.26 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 25 entities $$2.57 \mathrm{ms} \pm 17.8 \mathrm{μs}\left({\color{gray}1.73 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 5 entities $$1.94 \mathrm{ms} \pm 14.2 \mathrm{μs}\left({\color{gray}2.17 \mathrm{\%}}\right) $$ Flame Graph

scaling_read_entity_linkless

Function Value Mean Flame graphs
entity_by_id 10 entities $$1.82 \mathrm{ms} \pm 6.31 \mathrm{μs}\left({\color{gray}0.305 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 100 entities $$1.98 \mathrm{ms} \pm 6.10 \mathrm{μs}\left({\color{gray}0.588 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 1000 entities $$2.91 \mathrm{ms} \pm 37.6 \mathrm{μs}\left({\color{gray}4.20 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 1 entities $$1.83 \mathrm{ms} \pm 7.89 \mathrm{μs}\left({\color{gray}-0.196 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id 10000 entities $$12.8 \mathrm{ms} \pm 125 \mathrm{μs}\left({\color{gray}-0.931 \mathrm{\%}}\right) $$ Flame Graph

representative_read_entity_type

Function Value Mean Flame graphs
get_entity_type_by_id Account ID: d4e16033-c281-4cde-aa35-9085bf2e7579 $$1.39 \mathrm{ms} \pm 7.38 \mathrm{μs}\left({\color{gray}-0.532 \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/uk-address/v/1 $$15.5 \mathrm{ms} \pm 157 \mathrm{μs}\left({\color{gray}0.594 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/song/v/1 $$15.1 \mathrm{ms} \pm 167 \mathrm{μs}\left({\color{gray}0.205 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/playlist/v/1 $$16.0 \mathrm{ms} \pm 155 \mathrm{μs}\left({\color{gray}-1.240 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/page/v/2 $$15.6 \mathrm{ms} \pm 166 \mathrm{μs}\left({\color{gray}-0.037 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/building/v/1 $$16.3 \mathrm{ms} \pm 180 \mathrm{μs}\left({\color{gray}-0.705 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/block/v/1 $$15.3 \mathrm{ms} \pm 202 \mathrm{μs}\left({\color{gray}0.435 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/person/v/1 $$15.6 \mathrm{ms} \pm 168 \mathrm{μs}\left({\color{lightgreen}-22.554 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/book/v/1 $$15.8 \mathrm{ms} \pm 188 \mathrm{μs}\left({\color{red}10.8 \mathrm{\%}}\right) $$ Flame Graph
entity_by_id entity type ID: https://blockprotocol.org/@alice/types/entity-type/organization/v/1 $$15.2 \mathrm{ms} \pm 188 \mathrm{μs}\left({\color{gray}-3.211 \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 $$94.1 \mathrm{ms} \pm 409 \mathrm{μs}\left({\color{gray}-4.155 \mathrm{\%}}\right) $$ Flame Graph
link_by_source_by_property depths: DT=0, PT=0, ET=0, E=2 $$76.1 \mathrm{ms} \pm 424 \mathrm{μs}\left({\color{gray}-2.558 \mathrm{\%}}\right) $$ Flame Graph
link_by_source_by_property depths: DT=0, PT=0, ET=0, E=0 $$40.5 \mathrm{ms} \pm 190 \mathrm{μs}\left({\color{gray}-1.294 \mathrm{\%}}\right) $$ Flame Graph
link_by_source_by_property depths: DT=0, PT=0, ET=2, E=2 $$86.1 \mathrm{ms} \pm 643 \mathrm{μs}\left({\color{gray}-1.531 \mathrm{\%}}\right) $$ Flame Graph
link_by_source_by_property depths: DT=0, PT=2, ET=2, E=2 $$90.1 \mathrm{ms} \pm 533 \mathrm{μs}\left({\color{gray}-2.742 \mathrm{\%}}\right) $$ Flame Graph
link_by_source_by_property depths: DT=255, PT=255, ET=255, E=255 $$105 \mathrm{ms} \pm 682 \mathrm{μs}\left({\color{gray}-1.449 \mathrm{\%}}\right) $$ Flame Graph
entity_by_property depths: DT=2, PT=2, ET=2, E=2 $$55.2 \mathrm{ms} \pm 271 \mathrm{μs}\left({\color{gray}-1.248 \mathrm{\%}}\right) $$ Flame Graph
entity_by_property depths: DT=0, PT=0, ET=0, E=2 $$41.3 \mathrm{ms} \pm 287 \mathrm{μs}\left({\color{gray}3.25 \mathrm{\%}}\right) $$ Flame Graph
entity_by_property depths: DT=0, PT=0, ET=0, E=0 $$36.2 \mathrm{ms} \pm 259 \mathrm{μs}\left({\color{gray}-1.736 \mathrm{\%}}\right) $$ Flame Graph
entity_by_property depths: DT=0, PT=0, ET=2, E=2 $$47.3 \mathrm{ms} \pm 279 \mathrm{μs}\left({\color{gray}1.51 \mathrm{\%}}\right) $$ Flame Graph
entity_by_property depths: DT=0, PT=2, ET=2, E=2 $$51.4 \mathrm{ms} \pm 251 \mathrm{μs}\left({\color{gray}0.663 \mathrm{\%}}\right) $$ Flame Graph
entity_by_property depths: DT=255, PT=255, ET=255, E=255 $$64.1 \mathrm{ms} \pm 455 \mathrm{μs}\left({\color{gray}-0.522 \mathrm{\%}}\right) $$ Flame Graph

@hash-worker hash-worker bot added this pull request to the merge queue Sep 10, 2024
@hash-worker hash-worker bot requested a review from a team September 10, 2024 21:14
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Sep 10, 2024
@hash-worker hash-worker bot added this pull request to the merge queue Sep 10, 2024
Merged via the queue into main with commit 11729b2 Sep 11, 2024
156 of 157 checks passed
@hash-worker hash-worker bot deleted the deps/rs/insta-1.x branch September 11, 2024 02:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/deps Relates to third-party dependencies (area)
Development

Successfully merging this pull request may close these issues.

2 participants