check-opencloud-security 1.32.0__tar.gz → 1.32.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (182) hide show
  1. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/CHANGELOG.md +179 -0
  2. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/PKG-INFO +3 -3
  3. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/README.md +2 -2
  4. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/adr/README.md +1 -0
  5. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/opencloud_local_scan/advisory_source.py +3 -3
  6. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/opencloud_local_scan/data/release_schedule.json +10 -2
  7. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/opencloud_local_scan/fetch.py +27 -0
  8. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/opencloud_local_scan/schedule_source.py +2 -2
  9. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/pyproject.toml +5 -1
  10. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/scripts/README.md +1 -0
  11. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/security/advisories/README.md +2 -2
  12. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/README.md +19 -1
  13. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/browser_support.py +44 -2
  14. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/conftest.py +11 -0
  15. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/fake_opencloud.py +9 -0
  16. check_opencloud_security-1.32.2/tests/sharding.py +95 -0
  17. check_opencloud_security-1.32.2/tests/test_browser_support.py +60 -0
  18. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_check_pull_request.py +127 -1
  19. check_opencloud_security-1.32.2/tests/test_check_tool_pins.py +144 -0
  20. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_claude_hooks.py +29 -0
  21. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_output_formats.py +1 -0
  22. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_reference_data_limits.py +39 -2
  23. check_opencloud_security-1.32.2/tests/test_release_flow.py +220 -0
  24. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_release_notes.py +74 -0
  25. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_security_advisories.py +58 -20
  26. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_service.py +43 -38
  27. check_opencloud_security-1.32.2/tests/test_sharding.py +96 -0
  28. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_workflow_hardening.py +104 -0
  29. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/.codex/README.md +0 -0
  30. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/.gitignore +0 -0
  31. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/LICENSE +0 -0
  32. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/ansible/README.md +0 -0
  33. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/authentik/README.md +0 -0
  34. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/check_opencloud_security.py +0 -0
  35. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/config/README.md +0 -0
  36. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/contrib/README.md +0 -0
  37. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/contrib/helm/check-opencloud-security/README.md +0 -0
  38. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/docker/README.md +0 -0
  39. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/docs/README.md +0 -0
  40. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/img/README.md +0 -0
  41. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/opencloud_local_scan/README.md +0 -0
  42. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/opencloud_local_scan/__init__.py +0 -0
  43. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/opencloud_local_scan/baseline.py +0 -0
  44. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/opencloud_local_scan/caa.py +0 -0
  45. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/opencloud_local_scan/changes.py +0 -0
  46. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/opencloud_local_scan/cli.py +0 -0
  47. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/opencloud_local_scan/completion.py +0 -0
  48. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/opencloud_local_scan/config.py +0 -0
  49. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/opencloud_local_scan/coverage.py +0 -0
  50. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/opencloud_local_scan/data/vulnerabilities.json +0 -0
  51. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/opencloud_local_scan/data_signing.py +0 -0
  52. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/opencloud_local_scan/dns.py +0 -0
  53. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/opencloud_local_scan/dnssec.py +0 -0
  54. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/opencloud_local_scan/factory.py +0 -0
  55. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/opencloud_local_scan/findings.py +0 -0
  56. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/opencloud_local_scan/fingerprint.py +0 -0
  57. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/opencloud_local_scan/fleet.py +0 -0
  58. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/opencloud_local_scan/hardening.py +0 -0
  59. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/opencloud_local_scan/metrics.py +0 -0
  60. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/opencloud_local_scan/monitoring.py +0 -0
  61. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/opencloud_local_scan/otlp.py +0 -0
  62. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/opencloud_local_scan/prometheus.py +0 -0
  63. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/opencloud_local_scan/provenance.py +0 -0
  64. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/opencloud_local_scan/refresh_data.py +0 -0
  65. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/opencloud_local_scan/rehearsal.py +0 -0
  66. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/opencloud_local_scan/releases.py +0 -0
  67. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/opencloud_local_scan/remediation.py +0 -0
  68. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/opencloud_local_scan/remediation_groups.py +0 -0
  69. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/opencloud_local_scan/scanner.py +0 -0
  70. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/opencloud_local_scan/secrets.py +0 -0
  71. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/opencloud_local_scan/selfupdate.py +0 -0
  72. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/opencloud_local_scan/service.py +0 -0
  73. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/opencloud_local_scan/snippets.py +0 -0
  74. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/opencloud_local_scan/tls.py +0 -0
  75. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/opencloud_local_scan/verification.py +0 -0
  76. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/opencloud_local_scan/versions.py +0 -0
  77. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/opencloud_local_scan/vulndb.py +0 -0
  78. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/opencloud_local_scan/waivers.py +0 -0
  79. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/opencloud_local_scan/wizard.py +0 -0
  80. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/packaging/README.md +0 -0
  81. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/packaging/tests/install-smoke.sh +0 -0
  82. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/secrets/README.md +0 -0
  83. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/security/dependencies/README.md +0 -0
  84. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/CLAUDE.md +0 -0
  85. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/__init__.py +0 -0
  86. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/golden/basic_auth.json +0 -0
  87. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/golden/default.json +0 -0
  88. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/golden/demo_users.json +0 -0
  89. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/golden/directory_listing.json +0 -0
  90. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/golden/outdated_release.json +0 -0
  91. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/golden/server_disclosed.json +0 -0
  92. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/golden/unprotected_endpoints.json +0 -0
  93. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/golden_corpus.py +0 -0
  94. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/integration/test_real_opencloud.py +0 -0
  95. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_address_parity.py +0 -0
  96. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_advisory_checks.py +0 -0
  97. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_advisory_headers.py +0 -0
  98. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_advisory_repository_source.py +0 -0
  99. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_baseline.py +0 -0
  100. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_caa.py +0 -0
  101. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_change_explanation.py +0 -0
  102. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_check_vulnerabilities.py +0 -0
  103. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_cli_explain.py +0 -0
  104. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_companions.py +0 -0
  105. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_completion.py +0 -0
  106. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_concurrency.py +0 -0
  107. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_config.py +0 -0
  108. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_contract_documents.py +0 -0
  109. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_contrib_assets.py +0 -0
  110. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_coverage.py +0 -0
  111. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_coverage_perfdata.py +0 -0
  112. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_coverage_regression.py +0 -0
  113. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_cross_origin.py +0 -0
  114. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_data_signing.py +0 -0
  115. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_dependency_policy.py +0 -0
  116. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_diff_command.py +0 -0
  117. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_distro_packaging.py +0 -0
  118. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_dns.py +0 -0
  119. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_dnssec.py +0 -0
  120. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_docker_wizard.py +0 -0
  121. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_docker_wizard_hardening.py +0 -0
  122. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_documentation_indexes.py +0 -0
  123. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_documentation_links.py +0 -0
  124. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_e2e_cli.py +0 -0
  125. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_env_config.py +0 -0
  126. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_eol_warning.py +0 -0
  127. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_explain.py +0 -0
  128. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_finding_deltas.py +0 -0
  129. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_fingerprint.py +0 -0
  130. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_fleet_command.py +0 -0
  131. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_forwarded_host.py +0 -0
  132. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_frontend_documentation.py +0 -0
  133. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_github_action.py +0 -0
  134. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_golden_corpus.py +0 -0
  135. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_hardening.py +0 -0
  136. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_helm_chart.py +0 -0
  137. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_homebrew_formula.py +0 -0
  138. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_local_scanner.py +0 -0
  139. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_monitoring_export.py +0 -0
  140. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_monitoring_parity.py +0 -0
  141. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_multi_host.py +0 -0
  142. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_mutation_testing.py +0 -0
  143. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_newly_measured.py +0 -0
  144. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_otlp.py +0 -0
  145. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_output_shape.py +0 -0
  146. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_perfdata.py +0 -0
  147. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_policy.py +0 -0
  148. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_policy_gate.py +0 -0
  149. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_prometheus.py +0 -0
  150. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_properties.py +0 -0
  151. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_rating_thresholds.py +0 -0
  152. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_redis_contract.py +0 -0
  153. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_refresh_data.py +0 -0
  154. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_release_dry_run.py +0 -0
  155. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_release_schedule.py +0 -0
  156. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_releases.py +0 -0
  157. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_remediation.py +0 -0
  158. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_remediation_groups.py +0 -0
  159. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_render_architecture_diagrams.py +0 -0
  160. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_scanner_robustness.py +0 -0
  161. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_selfupdate.py +0 -0
  162. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_settings_completeness.py +0 -0
  163. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_snippets.py +0 -0
  164. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_ssrf_pinning.py +0 -0
  165. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_threshold_profiles.py +0 -0
  166. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_tls.py +0 -0
  167. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_translation_quality.py +0 -0
  168. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_update_script.py +0 -0
  169. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_update_vulnerability_db.py +0 -0
  170. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_upgrade_path.py +0 -0
  171. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_upgrade_rehearsal.py +0 -0
  172. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_verify_export.py +0 -0
  173. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_verify_remediation.py +0 -0
  174. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_version.py +0 -0
  175. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_vulndb.py +0 -0
  176. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_waiver_expiry.py +0 -0
  177. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_waiver_review.py +0 -0
  178. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_waiver_warning.py +0 -0
  179. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_waivers.py +0 -0
  180. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_webhook.py +0 -0
  181. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_wizard.py +0 -0
  182. {check_opencloud_security-1.32.0 → check_opencloud_security-1.32.2}/tests/test_wizard_release.py +0 -0
