Skip to content
This repository has been archived by the owner on Jan 13, 2025. It is now read-only.

Make metrics tests independent of RUST_LOG environment variable (backport #16710) #16730

Merged
merged 1 commit into from
Apr 22, 2021

Conversation

mergify[bot]
Copy link
Contributor

@mergify mergify bot commented Apr 22, 2021

This is an automatic backport of pull request #16710 done by Mergify.


Mergify commands and options

More conditions and actions can be found in the documentation.

You can also trigger Mergify actions by commenting on this pull request:

  • @Mergifyio refresh will re-evaluate the rules
  • @Mergifyio rebase will rebase this PR on its base branch
  • @Mergifyio update will merge the base branch into this PR
  • @Mergifyio backport <destination> will backport this PR on <destination> branch

Additionally, on Mergify dashboard you can:

  • look at your merge queues
  • generate the Mergify configuration with the config editor.

Finally, you can contact us on https://mergify.io/

Previously, running the tests with RUST_LOG=none would fail, because the
env logger would set its filter level to reject all log messages, and
incrementing a counter only happens if the global logger has at least
the specified log level. Having the tests behave differently when
RUST_LOG is set is surprising, they should be self-contained.

Nix' buildRustPackage sets RUST_LOG="" to make the build logs less
verbose. I have trouble packaging Solana for Nix because of this, and I
believe making the tests independent of the environment is a good
solution for this.

(cherry picked from commit 3f92abe)
@mergify mergify bot added the automerge Merge this Pull Request automatically once CI passes label Apr 22, 2021
@codecov
Copy link

codecov bot commented Apr 22, 2021

Codecov Report

Merging #16730 (0d528d1) into v1.6 (e51d7af) will increase coverage by 0.0%.
The diff coverage is 100.0%.

@@           Coverage Diff           @@
##             v1.6   #16730   +/-   ##
=======================================
  Coverage    82.9%    82.9%           
=======================================
  Files         414      414           
  Lines      113979   113979           
=======================================
+ Hits        94520    94538   +18     
+ Misses      19459    19441   -18     

@mergify mergify bot merged commit 9268239 into v1.6 Apr 22, 2021
@mergify mergify bot deleted the mergify/bp/v1.6/pr-16710 branch April 22, 2021 01:41
@brooksprumo brooksprumo mentioned this pull request Aug 23, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
automerge Merge this Pull Request automatically once CI passes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant