Skip to content
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 issues with long testing times on Windows caused by log rotation from multiple threads #62

Merged
merged 1 commit into from
Oct 5, 2023

Conversation

awkrupka
Copy link
Contributor

@awkrupka awkrupka commented Oct 3, 2023

For the past two months testing times on Windows were excessively long - this was caused by OS-specific restrictions on file operations from multiple threads. Since this issue is test-specific a separate log file for test output has been created. Additionally the maximum file size before log rotation was small (10kB) and has been increased to 1MB. This brings Windows test performance in line with other systems.

Comment on lines 13 to 14
log_dir = flow360_dir + "logs"
log_path = os.path.join(log_dir, "flow360_temp.log")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

log_dir = os.path.join(flow360_dir, "logs")
or combine with next line.

We should clean up after tests. Would suggest to log to a temp file which will be deleted at the end of the test

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in dbe1d20, only logs from test_log.py are not temporary and remain in a separate small file that is cleaned for every test run.

@awkrupka awkrupka force-pushed the andrzej/windows_logging_fix branch 2 times, most recently from 6082f1f to dbe1d20 Compare October 4, 2023 14:07
@awkrupka awkrupka force-pushed the andrzej/windows_logging_fix branch from 397b2a3 to 75727d8 Compare October 5, 2023 08:46
@awkrupka awkrupka merged commit b3ec197 into develop Oct 5, 2023
@awkrupka awkrupka deleted the andrzej/windows_logging_fix branch October 5, 2023 09:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants