Skip to content

fix main test: hmm provenance test no longer pins hash/version, open-session test quiesces - #903

Merged
abdulsaheel merged 1 commit into
mainfrom
fix/hmm-provenance-test
Nov 22, 2026
Merged

abdulsaheel merged 1 commit into
mainfrom
fix/hmm-provenance-test

Conversation

@abdulsaheel

@abdulsaheel abdulsaheel commented Nov 22, 2026 •

Copy link
Copy Markdown
Collaborator

provenance test pinned a payload hash and kAlgoVersion 125; both broke on #899. now checks flag-off equals implicit default and carries no hmm keys, version is >= 125. also adds quiesce to the open-session test that raced the db close on ci.

Summary by Sourcery

Stabilize the affected tests by synchronizing database teardown and removing brittle provenance expectations.

Bug Fixes:

  • Make the open-session test wait for queued database work before teardown, preventing CI races.
  • Make HMM provenance assertions resilient to algorithm evolution while preserving validation of default behavior and fresh algorithm versions.

@sourcery-ai

sourcery-ai Bot commented Nov 22, 2026

Copy link
Copy Markdown

Sorry @abdulsaheel, you've used your own review budget of 250,000 diff characters for the last 7 days.

You can request another review in 3 days by commenting @sourcery-ai review. Upgrade to get a review now.

@coderabbitai

coderabbitai Bot commented Nov 22, 2026

Copy link
Copy Markdown
Contributor

Important

Review skipped

Review was skipped due to path filters

⛔ Files ignored due to path filters: 2

  • test/app_state_sync_open_session_test.dart is excluded by !test/**
  • test/hmm_staging_provenance_test.dart is excluded by !test/**

CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including **/dist/** will override the default block on the dist directory, by removing the pattern from both the lists.

Run configuration

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • Trigger review
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

@sourcery-ai

sourcery-ai Bot commented Nov 22, 2026

Copy link
Copy Markdown

Reviewer's Guide

Tests

Update the provenance test to check flag-off behavior without pinning a payload hash or exact algorithm version.

  • test/hmm_staging_provenance_test.dart L4 (removed lines), L23-26, L35

Quiesce queued database work before the open-session test closes its rig.

  • test/app_state_sync_open_session_test.dart L239-240

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it. You can also reply to a
    review comment with @sourcery-ai issue to create an issue from it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time. You can also comment
    @sourcery-ai title on the pull request to (re-)generate the title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time exactly where you
    want it. You can also comment @sourcery-ai summary on the pull request to
    (re-)generate the summary at any time.
  • Generate reviewer's guide: Comment @sourcery-ai guide on the pull
    request to (re-)generate the reviewer's guide at any time.
  • Resolve all Sourcery comments: Comment @sourcery-ai resolve on the
    pull request to resolve all Sourcery comments. Useful if you've already
    addressed all the comments and don't want to see them anymore.
  • Dismiss all Sourcery reviews: Comment @sourcery-ai dismiss on the pull
    request to dismiss all existing Sourcery reviews. Especially useful if you
    want to start fresh with a new review - don't forget to comment
    @sourcery-ai review to trigger a new review!

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@github-actions

Copy link
Copy Markdown
Contributor

Failed to generate code suggestions for PR

@abdulsaheel
abdulsaheel merged commit 37c69f3 into main Nov 22, 2026
10 of 11 checks passed
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.

1 participant