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

Added limits useful for testing #199

Merged
merged 2 commits into from
Oct 18, 2023
Merged

Added limits useful for testing #199

merged 2 commits into from
Oct 18, 2023

Conversation

nahsra
Copy link
Contributor

@nahsra nahsra commented Oct 18, 2023

This PR adds the ability to restrict the amount of work done in a codemodder scan. I wish I had these flags useful for testing several times before now, and I think eventually they may be useful for downstream consumers to "limit the work" that a codemodder run can do.

Hopefully, we'll be following this PR quickly with work to make these parameters obsolete (because removing CompilationUnit caching and I/O parallelization will fix everything), but I like having them around in case we ever run into situations where we'd like to performance test locally.

import org.junit.jupiter.api.BeforeEach;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.io.TempDir;

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We were missing good coverage of the caching JavaParser test. I know this is getting removed soon, but I created this test as part of debugging, so why not keep it in.

@nahsra nahsra requested a review from dhafley October 18, 2023 21:14
@pixeebot
Copy link
Contributor

pixeebot bot commented Oct 18, 2023

Nice work! ✅ I analyzed your pull request and don't see any hardening opportunities.

@nahsra nahsra merged commit f745da2 into main Oct 18, 2023
5 checks passed
@nahsra nahsra deleted the giant_project_research branch October 18, 2023 21:44
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