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

WIP Add checkhost() to allow warn on sub-optimal configs #2340

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

invisig0th
Copy link
Contributor

No description provided.

@@ -2168,6 +2168,9 @@ async def execmain(cls, argv, outp=None):
if outp is None:
outp = s_output.stdout

if not int(os.getenv('CELL_CHECKHOST', '1')):
Copy link
Contributor Author

Choose a reason for hiding this comment

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

What should this env var really be named?

Copy link
Contributor

Choose a reason for hiding this comment

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

  1. we have a envbool helper in synapse.common
  2. SYN_CHECKHOST ?

Copy link
Contributor

Choose a reason for hiding this comment

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

This is better done inside of initFromArgv to allow for picking up on structured logging

@codecov
Copy link

codecov bot commented Aug 30, 2021

Codecov Report

Merging #2340 (3b1e084) into master (c7f866e) will decrease coverage by 0.16%.
The diff coverage is 64.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #2340      +/-   ##
==========================================
- Coverage   97.17%   97.01%   -0.17%     
==========================================
  Files         194      194              
  Lines       36268    36293      +25     
==========================================
- Hits        35243    35209      -34     
- Misses       1025     1084      +59     
Flag Coverage Δ
linux 97.01% <64.00%> (-0.05%) ⬇️
linux_replay ?

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
synapse/lib/cell.py 97.76% <50.00%> (-0.07%) ⬇️
synapse/lib/platforms/common.py 50.00% <50.00%> (ø)
synapse/lib/platforms/linux.py 89.18% <66.66%> (-5.26%) ⬇️
synapse/lib/slabseqn.py 94.97% <0.00%> (-3.36%) ⬇️
synapse/tests/utils.py 94.00% <0.00%> (-2.05%) ⬇️
synapse/lib/hiveauth.py 96.28% <0.00%> (-0.71%) ⬇️
synapse/cortex.py 96.13% <0.00%> (-0.66%) ⬇️
synapse/lib/view.py 94.27% <0.00%> (-0.64%) ⬇️
synapse/lib/trigger.py 94.88% <0.00%> (-0.40%) ⬇️
synapse/lib/lmdbslab.py 99.51% <0.00%> (-0.20%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c7f866e...3b1e084. Read the comment docs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants