Skip to content

Commit 21b4481

Browse files
authored
test(ffe): skip slow miri tests (#1295)
test(ffe): skip slow miri tests These tests mostly read and deserialize JSON file, which mostly exercises file IO and serde—not very helpful but takes surprisingly long to run under miri. Co-authored-by: oleksii.shmalko <oleksii.shmalko@datadoghq.com>
1 parent 616f058 commit 21b4481

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

datadog-ffe/build.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,11 @@ fn main() {
121121
let test_name = format!("evaluation_sdk_{}", test_file.replace('-', "_"));
122122

123123
writeln!(file, "#[test]").unwrap();
124+
writeln!(
125+
file,
126+
"#[cfg_attr(miri, ignore)] // these tests are way too slow on miri"
127+
)
128+
.unwrap();
124129
writeln!(file, "fn {}() {{", test_name).unwrap();
125130
writeln!(
126131
file,

datadog-ffe/src/rules_based/ufc/models.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -508,6 +508,7 @@ mod tests {
508508
use super::{TryParse, UniversalFlagConfigWire};
509509

510510
#[test]
511+
#[cfg_attr(miri, ignore)] // this test is way too slow on miri
511512
fn parse_flags_v1() {
512513
let json_content = {
513514
let path = if std::path::Path::new("tests/data/flags-v1.json").exists() {

0 commit comments

Comments
 (0)