Reduce symbol size for tests (#5389)
Test executables were huge because of detailed debugging symbols. Switch to less rich debugging symbols.
This commit is contained in:
2
.github/workflows/rust-ci.yml
vendored
2
.github/workflows/rust-ci.yml
vendored
@@ -201,7 +201,7 @@ jobs:
|
|||||||
# Tests take too long for release builds to run them on every PR.
|
# Tests take too long for release builds to run them on every PR.
|
||||||
if: ${{ matrix.profile != 'release' }}
|
if: ${{ matrix.profile != 'release' }}
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
run: cargo nextest run --all-features --no-fail-fast --target ${{ matrix.target }}
|
run: cargo nextest run --all-features --no-fail-fast --target ${{ matrix.target }} --cargo-profile ci-test
|
||||||
env:
|
env:
|
||||||
RUST_BACKTRACE: 1
|
RUST_BACKTRACE: 1
|
||||||
|
|
||||||
|
|||||||
@@ -79,8 +79,8 @@ codex-rmcp-client = { path = "rmcp-client" }
|
|||||||
codex-stdio-to-uds = { path = "stdio-to-uds" }
|
codex-stdio-to-uds = { path = "stdio-to-uds" }
|
||||||
codex-tui = { path = "tui" }
|
codex-tui = { path = "tui" }
|
||||||
codex-utils-json-to-toml = { path = "utils/json-to-toml" }
|
codex-utils-json-to-toml = { path = "utils/json-to-toml" }
|
||||||
codex-utils-readiness = { path = "utils/readiness" }
|
|
||||||
codex-utils-pty = { path = "utils/pty" }
|
codex-utils-pty = { path = "utils/pty" }
|
||||||
|
codex-utils-readiness = { path = "utils/readiness" }
|
||||||
codex-utils-string = { path = "utils/string" }
|
codex-utils-string = { path = "utils/string" }
|
||||||
core_test_support = { path = "core/tests/common" }
|
core_test_support = { path = "core/tests/common" }
|
||||||
mcp-types = { path = "mcp-types" }
|
mcp-types = { path = "mcp-types" }
|
||||||
@@ -257,6 +257,11 @@ strip = "symbols"
|
|||||||
# See https://github.com/openai/codex/issues/1411 for details.
|
# See https://github.com/openai/codex/issues/1411 for details.
|
||||||
codegen-units = 1
|
codegen-units = 1
|
||||||
|
|
||||||
|
[profile.ci-test]
|
||||||
|
debug = 1 # Reduce debug symbol size
|
||||||
|
inherits = "test"
|
||||||
|
opt-level = 0
|
||||||
|
|
||||||
[patch.crates-io]
|
[patch.crates-io]
|
||||||
# Uncomment to debug local changes.
|
# Uncomment to debug local changes.
|
||||||
# ratatui = { path = "../../ratatui" }
|
# ratatui = { path = "../../ratatui" }
|
||||||
|
|||||||
Reference in New Issue
Block a user