fission-codes / fission-server

Apache License 2.0
9 stars 0 forks source link

feat: Ephemeral DB mode & CLI integration tests #217

Closed matheus23 closed 9 months ago

matheus23 commented 9 months ago

Main addition: Integration tests between the CLI and server in fission-cli/tests/main.rs. Also:

matheus23 commented 9 months ago

Had to disable doctest compilation due to https://github.com/rust-lang/rust/issues/95825. We don't have any doctests anyways, so it doesn't really matter. We just need to remember to reenable once we have (and fix the issues).

codecov[bot] commented 9 months ago

Codecov Report

Attention: 114 lines in your changes are missing coverage. Please review.

Comparison is base (03f6d2b) 20.76% compared to head (03daca4) 23.69%. Report is 2 commits behind head on main.

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/fission-codes/fission-server/pull/217/graphs/tree.svg?width=650&height=150&src=pr&token=GO3TTZLDO0&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=fission-codes)](https://app.codecov.io/gh/fission-codes/fission-server/pull/217?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=fission-codes) ```diff @@ Coverage Diff @@ ## main #217 +/- ## ========================================== + Coverage 20.76% 23.69% +2.93% ========================================== Files 72 73 +1 Lines 3130 3207 +77 Branches 1914 1968 +54 ========================================== + Hits 650 760 +110 + Misses 1633 1373 -260 - Partials 847 1074 +227 ``` | [Files](https://app.codecov.io/gh/fission-codes/fission-server/pull/217?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=fission-codes) | Coverage Δ | | |---|---|---| | [fission-cli/src/main.rs](https://app.codecov.io/gh/fission-codes/fission-server/pull/217?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=fission-codes#diff-Zmlzc2lvbi1jbGkvc3JjL21haW4ucnM=) | `42.85% <ø> (+32.85%)` | :arrow_up: | | [fission-server/src/extract/authority.rs](https://app.codecov.io/gh/fission-codes/fission-server/pull/217?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=fission-codes#diff-Zmlzc2lvbi1zZXJ2ZXIvc3JjL2V4dHJhY3QvYXV0aG9yaXR5LnJz) | `25.00% <ø> (ø)` | | | [fission-server/src/lib.rs](https://app.codecov.io/gh/fission-codes/fission-server/pull/217?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=fission-codes#diff-Zmlzc2lvbi1zZXJ2ZXIvc3JjL2xpYi5ycw==) | `100.00% <ø> (ø)` | | | [fission-server/src/models/capability\_indexing.rs](https://app.codecov.io/gh/fission-codes/fission-server/pull/217?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=fission-codes#diff-Zmlzc2lvbi1zZXJ2ZXIvc3JjL21vZGVscy9jYXBhYmlsaXR5X2luZGV4aW5nLnJz) | `27.27% <ø> (ø)` | | | [fission-server/src/routes/account.rs](https://app.codecov.io/gh/fission-codes/fission-server/pull/217?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=fission-codes#diff-Zmlzc2lvbi1zZXJ2ZXIvc3JjL3JvdXRlcy9hY2NvdW50LnJz) | `20.28% <ø> (ø)` | | | [fission-server/src/routes/auth.rs](https://app.codecov.io/gh/fission-codes/fission-server/pull/217?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=fission-codes#diff-Zmlzc2lvbi1zZXJ2ZXIvc3JjL3JvdXRlcy9hdXRoLnJz) | `28.57% <ø> (ø)` | | | [fission-server/src/routes/capability\_indexing.rs](https://app.codecov.io/gh/fission-codes/fission-server/pull/217?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=fission-codes#diff-Zmlzc2lvbi1zZXJ2ZXIvc3JjL3JvdXRlcy9jYXBhYmlsaXR5X2luZGV4aW5nLnJz) | `26.66% <ø> (ø)` | | | [fission-server/src/routes/doh.rs](https://app.codecov.io/gh/fission-codes/fission-server/pull/217?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=fission-codes#diff-Zmlzc2lvbi1zZXJ2ZXIvc3JjL3JvdXRlcy9kb2gucnM=) | `14.81% <ø> (ø)` | | | [fission-server/src/routes/health.rs](https://app.codecov.io/gh/fission-codes/fission-server/pull/217?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=fission-codes#diff-Zmlzc2lvbi1zZXJ2ZXIvc3JjL3JvdXRlcy9oZWFsdGgucnM=) | `51.85% <ø> (ø)` | | | [fission-server/src/routes/ping.rs](https://app.codecov.io/gh/fission-codes/fission-server/pull/217?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=fission-codes#diff-Zmlzc2lvbi1zZXJ2ZXIvc3JjL3JvdXRlcy9waW5nLnJz) | `25.00% <ø> (ø)` | | | ... and [7 more](https://app.codecov.io/gh/fission-codes/fission-server/pull/217?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=fission-codes) | | ... and [12 files with indirect coverage changes](https://app.codecov.io/gh/fission-codes/fission-server/pull/217/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=fission-codes)