forked from actix/actix-web
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
implement io-uring for actix-files (actix#2408)
Co-authored-by: Rob Ede <[email protected]>
- Loading branch information
1 parent
194a691
commit dd347e0
Showing
16 changed files
with
809 additions
and
448 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,12 @@ | ||
[alias] | ||
chk = "check --workspace --all-features --tests --examples --bins" | ||
lint = "clippy --workspace --all-features --tests --examples --bins" | ||
ci-min = "hack check --workspace --no-default-features" | ||
ci-min-test = "hack check --workspace --no-default-features --tests --examples" | ||
ci-default = "check --workspace --bins --tests --examples" | ||
ci-full = "check --workspace --all-features --bins --tests --examples" | ||
ci-test = "test --workspace --all-features --lib --tests --no-fail-fast -- --nocapture" | ||
ci-doctest = "test --workspace --all-features --doc --no-fail-fast -- --nocapture" | ||
lint = "clippy --workspace --tests --examples --bins -- -Dclippy::todo" | ||
lint-all = "clippy --workspace --all-features --tests --examples --bins -- -Dclippy::todo" | ||
|
||
# lib checking | ||
ci-check-min = "hack --workspace check --no-default-features" | ||
ci-check-default = "hack --workspace check" | ||
ci-check-all-feature-powerset="hack --workspace --feature-powerset --skip=__compress,io-uring check" | ||
ci-check-all-feature-powerset-linux="hack --workspace --feature-powerset --skip=__compress check" | ||
|
||
ci-feature-powerset-check-no-tls="hack --workspace --feature-powerset --skip=__compress,rustls,openssl check" | ||
ci-feature-powerset-check-rustls="hack --workspace --feature-powerset --features=rustls --skip=__compress,openssl check" | ||
ci-feature-powerset-check-openssl="hack --workspace --feature-powerset --features=openssl --skip=__compress,rustls check" | ||
ci-feature-powerset-check-all="hack --workspace --feature-powerset --skip=__compress check" | ||
# testing | ||
ci-doctest = "test --workspace --all-features --doc --no-fail-fast -- --nocapture" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -62,26 +62,34 @@ jobs: | |
|
||
- name: check minimal | ||
uses: actions-rs/cargo@v1 | ||
with: { command: ci-min } | ||
|
||
- name: check minimal + tests | ||
uses: actions-rs/cargo@v1 | ||
with: { command: ci-min-test } | ||
with: { command: ci-check-min } | ||
|
||
- name: check default | ||
uses: actions-rs/cargo@v1 | ||
with: { command: ci-default } | ||
|
||
- name: check full | ||
uses: actions-rs/cargo@v1 | ||
with: { command: ci-full } | ||
with: { command: ci-check-default } | ||
|
||
- name: tests | ||
uses: actions-rs/cargo@v1 | ||
timeout-minutes: 60 | ||
with: | ||
command: ci-test | ||
args: --skip=test_reading_deflate_encoding_large_random_rustls | ||
run: | | ||
cargo test --lib --tests -p=actix-router --all-features | ||
cargo test --lib --tests -p=actix-http --all-features | ||
cargo test --lib --tests -p=actix-web --features=rustls,openssl -- --skip=test_reading_deflate_encoding_large_random_rustls | ||
cargo test --lib --tests -p=actix-web-codegen --all-features | ||
cargo test --lib --tests -p=awc --all-features | ||
cargo test --lib --tests -p=actix-http-test --all-features | ||
cargo test --lib --tests -p=actix-test --all-features | ||
cargo test --lib --tests -p=actix-files | ||
cargo test --lib --tests -p=actix-multipart --all-features | ||
cargo test --lib --tests -p=actix-web-actors --all-features | ||
- name: tests (io-uring) | ||
if: matrix.target.os == 'ubuntu-latest' | ||
timeout-minutes: 60 | ||
run: > | ||
sudo bash -c "ulimit -Sl 512 | ||
&& ulimit -Hl 512 | ||
&& PATH=$PATH:/usr/share/rust/.cargo/bin | ||
&& RUSTUP_TOOLCHAIN=${{ matrix.version }} cargo test --lib --tests -p=actix-files --all-features" | ||
- name: Clear the cargo caches | ||
run: | | ||
|
@@ -114,9 +122,12 @@ jobs: | |
args: cargo-hack | ||
|
||
- name: check feature combinations | ||
# if: github.ref == 'refs/heads/master' | ||
uses: actions-rs/cargo@v1 | ||
with: { command: ci-feature-powerset-check-all } | ||
with: { command: ci-check-all-feature-powerset } | ||
|
||
- name: check feature combinations | ||
uses: actions-rs/cargo@v1 | ||
with: { command: ci-check-all-feature-powerset-linux } | ||
|
||
coverage: | ||
name: coverage | ||
|
@@ -166,11 +177,11 @@ jobs: | |
- name: Cache Dependencies | ||
uses: Swatinem/[email protected] | ||
|
||
- name: Install cargo-hack | ||
uses: actions-rs/cargo@v1 | ||
with: | ||
command: install | ||
args: cargo-hack | ||
# - name: Install cargo-hack | ||
# uses: actions-rs/cargo@v1 | ||
# with: | ||
# command: install | ||
# args: cargo-hack | ||
|
||
- name: doc tests | ||
uses: actions-rs/cargo@v1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.