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

Add initial helper scripts #22

Merged
merged 1 commit into from
Jul 11, 2024
Merged

Conversation

JacobCallahan
Copy link
Member

This adds two new helper scripts that are useful when working with large comparisons.
scripts/gen_constants.py creates a constants file that can help reduce the number of constants generated in a comparison. scripts/clean_csv.py performs a number of simplifications of a csv file and creates a new output that is much easier for a human to review. One important note here is that the resulting report is not a valid csv file.

@JacobCallahan JacobCallahan added the enhancement New feature or request label Jun 26, 2024
@JacobCallahan JacobCallahan requested a review from jyejare June 26, 2024 20:02
This adds two new helper scripts that are useful when working with large
comparisons.
scripts/gen_constants.py creates a constants file that can help reduce
the number of constants generated in a comparison.
scripts/clean_csv.py performs a number of simplifications of a csv file
and creates a new output that is much easier for a human to review. One
important note here is that the resulting report is not a valid csv
file.
Copy link
Member

@jyejare jyejare left a comment

Choose a reason for hiding this comment

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

@JacobCallahan I think both these scripts are eligible for new reporting subcommand in candore that helps to play with reports.

I can do that later though and we review/merge it as is if the time does not permits you.

@JacobCallahan
Copy link
Member Author

@jyejare interesting thought. I'm not sure how that command would be structured right now, so we can implement that later.

@jyejare jyejare merged commit 2633855 into SatelliteQE:master Jul 11, 2024
csv.field_size_limit(sys.maxsize)


def filter_parts(parts):
Copy link
Member

Choose a reason for hiding this comment

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

What does a CSV should have that mark it as an expected constant ?

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

Successfully merging this pull request may close these issues.

2 participants