diff --git a/crates/eps/src/import/tests.rs b/crates/eps/src/import/tests.rs index bcd830a28d..5fc5d910a4 100644 --- a/crates/eps/src/import/tests.rs +++ b/crates/eps/src/import/tests.rs @@ -1262,7 +1262,7 @@ fn run_looking(body: &str, look: fn(&Interp) -> T) -> T { /// (`search_in_a_loop_runs_out_of_the_budget` searches about 3 GB, 14 s on a fast desktop), so the /// limit here only catches a program that never stops. pub(super) fn runs_out_of_budget(body: &str) { - let r = read_within(&format!("0 0 10 10 rectfill {body}"), 120); + let r = read_within(&format!("0 0 10 10 rectfill {body}"), NEVER_ENDS); assert_eq!(objects(&r.document).len(), 1, "{body}: {:?}", r.warnings); assert!(r.warnings.iter().any(|w| w.contains("the program runs too long")), "{body}: {:?}", r.warnings); } diff --git a/sonar-project.properties b/sonar-project.properties index 287b7eb9cf..9a1a027a81 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -1,6 +1,15 @@ sonar.projectKey=storytold_vectorcraft sonar.organization=storytold +# Sources and tests both start at the root, as in craft-libs: sonar.tests alone stops the +# scanner defaulting sources to the repository. Test files are the ones the coverage job +# leaves out of lcov (tests/ directories, tests.rs and *_tests.rs), plus this repo's +# tests_*.rs naming. Classifying them as tests keeps coverage and duplication on new code +# measuring the product, not the tests. +sonar.sources=. +sonar.tests=. +sonar.test.inclusions=**/tests/**,**/tests.rs,**/*_tests.rs,**/tests_*.rs + # S4790 (weak hash): MD5 is the key derivation of the PDF standard security handler revisions 2-4 # (ISO 32000-1 ยง7.6.3.3), which PDF 1.3-1.6 files use. It is needed to read those files and to write # the compatibility the user picks, not chosen for new security: the default is 256-bit AES diff --git a/xtask/src/pdf_deps.rs b/xtask/src/pdf_deps.rs index 180e90bc3e..02216d18f2 100644 --- a/xtask/src/pdf_deps.rs +++ b/xtask/src/pdf_deps.rs @@ -5,7 +5,7 @@ use std::process::Command; use serde_json::Value; -const REV: &str = "9be9a63782298ab59cd9b7a42ee9cba4f42a5ccb"; +const REV: &str = "a499742a9389f47d10cdc61e4cdbf4e5f07f48cd"; const PACKAGES: &[(&str, &str, &str)] = &[ ("craft-pdf", "0.1.0", REV), ("krilla", "0.8.2", REV),