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

[Merged by Bors] - chore: remove dependency on activation/wire from tests outside activation #6244

Closed
wants to merge 6 commits into from

Conversation

fasmat
Copy link
Member

@fasmat fasmat commented Aug 12, 2024

Motivation

Most packages should be unaware of wire types and not depend on packages implementing them (including tests).
This removes the dependency on activation/wire from most other packages.

Description

The actual bytes that are stored don't matter for most tests and even before the change didn't match the domain object thats persisted in some tests. This just removes the dependency and uses random bytes instead.

NOTE: The checkpoint package still uses wire types and in my opinion shouldn't. But to get rid of that dependency we would need to store prevATX and posATX in the DB so we don't have to decode them from the stored blob.

Test Plan

  • existing tests pass

TODO

  • Explain motivation or link existing issue(s)
  • Test changes and document test plan
  • Update documentation as needed
  • Update changelog as needed

@fasmat fasmat self-assigned this Aug 12, 2024
@fasmat fasmat force-pushed the no-wire-dependency-sql branch from 5f84369 to f0b477f Compare August 12, 2024 14:48
Copy link

codecov bot commented Aug 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.0%. Comparing base (d21910b) to head (a2eae03).

Additional details and impacted files
@@            Coverage Diff            @@
##           develop   #6244     +/-   ##
=========================================
- Coverage     82.0%   82.0%   -0.1%     
=========================================
  Files          308     308             
  Lines        34131   34117     -14     
=========================================
- Hits         28017   27996     -21     
- Misses        4339    4345      +6     
- Partials      1775    1776      +1     

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

@fasmat fasmat changed the title chore: remove dependency on wire from sql package chore: remove dependency on activation/wire from tests outside activation Aug 12, 2024
api/grpcserver/v2alpha1/activation_test.go Outdated Show resolved Hide resolved
fetch/handler_test.go Outdated Show resolved Hide resolved
@fasmat
Copy link
Member Author

fasmat commented Aug 13, 2024

bors merge

@spacemesh-bors
Copy link

Canceled.

@fasmat
Copy link
Member Author

fasmat commented Aug 13, 2024

bors merge

spacemesh-bors bot pushed a commit that referenced this pull request Aug 13, 2024
…ivation` (#6244)

## Motivation

Most packages should be unaware of wire types and not depend on packages implementing them (including tests).
This removes the dependency on `activation/wire` from most other packages.
@spacemesh-bors
Copy link

Build failed (retrying...):

spacemesh-bors bot pushed a commit that referenced this pull request Aug 13, 2024
…ivation` (#6244)

## Motivation

Most packages should be unaware of wire types and not depend on packages implementing them (including tests).
This removes the dependency on `activation/wire` from most other packages.
@spacemesh-bors
Copy link

Build failed:

@fasmat
Copy link
Member Author

fasmat commented Aug 13, 2024

bors merge

@spacemesh-bors
Copy link

Merge conflict.

@fasmat
Copy link
Member Author

fasmat commented Aug 13, 2024

bors merge

spacemesh-bors bot pushed a commit that referenced this pull request Aug 13, 2024
…ivation` (#6244)

## Motivation

Most packages should be unaware of wire types and not depend on packages implementing them (including tests).
This removes the dependency on `activation/wire` from most other packages.
@spacemesh-bors
Copy link

Pull request successfully merged into develop.

Build succeeded:

@spacemesh-bors spacemesh-bors bot changed the title chore: remove dependency on activation/wire from tests outside activation [Merged by Bors] - chore: remove dependency on activation/wire from tests outside activation Aug 13, 2024
@spacemesh-bors spacemesh-bors bot closed this Aug 13, 2024
@spacemesh-bors spacemesh-bors bot deleted the no-wire-dependency-sql branch August 13, 2024 13:33
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.

2 participants