root
root copied to clipboard
[Cling] improve cmd history support
Changes or fixes:
- Environment variable
CLING_HISTFILEto specify history file path. - Environment variable
CLING_HISTSIZEto specify history size. The original behavior is to not set the history size explicitly. That is equivalent to unlimited history size according totextinput::History::AppendToFile()(history file will never be pruned so it grows indefinitely). This is probably not most users expect. @Axel-Naumann, @vgvassilev do you think it makes sense to set default cling history size to something like 500 ? (That changes current behavior.)
Checklist:
- [X] tested changes locally
- [ ] updated the docs (if necessary)
This PR fixes #
Can one of the admins verify this patch?
@phsft-bot build
@phsft-bot build
Starting build on ROOT-debian10-i386/soversion, ROOT-performance-centos8-multicore/cxx17, ROOT-ubuntu18.04/nortcxxmod, ROOT-ubuntu2004/python3, mac1015/cxx17, mac11/cxx14, windows10/cxx14
How to customize builds
(the build can only be triggered like this by the maintainers)
Build failed on mac1015/cxx17. Running on macitois21.dyndns.cern.ch:/Users/sftnight/build/workspace/root-pullrequests-build See console output.
Failing tests:
@guitargeek The build failed in a strange way. Did jenkins build branch [cling_cmd_history_config](https://github.com/jiangyilism/root/tree/cling_cmd_history_config) of this pull request? From https://lcgapp-services.cern.ch/root-jenkins/job/root-pullrequests-build/153465/testReport/projectroot.roottest.python.distrdf/spark/roottest_python_distrdf_spark_test_all/ and https://lcgapp-services.cern.ch/root-jenkins/job/root-pullrequests-build/153465/ , It built root master branch cdd1bdf3b46 . Which does not contain my branch/commits . And the failing test roottest_python_distrdf_spark_test_all . seems related to several distrdf changes in master branch recently.
@guitargeek , @pcanal , @Axel-Naumann Could anyone help reviewing this patch?
@jiangyilism, thanks for your patch! Looks reasonable approach to me. Can you add some tests for it?
@vgvassilev Test is added. Please help resume github pipeline.
@phsft-bot build!
Starting build on ROOT-debian10-i386/soversion, ROOT-performance-centos8-multicore/cxx17, ROOT-ubuntu18.04/nortcxxmod, ROOT-ubuntu2004/python3, mac1015/cxx17, mac11/cxx14, windows10/cxx14
How to customize builds
Many thanks for the contribution, @jiangyilism! 🙂
In principle, LGTM, but I will defer the approval to @vgvassilev. Could you apply the included suggestions in the interim?
Sure. Thanks for the feedback.
@phsft-bot build!
Starting build on ROOT-debian10-i386/soversion, ROOT-performance-centos8-multicore/cxx17, ROOT-ubuntu18.04/nortcxxmod, ROOT-ubuntu2004/python3, mac12/noimt, mac11/cxx14, windows10/cxx14
How to customize builds
Build failed on ROOT-ubuntu18.04/nortcxxmod. Running on sft-ubuntu-1804-3.cern.ch:/build/workspace/root-pullrequests-build See console output.
Errors:
- [2023-01-25T09:21:04.295Z] FAILED: tmva/sofie/test/CMakeFiles/SofieCompileModels_ONNX.util