fix(dashboard-testing): use a complete private output stream for pytest

This commit is contained in:
2026-10-11 01:27:28 +03:00
parent 1bc68277e1
commit 0da33919d6
4 changed files with 45 additions and 17 deletions

View File

@@ -104,17 +104,6 @@ def read_connection(path: Path):
# #endregion Tooling.VerifyDashboardTestingCurrent.Connection
class PrivateOutput:
"""Discard uncategorized process output; publish structured reports instead."""
encoding = 'utf-8'
def write(self, value):
return len(value)
def flush(self):
return None
@contextmanager
def private_output():
"""Drop both Python and native-driver console output; structured evidence remains."""
@@ -123,7 +112,7 @@ def private_output():
with open(os.devnull, 'w') as sink:
os.dup2(sink.fileno(), 1)
os.dup2(sink.fileno(), 2)
with redirect_stdout(PrivateOutput()), redirect_stderr(PrivateOutput()):
with redirect_stdout(sink), redirect_stderr(sink):
yield
finally:
for fd, original in zip((1, 2), saved, strict=True):

View File

@@ -613,4 +613,43 @@ Belief update: наблюдаемая граница исполнения объ
Функциональный freeze ещё ожидает завершения API-fixture ports; миграции,
итоговый suite и пересев лаборатории здесь не запускались.
### Итоговый1bc: реальные migration paths и отказ launcher до collection
На frozen `1bc68277e146cfe83d41b74b9f8c33e23f907c5a` Verify выполнил
пустая PostgreSQL→`0039_baseline_catalog_postgresql` и линейная0038→0039.
Прочитан `artifacts/stage0/pg-catalog-verify-20261010/`
`final-1bc68277e146cfe83d41b74b9f8c33e23f907c5a-attempt4/migration-receipt.json`,
SHA256 `8afedd5beae231df7d93b43a9b9b8fe272de9c4c2ee006a803e5d68ee707ba21`.
Оба пути имеют совпадающие migration-owned signatures; чужая DDL линейного пути
имеет одинаковый before/after digest. Application rows не экспортировались,
исходная БД не изменялась. Receipt явно сохраняет диагностированный restore
projection PostgreSQL partial-index expression: исходный hash mismatch не стёрт,
SQL normalization не применялась. Успешный empty upgrade и экспорт не повторялись.
Это proof изолированных migration paths, не лабораторного reset или runtime suite.
Единственный actual launcher suite завершился exit3 ДО collection:0nodes/outcomes{}.
Прочитан `attempt4/suite/summary.json`, SHA256
`24d1e567aa6012f8f684002cbc181739af44eb08fd3e5967c312c6bce522384d`.
Сохранённый Molecular `suite/molecular.jsonl`, SHA256
`18f4d7cbbb50d0363445157b41dffef770d5397d57452238d076db1b453600b8`,
trace `83fa1eee319242938a1672295b431555`, содержит `FINAL_INTERNAL_ERROR`,
stage=internal/failure_type=AttributeError и private_retained=true.
Verify прочитал исходную private cause: установленный pytest TerminalReporter
вызывает file.isatty(), которого не было у ad hoc PrivateOutput. Отказ harness
не классифицируется как отказ dashboard_testing и не является выполнением тестов.
Исправление launcher использует уже открытый os.devnull TextIOWrapper для
redirect_stdout/stderr. Verify выполнил actual installed TerminalReporter
configure guard без pytest.main/collection/БД и проверил Python/binary/native-FD
privacy; отдельный Molecular FileHandler продолжает писать structured evidence.
Default Ruff/compile/diff checks этого узкого изменения прошли.
Данный launcher/docs-only commit сохраняет точные trees1bc:
backend/alembic `b6df09f53d3b275a4b4904fedbb7de6f3d8d8fb8`,
backend/src `9fc01746a92e9b31394c7544a3eb8607406fa419`,
backend/tests `5192335f3334e18353bd6596534d37d653329476`.
Это основание сохранить уже полученное migration proof без повторения upgrade;
новый suite требует отдельного root dispatch. Счётчики640=318R/322pendingB/A0
и originalN120 не меняются; USER approval NONE. Лаборатория, HTTP/browser,
публикация и Stage1 controlled mutation этим исправлением не выполнялись.
## @} Stage2.ChartTypeStabilizationJournal20261010

View File