@@ -12,6 +12,185 @@ entry to `RELEASE.md` and uses it as the body of the GitHub release.
12
12
 
13
13
  ## [Unreleased]
14
14
 
15
+ ## [1.32.2] - 2026-11-05
16
+
17
+ ### Changed
18
+
19
+ - **A failed browser test leaves a Playwright trace.** In CI a Firefox
20
+ run once timed out loading `/api`, a page the same run had just loaded
21
+ cleanly, and the log could not say which request hung. With
22
+ `PLAYWRIGHT_TRACE_DIR` set, the `page` fixture in
23
+ `tests/browser_support.py` records each test and keeps the trace only
24
+ when the test fails. `browser-tests.yml` sets it and uploads the traces as
25
+ `playwright-traces-<browser>` for seven days. Open one with
26
+ `uv run playwright show-trace`. Locally nothing is recorded unless the
27
+ variable is set; with it, the browser suite took 66 s instead of 64 s.
28
+ - **A version bump is the whole release pull request.** Releasing 1.32.1
29
+ took three extra commits and two red CI runs. Three changes remove that
30
+ (ADR 0080):
31
+ - An advisory record for an entry under `## [Unreleased]` now says
32
+ `changelog_version: unreleased` (and `fixed: unreleased`) instead of
33
+ guessing a number. `scripts/release_notes.py` writes the version in when
34
+ it renames the heading, the release commit carries the records, and the
35
+ release dry run checks them. Before, the record had to name the version
36
+ in `pyproject.toml`, which is the release already out until the bump, so
37
+ every security entry broke the check on the bump.
38
+ - `scripts/check_pull_request.py` refuses a version change that does not
39
+ bring the regenerated Releases page and search indexes with it, and names
40
+ the commands. A bot commit that regenerated them afterwards would run no
41
+ checks. The edit hook's prompt for a version change names them too.
42
+ - A pull request that changes only the version (the version lines in
43
+ `pyproject.toml` and `uv.lock`, and those regenerated files) counts as a
44
+ release and needs no changelog entry of its own.
45
+ - **The browser tests cache the Playwright browser build.** One 1.32.1 run
46
+ hung downloading WebKit until the job timed out. The download is now
47
+ cached, keyed on the locked Playwright version, and the install step has
48
+ its own 10-minute limit. The system libraries are still installed through
49
+ apt on every run.
50
+ - **A test takes the release through every step on a copy of the
51
+ repository.** `tests/test_release_flow.py` copies the tracked files, adds
52
+ an `[Unreleased]` security entry with its `unreleased` record, and bumps
53
+ the version. It runs the real generators and `check_pull_request.py`,
54
+ then does what `publish-pypi.yml` does: `release_notes.py`, both
55
+ generators again, the advisory check and the `--check` modes. It also
56
+ fails if the release rewrites a file that the workflow's release commit
57
+ does not stage. Each script already had its own tests; this one catches
58
+ the steps drifting apart.
59
+ - **Bandit is pinned, and `/preflight` scans what CI scans.** The workflow
60
+ runs `bandit@1.9.4` with `bandit-sarif-formatter==1.1.1` instead of
61
+ whatever is newest. The preflight skill used `--recursive .` on the
62
+ working tree, which also took in `.nox/` and `mutants/` (about 3.3 million
63
+ lines and hundreds of findings in third-party code). It now passes the
64
+ tracked Python files, which is what CI's checkout holds.
65
+ - **CI runs a pinned uv.** Every job logged "Could not determine uv version
66
+ … Falling back to latest", so a new uv release could change what
67
+ `uv sync --locked` does without a commit in this repository.
68
+ `pyproject.toml` now sets `required-version = ">=0.13.1"` under
69
+ `[tool.uv]`, and every `setup-uv` step takes the lowest match, so CI
70
+ installs exactly 0.13.1, the uv the Docker images copy in. It is a floor
71
+ and not an exact pin, so a newer local uv still runs. Nothing raises it
72
+ automatically; a test fails if a `setup-uv` step floats or a Docker image
73
+ falls below it.
74
+ - **A weekly report names the CI tool pins that fell behind.** Dependabot
75
+ updates actions, locked packages and Docker images. It does not update
76
+ the `uvx`/`npx` versions (ruff, zizmor, Bandit, Biome), the binaries
77
+ downloaded against a SHA-256 (shellcheck, hadolint, actionlint, nfpm),
78
+ mermaid-cli or uv's `required-version`. On its first run six of them were
79
+ behind. `scripts/check_tool_pins.py` finds them in the workflows and
80
+ compares each with its latest release, and `tool-pins.yml` keeps one issue
81
+ open while any is behind. It only reports: a new binary needs its SHA-256
82
+ checked by hand. A new `*_VERSION` variable without a known release source
83
+ fails the script, so a pin added later is watched from the start.
84
+ - **CI runs the test suite in slices.** The coverage run took 19 minutes
85
+ and each nox interpreter 15, almost all of it pytest on a single runner.
86
+ `pytest --shard INDEX/COUNT` (`tests/sharding.py`) runs one slice. A test's
87
+ slice is a stable SHA-256 of its node id, because the slowest test takes 7
88
+ of 507 seconds and no weights file would stay current. The coverage run
89
+ is now four jobs (`python 1/4` to `python 4/4`). A `python` job combines
90
+ their data and applies `fail_under` to the whole suite, after checking
91
+ that the slices ran every test exactly once. nox runs three slices per
92
+ interpreter. A failing slice reproduces locally with the same `--shard`.
93
+ The generated-file checks moved into their own `generated files` job.
94
+
95
+ ### Fixed
96
+
97
+ - **A browser test no longer fails because it moved on while a font was
98
+ loading.** A web font is fetched when text first needs it, which can be
99
+ after the load event. When a test reloaded in that moment, Firefox aborted
100
+ the download and logged `downloadable font: download failed …
101
+ status=2152398850` (`NS_BINDING_ABORTED`) as a console error, and the
102
+ page watch failed the test. The first CI trace showed this for
103
+ `test_garbage_in_storage_is_ignored`. The watch now ignores exactly that
104
+ status. A font that fails for any other reason is still an error, and
105
+ `tests/test_browser_support.py` checks both cases.
106
+ - **The browser tests cache their system packages too.** Today the
107
+ runners' Ubuntu mirror served packages at a few hundred kB/s, and
108
+ `playwright install-deps` timed out for WebKit (114 MB) and Firefox
109
+ (49 MB) on almost every run; only Chromium (21 MB) got through. The
110
+ downloaded `.deb` files are now cached per browser, Playwright version and
111
+ runner image, and saved right after the install, so a failing test does
112
+ not discard them. apt checks each cached package against the fresh index
113
+ and downloads only what changed. The install has 20 minutes, enough to
114
+ fill the cache once over a slow mirror, and the job limit rose from 20 to
115
+ 35 minutes.
116
+ - **The CI tool downloads retry a passing server error.** A `504` from
117
+ GitHub's release downloads failed the hadolint install on main. The same
118
+ single attempt fetched shellcheck, actionlint and nfpm, and nfpm is
119
+ installed inside the release in `publish-pypi.yml`. Every `curl` download
120
+ now retries up to five times (`--retry 5 --retry-delay 5`), and the digest
121
+ check after it still decides what is installed.
122
+ `tests/test_workflow_hardening.py` now refuses a download without
123
+ `--retry`, and a pin comment that names only a major tag.
124
+ - **The test suite no longer leaks HTTP error answers.** In
125
+ `tests/test_service.py`, each `HTTPError` a test caught kept its response
126
+ open until the garbage collector closed it. That close came after the
127
+ socket was gone and sometimes ended a full run with two
128
+ `PytestUnraisableExceptionWarning`s (`ValueError: I/O operation on closed
129
+ file`), reported in whatever test happened to be running. A helper now
130
+ reads the status and body and closes the answer. The fake OpenCloud also
131
+ stops printing a traceback when the scanner deliberately hangs up at its
132
+ response cap, and the webhook test in `tests/test_output_formats.py`
133
+ closes its listening socket.
134
+ - **Every pinned action names its exact release.** Several actions were
135
+ pinned to a commit hash but commented only with the major tag
136
+ (`actions/checkout # v7`, `actions/attest-build-provenance # v4`,
137
+ `actions/attest # v4`, `docker/login-action # v4`). zizmor, running
138
+ online in the workflow lint, compares that comment with where the tag
139
+ points now. When `docker/login-action` v4.8.0 moved `v4`, every pull
140
+ request failed on a file it never touched. The comments now name the tag
141
+ each hash is (`v7.0.1`, `v4.2.2`, `v4.2.2`, `v4.7.0`); the hashes are
142
+ unchanged.
143
+ - **A failed advisory or release-schedule refresh no longer leaks its
144
+ connection.** When the OSV feed, the GitHub advisory API or the lifecycle
145
+ page answered with an HTTP error status, the fetch wrapped the
146
+ `HTTPError` in its own error and never closed the response it holds. Each
147
+ failed daily refresh in the web service kept a socket open until the
148
+ garbage collector reached it. `opencloud_local_scan/fetch.py` now opens
149
+ all three through one helper, `open_document`, which closes an error
150
+ answer before passing it on. Its status and reason stay readable.
151
+ - **A deliberate hook refusal no longer also says the hook "could not run".**
152
+ The wrappers in `.claude/settings.json` printed that message on every exit
153
+ that was not 0, including the deliberate exit 2, so a decision read like a
154
+ broken hook. Only an unexpected exit code prints it now; both still refuse.
155
+ - **The release-notes preview in `AGENTS.md` and `CONTRIBUTING.md` reverts
156
+ with `git restore`.** The branch guard read the documented
157
+ `git checkout CHANGELOG.md RELEASE.md` as a switch to a branch called
158
+ `CHANGELOG.md` and refused it.
159
+
160
+ ### Documentation
161
+
162
+ - **The documented test suite runtime is accurate.** `CLAUDE.md`,
163
+ `.github/copilot-instructions.md` and the preflight skill and agent said
164
+ about 75 seconds. The suite takes about 8 minutes locally and about
165
+ 15 minutes per Python version in CI.
166
+
167
+ ## [1.32.1] - 2026-11-04
168
+
169
+ ### Security
170
+
171
+ - **The web container image no longer ships pyasn1 0.6.4.** sigstore, which
172
+ the `signing` extra installs in `docker/Dockerfile.web`, pulled in pyasn1
173
+ 0.6.4 (CVE-2026-119194 to -119197) through `uv.lock` since 1.31.1. sigstore
174
+ 4.5.1 no longer depends on pyasn1, so the lock no longer contains it. The
175
+ PyPI package never pinned pyasn1, and the plugin image does not install the
176
+ `signing` extra.
177
+
178
+ ### Changed
179
+
180
+ - **Dependabot updates every `github/codeql-action` step in one pull
181
+ request.** The `init`, `analyze` and `upload-sarif` steps must run the same
182
+ version; bumped one at a time, each pull request failed CodeQL until the
183
+ other two were merged too.
184
+
185
+ ### Documentation
186
+
187
+ - **`GUIDELINE.md` collects the rules behind this repository's agent setup.**
188
+ Fifty-one tool-agnostic best practices for repositories where AI coding
189
+ agents do much of the work: one authoritative rule file, hooks that enforce
190
+ the hard rules, skills for many-file changes, read-only checking agents,
191
+ generator `--check` modes, records for decisions, security fixes and
192
+ dependencies, and tests that keep the instruction files in agreement.
193
+
15
194
  ## [1.32.0] - 2026-10-19
