Enable debug assertions for all builds other than official releases (#30509)

* Run main and try jobs with debug assertions

* use single quotes in workflow expressions

* set force-debug-assertions in main.yml

* set force-debug-assertions as part of decision job

* fix typo in MachCommands.build

* fix more hardcoded profile names

* fix tidy

* split cargo_profile_option on windows

* Fix running servoshell and unit tests through a symlink

* rename steps to make them less confusing

* fix more hardcoded cargo profile options

* fix missing inputs in linux-wpt and mac-wpt

* make filename an inherent method of Resource

* rework release-with-debug-assertions profile to production profile

* rework resource logic to eliminate std_test_override

* set production flag in nightly release builds

* clean up servobuild.example and windows.yml

* oops forgot to check in embedder_traits/build.rs

* fix mach test-unit behaviour through symlink

* unit tests only need current_dir and ancestors

* fix macOS package smoketest breakage

* expect css/css-color/currentcolor-003 to crash under layout 2013

* fix more references to {force,release-with}-debug-assertions

* fix local build failures under --profile production
This commit is contained in:
Delan Azabani 2023-10-26 16:22:14 +08:00 committed by GitHub
parent 88234309b0
commit a3d2f0c586
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
31 changed files with 342 additions and 188 deletions

14
Cargo.lock generated
View file

@ -1533,6 +1533,7 @@ dependencies = [
name = "embedder_traits"
version = "0.0.1"
dependencies = [
"cfg-if 1.0.0",
"crossbeam-channel",
"ipc-channel",
"keyboard-types",
@ -3804,7 +3805,6 @@ dependencies = [
"servo_config",
"servo_url",
"sha2",
"std_test_override",
"time 0.1.45",
"tokio",
"tokio-rustls",
@ -3855,7 +3855,6 @@ dependencies = [
"servo_arc",
"servo_rand",
"servo_url",
"std_test_override",
"time 0.1.45",
"url",
"uuid",
@ -4987,7 +4986,6 @@ dependencies = [
"servo_atoms",
"servo_url",
"smallvec",
"std_test_override",
"style_traits",
"time 0.1.45",
"uuid",
@ -5115,6 +5113,7 @@ dependencies = [
name = "servo-gst-plugin"
version = "0.0.1"
dependencies = [
"cfg-if 1.0.0",
"crossbeam-channel",
"euclid",
"glib",
@ -5332,7 +5331,6 @@ dependencies = [
"servo_config_plugins",
"servo_geometry",
"servo_url",
"std_test_override",
"url",
]
@ -5692,13 +5690,6 @@ version = "1.1.0"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f"
[[package]]
name = "std_test_override"
version = "0.0.1"
dependencies = [
"embedder_traits",
]
[[package]]
name = "str-buf"
version = "1.0.6"
@ -5828,7 +5819,6 @@ dependencies = [
"servo_atoms",
"servo_config",
"servo_url",
"std_test_override",
"style",
"style_traits",
]