Skip to content

fix: visibility-first sweep (C1, C2, C6 from CODE_REVIEW.md)#151

Merged
Lenajava1 merged 2 commits into
devfrom
fix/critical-visibility
Apr 28, 2026
Merged

fix: visibility-first sweep (C1, C2, C6 from CODE_REVIEW.md)#151
Lenajava1 merged 2 commits into
devfrom
fix/critical-visibility

Conversation

@Lenajava1
Copy link
Copy Markdown
Collaborator

  • C1: drop --retries=1 from pytest addopts and remove pytest-retry dep. Blanket retry was masking flake rate in CI.
  • C2: add restapi to pyright include. Surfaces 129 reportReturnType errors for REST operations returning _ResponseBody | None against dict annotations; these are C3 territory and will be lifted by PR 3.
  • C6: replace silent except Exception: pass with logger.warning in factory teardowns (8 module conftests, 21 occurrences) and test-body cleanup blocks (12 files, 29 occurrences). Two deliberate skips:
    • tests/restapi/store/test_store.py:46 — test logic (expects validation failure; comment already explains intent)
    • tests/restapi/search/test_search.py:113 — polling loop, covered by separate C7 fix

- C1: drop --retries=1 from pytest addopts and remove pytest-retry dep.
  Blanket retry was masking flake rate in CI.
- C2: add `restapi` to pyright include. Surfaces 129 reportReturnType
  errors for REST operations returning `_ResponseBody | None` against
  `dict` annotations; these are C3 territory and will be lifted by PR 3.
- C6: replace silent `except Exception: pass` with logger.warning in
  factory teardowns (8 module conftests, 21 occurrences) and test-body
  cleanup blocks (12 files, 29 occurrences). Two deliberate skips:
  - tests/restapi/store/test_store.py:46 — test logic (expects
    validation failure; comment already explains intent)
  - tests/restapi/search/test_search.py:113 — polling loop, covered
    by separate C7 fix

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 28, 2026

REST API Test Results

295 tests  ±0   292 ✅ ±0   27s ⏱️ -1s
  4 suites ±0     3 💤 ±0 
  4 files   ±0     0 ❌ ±0 

Results for commit 2b34da4. ± Comparison against base commit e8b6fdc.

♻️ This comment has been updated with latest results.

Brings in:
- 969b688 fix(ci): align workflow paths with post-restructure layout
- e8b6fdc Update backend-packages

No conflicts in Phase 1's changed files (pyproject.toml + tests/restapi/*/conftest.py).
@Lenajava1 Lenajava1 merged commit c67a66c into dev Apr 28, 2026
3 checks passed
@Lenajava1 Lenajava1 deleted the fix/critical-visibility branch April 28, 2026 18:33
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