RepoPulse: update backend/app and dependencies (+3 areas)

Public changes compared with the previous published export:
26 files changed.

Affected areas:
- backend/app: 11 files
- dependencies: 5 files
- deployment and CI: 3 files
- documentation: 2 files
- tests: 5 files

Changed files:
- Updated: "Dockerfile.unraid"
- Updated: "README.md"
- Updated: "backend/Dockerfile"
- Updated: "backend/app/acquisition.py"
- Updated: "backend/app/architecture.py"
- Updated: "backend/app/git_analysis.py"
- Updated: "backend/app/gitea.py"
- Updated: "backend/app/jobs.py"
- Updated: "backend/app/main.py"
- Added: "backend/app/processes.py"
- Updated: "backend/app/rules.py"
- Updated: "backend/app/scanner.py"
- Updated: "backend/app/signals.py"
- Updated: "backend/app/store.py"
- Updated: "backend/pyproject.toml"
- Added: "backend/tests/test_api_responsiveness.py"
- Added: "backend/tests/test_processes.py"
- Updated: "backend/tests/test_scanner.py"
- Updated: "backend/tests/test_signals_v11.py"
- Updated: "backend/tests/test_store.py"
- Updated: "docker-compose.yml"
- Updated: "docs/ARCHITECTURE.md"
- Updated: "frontend/package-lock.json"
- Updated: "frontend/package.json"
- Updated: "package-lock.json"
- Updated: "package.json"

Export provenance/manifests refreshed; excluded from the change summary.

Publish curated RepoPulse source from a251f826238908b156485299061da76482780ed2
This commit is contained in:
Public Source Publisher committed 2026-11-17 21:10:30 +00:00
1 parent 23a4a721f1
commit 61ae49f9d0
28 files changed
+1083 -408

No files matched your search

+34 -9
View File
@@ -5,6 +5,7 @@ import re
import tomllib
import xml.etree.ElementTree as ET
from collections import defaultdict
from collections.abc import Iterable
from pathlib import Path
from .models import DependencySignals, Finding, Severity, TestSignals
@@ -32,6 +33,24 @@ COVERAGE_NAMES = {
COVERAGE_NAMES_CASEFOLD = {item.casefold() for item in COVERAGE_NAMES}
CI_WORKFLOW_PREFIXES = (".github/workflows/", ".gitea/workflows/")
CI_WORKFLOW_NAMES = {".gitlab-ci.yml", "jenkinsfile", "azure-pipelines.yml"}
SIGNAL_TEXT_NAMES = {"package.json", "pyproject.toml"}
def is_ci_workflow_path(relative: str) -> bool:
normalized = relative.replace("\\", "/")
return normalized.lower().startswith(CI_WORKFLOW_PREFIXES) or (
Path(normalized).name.casefold() in CI_WORKFLOW_NAMES
)
def is_signal_text_path(relative: str) -> bool:
"""Return True when detect_test_signals needs this file's text content."""
return is_ci_workflow_path(relative) or Path(relative).name.casefold() in SIGNAL_TEXT_NAMES
def _python_dependency_name(declaration: str) -> str:
return re.split(r"[<>=!~ @;\[]", declaration, maxsplit=1)[0].strip()
@@ -69,7 +88,14 @@ def detect_test_signals(
source_files: int,
test_files: int,
text_by_path: dict[str, str],
readable_paths: Iterable[str] | None = None,
) -> TestSignals:
"""Derive test/CI signals.
``text_by_path`` only needs the texts accepted by :func:`is_signal_text_path`;
``readable_paths`` lists every successfully read text file (defaults to the
``text_by_path`` keys) so coverage evidence does not require retaining text.
"""
frameworks: set[str] = set()
coverage: list[str] = []
ci: list[str] = []
@@ -85,11 +111,7 @@ def detect_test_signals(
lower = normalized.lower()
if name_lower in COVERAGE_NAMES_CASEFOLD or "/coverage/" in f"/{lower}":
coverage.append(normalized)
if lower.startswith((".github/workflows/", ".gitea/workflows/")) or name_lower in {
".gitlab-ci.yml",
"jenkinsfile",
"azure-pipelines.yml",
}:
if is_ci_workflow_path(normalized):
ci.append(normalized)
if (name_lower.startswith("test_") or "/tests/" in f"/{lower}") and name_lower.endswith(".py"):
@@ -103,11 +125,16 @@ def detect_test_signals(
if name_lower.endswith(("tests.cs", "test.cs")):
frameworks.add(".NET test")
ci_paths = set(ci)
for path in text_by_path if readable_paths is None else readable_paths:
if Path(path).name.casefold() in COVERAGE_NAMES_CASEFOLD:
coverage_evidence.append(path.replace("\\", "/"))
for path, text in text_by_path.items():
name = Path(path).name
normalized = path.replace("\\", "/")
lowered_text = text.casefold()
if normalized in ci:
if normalized in ci_paths:
lowered_text = text.casefold()
validates = any(
token in lowered_text
for token in ("pytest", "vitest", "jest", "npm test", "pnpm test", "go test", "dotnet test", "ruff", "eslint", "typecheck", "py_compile")
@@ -125,8 +152,6 @@ def detect_test_signals(
ci_deploy_only.append(normalized)
if any(token in lowered_text for token in ("--cov", "coverage", "lcov", "codecov")):
coverage_evidence.append(normalized)
if name.casefold() in COVERAGE_NAMES_CASEFOLD:
coverage_evidence.append(normalized)
if name.casefold() == "package.json":
try:
data = json.loads(text)