Skip to content

fix: refresh licence notices after dependency updates, 0.15.2 - #29

Merged
gbarnai merged 1 commit into
mainfrom
fix/notices-0.15.2
Dec 3, 2026
Merged

gbarnai merged 1 commit into
mainfrom
fix/notices-0.15.2

Conversation

@gbarnai

@gbarnai gbarnai commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

Summary

Main has been red since the Dec 1 dependency updates (fastapi 0.165.0, pywinpty 3.1.2, packaging 26.4, the zip crate 9.8.2, and the npm group with @tauri-apps/cli 2.12.6 and vitest 5.1.1). These merged without regenerating THIRD-PARTY-NOTICES.txt, so the "Third-party notices cover what ships" step in the tests job failed with four problems: fastapi, pywinpty, and both zip versions.

  • THIRD-PARTY-NOTICES.txt was regenerated with python3 setup/notices.py, as its header asks. The script read the installed Python packages, the npm lock, and the cargo registry. Each licence text is the one the upstream package ships: fastapi-0.165.0.dist-info/licenses/LICENSE, pywinpty-3.1.2.dist-info/licenses/LICENSE.txt and the LICENSE file inside the published zip 9.8.2 crate. Only section headers and file names changed. The licence texts are byte for byte the same as before.
  • The Windows-only and Linux-only packages (pywinpty, pywin32-ctypes, and the Secret Service chain for keyring) come from their real platform wheels, so the generator read their actual metadata. Nothing was carried over by hand. A fresh resolve also moved two unpinned transitive packages: opentelemetry-api 1.45.2 to 1.45.3 (required by fastapi) and, on Linux, cryptography 50.0.2 to 51.0.0. Their licences are unchanged (Apache-2.0; Apache-2.0 OR BSD-3-Clause).
  • LICENSES.md now lists the new versions: fastapi, pywinpty, cryptography, vitest and @tauri-apps/cli. The npm lock still holds 115 packages and the native lock still holds 86, both with the same licences.
  • backend/tests/rb04/test_setup_notices.py hard-coded the fastapi pin in two asserts. Both now say 0.165.0. That test step would have failed next, after the notices step.
  • Release 0.15.2 at every version site from the 0.15.1 release commit: frontend/package.json and lock, frontend/src/version.ts, native/Cargo.toml and Cargo.lock (24 workspace crates), src-tauri/Cargo.toml and Cargo.lock, src-tauri/tauri.conf.json, backend/app/__init__.py, the README badge, and a CHANGELOG.md entry. cargo and npm regenerated the lock files.

Tests

Run on macOS (Apple silicon) with HOME set to a scratch folder and a failing keyring backend, following .github/workflows/ci.yml:

  • python setup/notices.py --check: third-party notices cover everything that ships
  • frontend npm ci, npm audit --audit-level=high (0 vulnerabilities), npm run typecheck, npm run build: pass
  • frontend npm test: 39 files, 853 passed, 0 failed
  • backend python -m pytest: 955 passed, 0 failed (1 warning)
  • native cargo clippy --workspace --all-targets --locked -- -D warnings: pass
  • native cargo test --workspace --locked: 145 passed, 0 failed
  • ./formrig engine build (maturin), python -m compileall -q app formrig_engine.py, python formrig_engine.py --selfcheck: pass (engine 0.15.2, 179 commands)
  • scripts job: shell syntax, ./formrig i18n check, and the em dash and emoji text check: pass
  • src-tauri cargo check --locked: pass
  • native cargo build --workspace --locked fails on macOS only. On macOS, a plain cargo build of the pyo3 frg-py extension cannot link Python symbols, and main behaves the same way. The maturin build of the same crate passes. CI runs this step on Ubuntu, where it links.

For the owner

  • The notices file includes package versions from a fresh resolve: opentelemetry-api 1.45.3, and cryptography 51.0.0 on Linux. A release built later may resolve newer versions. In that case the check still passes, because it compares names for unpinned packages and exact versions only for pinned ones.
  • Each Dependabot bump of a pinned Python package, an npm package that ships, or a crate will turn this check red again until the notices are regenerated. The fastapi pin in test_setup_notices.py has the same problem.

Left for the owner (not changed here)

  • Dependabot PRs still merge without the notices being refreshed. Options: regenerate the notices in a follow-up workflow, or have the notice test read pins from the requirements file instead of hard-coding them.
  • Not run here: the desktop build, and the apps on Windows and Linux.

How to ship

  1. Merge this PR into main once CI is green.
  2. Create compile_v0.15.2 from the merge commit to start the release build.

The fastapi, pywinpty and zip updates merged without regenerating
THIRD-PARTY-NOTICES.txt, so the notices check in CI failed on main.
Regenerated with setup/notices.py from the installed packages, the lock
files and the cargo registry. The notices test now names the new fastapi
pin, and LICENSES.md lists the new versions.

Release 0.15.2 at every version site, with its changelog entry.
@gbarnai
gbarnai requested a review from nodemode-ai as a code owner December 3, 2026 11:22
@gbarnai
gbarnai merged commit d0adef6 into main Dec 3, 2026
6 checks passed
@nodemode-ai
nodemode-ai deleted the fix/notices-0.15.2 branch December 3, 2026 17:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant