Skip to content

Commit c34d32f

Browse files
committed
Let fail fast
Signed-off-by: Xuanwo <github@xuanwo.io>
1 parent 2150d4d commit c34d32f

File tree

2 files changed

+3
-28
lines changed

2 files changed

+3
-28
lines changed

.github/actions/test_unit/action.yml

Lines changed: 2 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -14,36 +14,11 @@ runs:
1414
bypass_env_vars: RUSTFLAGS,RUSTDOCFLAGS,RUST_TEST_THREADS,RUST_LOG,RUST_BACKTRACE
1515

1616
- shell: bash
17-
run: cargo -Z sparse-registry test --no-fail-fast
17+
run: cargo -Z sparse-registry test
1818
env:
1919
RUST_TEST_THREADS: "2"
20-
RUST_LOG: ERROR
20+
RUST_LOG: DEBUG
2121
RUST_BACKTRACE: full
22-
# RUSTFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests --cfg tokio_unstable'
23-
# RUSTDOCFLAGS: '-Zprofile -Ccodegen-units=1 -Cinline-threshold=0 -Clink-dead-code -Coverflow-checks=off -Zpanic_abort_tests'
24-
25-
# Temporarily disable test coverage checks to save CI resources.
26-
# The main purpose is to avoid OOM due to build for specific target.
27-
#
28-
# Instructions
29-
# - `uncomment/enable`: If we self-host the CI or split the repo (especially, common-functions) to a finer granularity.
30-
# - `remove`: If we lack the need for test coverage, or adopt a new solution.
31-
32-
# - name: Install grcov
33-
# uses: actions-rs/cargo@v1
34-
# with:
35-
# command: install
36-
# args: grcov
37-
38-
# - name: Run code coverage
39-
# uses: actions-rs/grcov@v0.1.5
40-
# id: coverage
41-
42-
# - name: Upload to codecov.io
43-
# uses: codecov/codecov-action@v1
44-
# with:
45-
# token: ${{ inputs.codecov_token }}
46-
# file: ${{ steps.coverage.outputs.report }}
4722

4823
- name: Upload failure
4924
if: failure()

src/query/service/tests/it/servers/http/http_query_handlers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ async fn test_pagination() -> Result<()> {
422422
Ok(())
423423
}
424424

425-
#[tokio::test(flavor = "multi_thread", worker_threads = 1)]
425+
#[tokio::test(flavor = "current_thread")]
426426
async fn test_http_session() -> Result<()> {
427427
let _guard = TestGlobalServices::setup(ConfigBuilder::create().build()).await?;
428428

0 commit comments

Comments
 (0)