@@ -29,13 +29,13 @@
## Current status
Пропусков открыто: 120 (из 275)
а[original275]=0; б[original275]=120; source-restored=155. [Все640 ключей](2026-10-10-deleted-test-accounting.md#final-accounting-948019bc): а=0, source-restored=318; [единый б-список322](2026-10-10-deleted-test-accounting.md#one-combined-pending-withdrawal-list) ждёт USER approval NONE. Final948 collection-only:4112nodes; PG/HTTP/browser acceptance pending.
а[original275]=0; б[original275]=120; source-restored=155. [Все640 ключей](2026-10-10-deleted-test-accounting.md#final-accounting-948019bc): а=0, source-restored=318; [единый б-список322](2026-10-10-deleted-test-accounting.md#one-combined-pending-withdrawal-list) ждёт USER approval NONE. Final948 collection-only:4112nodes; два изолированных PG migration paths PASS; suite остановлен до collection, HTTP/browser acceptance pending.
- Runtime-каталог перенесён в PostgreSQL; файловый слой удалён. Публикация связывает точный parent/marker/render, без обещания атомарного Git CAS. Master не изменён; линейные0038/0039 находятся в feature-ветке. Оба окончательных upgrade ещё не выполнены.
- Runtime-каталог перенесён в PostgreSQL; файловый слой удалён. Публикация связывает точный parent/marker/render, без обещания атомарного Git CAS. Master не изменён. На1bc выполнены пустая PostgreSQL→0039 и линейная0038→0039; migration-owned signatures совпали, чужая DDL линейного пути сохранена. Лабораторные18103/18104 ещё не обновлены.
- Official filter_state измерен: Clear без Apply сохраняет состояние, Apply меняет его. Chart8 закрытый контекст/4×2 и защищённые source hashes восстановлены. Единый Force refresh проведён через четыре native owners (`c726722f`, `e77d3ff1`); live-подтверждение итогового кода впереди.
- D17 P0: общий stable scope, явный actor и независимый completed actual locator реализованы. PG guards с fixture PNG не доказывают browser capture. После сброса лаборатории нужны fresh expected capture→review→ordinary approval и независимый actual capture через текущий API с явным actor; безопасные отрицательные locator/scope refs проверяются без изменения Superset metadata или финансового дашборда.
- D16 ranking/review, append admission, native immutability и сохранение verified request/response refs восстановлены. Поимённая source/assertion сверка завершена на948019bc; persisted consume и Class07 остаются authored PG assertions. Реальный PG/стенд ещё впереди; source assertions не заменяют наблюдения runtime.
- Итоговые dashboard_testing/API/Ruff, два migration paths, сброс лаборатории и Stage1/API-приёмка ещё впереди. Старые stage1-go ссылки исторические. Один итоговый storage/migration прогон связывается с commit SHA, без копий исходников.
- D16 ranking/review, append admission, native immutability и сохранение verified request/response refs восстановлены. Поимённая source/assertion сверка завершена на948019bc; persisted consume и Class07 остаются authored PG assertions. Migration proof не заменяет их runtime execution.
- Единственный запущенный итоговый service/API suite на1bc завершился exit3 до collection (0nodes): launcher PrivateOutput не имел isatty. Исправлен только вывод launcher через существующий TextIOWrapper; actual TerminalReporter configure guard прошёл без collection/БД. Runtime/migration/test trees неизменны, повтор миграций не требуется. Новый suite ждёт root authorization; reset и Stage1/API-приёмка не выполнялись.
Подробная прежняя хроника — [журнал](2026-10-10-chart-type-stabilization-journal.md).
Измерения native controls/силы cache refresh — `artifacts/stage0/reseed-20261010/`; промежуточная

View File

@@ -2674,7 +2674,7 @@ Machine-readable supplemental47 manifest below is separate from the unchanged or
### One combined pending withdrawal list
The322 pending withdrawals (199 historical383 keys +41 supplemental91 keys +43 newly removed final48 keys +39 same-name117 changed-assertion keys) constitute **one combined user-review list**, with one canonical historical file/qualified-function key and one reason per record. All scopes are disjoint; mixed rows occur once with their preserved live assertion and withdrawn premise/output recorded separately. Initial34 includes actual Git-reader and prefix-converter withdrawals as well as file mechanics; those non-file behaviors are not relabelled file mechanics. No per-row root decision is requested or treated as approval. Current assertion references describe preserved live properties or explicitly opposite safety contracts, never an equivalent transfer of withdrawn positives. USER approval NONE; the concrete list is ready for one combined review after final reference validation.
The322 pending withdrawals (199 historical383 keys +41 supplemental91 keys +43 newly removed final48 keys +39 same-name118 changed-assertion keys) constitute **one combined user-review list**, with one canonical historical file/qualified-function key and one reason per record. All scopes are disjoint; mixed rows occur once with their preserved live assertion and withdrawn premise/output recorded separately. Initial34 includes actual Git-reader and prefix-converter withdrawals as well as file mechanics; those non-file behaviors are not relabelled file mechanics. No per-row root decision is requested or treated as approval. Current assertion references describe preserved live properties or explicitly opposite safety contracts, never an equivalent transfer of withdrawn positives. USER approval NONE; the concrete list is ready for one combined review after final reference validation.
Quoted existing decision bases remain the historical A0/A11/A15/AV/AC table above: D0 says “Читатели старого формата и код, необходимый только для него, удаляются”; D11 says “Production-обход React/Fiber/Redux запрещён, запасного источника через store нет”; D15 says “Runtime выбирает явный id ревизии, а не YAML, JSONL или содержимое Git.” R9 requires explicit expected-revision CAS and does not retire winner/history preservation. These explain candidate withdrawal reasons; they do not supply user approval. Existing live ACL, approval, policy, rollback, immutable history and current-value properties remain mandatory.