crowdsecurity / crowdsec

CrowdSec - the open-source and participative security solution offering crowdsourced protection against malicious IPs and access to the most advanced real-world CTI.
https://crowdsec.net
MIT License
8.1k stars 419 forks source link

pkg/cwhub: use explicit context for item install, upgrade #3067

Closed mmetc closed 3 weeks ago

codecov[bot] commented 3 weeks ago

Codecov Report

Attention: Patch coverage is 27.02703% with 27 lines in your changes missing coverage. Please review.

Project coverage is 30.94%. Comparing base (cad760e) to head (f578a90).

Files Patch % Lines
cmd/crowdsec-cli/itemcli.go 0.00% 8 Missing :warning:
pkg/cwhub/itemupgrade.go 53.84% 0 Missing and 6 partials :warning:
pkg/hubtest/hubtest_item.go 0.00% 5 Missing :warning:
pkg/setup/install.go 0.00% 5 Missing :warning:
cmd/crowdsec-cli/config_restore.go 0.00% 1 Missing :warning:
cmd/crowdsec-cli/hub.go 0.00% 1 Missing :warning:
cmd/crowdsec-cli/setup.go 0.00% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #3067 +/- ## =========================================== - Coverage 52.43% 30.94% -21.49% =========================================== Files 281 272 -9 Lines 35454 34600 -854 =========================================== - Hits 18589 10706 -7883 - Misses 15038 22711 +7673 + Partials 1827 1183 -644 ``` | [Flag](https://app.codecov.io/gh/crowdsecurity/crowdsec/pull/3067/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=crowdsecurity) | Coverage Δ | | |---|---|---| | [bats](https://app.codecov.io/gh/crowdsecurity/crowdsec/pull/3067/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=crowdsecurity) | `?` | | | [unit-linux](https://app.codecov.io/gh/crowdsecurity/crowdsec/pull/3067/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=crowdsecurity) | `?` | | | [unit-windows](https://app.codecov.io/gh/crowdsecurity/crowdsec/pull/3067/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=crowdsecurity) | `30.94% <27.02%> (-0.01%)` | :arrow_down: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=crowdsecurity#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.