Skip to content

[ENH] V1 -> V2 Migration : Runs#1616

Open
Omswastik-11 wants to merge 89 commits intoopenml:mainfrom
Omswastik-11:runs-migration-stacked
Open

[ENH] V1 -> V2 Migration : Runs#1616
Omswastik-11 wants to merge 89 commits intoopenml:mainfrom
Omswastik-11:runs-migration-stacked

Conversation

@Omswastik-11
Copy link
Contributor

@Omswastik-11 Omswastik-11 commented Jan 15, 2026

Metadata

  • Reference Issue:
  • New Tests Added:
  • Documentation Updated:
  • Change Log Entry:

Details

fixes #1624

@geetu040 geetu040 mentioned this pull request Jan 15, 2026
25 tasks
@codecov-commenter
Copy link

codecov-commenter commented Jan 15, 2026

Codecov Report

❌ Patch coverage is 65.78631% with 285 lines in your changes missing coverage. Please review.
✅ Project coverage is 52.24%. Comparing base (d421b9e) to head (c6351e0).

Files with missing lines Patch % Lines
openml/_api/clients/http.py 54.25% 86 Missing ⚠️
openml/_api/resources/base/versions.py 24.44% 68 Missing ⚠️
openml/_api/setup/backend.py 65.16% 31 Missing ⚠️
openml/_api/resources/base/fallback.py 26.31% 28 Missing ⚠️
openml/testing.py 51.11% 22 Missing ⚠️
openml/_api/resources/run.py 80.00% 13 Missing ⚠️
openml/runs/run.py 20.00% 12 Missing ⚠️
openml/_api/setup/_utils.py 56.00% 11 Missing ⚠️
openml/_api/setup/builder.py 81.08% 7 Missing ⚠️
openml/_api/resources/base/base.py 78.57% 3 Missing ⚠️
... and 2 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1616      +/-   ##
==========================================
+ Coverage   52.04%   52.24%   +0.20%     
==========================================
  Files          36       64      +28     
  Lines        4333     5141     +808     
==========================================
+ Hits         2255     2686     +431     
- Misses       2078     2455     +377     

☔ View full report in Codecov by Sentry.
📢 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.

@Omswastik-11 Omswastik-11 requested a review from geetu040 February 2, 2026 11:54
OpenMLNotSupportedError
V2 server API not yet available for this operation.
"""
raise OpenMLNotSupportedError("not implemented yet on V2 server")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we need to use self._not_supported(method="...") instead.
Please check point num. 8 here #1575 (comment)

OpenMLNotSupportedError
V2 server API not yet available for this operation.
"""
raise OpenMLNotSupportedError("not implemented yet on V2 server")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

V2 server does not yet support POST /runs/ endpoint.
Expected availability: Q2 2025
"""
raise OpenMLNotSupportedError("not implemented yet on V2 server")
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same

xml_content = response.text
return openml.runs.functions._create_run_from_xml(xml_content)

def list( # type: ignore[valid-type] # noqa: PLR0913, C901, PLR0912
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we can split this into 3 functions for more readability:

  • list()
  • _build_url()
  • _parse_list_xml()

check #1606 for reference

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.

[ENH] V1 → V2 API Migration - runs

6 participants