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

Test/data availability and integrity #2

Merged
merged 30 commits into from
Jan 27, 2025

Conversation

romanzac
Copy link
Collaborator

@romanzac romanzac commented Jan 16, 2025

PR Details

Set of tests to cover data availability and integrity.

Issues reported:

@romanzac romanzac marked this pull request as ready for review January 22, 2025 07:52
@romanzac romanzac requested a review from fbarbu15 January 22, 2025 07:52
Copy link
Collaborator

@fbarbu15 fbarbu15 left a comment

Choose a reason for hiding this comment

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

left 2 comments
besides that, LGTM

from src.steps.da import StepsDataAvailability
from src.test_data import DATA_TO_DISPERSE

logger = get_custom_logger(__name__)
Copy link
Collaborator

Choose a reason for hiding this comment

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

doesn't seem to be used

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Fixed at 2738c9e

# Use received blob data to reconstruct the original data
# nomos-cli reconstruct command required
reconstructed_data = []
assert DATA_TO_DISPERSE[0] == bytes(reconstructed_data).decode("utf-8")
Copy link
Collaborator

Choose a reason for hiding this comment

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

but bytes(reconstructed_data).decode("utf-8") is empty string and DATA_TO_DISPERSE[0] should be "Hello World!"
what are we asserting here?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yes, the nomos-cli should be called to reconstruct the data from received blobs. PR in nomos-node repo logos-co/nomos-node#994. I would assume nomos-cli as our "first to go" verification tool. We might think about being independent, with our own tooling, however this would come at certain cost. We can discuss more during meeting.

Copy link
Collaborator

Choose a reason for hiding this comment

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

ok, but now the assert will not pass, right?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Tests skipped at b4d32df

@romanzac romanzac merged commit 1ec1fa4 into master Jan 27, 2025
1 check 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.

2 participants