16
195
 
17
196
  ### Added
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.5
2
2
  Name: check-opencloud-security
3
- Version: 1.32.0
3
+ Version: 1.32.2
4
4
  Summary: Check the security level of your OpenCloud instance with a built-in scanner - no API access required
5
5
  Project-URL: Homepage, https://github.com/sowoi/check-opencloud-security
6
6
  Project-URL: Live demo, https://scan.okxo.de
@@ -1481,11 +1481,11 @@ Where the tracks stand today, straight from the bundled schedule:
1481
1481
 
1482
1482
  | Track | Current release | Line | Line opened | Supported until |
1483
1483
  |:------|:----------------|:-----|:------------|:----------------|
1484
- | **Rolling** | `8.1.0` | `8.1` | 2026-10-05 | the next rolling release |
1484
+ | **Rolling** | `9.0.0` | `9.0` | 2026-10-27 | the next rolling release |
1485
1485
  | **Production** | `7.2.4` | `7.2` | 2026-06-25 | the next production release |
1486
1486
  | **LTS** | `4.0.8` | `4.0` | 2025-12-01 | 2027-12-01 |
1487
1487
 
1488
- Read from the [OpenCloud release lifecycle][lifecycle] on 2026-10-12.
1488
+ Read from the [OpenCloud release lifecycle][lifecycle] on 2026-11-02.
1489
1489
  <!-- release-schedule:end -->
