-
Notifications
You must be signed in to change notification settings - Fork 6
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
Miscellaneous fixes for headless legacy #362
Conversation
For now I'm just handling the case where the dataType variable is not defined. But if we run headless legacy on Model 12.gaml from model library, we define the displays as 2d explicitly, so shouldn't dataType be 2d display ? And if so, what is the expected dataType in case of 3d display ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
✅ Code Health Quality Gates: OK
Change in average Code Health of affected files: +0.00 (10.00 -> 10.00)
I have no idea. I have never really looked into this part of the code ... |
…output directories cannot be created
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❌ Code Health Quality Gates: FAILED
Change in average Code Health of affected files: -0.01 (7.70 -> 7.69)
- Declining Code Health: 1 findings(s) 🚩
I dug a bit and this part of the code is basically only called in legacy mode (and maybe some check mode) so as long as the initial bug is fixed and there's no new weird behaviour in legacy I think it's safe to merge. While digging I found a few other issues that I patched in the following commits, the most important was restoring the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
❌ Code Health Quality Gates: FAILED
Change in average Code Health of affected files: -0.02 (8.06 -> 8.04)
- Declining Code Health: 1 findings(s) 🚩
@@ -121,6 +121,9 @@ private static Injector configureInjector() { | |||
/** The Constant THREAD_PARAMETER. */ | |||
final public static String THREAD_PARAMETER = "-hpc"; | |||
|
|||
/** The Constant THREAD_PARAMETER. */ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ℹ Getting worse: Overall Code Complexity
The mean cyclomatic complexity increases from 4.79 to 5.00, threshold = 4
Starting by fixing #352: the problem happened when reaching the exportVariable function and trying to serialize the displays.
For now I'm just handling the case where the dataType variable is not defined.
But the issue appeared on
Model 12.gaml
from the library of models, in which the displays are explicitly defined as 2d, so shouldn't dataType be DataType.DISPLAY2D when entering this function? And if so, what is the expected dataType in case of 3d display ?@AlexisDrogoul any pointer ?