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

Implement mutation observer #104

Closed
MattWindsor91 opened this issue Jan 21, 2021 · 3 comments
Closed

Implement mutation observer #104

MattWindsor91 opened this issue Jan 21, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@MattWindsor91
Copy link
Collaborator

As part of #102, we need an observer that hooks into analyses*, scours compiler logs, and does the following for each compilation:

  • If we detect the words MUTATION HIT: in a log line, parse an integer and increment a hit counter for that mutant;
  • If we do so and the compilation was deemed interesting, declare that mutant killed by that compilation and send a signal upstream (ie to whatever is controlling the mutant time-slicing).

In both situations, we would probably also have a log file open and dump information about the hit/kill.

I'm not yet sure whether this would happen synchronously as part of the call into the observer, or involve a channel of some sort.

  • It hasn't been decided yet whether it hooks into these at the machine level or global level, and so whether this would be an analysis or a cycle-analysis.
@MattWindsor91 MattWindsor91 added the enhancement New feature or request label Jan 21, 2021
@MattWindsor91
Copy link
Collaborator Author

MattWindsor91 commented Jan 21, 2021

  • Implement and test line parsing
  • Implement (and test?) per-compilation behaviour
  • Implement (and test?) observer boilerplate

@MattWindsor91
Copy link
Collaborator Author

This is probably, actually, best done as an analysis pass, followed by an observer that scrapes the analyser output. I might just do that.

@MattWindsor91
Copy link
Collaborator Author

Done (albeit somewhat hardcoded in for now).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant