Skip to content

Spectests: Use a flat structure for faster test ingestion #15313

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

Draft
wants to merge 15 commits into
base: develop
Choose a base branch
from

Conversation

prestonvanloon
Copy link
Member

@prestonvanloon prestonvanloon commented May 22, 2025

What type of PR is this?

Other

What does this PR do? Why is it needed?

This PR is based on #15312. Please review and merge #15312 before reviewing this PR.
This PR will remain a draft until #15312 merges.

Which issues(s) does this PR fix?

Each test target that ingests the spectest data corpus has to build a runfile tree. This is due to the use of glob with wildcards rather than hardcoding the files in BUILD. The runfile tree building operation is very expensive and continues to get more expensive as more directories and files are added.

Other notes for review

WIP -- I want to test some shard_count configurations and add documentation explaining the filename conventions.

Here are the test results...

Before=46 minutes to run spectests from a new machine.
After=9 minutes to run spectests from a new machine.

Acknowledgements

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