Fix #4847 - OpenStudio logging behaves differently on Windows/Linux#4852
Merged
Fix #4847 - OpenStudio logging behaves differently on Windows/Linux#4852
Conversation
19f81dc to
69385d4
Compare
Collaborator
Author
|
Before fix at 5d61bc7 we get the windows error in action, see log https://ci.openstudio.net/blue/organizations/jenkins/openstudio-incremental-windows/detail/PR-4852/3/pipeline#step-61-log-8 Running: D:\git\OpenStudio\build\Products\openstudio.exe execute_ruby_script D:\git\OpenStudio\src\cli\test\logger_test.rb
0 [test] <0> Warn
1 [test] <1> Error
2 [test] <1> Error
3 LOGGER - STDOUT Warn
4 [test] <1> Error
5 LOGGER - STDOUT Warn
6 LOGGER - STDOUT Error
Traceback (most recent call last):
File "D:/git/OpenStudio/src/cli/test/run_test_logger.py", line 54, in <module>
raise IOError(f"Expected 3 lines, got {n}")
OSError: Expected 3 lines, got 7
2/2 Test #3637: OpenStudioCLI.Labs.test_logger_rb ...***Failed 1.08 sec
Namespace(labs=True, logger_file=WindowsPath('D:/git/OpenStudio/src/cli/test/logger_test.rb'), os_cli_path=WindowsPath('D:/git/OpenStudio/build/Products/openstudio.exe'))
Running: D:\git\OpenStudio\build\Products\openstudio.exe labs execute_ruby_script D:\git\OpenStudio\src\cli\test\logger_test.rb
0 [test] <0> Warn
1 [test] <1> Error
2 [test] <1> Error
3 LOGGER - STDOUT Warn
4 LOGGER - STDOUT Error
Traceback (most recent call last):
File "D:/git/OpenStudio/src/cli/test/run_test_logger.py", line 54, in <module>
raise IOError(f"Expected 3 lines, got {n}")
OSError: Expected 3 lines, got 5 |
Contributor
|
I can't speak to the correctness of the implementation, but I tried this out on Windows and Ubuntu, and they both gave the desired result. So I can confirm that this fixes the issue. |
Contributor
Contributor
Contributor
|
Found the bug, see #4856. |
…rror locally...), try forcing encoding to utf-8
…ruby shared lib has a duplicated one...
992da3a to
8301544
Compare
Collaborator
|
CI Results for 8301544:
|
7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Pull request overview
Pull Request Author
src/model/test)src/energyplus/Test)src/osversion/VersionTranslator.cpp)Labels:
IDDChangeAPIChangePull Request - Ready for CIso that CI builds your PRReview Checklist
This will not be exhaustively relevant to every PR.