Closed exalate-issue-sync[bot] closed 1 year ago
Andrey Spiridonov commented: [~accountid:5b153fb1b0d76456f36daced] you probably should know better what for we are using third parameter of job.start method ( see description above)
Sebastien Poirier commented: {{max_runtime_secs}} argument in {{job.start}} is only indicative: used for progress bar on clients.
Andrey Spiridonov commented: [~accountid:5b153fb1b0d76456f36daced] this was my understanding as well. Just worried about cases when we pass there zeroes
Andrey Spiridonov commented: [~accountid:5a32df017dcf343865c26fa5] could you please take a look at this one? see corresponding PR for the fix
Michal Kurka commented: [~accountid:557058:6e44bc1a-dd50-499b-a331-2e049f28773b] should probably skip the release notes since the affected feature was not yet released
Angela Bartz commented: Confirming that this will not be in the release notes.
JIRA Issue Migration Info
Jira Issue: PUBDEV-7121 Assignee: Andrey Spiridonov Reporter: Andrey Spiridonov State: Resolved Fix Version: 3.28.0.1 Attachments: N/A Development PRs: Available
Linked PRs from JIRA
Issue 1: Existing tests for GridSearch were only checking against CartesianHyperSpaceWalker and corresponding CartesianSearchCriteria. RandomDiscreteValueSearchCriteria sets
max_runtime_secs
to 0 by default which effectively means no time limit, but logic in ModelFeeder would behave unexpectedly here ( return false ):{code:java}final boolean enoughTime = hyperspaceIterator.max_runtime_secs() > 0 && hyperspaceIterator.time_remaining_secs() > 0{code}
The problem is probably coming from two different approaches two specify unlimited search: Cartesian search uses Double.MAX_VALUE, Random search uses 0 ( i think this is the most recent and right approach).
There is another concern: we put this value to the
job.start(... , ..., it.max_runtime_secs() )
in GridSearch(L156) and in case of unlimited search withmax_runtime_secs=0
I'm not sure it is what is expected in start() method. Unfortunately I could not find javadocs for explanations.Issue 2. By fixing Issue 1 one test in GridTest would start to fail. The original idea of the test is not clear to me but probably an assumption in the test should be corrected. Investigation led me to the existing inconsistency in GridSearch between javadoc and code. I have fixed the code to make it consistent with the comment. Let's discuss in PR.