1490
1490
 
1491
1491
  A line that is out of support is rated `F` and reported as `CRITICAL`:
@@ -773,11 +773,11 @@ Where the tracks stand today, straight from the bundled schedule:
773
773
 
774
774
  | Track | Current release | Line | Line opened | Supported until |
775
775
  |:------|:----------------|:-----|:------------|:----------------|
776
- | **Rolling** | `8.1.0` | `8.1` | 2026-10-05 | the next rolling release |
776
+ | **Rolling** | `9.0.0` | `9.0` | 2026-10-27 | the next rolling release |
777
777
  | **Production** | `7.2.4` | `7.2` | 2026-06-25 | the next production release |
778
778
  | **LTS** | `4.0.8` | `4.0` | 2025-12-01 | 2027-12-01 |
779
779
 
780
- Read from the [OpenCloud release lifecycle][lifecycle] on 2026-10-12.
780
+ Read from the [OpenCloud release lifecycle][lifecycle] on 2026-11-02.
781
781
  <!-- release-schedule:end -->
782
782
 
783
783
  A line that is out of support is rated `F` and reported as `CRITICAL`:
@@ -86,6 +86,7 @@ project. Read the accepted records that affect an area before changing it.
86
86
  | [0077](0077-decision-records-are-never-translated.md) | Decision records are never translated | Accepted |
87
87
  | [0078](0078-changelogs-and-release-notes-are-never-translated.md) | Changelogs and release notes are never translated | Accepted |
88
88
  | [0079](0079-a-finding-is-new-only-if-the-earlier-scan-could-have-reported-it.md) | A finding is new only if the earlier scan could have reported it | Accepted |
