Skip to content

Hotfix: restore dropped 'raise' in get_components/get_links - #442

Merged
kthare10 merged 1 commit into
rel-2.0.1from
fix/restore-db-error-raise
Jul 24, 2026
Merged

kthare10 merged 1 commit into
rel-2.0.1from
fix/restore-db-error-raise

Conversation

@kthare10

Copy link
Copy Markdown
Collaborator

Summary

rel-2.0.1 is currently broken: the unit tests added by #440 fail on it, because when #437 (lock idiom) and #440 (DB error propagation) were merged, both edited get_components/get_links and the conflict resolution kept #440's comment but dropped its raise statement.

So rel-2.0.1 shipped the theme-2 test without the theme-2 fix: DB/infra errors are still swallowed and returned as None, which the allocation logic reads as "nothing in use" (the double-allocation risk #440 set out to fix), and CI is red.

Fix

Re-add raise after logging in both methods (2 lines).

Verification

  • python -m compileall passes.
  • Full unit suite fabric_cf/actor/test/unit passes (11/11), including the previously-failing test_actor_database_read_errors.

Note

This also unblocks the pickle PR #441, whose CI was red only because it merges into this broken rel-2.0.1. Merge this first; #441 will then go green on refresh.

When PRs #437 (lock idiom) and #440 (DB error propagation) were merged into
rel-2.0.1, both edited get_components/get_links; the conflict resolution kept
#440's explanatory comment but dropped its 'raise' statement. As a result
rel-2.0.1 shipped the theme-2 unit test but not the code change, so the tests
fail and DB/infra errors are still swallowed (returned as None -> read as
'nothing in use' -> double-allocation risk).

Re-add 'raise' after logging in both methods. Restores the intended behavior;
the unit suite (fabric_cf/actor/test/unit) passes.
@kthare10
kthare10 merged commit a74fa86 into rel-2.0.1 Jul 24, 2026
6 checks passed
@kthare10
kthare10 deleted the fix/restore-db-error-raise branch July 24, 2026 01:55
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