Commit Graph
7 Commits
Author SHA1 Message Date
.CooCoo f42c585a79 Merge pull request #10155 from dotCooCoo/chore/sonar-exclusions
Sonar: exclude lcov.info, tests and the catalog tables, and set the Python version
2026-11-30 01:06:59 -08:00
Codex b8c754e7a2 Import the generated RPM helper coverage report 2026-11-30 02:24:25 +01:00
dotCooCoo 5367d0e668 Sonar: exclude lcov.info, tests and the catalog tables, and set the Python version
The SonarCloud scan printed three warnings that sonar-project.properties
can clear:

- sonar.exclusions=lcov.info: sonar.sources=. indexed the coverage
  report (over 20 MB), and the scanner warned and dropped it.
- sonar.cpd.exclusions: duplication now skips the test-file patterns,
  crates/ui-egui/src/menus/ui_commands.rs and the MCP catalog generated
  from it, which gave 32 "Too many duplication" warnings. The value is
  on one line because the shared Sonar workflow reads it with one sed
  line and adds **/i18n/**.
- sonar.python.version=3.12, 3.13, 3.14, 3.15: the versions CI runs the
  scripts in packaging/ and scripts/ with (3.12 on Ubuntu 24.04, 3.13
  from setup-python in the nightly jobs, 3.15 on macOS 15).
2026-11-29 16:32:05 -08:00
Dylan M. Taylor 8b0b808857 packaging(linux): support co-installable nightly packages (#9233)
Linux nightly packaging by @dylanmtaylor, with the per-app Nightly flavor commits stacked on his branch.

gate test shard 1/5 (and the Sonar scan that reads its coverage) fails on crates/ui-egui/src/doc_windows/tests.rs `a_document_made_current_in_presentation_mode_comes_to_the_front_after_it`, which main fails too (CI run 45581083304); this PR touches no ui-egui code.

Co-authored-by: Dylan M. Taylor <dylan@dylanmtaylor.com>
2026-11-25 06:01:37 -06:00
FredApps 808ebc5bac fix(ci): keep pdf-deps on the craft-libs pin, and classify tests for Sonar
xtask pdf-deps still expected craft-pdf and the patched hayro/krilla
backends at main's 9be9a637 revision after this branch pinned them to
a499742a. Point REV at that pin (still on craft-libs main). Classify
test files in sonar-project.properties the way craft-libs does, so the
quality gate measures the product. Give the EPS operation-budget test
the same 300s cap as the other budget tests; under instrumented coverage
it overran the old 120s cap, while the Ubuntu gate finished in time.
2026-11-16 11:31:29 +01:00
Dylan M. Taylor d65c762ab4 sonar: MD5 in PDF encryption is the format's, not a choice
Records why rust:S4790 (`crates/pdf/src/encrypt.rs`) stays, like wordcraft#6187 did for SHA-1 in ODT. 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 encryption uses. It's needed to read those files and to write the compatibility the user picks. The default, 256-bit AES (revision 6), hashes with SHA-2.
2026-11-10 23:23:39 +00:00
Dylan M. Taylor 0f7156169b ci: add sonar-project.properties to use CI-based analysis
Presence of this file marks the project ineligible for SonarCloud Automatic
Analysis, resolving the CI-vs-automatic-analysis conflict.
2026-10-21 15:56:13 -04:00