Skip to content

Fix SQLAlchemy RemovedIn20Warning and pin SA to 1.4.54 - #836

Closed
ambv wants to merge 1 commit into
facebookresearch:mainfrom
ambv:export-D117278778
Closed

Fix SQLAlchemy RemovedIn20Warning and pin SA to 1.4.54#836
ambv wants to merge 1 commit into
facebookresearch:mainfrom
ambv:export-D117278778

Conversation

@ambv

@ambv ambv commented Aug 26, 2026

Copy link
Copy Markdown
Contributor

Summary:
Add cascade_backrefs=False to all relationship definitions in fbcode/frl/ae/aepsych/aepsych/database/tables.py to silence the SQLAlchemy 1.4→2.0 RemovedIn20Warning at db.py:391 (record.parent = master_table via _warn_for_cascade_backrefs).

Pin SQLAlchemy==1.4.54 in fbcode/frl/ae/aepsych/setup.py to match third-party/pypi/sqlalchemy/VERSION.bzl.

Extend fbcode/frl/ae/aepsych/aepsych/utils_logging.py _IGNORED_WARNINGS with patterns for torch.jit.script, NCCL_DEBUG, pkg_resources, _register_pytree_node to unblock AEPSYCH_MODE=test.

Add fbcode/frl/ae/aepsych/tests/test_gha_ci_parity.py to test GHA CI parity.

Differential Revision: D117278778

Summary:
Add `cascade_backrefs=False` to all `relationship` definitions in `fbcode/frl/ae/aepsych/aepsych/database/tables.py` to silence the SQLAlchemy 1.4→2.0 `RemovedIn20Warning` at `db.py:391` (`record.parent = master_table` via `_warn_for_cascade_backrefs`). 

Pin `SQLAlchemy==1.4.54` in `fbcode/frl/ae/aepsych/setup.py` to match `third-party/pypi/sqlalchemy/VERSION.bzl`.

Extend `fbcode/frl/ae/aepsych/aepsych/utils_logging.py` `_IGNORED_WARNINGS` with patterns for `torch.jit.script`, `NCCL_DEBUG`, `pkg_resources`, `_register_pytree_node` to unblock `AEPSYCH_MODE=test`.

Add `fbcode/frl/ae/aepsych/tests/test_gha_ci_parity.py` to test GHA CI parity.

Differential Revision: D117278778




Signed-off-by: Lukasz Langa <ambv@meta.com>
@meta-cla meta-cla Bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Aug 26, 2026
@meta-codesync

meta-codesync Bot commented Aug 26, 2026

Copy link
Copy Markdown

@ambv has exported this pull request. If you are a Meta employee, you can view the originating Diff in D117278778.

@meta-codesync

meta-codesync Bot commented Aug 26, 2026

Copy link
Copy Markdown

This pull request has been merged in 072d4c3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. Merged meta-exported

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant