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

PLANNER-2932 fix impact assertion in constraint verifier #2947

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

RobJohansen
Copy link
Contributor

JIRA

https://issues.redhat.com/browse/PLANNER-2932

Issue

Constraint Verifier gives unexpected result when verifying a constraint terminating with impact() (i.e. MIXED score type).

Resolution

Invert PENALTY and REWARD branches of switch.

@lucamolteni lucamolteni force-pushed the fix/PLANNER-2932-impact-score-verification branch from 2869946 to ae4506e Compare September 7, 2023 15:03
@lucamolteni
Copy link
Contributor

@RobJohansen there are a few failed test can you double check?

@RobJohansen RobJohansen force-pushed the fix/PLANNER-2932-impact-score-verification branch from ae4506e to 623d913 Compare September 8, 2023 10:22
@RobJohansen
Copy link
Contributor Author

@RobJohansen there are a few failed test can you double check?

Apologies, I've now seen the failing test and I'm re-assessing what the intention of the implementation is and whether this is a correct fix. I will update once I have done so, thanks.

@RobJohansen RobJohansen force-pushed the fix/PLANNER-2932-impact-score-verification branch from d9a6cf3 to aa257cd Compare September 8, 2023 17:06
@RobJohansen
Copy link
Contributor Author

@lucamolteni It took a while to understand the intention of the tests in SingleConstraintAssertionTest but found the issue and rectified. Renamed "A" and "B" to "REWARD" and "PENALIZE" respectively, so that its a little clearer.

@lucamolteni
Copy link
Contributor

@lucamolteni It took a while to understand the intention of the tests in SingleConstraintAssertionTest but found the issue and rectified. Renamed "A" and "B" to "REWARD" and "PENALIZE" respectively, so that its a little clearer.

Thanks, once we finalize this apache migration I'll merge it

@RobJohansen RobJohansen force-pushed the fix/PLANNER-2932-impact-score-verification branch from aa257cd to 00186dd Compare October 24, 2023 09:08
@jstastny-cz
Copy link
Contributor

The PR check has been mistakenly triggered for this PR again from testing location, you can disregard the failure, it was green earlier. @lucamolteni Sorry for the mess.

@lucamolteni lucamolteni force-pushed the fix/PLANNER-2932-impact-score-verification branch from 00186dd to 0139139 Compare January 30, 2024 09:09
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.

3 participants