CI: check dependency licences, bans and sources with cargo-deny #273
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/276"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ivall/xcl. Originally posted by sombraSoft on 2026-11-23T22:17:01Z.
CONTRIBUTING.md requires every dependency to be GPL-2.0-compatible (no Apache-2.0-only, no GPL-3.0), but nothing checks it. This turns the rule into a cargo-deny check that blocks PRs. A separate workflow checks RustSec advisories daily, so a new advisory does not turn unrelated PRs red.
Part of #265
What is in it
deny.toml:x86_64-pc-windows-msvc.MIT OR Apache-2.0crates pass through MIT..github/workflows/ci.yml: a newdenyjob (ubuntu-latest,EmbarkStudios/cargo-deny-action@v2,check bans licenses sources). The header comment lists it..github/workflows/advisories.yml:check advisoriesruns daily, onworkflow_dispatch, and on pushes / PRs that touchCargo.lock,deny.tomlor the workflow.CI time
denyjob runs in parallel on Ubuntu and takes 19 s. The advisories workflow (22 s) runs only daily and on PRs that changeCargo.lock,deny.tomlor the workflow.Tested
cargo deny check(cargo-deny 0.22.0, Windows):advisories ok, bans ok, licenses ok, sources ok, plus the 2 duplicate warnings (syn, windows-sys). Every crate's licence was checked: 50 pass through MIT, and retour, unicode-ident and the 3 workspace crates use the other entries above.Dependencies (cargo-deny)green (https://github.com/sombraSoft/xcl/actions/runs/45276856646),Advisoriesgreen (https://github.com/sombraSoft/xcl/actions/runs/45276857241).main(9ab7d76), RTX 3060 Ti (driver 621.24), Ryzen 9 5900X, Windows 11, rustc 1.97.1, debug:scripts/test.ps1→ 651 passed, 0 failed, 40 ignored; SKIPPED: 2 (no wave64). This PR changes only CI config, so the compiled code is the same.Regression run
crates/xcl/srcchange.Not tested
pull_requesttrigger ran.AI use
upstream-sync referenced this pull request2026-11-24 06:59:50 +00:00
mainreaches on Windows; the obstacle is replaced vtables — proposal: proxies #172mainreaches on Windows; the obstacle is replaced vtables — proposal: proxies #172Imported from ivall/xcl. Originally posted by throny on 2026-11-24T20:15:38Z.
Two contributors checked independently and found that #599 solves the same problem (for #265) in a different way: #1607, group D37. You may want to compare them with the other author and agree on one, or say in the PR why both are needed.
This is a hint, not a request from the maintainers; nobody from the project has adopted #1607 so far.
AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table.
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T15:03:38Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-29T20:43:43Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T03:03:16Z.
Triage (#1607) – head
bb232e4#599 (draft) also adds cargo-deny with a
deny.toml, but checks only licences and sources with a wider allowlist; this PR also checks bans and runs advisories on a daily schedule. Different approaches, not a duplicate.Problem:
deny.tomlis written for a GPL-2.0-only XCL (allowlistGPL-2.0-only,MIT,BSD-2-Clause,Unicode-3.0; Apache-2.0 refused). Main relicensed to GPL-3.0-or-later in #3002 (Cargo.toml:license = "GPL-3.0-or-later"), so after a rebasecheck licenseswould reject the workspace's own three crates and fail thedenyjob on every PR, and the policy (no Apache-2.0) no longer matches CONTRIBUTING.md. The allowlist and the comments indeny.toml/ci.ymlneed updating to the GPL-3.0 policy. The PR also conflicts with main.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
Pull request closed