Skip to content

DOC-450: patches support in mutations#425

Merged
rahav-priv merged 4 commits intomasterfrom
rahav/doc-450_patches
Aug 10, 2025
Merged

DOC-450: patches support in mutations#425
rahav-priv merged 4 commits intomasterfrom
rahav/doc-450_patches

Conversation

@rahav-priv
Copy link
Copy Markdown
Contributor

Naming convention:

  • PRs for features that are in design should have the "proposal" label
  • PRs for features that haven't landed yet should have the "future" label
  • PRs for upcoming releases should have the "release" label
  • PRs with new documentation for existing features should have the "existing feature" label

Before requesting review:

  • Make sure there is a ticket in the DOC board in Jira
  • Make sure CI is passing
    • Spell check failure may require adding backticks around code or updating spelling_wordlist.txt
    • See README.md for information about style and markdown syntax
    • If the CI Details link gives a 404, you need to log in to readthedocs.com
  • Add link to generated documentation here
    • you can find this by following the read the docs link from the CI check
  • Ask for help in #documentation

Jira ticket: TODO
Link to generated documentation: TODO

@rahav-priv rahav-priv requested a review from Copilot August 1, 2025 14:06
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds documentation for patch file support in manual mutations, expanding the existing functionality to support diff patches in addition to complete file replacements.

  • Updated the mutants_location description to clarify that patches are now supported alongside complete files
  • Added detailed explanation of patch file requirements and creation process
  • Included example command for creating patches using the diff command

- `mutants_location`: A relative path to a directory from the current working directory. This directory contains files and patches that will be tested in place of the mutated file. All files in the directory will undergo testing. Patches must end with `.patch` and must comply with the `diff` shell command. Patches can be created by calling `diff -u original_file mutated_file > matuant1.patch`, where `original_file` is the file to mutate and `mutated_file` is the file with the mutation.
The patch will be applied to the original file before running the prover on the mutant .

Patches
Copy link

Copilot AI Aug 1, 2025

Choose a reason for hiding this comment

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

This line appears to be incomplete or orphaned. It contains only the word 'Patches' followed by a space, which seems like an unfinished thought or accidental text that should be removed.

Copilot uses AI. Check for mistakes.
@urikirsh urikirsh added the existing feature new documentation for an existing feature label Aug 3, 2025
Each manual mutation object must contain two keys:
- `file_to_mutate`: A file path relative to the current working directory of the file we wish to replace with the mutations
- `mutants_location`: A relative path to a directory from the current working directory. This directory contains files that will be tested in place of the mutated file. All .sol files in the directory will undergo testing.
- `mutants_location`: A relative path to a directory from the current working directory. This directory contains files and patches that will be tested in place of the mutated file. All files in the directory will undergo testing. Patches must end with `.patch` and must comply with the `diff` shell command. Patches can be created by calling `diff -u original_file mutated_file > matuant1.patch`, where `original_file` is the file to mutate and `mutated_file` is the file with the mutation.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

It's better to use code tags, since they look nicer and have a copy button (triple quotes):
`sh

diff -u original_file mutated_file > matuant1.patch
`

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Also copilot is right here

@rahav-priv rahav-priv merged commit 53480cd into master Aug 10, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

existing feature new documentation for an existing feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants