Codebase list rust-libslirp / 9d02e5c
Add missing_dependency check to rust-regressions.sh This patch adds a new check to rust-regressions.sh, missing_dependency. It looks for the string `Broken autopkgtest-satdep` that indicates a missing dev-dependency, so autopkgtest cannot compile and execute the tests. Previously, the user saw the generic error message if dependencies were missing. Robin Krahl 4 years ago
1 changed file(s) with 7 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
3232 results["maybetestbroken_filemissing"]+="$name"$'\n'
3333 c=$((c+1))
3434 fi
35 if zgrep -q "^Broken autopkgtest-satdep" "$url"; then
36 results["missing_dependency"]+="$name"$'\n'
37 c=$((c+1))
38 fi
3539 if [ "$c" = 0 ]; then
3640 results["UNKNOWN"]+="$url"$'\n'
3741 results["UNKNOWN"]+="$(zgrep ^error "$url" | head -n3 || true)"$'\n'
5660
5761 action["maybetestbroken_filemissing"]="Mark the relevant tests as test_is_broken=true in debcargo.toml, re-upload the package, and file a bug upstream for them to fix it."
5862 explain["maybetestbroken_filemissing"]="Carge does not enforce that tests pass per-crate, so sometimes crate authors run tests on a per-workspace basis and have crate tests depend on files in the parent workspace, which are not part of the crate when uploaded to crates.io."
63
64 action["missing_dependency"]="Package the missing dev-dependencies."
65 explain["missing_dependency"]="autopkgtest cannot install all dependencies. Check the dev-dependencies section in the Cargo.toml or the Testsuite-Triggers field in the dsc file to see a list of additional autopkgtest dependencies, or inspect the full log to find the missing packages."
5966
6067 if [ -z "$*" ]; then
6168 if ! [ -f rust-regressions.list ]; then