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

How to add custom metadata for solution? #2556

Closed
Slava0135 opened this issue Sep 25, 2024 · 3 comments
Closed

How to add custom metadata for solution? #2556

Slava0135 opened this issue Sep 25, 2024 · 3 comments

Comments

@Slava0135
Copy link

I have a differential fuzzer that reads output from stdout and compares it.
I want to save the stdout in metadata so I can check the output of programs without rerunning them, but unable to figure out how to do so.

@domenukk
Copy link
Member

domenukk commented Sep 25, 2024

You can eager_or an extra ToMetadata feedback that will do nothing but append metadata. Specifically, this one: StdOutToMetadataFeedback

impl StdOutToMetadataFeedback {

(Using feedback_or!)

@Slava0135
Copy link
Author

Slava0135 commented Sep 26, 2024

I decided save data to Feedback struct and then use it in append_metadata, maybe this should be put in function description (unless this is not intentional way of doing things). I first thought it wouldn't be called for solution (only for corpus).

@domenukk
Copy link
Member

domenukk commented Oct 7, 2024

It's not perfect but it's the way we do it right now.
Feel free to open a PR to add documentation for clarification :)

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

No branches or pull requests

2 participants