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

Auto-snapshot management #9739

Merged
merged 13 commits into from Nov 7, 2023
Merged

Conversation

tinker-michaelj
Copy link
Collaborator

@tinker-michaelj tinker-michaelj commented Nov 7, 2023

Description:

  • Closes Automate HapiSpec snapshot matching #9697
  • Consolidates per-HapiSpec JSON snapshots into a single per-HapiSuite snapshot.
  • Adds an AutoSnapshotModeOp that delegates to a SnapshotModeOp with a mode determined by:
    1. The presence of a JSON snapshot in record-snapshot/ (takes a snapshot if it is missing, and fuzzy-matches if it is present).
    2. The values of the properties here, which control which type of network's record streams we would use.
  • Updates HapiSpec to insert an AutoSnapshotModeOp at the start of the spec if recordStream.autoSnapshotManagement=true.
  • Validates behavior of taking and fuzzy-matching against mono-service streams for CryptoTransferSuite.
  • Makes HapiCryptoTransfer transfer list construction deterministic by sorting.

Signed-off-by: Michael Tinker <michael.tinker@swirldslabs.com>
Signed-off-by: Michael Tinker <michael.tinker@swirldslabs.com>
Signed-off-by: Michael Tinker <michael.tinker@swirldslabs.com>
Signed-off-by: Michael Tinker <michael.tinker@swirldslabs.com>
Signed-off-by: Michael Tinker <michael.tinker@swirldslabs.com>
Signed-off-by: Michael Tinker <michael.tinker@swirldslabs.com>
Signed-off-by: Michael Tinker <michael.tinker@swirldslabs.com>
Copy link

github-actions bot commented Nov 7, 2023

Node: Unit Test Results

    2 273 files  ±0      2 273 suites  ±0   1h 25m 25s ⏱️ - 4m 44s
118 354 tests ±0  118 320 ✔️ ±0  34 💤 ±0  0 ±0 
126 615 runs  ±0  126 581 ✔️ ±0  34 💤 ±0  0 ±0 

Results for commit 7b4d55e. ± Comparison against base commit 523f441.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Nov 7, 2023

Node: E2E Test Results

    1 files      1 suites   20m 36s ⏱️
310 tests 310 ✔️ 0 💤 0
332 runs  332 ✔️ 0 💤 0

Results for commit 7b4d55e.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Nov 7, 2023

Node: Integration Test Results

280 tests  ±0   280 ✔️ ±0   32m 47s ⏱️ -6s
    5 suites ±0       0 💤 ±0 
    5 files   ±0       0 ±0 

Results for commit 7b4d55e. ± Comparison against base commit 523f441.

♻️ This comment has been updated with latest results.

Copy link

github-actions bot commented Nov 7, 2023

Node: HAPI Test Results

1 242 tests   825 ✔️  1h 18m 38s ⏱️
   165 suites  417 💤
   165 files        0

Results for commit 7b4d55e.

♻️ This comment has been updated with latest results.

Signed-off-by: Michael Tinker <michael.tinker@swirldslabs.com>
Copy link
Member

@Neeharika-Sompalli Neeharika-Sompalli left a comment

Choose a reason for hiding this comment

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

LGTM ! Thanks @tinker-michaelj 🙌

iwsimon
iwsimon previously approved these changes Nov 7, 2023
Copy link
Contributor

@iwsimon iwsimon left a comment

Choose a reason for hiding this comment

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

LGTM

Signed-off-by: Michael Tinker <michael.tinker@swirldslabs.com>
Signed-off-by: Michael Tinker <michael.tinker@swirldslabs.com>
Signed-off-by: Michael Tinker <michael.tinker@swirldslabs.com>
Signed-off-by: Michael Tinker <michael.tinker@swirldslabs.com>
Copy link
Member

@Neeharika-Sompalli Neeharika-Sompalli left a comment

Choose a reason for hiding this comment

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

Looks Great 🎉 . Thanks @tinker-michaelj

@tinker-michaelj tinker-michaelj merged commit 036c5ae into develop Nov 7, 2023
14 of 15 checks passed
@tinker-michaelj tinker-michaelj deleted the 09697-auto-snapshot-matching branch November 7, 2023 22:50
Ivo-Yankov pushed a commit that referenced this pull request Nov 9, 2023
Signed-off-by: Michael Tinker <michael.tinker@swirldslabs.com>
Signed-off-by: Ivo Yankov <ivo@devlabs.bg>
nickpoorman pushed a commit that referenced this pull request Nov 22, 2023
Signed-off-by: Michael Tinker <michael.tinker@swirldslabs.com>
Signed-off-by: Nick Poorman <nick@swirldslabs.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Automate HapiSpec snapshot matching
3 participants