89
+ | [0080](0080-a-version-bump-is-the-whole-release-pull-request.md) | A version bump is the whole release pull request | Accepted |
89
90
 
90
91
  ## Writing a new record
91
92
 
@@ -35,7 +35,7 @@ from datetime import UTC, datetime
35
35
  from itertools import pairwise
36
36
  from typing import Any
37
37
 
38
- from .fetch import DocumentTooLarge, decode_capped
38
+ from .fetch import DocumentTooLarge, decode_capped, open_document
39
39
  from .versions import normalise_version, parse_version
40
40
  from .vulndb import Advisory, parse_document
41
41
  from .vulndb import _is_opencloud_package as is_opencloud_package
@@ -112,7 +112,7 @@ def fetch_records(
112
112
  },
113
113
  )
114
114
  try:
115
- with urllib.request.urlopen(request, timeout=timeout) as response: # nosec B310 - scheme validated above
115
+ with open_document(request, timeout) as response:
116
116
  document = json.loads(decode_capped(response))
117
117
  except OSError as exc: # URLError and friends are all OSError
118
118
  raise AdvisoryFetchError(f"Could not read {url}: {exc}") from exc
@@ -270,7 +270,7 @@ def fetch_repository_records(
270
270
  },
271
271
  )
272
272
  try:
273
- with urllib.request.urlopen(request, timeout=timeout) as response: # nosec B310 - scheme validated above
273
+ with open_document(request, timeout) as response:
274
274
  document = json.loads(decode_capped(response))
275
275
  except OSError as exc:
276
276
  raise AdvisoryFetchError(f"Could not read {url}: {exc}") from exc
