Skip to content

refactor(pmsg): consolidate CompleteMessage short-circuit predicate#1076

Merged
Kubuxu merged 1 commit into
mainfrom
refactor/pmsg-complete-contract
Apr 29, 2026
Merged

refactor(pmsg): consolidate CompleteMessage short-circuit predicate#1076
Kubuxu merged 1 commit into
mainfrom
refactor/pmsg-complete-contract

Conversation

@Kubuxu

@Kubuxu Kubuxu commented Apr 29, 2026

Copy link
Copy Markdown
Contributor

Introduce a PartialGMessage.HasChainValue helper that reports whether a
partial message carries a chain value to resolve via chainexchange, and
use it in CompleteMessage in place of the inline VoteValueKey.IsZero
check.

Introduce a PartialGMessage.HasChainValue helper that reports whether a
partial message carries a chain value to resolve via chainexchange, and
use it in CompleteMessage in place of the inline VoteValueKey.IsZero
check. Add basic table-driven coverage for the short-circuit paths.

Signed-off-by: Jakub Sztandera <oss@kubuxu.com>
Copilot AI review requested due to automatic review settings April 29, 2026 11:58
@github-project-automation github-project-automation Bot moved this to Todo in F3 Apr 29, 2026
@github-project-automation github-project-automation Bot moved this from Todo to In review in F3 Apr 29, 2026

This comment was marked as outdated.

@github-actions

Copy link
Copy Markdown

Fuzz test failed on commit 2a2d0f5. To troubleshoot locally, download the seed corpus using GitHub CLI by running:

gh run download 25107489172 -n testdata

Alternatively, download directly from here.

@codecov

codecov Bot commented Apr 29, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 65.76%. Comparing base (df2fa4c) to head (2a2d0f5).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1076      +/-   ##
==========================================
+ Coverage   65.66%   65.76%   +0.09%     
==========================================
  Files          81       81              
  Lines        8001     8003       +2     
==========================================
+ Hits         5254     5263       +9     
+ Misses       2217     2213       -4     
+ Partials      530      527       -3     
Files with missing lines Coverage Δ
gpbft/types.go 91.48% <100.00%> (+0.18%) ⬆️
pmsg/partial_msg.go 72.13% <100.00%> (ø)

... and 2 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Kubuxu Kubuxu merged commit 486ffa3 into main Apr 29, 2026
19 of 20 checks passed
@Kubuxu Kubuxu deleted the refactor/pmsg-complete-contract branch April 29, 2026 12:40
@github-project-automation github-project-automation Bot moved this from In review to Done in F3 Apr 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants