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

Do not log connector output by default #71

Merged
merged 1 commit into from
Jul 26, 2021

Conversation

tlecomte
Copy link
Contributor

@tlecomte tlecomte commented Jul 26, 2021

The current implementation of OutProcSpecFlowConnector logs the full output of the specflow connector to the log file, and to VS debug window.

On a project with a lot of tests, each log file can amount to a massive size (on my machine, I have 2.6 GB of Deveroom logs from regular usage since late 2019, and the biggest daily log files are ~160 MB).

This impacts both the machine disk space, and the performance of the extension itself.

Here we adjust OutProcSpecFlowConnector to only log in a debug build.

@tlecomte
Copy link
Contributor Author

Dear @gasparnagy here is a little change which - I believe - can make a big difference.

The Azure pipeline failed to download .NET 5. As far as I can tell, this is a known random issue, a retry should be enough to let it go through. (reference: microsoft/azure-pipelines-tasks#15086)

@gasparnagy
Copy link
Contributor

I see the problem. I agree that that detail is not needed by default in the log. It is not practical to condition it to DebugConnector though, because if you debug the connector, you anyway cannot see/need the log...
Could you maybe change it to an #if DEBUG/#endif maybe. I think that one will be good for now.

(Ideally Deveroom should delete log files older than 10 days or so...)

The current implementation of `OutProcSpecFlowConnector` logs the full output of the specflow connector to the log file, and to VS debug window.

On a project with a lot of tests, each log file can amount to a massive size (on my machine, I have 2.6 GB of Deveroom logs from regular usage since late 2019, and the biggest daily log files are ~160 MB).

This impacts both the machine disk space, and the performance of the extension itself.

Here we adjust `OutProcSpecFlowConnector` to only log in a debug build.
@tlecomte
Copy link
Contributor Author

Thanks @gasparnagy ! I have updated the commit to use #if DEBUG.

@gasparnagy
Copy link
Contributor

@tlecomte Thx!

@gasparnagy gasparnagy merged commit d776214 into specsolutions:master Jul 26, 2021
@tlecomte tlecomte deleted the Log branch July 26, 2021 20:18
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.

None yet

2 participants