@@ -1,13 +1,21 @@
1
1
  {
2
2
  "_comment": "OpenCloud release schedule, grouped by release line (MAJOR.MINOR). 'tracks' names the release types a line was published on. A rolling or production line is supported until the next line on the same track is released; an LTS line is supported for two years from its first release. Regenerate with scripts/update_release_schedule.py.",
3
3
  "source": "https://docs.opencloud.eu/docs/admin/resources/lifecycle/",
4
- "updated": "2026-10-12",
4
+ "updated": "2026-11-02",
5
5
  "lifetime_days": {
6
6
  "rolling": 21,
7
7
  "production": 183,
8
8
  "lts": 730
9
9
  },
10
10
  "lines": [
11
+ {
12
+ "line": "9.0",
13
+ "tracks": [
14
+ "rolling"
15
+ ],
16
+ "released": "2026-10-27",
17
+ "latest": "9.0.0"
18
+ },
11
19
  {
12
20
  "line": "8.1",
13
21
  "tracks": [
@@ -254,6 +262,6 @@
254
262
  ],
255
263
  "latest_release": {
256
264
  "production": "7.2.4",
257
- "rolling": "8.1.0"
265
+ "rolling": "9.0.0"
258
266
  }
259
267
  }
@@ -23,6 +23,12 @@ silent loss :mod:`webapp.schedule` exists to prevent.
23
23
 
24
24
  from __future__ import annotations
25
25
 
26
+ import urllib.error
27
+ import urllib.request
28
+ from collections.abc import Iterator
29
+ from contextlib import contextmanager
30
+ from http.client import HTTPResponse
31
+
26
32
  #: Both documents are tens of kilobytes. A megabyte is room for the lifecycle
27
33
  #: page to grow a decade of releases and for OSV to answer with every advisory
28
34
  #: ``MAX_ADVISORIES`` allows, and is still small enough that a hostile answer
@@ -56,3 +62,24 @@ def decode_capped(response: object, limit: int = MAX_DOCUMENT_BYTES) -> str:
56
62
  """The same, decoded with whatever charset the response declared."""
57
63
  charset = response.headers.get_content_charset() or "utf-8" # type: ignore[attr-defined]
58
64
  return read_capped(response, limit).decode(charset, errors="replace")
65
+
66
+
67
+ @contextmanager
68
+ def open_document(request: urllib.request.Request, timeout: float) -> Iterator[HTTPResponse]:
69
+ """
70
+ ``urlopen`` for a reference document, closing an error answer as well.
71
+
72
+ An HTTP error status arrives as an :class:`urllib.error.HTTPError` that
73
+ holds the open response. The callers turn it into their own error and
74
+ chain it, which keeps it - and its socket - alive until the garbage
75
+ collector gets round to it, in a web service that refreshes every day.
76
+ It is closed here before it travels on; its status and reason stay
77
+ readable. The caller validates the scheme.
78
+ """
79
+ try:
80
+ response = urllib.request.urlopen(request, timeout=timeout) # nosec B310 - the caller validates the scheme
81
+ except urllib.error.HTTPError as exc:
82
+ exc.close()
83
+ raise
84
+ with response:
85
+ yield response
@@ -26,7 +26,7 @@ from datetime import UTC, datetime
26
26
  from html.parser import HTMLParser
27
27
  from typing import Any
28
28
 
29
- from .fetch import DocumentTooLarge, decode_capped
29
+ from .fetch import DocumentTooLarge, decode_capped, open_document
30
30
  from .versions import LIFECYCLE_DOCUMENTATION_URL
31
31
 
32
32
  #: The page every release schedule in this project comes from.
@@ -142,7 +142,7 @@ def fetch(url: str, timeout: int = 30) -> str:
142
142
  if not url.startswith(("http://", "https://")):
143
143
  raise ExtractionError(f"Refusing to fetch a non-HTTP URL: {url}")
144
144
  request = urllib.request.Request(url, headers={"User-Agent": USER_AGENT})
145
- with urllib.request.urlopen(request, timeout=timeout) as response: # nosec B310 - scheme validated above
145
+ with open_document(request, timeout) as response:
146
146
  try:
147
147
  return decode_capped(response)
148
148
  except DocumentTooLarge as exc:
@@ -1,6 +1,6 @@
1
1
  [project]
2
2
  name = "check-opencloud-security"
3
- version = "1.32.0"
3
+ version = "1.32.2"
4
4
  description = "Check the security level of your OpenCloud instance with a built-in scanner - no API access required"
5
5
  authors = [{ name = "Massoud Ahmed" }]
6
6
  requires-python = ">=3.11"
@@ -64,6 +64,10 @@ Issues = "https://github.com/sowoi/check-opencloud-security/issues"
64
64
 
65
65
  [tool.uv]
66
66
  package = true
67
+ # A floor, so a newer local uv still runs. Every setup-uv step in CI sets
68
+ # `resolution-strategy: lowest` and so installs exactly this version - the one
69
+ # the docker/ images copy in. Raise it on purpose; nothing bumps it for you.
70
+ required-version = ">=0.13.1"
67
71
 
68
72
  [tool.hatch.build.targets.wheel]
69
73
  only-include = [
@@ -14,6 +14,7 @@ published material. Run them from the repository root.
14
14
  | `check_dependencies.py` | Refuses a Python dependency (in `pyproject.toml` or a workflow's `uvx`) without an approved record in `security/dependencies/`, and a grandfather list that grew (`--base`). `--list` shows every dependency's standing. CI runs it; see [ADR 0060](../adr/0060-a-new-dependency-is-justified-tested-and-reviewed-first.md). |
15
15
  | `check_translations.py` | Compares the four frontend catalogues and the translated guides against English. Structural differences (keys, placeholders, markup, link targets, dead links) are errors; prose heuristics (register, untranslated, glossary) are warnings. `--check` in CI, `--strict` to fail on warnings too. See [`TRANSLATING.md`](../TRANSLATING.md). |
16
16
  | `check_documentation_links.py` | Checks documented OpenCloud links after merges and on a schedule. |
17
+ | `check_tool_pins.py` | Compares the tool pins Dependabot does not update (`uvx`/`npx` versions, the downloaded binaries named by a `*_VERSION` variable, uv's `required-version`) with each tool's latest release. Exits 1 when one is behind; `--list` works offline. [`tool-pins.yml`](../.github/workflows/tool-pins.yml) runs it weekly and keeps one issue up to date. It only reports, because a binary pin needs a new SHA-256 checked by hand. |
17
18
  | `release_notes.py` | Prepares release notes from the Unreleased changelog section. It rewrites release files, so use it on a scratch copy when previewing. |
18
19
  | `security_advisories.py` | Checks that every `### Security` changelog entry has a decision recorded in `security/advisories/`, and drafts or publishes the GitHub advisories. Use `--check` in CI. |
19
20
  | `render_architecture_diagrams.py` | Points every `` ```mermaid `` fence in `ARCHITECTURE.md` at a rendered PNG under `img/`. Use `--check` in CI; rendering itself needs `mmdc` from `@mermaid-js/mermaid-cli`, run separately - see [`render-architecture-diagram.yml`](../.github/workflows/render-architecture-diagram.yml). |
@@ -50,7 +50,7 @@ git ls-tree -r --name-only v1.13.0 | grep catalogue # absent = never shipped
50
50
  | `slug` | Matches the filename. `--publish` addresses a record by it. |
51
51
  | `state` | `published`, `draft`, or `declined`. |
52
52
  | `ghsa` | The GitHub advisory id, written back by `--sync`. |
53
- | `changelog_version` | The release the entry appears under. |
53
+ | `changelog_version` | The release the entry appears under, or `unreleased` while it is under `## [Unreleased]` - the release writes the number in (ADR 0080). |
54
54
  | `changelog_entry` | The bullet's opening phrase, so the check can find it. |
55
55
  | `shipped` | Did a released version carry it. `false` forbids an advisory. |
56
56
  | `verified` | The command that established `shipped`, and what it showed. |
@@ -59,7 +59,7 @@ git ls-tree -r --name-only v1.13.0 | grep catalogue # absent = never shipped
59
59
  | `severity` | `low`, `medium`, `high`, `critical`. GitHub does not accept "moderate". |
60
60
  | `cwe_ids` | e.g. `CWE-918`. |
61
61
  | `package` | `plugin` or `web`. |
62
- | `introduced` / `fixed` | Becomes `>= introduced, < fixed`. |
62
+ | `introduced` / `fixed` | Becomes `>= introduced, < fixed`. `fixed` is `unreleased` while the fix is; `--sync` drafts nothing until the release names it. |
63
63
  | `description` | The advisory body: Impact, Patches, Workarounds. |
64
64
 
65
65
  ### `package` is not cosmetic
@@ -13,6 +13,7 @@ uv run pytest tests/test_waivers.py # one file
13
13
  uv run pytest tests/test_waivers.py::test_name # one test
14
14
  uv run pytest -k "waiver and not rating" # by expression
15
15
  uv run nox # Python 3.11-3.15
16
+ uv run pytest --shard 2/4 # one of four slices, as a CI job runs it
16
17
  ```
17
18
 
18
19
  `pytest` is only available under `uv run`. The web application tests need the
@@ -20,6 +21,14 @@ uv run nox # Python 3.11-3.15
20
21
  is not installed. They use the in-process `memory://` Redis, so no Redis server
21
22
  is needed.
22
23
 
24
+ CI runs the suite in slices side by side: four for the coverage run, three per
25
+ interpreter for nox. A test's slice is a stable hash of its node id
26
+ ([`sharding.py`](sharding.py)), so a new test needs no assignment. A failure CI
27
+ reports in `python 2/4` reproduces locally with `--shard 2/4`. The coverage
28
+ job checks that the slices together ran every test exactly once. A node id
29
+ that is not the same in every process (positional ids over a `set`, say) fails
30
+ that check.
31
+
23
32
  ## Conventions
24
33
 
25
34
  - Test names are sentences that describe the behaviour they protect, and each
@@ -38,6 +47,7 @@ is needed.
38
47
  | [`fake_opencloud.py`](fake_opencloud.py) | A real HTTP server that plays an OpenCloud instance, driven by an `InstanceBehaviour` dataclass. |
39
48
  | [`browser_support.py`](browser_support.py) | Browser test plumbing: the web app, an in-process worker and fake targets served from a thread; WebKit or Firefox behind a dead proxy so nothing leaves loopback; a watch for console errors, CSP violations and stray requests (ADR 0061). |
40
49
  | [`golden_corpus.py`](golden_corpus.py) | The golden corpus's instances, its pinned release schedule and advisory database, and what a verdict remembers. Regenerated by `scripts/update_golden_corpus.py`. |
50
+ | [`sharding.py`](sharding.py) | `--shard INDEX/COUNT` and `--shard-list FILE`: one slice of the suite for one CI job, and the check that the slices add up to the whole. |
41
51
  | [`webapp_support.py`](webapp_support.py) | Web test plumbing: an isolated in-process Redis per test, an offline resolver, and skipping when the web extra is missing. |
42
52
  | [`integration/test_real_opencloud.py`](integration/test_real_opencloud.py) | Opt-in (`-m integration`): scans a real OpenCloud container. Needs a container runtime. |
43
53
 
@@ -214,9 +224,14 @@ locally; `.github/workflows/browser-tests.yml` runs every
214
224
  `test_webapp_browser_*.py` in all three with `PLAYWRIGHT_TESTS_REQUIRED=1`.
215
225
  `PLAYWRIGHT_BROWSER=firefox` or `chromium` picks another engine; Chromium is
216
226
  Google's build, allowed behind the dead proxy (ADR 0068).
227
+ `PLAYWRIGHT_TRACE_DIR=<dir>` records a trace for each test that fails while
228
+ using the `page` fixture. CI sets it and uploads the traces as the
229
+ `playwright-traces-<browser>` artifact. Open one with
230
+ `uv run playwright show-trace <file>`.
217
231
 
218
232
  | File | Purpose |
219
233
  |---|---|
234
+ | [`test_browser_support.py`](test_browser_support.py) | The browser-test plumbing without a browser: a font download a navigation cut short is not a page error, any other console error still is, and a failed test's trace is named after it. |
220
235
  | [`test_webapp_browser_ux.py`](test_webapp_browser_ux.py) | Every public page runs clean under its CSP, fits a phone, and hides what is marked hidden; navigation, theme, language, validation, waiver search, site search and back-to-top behave; below-the-fold blocks reveal on scroll and after a jump, and hide nothing without JavaScript; an unknown address gets the 404 page. |
221
236
  | [`test_webapp_browser_e2e.py`](test_webapp_browser_e2e.py) | A visitor's journeys: form to report for three instances, the waiting page's hand-over, severity filters, every export, waivers, no JavaScript, keyboard only, a German report, an unknown uuid. |
222
237
  | [`test_webapp_browser_enhancements.py`](test_webapp_browser_enhancements.py) | The script enhancements no other browser test drives: remembered form settings, the configuration-fragment picker, share buttons, the rescan countdown and the expiry warning. |
@@ -249,14 +264,17 @@ Google's build, allowed behind the dead proxy (ADR 0068).
249
264
  | File | Purpose |
250
265
  |---|---|
251
266
  | [`test_check_pull_request.py`](test_check_pull_request.py) | `scripts/check_pull_request.py`: a changelog entry is present, and version bumps only move forward. |
267
+ | [`test_check_tool_pins.py`](test_check_tool_pins.py) | `scripts/check_tool_pins.py`: every CI tool pin Dependabot cannot see is found, an unmapped `*_VERSION` is refused, and versions compare as numbers. |
252
268
  | [`test_claude_hooks.py`](test_claude_hooks.py) | The Claude Code hooks in `.claude/hooks/` keep refusing merges, force-pushes, hand edits to generated files, and real hosts, scan output or personal data in commits, and refuse when they cannot run. |
253
269
  | [`test_mutation_testing.py`](test_mutation_testing.py) | The manual mutation-testing setup stays consistent: mutmut only in its own group and with a record, its test files in-process, `mutants/` ignored, and `/mutation-test` running in the read-only agent. |
254
270
  | [`test_dependency_policy.py`](test_dependency_policy.py) | `scripts/check_dependencies.py`: every Python dependency has an approved, tested and reviewed record, or predates the policy, and the grandfather list never grows. |
255
271
  | [`test_release_notes.py`](test_release_notes.py) | `scripts/release_notes.py` turns `## [Unreleased]` into the release section. |
272
+ | [`test_release_flow.py`](test_release_flow.py) | A release end to end on a copy of the tracked files: the bump passes `check_pull_request.py`, the release workflow's steps leave every check green, and its commit stages everything the release rewrote. |
256
273
  | [`test_release_dry_run.py`](test_release_dry_run.py) | The release rehearsal matches the release, and publishing to PyPI happens last. |
274
+ | [`test_sharding.py`](test_sharding.py) | `--shard` puts every test in exactly one slice, independent of the hash seed, and the slice check reports a lost, doubled or foreign test. |
257
275
  | [`test_security_advisories.py`](test_security_advisories.py) | Every `### Security` changelog entry has a decided record in `security/advisories/`. |
258
276
  | [`test_update_script.py`](test_update_script.py) | `scripts/update_release_schedule.py` and the generated README schedule. |
259
- | [`test_workflow_hardening.py`](test_workflow_hardening.py) | GitHub workflows use least-privilege tokens and pinned action references. |
277
+ | [`test_workflow_hardening.py`](test_workflow_hardening.py) | GitHub workflows use least-privilege tokens, pinned action references and the pinned uv floor. |
260
278
  | [`test_documentation_indexes.py`](test_documentation_indexes.py) | The hand-maintained indexes (README contents, `docs/README.md`, the documentation manifest, this page) match what they index. |
261
279
  | [`test_documentation_links.py`](test_documentation_links.py) | Which documented OpenCloud links the post-merge check verifies. |
262
280
  | [`test_render_architecture_diagrams.py`](test_render_architecture_diagrams.py) | Each Mermaid diagram in `ARCHITECTURE.md` has a matching PNG. |
@@ -25,10 +25,12 @@ from __future__ import annotations
25
25
 
26
26
  import asyncio
27
27
  import os
28
+ import re
28
29
  import threading
29
30
  from collections.abc import Iterator
30
31
  from contextlib import contextmanager
31
32
  from dataclasses import dataclass, field
33
+ from pathlib import Path
32
34
  from typing import Any
33
35
 
34
36
  import pytest
@@ -55,6 +57,12 @@ from webapp.settings import WebSettings
55
57
 
56
58
  BROWSERS = ("webkit", "firefox", "chromium")
57
59
  BROWSER = os.environ.get("PLAYWRIGHT_BROWSER", "webkit")
60
+
61
+ #: Where a failed test's Playwright trace goes. Unset - the default, and every
62
+ #: local run - records nothing. The CI job sets it and uploads the directory
63
+ #: when a test fails, so a page that hung on the runner can be replayed with
64
+ #: `playwright show-trace` instead of guessed at.
65
+ TRACE_DIR = os.environ.get("PLAYWRIGHT_TRACE_DIR", "")
58
66
  MEMORY_URL = "memory://browser-tests"
59
67
  # Nothing listens on the discard port; only loopback bypasses the proxy.
60
68
  DEAD_PROXY = {"server": "http://127.0.0.1:9", "bypass": "127.0.0.1,localhost,[::1]"}
@@ -178,6 +186,23 @@ document.addEventListener('securitypolicyviolation', (event) => {
178
186
  """
179
187
 
180
188
 
189
+ #: NS_BINDING_ABORTED, as Firefox prints it in a failed font download.
190
+ _ABORTED = "status=2152398850"
191
+
192
+
193
+ def aborted_font_download(text: str) -> bool:
194
+ """
195
+ Firefox reporting a font download that a navigation cut short.
196
+
197
+ A web font is fetched when text first needs it, which can be after the
198
+ load event. A test that reloads or moves on in that moment aborts the
199
+ download, and Firefox logs it as an error. It is the test leaving, not
200
+ the page failing - a font that does not load at all still fails with
201
+ another status and is still reported.
202
+ """
203
+ return "downloadable font: download failed" in text and _ABORTED in text
204
+
205
+
181
206
  @dataclass
182
207
  class PageWatch:
183
208
  """What a page said while a test used it: console errors, crashes, CSP violations, stray requests."""
@@ -194,7 +219,7 @@ class PageWatch:
194
219
  page.on("request", self._request)
195
220
 
196
221
  def _console(self, message: Any) -> None:
197
- if message.type == "error":
222
+ if message.type == "error" and not aborted_font_download(message.text):
198
223
  self.console_errors.append(message.text)
199
224
 
200
225
  def _request(self, request: Any) -> None:
@@ -284,11 +309,28 @@ def watch_fixture() -> PageWatch:
284
309
  return PageWatch()
285
310
 
286
311
 
312
+ def trace_path(directory: str, nodeid: str) -> Path:
313
+ """One file per test, named after it, safe on any file system."""
314
+ return Path(directory) / (re.sub(r"[^\w.-]+", "_", nodeid).strip("_") + ".zip")
315
+
316
+
287
317
  @pytest.fixture(name="page")
288
- def page_fixture(browser: Any, watch: PageWatch) -> Iterator[Any]:
318
+ def page_fixture(browser: Any, watch: PageWatch, request: pytest.FixtureRequest) -> Iterator[Any]:
289
319
  """A desktop page whose console, errors and requests are watched."""
290
320
  page = new_page(browser, watch)
321
+ # The call phase's report is logged before teardown runs, so a failure of
322
+ # this test has already been counted when the trace is stopped below.
323
+ failures_before = request.session.testsfailed
324
+ if TRACE_DIR:
325
+ page.context.tracing.start(screenshots=True, snapshots=True)
291
326
  yield page
327
+ if TRACE_DIR:
328
+ if request.session.testsfailed > failures_before:
329
+ path = trace_path(TRACE_DIR, request.node.nodeid)
330
+ path.parent.mkdir(parents=True, exist_ok=True)
331
+ page.context.tracing.stop(path=str(path))
332
+ else:
333
+ page.context.tracing.stop()
292
334
  page.context.close()
293
335
 
294
336
 
@@ -5,10 +5,21 @@ import pytest
5
5
 
6
6
  from opencloud_local_scan import config as config_module
7
7
  from opencloud_local_scan import wizard as wizard_module
8
+ from tests import sharding
8
9
 
9
10
  REPO_ROOT = pathlib.Path(__file__).resolve().parent.parent
10
11
 
11
12
 
13
+ def pytest_addoption(parser):
14
+ sharding.addoption(parser)
15
+
16
+
17
+ # Last, so the slice is cut from the items every other hook already settled on.
18
+ @pytest.hookimpl(trylast=True)
19
+ def pytest_collection_modifyitems(config, items):
20
+ sharding.select(config, items)
21
+
22
+
12
23
  def coverage_environment() -> dict[str, str]:
13
24
  """
14
25
  The variables a subprocess needs to join this run's coverage measurement.
@@ -20,6 +20,7 @@ from __future__ import annotations
20
20
  import base64
21
21
  import json
22
22
  import socket
23
+ import sys
23
24
  import threading
24
25
  from dataclasses import dataclass, field
25
26
  from http.server import BaseHTTPRequestHandler, ThreadingHTTPServer
@@ -554,6 +555,14 @@ class _Server(ThreadingHTTPServer):
554
555
  # making a test of identical findings depend on TCP retransmission timing.
555
556
  request_queue_size = 64
556
557
 
558
+ def handle_error(self, request: Any, client_address: Any) -> None:
559
+ # A scanner that stops reading at its response cap hangs up mid-answer
560
+ # on purpose; the traceback socketserver prints for that is noise in
561
+ # the test log, not a failure. Anything else is still reported.
562
+ if isinstance(sys.exc_info()[1], (BrokenPipeError, ConnectionResetError)):
563
+ return
564
+ super().handle_error(request, client_address)
565
+
557
566
 
558
567
  class _IPv6Server(_Server):
559
568
  address_family = socket.AF_INET6