mirror of
https://github.com/chatmail/core.git
synced 2026-05-20 15:26:30 +03:00
Merge branch 'flub/unoptimised-debug'
https://github.com/deltachat/deltachat-core-rust/pull/3699
This commit is contained in:
11
.cargo/config.toml
Normal file
11
.cargo/config.toml
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
[env]
|
||||||
|
# In unoptimised builds tokio tends to use a lot of stack space when
|
||||||
|
# creating some complicated futures, tokio has an open issue for this:
|
||||||
|
# https://github.com/tokio-rs/tokio/issues/2055. Some of our tests
|
||||||
|
# manage to not fit in the default 2MiB stack anymore due to this, so
|
||||||
|
# while the issue is not resolved we want to work around this.
|
||||||
|
# Because compiling optimised builds takes a very long time we prefer
|
||||||
|
# to avoid that. Setting this environment variable ensures that when
|
||||||
|
# invoking `cargo test` threads are allowed to have a large enough
|
||||||
|
# stack size without needing to use an optimised build.
|
||||||
|
RUST_MIN_STACK = "8388608"
|
||||||
1
.github/workflows/jsonrpc.yml
vendored
1
.github/workflows/jsonrpc.yml
vendored
@@ -8,6 +8,7 @@ on:
|
|||||||
|
|
||||||
env:
|
env:
|
||||||
CARGO_TERM_COLOR: always
|
CARGO_TERM_COLOR: always
|
||||||
|
RUST_MIN_STACK: "8388608"
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_and_test:
|
build_and_test:
|
||||||
|
|||||||
@@ -11,6 +11,9 @@ debug = 0
|
|||||||
panic = 'abort'
|
panic = 'abort'
|
||||||
opt-level = 1
|
opt-level = 1
|
||||||
|
|
||||||
|
[profile.test]
|
||||||
|
opt-level = 0
|
||||||
|
|
||||||
[profile.release]
|
[profile.release]
|
||||||
lto = true
|
lto = true
|
||||||
panic = 'abort'
|
panic = 'abort'
|
||||||
|
|||||||
@@ -30,7 +30,8 @@ export async function startServer(port: number = RPC_SERVER_PORT): Promise<RpcSe
|
|||||||
cwd: tmpDir,
|
cwd: tmpDir,
|
||||||
env: {
|
env: {
|
||||||
RUST_LOG: process.env.RUST_LOG || "info",
|
RUST_LOG: process.env.RUST_LOG || "info",
|
||||||
DC_PORT: '' + port
|
DC_PORT: '' + port,
|
||||||
|
RUST_MIN_STACK: "8388608"
|
||||||
},
|
},
|
||||||
});
|
});
|
||||||
let shouldClose = false;
|
let shouldClose = false;
|
||||||
|
|||||||
@@ -10,6 +10,9 @@ envlist =
|
|||||||
commands =
|
commands =
|
||||||
pytest -n6 --extra-info --reruns 2 --reruns-delay 5 -v -rsXx --ignored --strict-tls {posargs: tests examples}
|
pytest -n6 --extra-info --reruns 2 --reruns-delay 5 -v -rsXx --ignored --strict-tls {posargs: tests examples}
|
||||||
pip wheel . -w {toxworkdir}/wheelhouse --no-deps
|
pip wheel . -w {toxworkdir}/wheelhouse --no-deps
|
||||||
|
setenv =
|
||||||
|
# Avoid stack overflow when Rust core is built without optimizations.
|
||||||
|
RUST_MIN_STACK=8388608
|
||||||
passenv =
|
passenv =
|
||||||
DCC_RS_DEV
|
DCC_RS_DEV
|
||||||
DCC_RS_TARGET
|
DCC_RS_TARGET
|
||||||
|
|||||||
Reference in New Issue
Block a user