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

Updating the integration test harness to handle zipfile inputs as tests #395

Merged
merged 3 commits into from
Feb 10, 2025

Conversation

AsherGlick
Copy link
Owner

Also adds some indentation formatting, and diff coloring that I wanted to add to get better visuals when trying to test zip file support.

Base automatically changed from unify_out_path_format to xml_converter February 10, 2025 04:45

new_proto_input_paths = []
for proto_input_path in proto_input_paths:
zip_path = os.path.join(zipped_input_dir, os.path.basename(proto_input_path) + ".taco")
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we want to use ".guildpoint" for zipped proto files.

Copy link
Owner Author

Choose a reason for hiding this comment

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

Good catch, I keep forgetting. Were we going to use .guildpoint for the zipped files or something like .burrito. I feel like we keep having this conversation because I keep forgetting.

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh you are right it was guildpoint for the file and burrito for the "wrapper"

Copy link
Owner Author

Choose a reason for hiding this comment

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

done

zipped_input_dir = os.path.join(temp_directory_path, "zipped_inputs", testcase.name)
os.makedirs(zipped_input_dir, exist_ok=True)

new_xml_input_paths = []
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this should have a typing of List[str]

Copy link
Owner Author

Choose a reason for hiding this comment

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

done

find_and_replace_tokens[xml_input_path] = zip_path
xml_input_paths = new_xml_input_paths

new_proto_input_paths = []
Copy link
Contributor

Choose a reason for hiding this comment

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

I think this should have a typing of List[str]

Copy link
Owner Author

Choose a reason for hiding this comment

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

done

@AsherGlick AsherGlick merged commit fba8984 into xml_converter Feb 10, 2025
12 checks passed
@AsherGlick AsherGlick deleted the zip_tests branch February 10, 2025 05:42
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