Skip to content

Remove all v3 deprecations#7409

Open
khsrali wants to merge 4 commits into
aiidateam:v3from
khsrali:v3-deprecation
Open

Remove all v3 deprecations#7409
khsrali wants to merge 4 commits into
aiidateam:v3from
khsrali:v3-deprecation

Conversation

@khsrali

@khsrali khsrali commented Jul 2, 2026

Copy link
Copy Markdown
Collaborator

Removes all version=3 deprecations (deprecated Python API, CLI commands/options, re-export shim modules, and deprecated pytest fixtures); the load-only shims legacy.Code, UpfData, and convert_potentially_deprecated_entry_point are intentionally kept so old data still loads.

TODO:
All deprecations and their alternatives has to be listed one last time in change log v3

- setup.sh: use 'verdi profile setup core.psql_dos' and 'verdi profile
  set-default' (replacing removed 'verdi setup'/'verdi profile setdefault');
  rewrite config/profile.yaml to the new option schema
- Remove the legacy pytest-fixtures test and its CI step (module deleted)
- Fix 27 mypy attr-defined errors surfaced by removing 'Node.__getattr__':
  cast load_node()/process-node accesses, declare 'BaseType._type', drop
  now-unused type-ignores, and fix 'verdi code duplicate' for portable codes
  (get_code_folder/get_code_rel_path never existed)
- test_models: read attributes/extras/repository_metadata via the 'base'
  namespace now that the deprecated forwarding accessors are gone
- Regenerate command_line.rst
@codecov

codecov Bot commented Jul 2, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 78.35052% with 21 lines in your changes missing coverage. Please review.
✅ Project coverage is 80.44%. Comparing base (cd9024c) to head (f989211).

Files with missing lines Patch % Lines
src/aiida/cmdline/commands/cmd_code.py 82.23% 8 Missing ⚠️
src/aiida/tools/visualization/graph.py 16.67% 5 Missing ⚠️
src/aiida/transports/transport.py 33.34% 4 Missing ⚠️
src/aiida/engine/processes/workchains/restart.py 71.43% 2 Missing ⚠️
src/aiida/cmdline/groups/dynamic.py 50.00% 1 Missing ⚠️
src/aiida/transports/plugins/ssh.py 66.67% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##               v3    #7409      +/-   ##
==========================================
+ Coverage   80.39%   80.44%   +0.05%     
==========================================
  Files         578      572       -6     
  Lines       46128    45257     -871     
==========================================
- Hits        37081    36402     -679     
+ Misses       9047     8855     -192     

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

khsrali added 2 commits July 2, 2026 14:17
The v3 deprecation removal changed 'BaseRestartWorkChain.handler_overrides'
to require a per-handler dict ('{enabled, priority}') instead of a bool, so
the daemon system test's '{disabled_handler: True}' now fails port validation.
Use '{disabled_handler: {enabled: True}}'.
@coderabbitai

coderabbitai Bot commented Jul 8, 2026

Copy link
Copy Markdown

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 52a873ee-28d9-4bc0-95f4-14bd6b2587c3

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Comment @coderabbitai help to get the list of available commands.

@khsrali
khsrali changed the base branch from main to v3 July 8, 2026 08:57
@khsrali
khsrali requested a review from GeigerJ2 July 8, 2026 08:58
@khsrali
khsrali marked this pull request as ready for review July 8, 2026 08:58
@khsrali khsrali mentioned this pull request Jul 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant