Remove the deprecated app import shim in 3.0.0
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 58/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Domain
- backend, build-system, devops
Research direction
Start with server/app/__init__.py, server/tests/test_app_shim.py, and the referenced packaging and Debian setup files. Read the current shim behavior and the migrate-static tests, then run the server tests and Debian 13 bats suite. Done when the 2.x warning names 3.0.0 and the 3.0.0 removal, packaging, upgrade path, and breaking CHANGELOG entry meet the listed acceptance criteria.
Written by the indexing model from the issue text.
Description
Problem
The server package was renamed from app to orcaster_server. A compatibility shim keeps import app.<module> working for plugins written before the rename (server/app/__init__.py:1). The deprecation warning only says "will be removed in a future release" (server/app/__init__.py:30), and the test asserts that text (server/tests/test_app_shim.py:23). No removal version is announced, so plugin authors have no date to plan for.
The shim is still packaged in the wheel and in the sdist (server/pyproject.toml:62 and server/pyproject.toml:66). The current version is 2.0.1.
Proposed change
Remove the shim in the next major release, 3.0.0, because removing it breaks external code that still imports app.
- Now: change the warning to "will be removed in 3.0.0". Update the module docstring and the assertion in
server/tests/test_app_shim.pyto match. - In 3.0.0:
- Delete
server/app/__init__.pyandserver/tests/test_app_shim.py. - Remove
appfrom the wheelpackageslist and the sdistonly-includelist inserver/pyproject.toml. - Add a CHANGELOG entry marked BREAKING:
import appno longer works, and plugins must importorcaster_server. - In
setup-scripts/debian13/03-app-install.sh, stop passing--shim-sourcetoserver-layout.sh migrate-static(setup-scripts/debian13/03-app-install.sh:107) and drop the shim comment above it (:101-103). - In
setup-scripts/debian13/server-layout.sh, remove the shim exception: the header text (server-layout.sh:23-28), the--shim-sourceoption (server-layout.sh:35-36,server-layout.sh:54,server-layout.sh:246),is_shim(server-layout.sh:86-91), its two uses inmigrate-static(server-layout.sh:172-176,server-layout.sh:185-188) and the__init__.pyexclusion in the final emptiness check (server-layout.sh:219-221). Keepalign-unitandrestore-unitas they are, so a rollback to an older release still rewrites the unit. - Rewrite the shim tests in
setup-scripts/debian13/tests/test_server_layout.bats:338-532. They copyserver/app/__init__.pyfrom the repo, so they fail once the file is gone. - Add a bats test for the upgrade path: the host has the old shim in
server/app/__init__.pyand a host-only static file inserver/app/static/, the source tree has noserver/app/. The rsync of 03 plusmigrate-staticsucceed, the shim is gone and the static file is inorcaster_server/static/.
- Delete
A host upgraded from 2.x still has the shim in its install tree. The rsync --delete of 03 removes it, because the source tree no longer has it. The systemd unit already runs orcaster_server.main:app (setup-scripts/debian13/05-systemd.sh:41), so the service does not need the shim.
The docstring says the shim goes away "together with the other rename shims" (server/alembic.ini, server/scripts/*.py). Decide separately whether those stay or go in 3.0.0, and state the decision in the CHANGELOG. They are out of scope for the steps above.
Acceptance criteria
- Before 3.0.0,
import appemits aDeprecationWarningthat names 3.0.0, and the shim test asserts that text. - CHANGELOG entry under Unreleased announces the removal in 3.0.0.
- In 3.0.0,
import appraisesModuleNotFoundError. - In 3.0.0, the built wheel and sdist contain no top-level
apppackage. - Plugins and deployments that already import
orcaster_serverkeep working without configuration changes. - An existing install with the 2.x shim upgrades to 3.0.0 with the setup scripts and no manual steps, and the service starts.
-
setup-scripts/debian13/server-layout.shand03-app-install.shno longer mention the shim, and the bats suite passes. - The CHANGELOG lists the removal as a breaking change and tells plugin authors to import
orcaster_server.
- Dominant language
- Python
- Stars
- 0
- Forks
- 0
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 10
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from AInvirion/orcaster
-
enhancement P3 server
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
Maintainers usually reply within 1 day
-
enhancement good first issue P3 server
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
bug P2 server
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
Maintainers usually reply within 1 day
-
bug P3 server
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
Maintainers usually reply within 1 day
-
enhancement P3 server
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
Maintainers usually reply within 1 day
All issues in AInvirion/orcaster
Similar issues
-
[Resource]: SpaicelyOpenresource-submission validation-passed
Difficulty 1/5 Under an hour Newbie friendliness 68/100
hesreallyhim/awesome-claude-code#3875 · 1 comment ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
bvis/aegis-hass#725 ·
Maintainers usually reply within 1 day
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
datasektionen/cashflow#468 ·
-
dont call alembic upgrade until we check whether or not the cache DB has an alembic version stampOpen
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Maintainers usually reply within 1 day
-
Bug: AttributeError: 'GptOssConfig' object has no attribute 'rope_scaling_factor' with transformers >= 5.xPossibly taken @NimaVaziri claimed this today. OpenPytorch
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
NVIDIA/TensorRT-LLM#23406 ·
Maintainers usually reply within 1 day