-
Notifications
You must be signed in to change notification settings - Fork 5
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
Fix config auto-generation #131
Conversation
|
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.
I just have some tscfg-related comments. The long comment could also be addressed in a separate PR.
Furthermore, genConfigSample
currently does not work without specifying a destination directory for config classes (--dd
). Looks like a bug in tscfg, I will investigate further. Edit: We might also think about simplifying the workflow and generating a config template each time a config class is generated.
This comment has been minimized.
This comment has been minimized.
Codecov Report
@@ Coverage Diff @@
## dev #131 +/- ##
==========================================
+ Coverage 79.55% 79.62% +0.06%
==========================================
Files 156 156
Lines 5757 5757
Branches 79 79
==========================================
+ Hits 4580 4584 +4
+ Misses 1177 1173 -4
Continue to review full report at Codecov.
|
This comment has been minimized.
This comment has been minimized.
I still get a If not, #148 should probably be fixed in a different PR. |
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.
Thanks for your work. Looks 90% good to me. You may consider my suggestions with a slightly increased verbosity (verbosity has been high already, but I thought an additional hint might be helpful). Additionally, I have one questions regarding the deleted part of the experiments config as I couldn't find anything about it in the linked issues. You might explain the removal.
Thanks again :)
task genExperimentsConfigClass { | ||
doLast { | ||
def tscfgJarFile = project.file('build/tscfg-' + tscfgVersion + '.jar') | ||
if (!tscfgJarFile.exists() || !tscfgJarFile.isFile()) { | ||
download { | ||
src 'https://github.com/carueda/tscfg/releases/download/v' + tscfgVersion + '/tscfg-' + tscfgVersion + '.jar' | ||
dest buildDir | ||
} | ||
} | ||
javaexec { | ||
main = "-jar" | ||
args = [ | ||
"build/tscfg-${tscfgVersion}.jar", | ||
"--spec", | ||
"src/main/resources/config/experiments-config-template.conf", | ||
"--scala", | ||
"--durations", | ||
"--pn", | ||
"edu.ie3.simona.config", | ||
"--cn", | ||
"ExperimentsConfig", | ||
"--dd", | ||
"src/main/scala/edu/ie3/simona/config/" | ||
] | ||
} | ||
} | ||
} | ||
|
||
|
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.
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.
I just recognized in the discussion with sebastian that this is code, that was meant to be introduced with #66, but due to some error already is in code base right now.
This comment has been minimized.
This comment has been minimized.
Co-authored-by: Johannes Hiry <johannes.hiry@tu-dortmund.de>
Co-authored-by: Johannes Hiry <johannes.hiry@tu-dortmund.de>
According to the error message, you quoted, I assume you are running the command in windows os? |
by choosing the OS dependent temporary file path
This comment has been minimized.
This comment has been minimized.
Okay... It was an issue with the default destination directory in tscfg. I handed in a PR at carueda/tscfg#151, that might make this workaround obsolete. |
Merged, but not yet released. |
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.
With this workaround, genConfigSample
works again, thank you. I created #178 to remove the workaround once it's not necessary anymore. So from my side, this is good to go.
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.
Looks good - thanks!
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.
Looks good codewise. But the Branch can't be built because of some issues in the PrimaryServiceProxy
e.g. PrimaryServiceProxy.scala:151:16: value timeSeriesMetaInformation is not a member of edu.ie3.datamodel.io.source.csv.CsvTimeSeriesMappingSource
Please check that before merging. Although I'm not quite sure why this issue occurs since the class was not touched. I think some changes in main might not have been merged into this branch correctly
Analysis Details0 IssuesCoverage and DuplicationsProject ID: edu.ie3:simona |
This branch was just way out of sync with dev. A merge fixed everything. |
Fixes #130
Fixes #148