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

Add integration tests for file logging disabled and console logging enabled #2076

Merged
merged 11 commits into from
Nov 17, 2023

Conversation

nr-ahemsath
Copy link
Member

Adds two sets of integration tests, one for enabling console logging and one for disabling file logging.

@codecov-commenter
Copy link

codecov-commenter commented Nov 16, 2023

Codecov Report

❗ No coverage uploaded for pull request base (feature/read-only-file-systems@33023fd). Click here to learn what that means.
The diff coverage is n/a.

Additional details and impacted files

Impacted file tree graph

@@                        Coverage Diff                        @@
##             feature/read-only-file-systems    #2076   +/-   ##
=================================================================
  Coverage                                  ?   80.22%           
=================================================================
  Files                                     ?      403           
  Lines                                     ?    24880           
  Branches                                  ?     2996           
=================================================================
  Hits                                      ?    19961           
  Misses                                    ?     4140           
  Partials                                  ?      779           

Copy link
Member

@chynesNR chynesNR left a comment

Choose a reason for hiding this comment

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

Looks good!

EndsWith() fails if the profiler logs the version, e.g. New Relic .NET CoreCLR Agent v10.18.0.26.  Use Contains() instead
@nr-ahemsath nr-ahemsath merged commit a3e5a9d into feature/read-only-file-systems Nov 17, 2023
76 checks passed
@nr-ahemsath nr-ahemsath deleted the featurework/rofs-int-tests branch November 17, 2023 01:37
nr-ahemsath added a commit that referenced this pull request Nov 21, 2023
…ms. (#2085)

* Don't bail if log file can't be created

* Support logging to stdout in the Profiler (#2025)

* Agent support for read-only file systems (#2045)

* New option to disable logging
* Env var for console logging
* Supportability metric if logging fails
* Don't allow audit logging if logging is disabled

* chore: Update Profiler NuGet Package Reference to v10.18.0.15. (#2077)

Co-authored-by: nr-ahemsath <[email protected]>

* Add integration tests for file logging disabled and console logging enabled (#2076)

* Checkpoint in order to switch branches

* Refactored AgentLogFile

Moved AgentLogFile to the fixtures instead of the applications

* Shorten some names

* Fix bug caused by Visual Studio autocorrect

* WIP

* Working tests for logging disabled

* Working console logging tests

* Fix nuget package warnings-as-errors

* Fix GuidConfigurationTests

EndsWith() fails if the profiler logs the version, e.g. New Relic .NET CoreCLR Agent v10.18.0.26.  Use Contains() instead

* Fix integration test build error

* PR feedback

---------

Co-authored-by: chynesNR <[email protected]>
Co-authored-by: Chris Hynes <[email protected]>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: nr-ahemsath <[email protected]>
Co-authored-by: Marty Tippin <[email protected]>
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.

3 participants