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

Refactor policy creation in policy_utils_test #446

Conversation

boomanaiden154
Copy link
Collaborator

@boomanaiden154 boomanaiden154 commented Feb 20, 2025

This patch refactors out common policy creation functionality for three
tests into a helper function to get rid of some trivial code
duplication.

Seems like this is a bit of a short term fix for #280.

boomanaiden154 added a commit to boomanaiden154/ml-compiler-opt that referenced this pull request Feb 20, 2025
This patch refactors out common policy creation functionality for three
tests into a helper function to get rid of some trivial code
duplication.

Seems like this ia s bit of a short term fix for google#280.

Pull Request: google#446
Created using spr 1.3.4

[skip ci]
Created using spr 1.3.4
boomanaiden154 added a commit to boomanaiden154/ml-compiler-opt that referenced this pull request Feb 20, 2025
This patch refactors out common policy creation functionality for three
tests into a helper function to get rid of some trivial code
duplication.

Seems like this ia s bit of a short term fix for google#280.

Pull Request: google#446
boomanaiden154 added a commit to boomanaiden154/ml-compiler-opt that referenced this pull request Feb 20, 2025
This patch refactors out common policy creation functionality for three
tests into a helper function to get rid of some trivial code
duplication.

Seems like this ia s bit of a short term fix for google#280.

Pull Request: google#446
Created using spr 1.3.4

[skip ci]
Created using spr 1.3.4
Created using spr 1.3.4

[skip ci]
Created using spr 1.3.4
boomanaiden154 added a commit to boomanaiden154/ml-compiler-opt that referenced this pull request Feb 20, 2025
This patch refactors out common policy creation functionality for three
tests into a helper function to get rid of some trivial code
duplication.

Seems like this ia s bit of a short term fix for google#280.

Pull Request: google#446
boomanaiden154 added a commit to boomanaiden154/ml-compiler-opt that referenced this pull request Feb 20, 2025
This patch refactors out common policy creation functionality for three
tests into a helper function to get rid of some trivial code
duplication.

Seems like this ia s bit of a short term fix for google#280.

Pull Request: google#446
boomanaiden154 added a commit to boomanaiden154/ml-compiler-opt that referenced this pull request Feb 20, 2025
This patch refactors out common policy creation functionality for three
tests into a helper function to get rid of some trivial code
duplication.

Seems like this ia s bit of a short term fix for google#280.

Pull Request: google#446
Created using spr 1.3.4

[skip ci]
Created using spr 1.3.4
Created using spr 1.3.4

[skip ci]
Created using spr 1.3.4
Created using spr 1.3.4

[skip ci]
Created using spr 1.3.4
Created using spr 1.3.4

[skip ci]
Created using spr 1.3.4
Created using spr 1.3.4

[skip ci]
Created using spr 1.3.4
boomanaiden154 added a commit to boomanaiden154/ml-compiler-opt that referenced this pull request Feb 20, 2025
This patch refactors out common policy creation functionality for three
tests into a helper function to get rid of some trivial code
duplication.

Seems like this ia s bit of a short term fix for google#280.

Pull Request: google#446
Copy link
Collaborator

@mtrofin mtrofin left a comment

Choose a reason for hiding this comment

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

lgtm - indeed, can't see a difference between the removed blocks and _save_inlining_policy

boomanaiden154 added a commit to boomanaiden154/ml-compiler-opt that referenced this pull request Mar 1, 2025
This patch refactors out common policy creation functionality for three
tests into a helper function to get rid of some trivial code
duplication.

Seems like this ia s bit of a short term fix for google#280.

Pull Request: google#446
mtrofin and others added 2 commits March 1, 2025 04:34
Created using spr 1.3.4

[skip ci]
Created using spr 1.3.4
@boomanaiden154 boomanaiden154 changed the base branch from spr/boomanaiden154/main.refactor-policy-creation-in-policy_utils_test to main March 1, 2025 04:37
@boomanaiden154 boomanaiden154 merged commit 6354047 into main Mar 1, 2025
25 checks passed
@boomanaiden154 boomanaiden154 deleted the spr/boomanaiden154/refactor-policy-creation-in-policy_utils_test branch March 1, 2025 04:37
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