Tweak score function - #186
Conversation
b5a4633 to
6da43a4
Compare
Pull Request Test Coverage Report for Build 22258746196Details
💛 - Coveralls |
|
Hi Nuwan, does this mean that score is still additive with accept and require affecting the outcome? If that is so, then my example from #134 still holds. Could the numbers instead require: 0, prefer: 1, accept: 0? Require and accept should be neutral. |
|
Yes and no. The require counts the same as accept, and therefore, both destinations will score equally, as it should? |
|
I disagree. There is no reason for accept and require to add to score. |
|
Take a look at the limbo tool in test_job_args_match_helper. I think that's a good example for why simply ignoring require tags won't work. |
|
I can see that prefer needs to be multiplied by a non-zero to add to the score, however accept x require will add, and all absent tags subtract. I’m not convinced that this is going to lead to fair scores when only prefer should matter. If you look at AU’s destinations, each one has 4-10 accept tags that will have nothing to do with most of the tools, and with ‘accept’ now having weight 1, does this now come into play in the subtraction? I’d argue that the implementation of this function has always been a bit strange, even if it works for our less detailed examples in the test cases. I’ll try to make a test case next week to demonstrate this. |
|
Sure. Sounds good. Just to be clear - I'd be much happier with a simpler approach - however, it needs to be something that deals with a variety of conditions, including:
I think our test cases contain most of these scenarios, so if we can get the tests to pass, chances are it should be a good replacement. |
|
(3) makes sense if only ‘prefer’ combined with another positive tag (it doesn’t matter which one) adds to the score, and a number of prefer/positive-tag combos adding up does make sense. (1), (2) and (4) are what I am trying to avoid. The bias that they introduce seems unhelpful, and has been unhelpful for real-world scheduling on AU. I’ll have to tap out of this debate until Monday :) |
supercedes: #134