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

use Bytes.EMPTY instead of null to indicate empty keys/values #9519

Merged
merged 2 commits into from Oct 26, 2023

Conversation

lukelee-sl
Copy link
Member

Description:
Fix broken HAPI tests by using Bytes.EMPTY instead of null

Related issue(s):

Fixes #9517

Notes for reviewer:

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

Signed-off-by: lukelee-sl <luke.lee@swirldslabs.com>
Copy link
Member

@david-bakin-sl david-bakin-sl left a comment

Choose a reason for hiding this comment

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

Initial look

Signed-off-by: lukelee-sl <luke.lee@swirldslabs.com>
@github-actions
Copy link

Node: E2E Test Results

    1 files      1 suites   20m 14s ⏱️
310 tests 310 ✔️ 0 💤 0
328 runs  328 ✔️ 0 💤 0

Results for commit e3156a0.

@github-actions
Copy link

Node: Unit Test Results

    2 259 files      2 259 suites   1h 31m 34s ⏱️
118 226 tests 118 192 ✔️ 34 💤 0
126 485 runs  126 451 ✔️ 34 💤 0

Results for commit e3156a0.

@codecov
Copy link

codecov bot commented Oct 26, 2023

Codecov Report

Attention: 2 lines in your changes are missing coverage. Please review.

Comparison is base (bb31850) 65.22% compared to head (e3156a0) 65.22%.

Additional details and impacted files
@@              Coverage Diff              @@
##             develop    #9519      +/-   ##
=============================================
- Coverage      65.22%   65.22%   -0.01%     
+ Complexity     29559    29557       -2     
=============================================
  Files           3257     3257              
  Lines         123991   123995       +4     
  Branches       12812    12812              
=============================================
- Hits           80877    80872       -5     
- Misses         40061    40074      +13     
+ Partials        3053     3049       -4     
Files Coverage Δ
...app/service/contract/impl/state/StorageAccess.java 80.00% <ø> (ø)
...pp/service/token/impl/api/TokenServiceApiImpl.java 92.03% <ø> (ø)
...ce/contract/impl/infra/IterableStorageManager.java 92.95% <77.77%> (-1.08%) ⬇️

... and 4 files with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@github-actions
Copy link

Node: Integration Test Results

280 tests   280 ✔️  32m 26s ⏱️
    5 suites      0 💤
    5 files        0

Results for commit e3156a0.

@github-actions
Copy link

Node: HAPI Test Results

1 227 tests   698 ✔️  1h 5m 20s ⏱️
   165 suites  529 💤
   165 files        0

Results for commit e3156a0.

Copy link
Collaborator

@tinker-michaelj tinker-michaelj left a comment

Choose a reason for hiding this comment

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

LGTM, ty @lukelee-sl !

Copy link
Member

@david-bakin-sl david-bakin-sl left a comment

Choose a reason for hiding this comment

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

Leaving comments to be addressed in (immediately) subsequent PR in order to unblock build

@lukelee-sl lukelee-sl merged commit 276a5e1 into develop Oct 26, 2023
12 of 13 checks passed
@lukelee-sl lukelee-sl deleted the 9517-do-not-use-null branch October 26, 2023 17:47
lukelee-sl added a commit that referenced this pull request Oct 26, 2023
Signed-off-by: lukelee-sl <luke.lee@swirldslabs.com>
lukelee-sl added a commit that referenced this pull request Nov 6, 2023
Signed-off-by: lukelee-sl <luke.lee@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.

Slot values should never be null
3 participants