Skip to content

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

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

[ENH] V1 -> V2 Migration : Runs#1616
Omswastik-11 wants to merge 266 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 83.05520% with 132 lines in your changes missing coverage. Please review.
✅ Project coverage is 80.11%. Comparing base (8a5532f) to head (4a24b83).

Files with missing lines Patch % Lines
openml/_api/clients/http.py 83.09% 36 Missing ⚠️
openml/_api/config.py 0.00% 30 Missing ⚠️
openml/_api/resources/base/versions.py 83.33% 13 Missing ⚠️
openml/_api/setup/backend.py 80.70% 11 Missing ⚠️
openml/_api/resources/run.py 86.15% 9 Missing ⚠️
openml/_config.py 87.09% 8 Missing ⚠️
openml/_api/resources/base/fallback.py 84.21% 6 Missing ⚠️
openml/_api/setup/builder.py 86.66% 6 Missing ⚠️
openml/cli.py 0.00% 4 Missing ⚠️
openml/runs/run.py 80.00% 3 Missing ⚠️
... and 4 more
Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1616       +/-   ##
===========================================
+ Coverage   52.73%   80.11%   +27.37%     
===========================================
  Files          37       62       +25     
  Lines        4399     5130      +731     
===========================================
+ Hits         2320     4110     +1790     
+ Misses       2079     1020     -1059     

☔ 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.

Copy link
Collaborator

@geetu040 geetu040 left a comment

Choose a reason for hiding this comment

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

update with #1576 (comment)

Copilot AI review requested due to automatic review settings March 16, 2026 14:24
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 42 out of 43 changed files in this pull request and generated 9 comments.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +1 to +6
from __future__ import annotations

import hashlib
import json
import logging
import math
Comment on lines +27 to +35
@pytest.fixture
def dummy_task_v2(http_client_v2, minio_client) -> DummyTaskV1API:
return DummyTaskV2API(http=http_client_v2, minio=minio_client)


@pytest.fixture
def dummy_task_fallback(dummy_task_v1, dummy_task_v2) -> DummyTaskV1API:
return FallbackProxy(dummy_task_v2, dummy_task_v1)

Comment on lines 46 to 48
def _mocked_perform_api_call(call, request_method):
url = openml.config.server + "/" + call
url = openml.config.server + call
return openml._api_calls._download_text_file(url)
Comment on lines +201 to +207
openml.config._set_servers(mode)
openml.config.set_api_version(api_version)
openml.config.server = "temp-server1"
openml.config.apikey = "temp-apikey1"
openml.config._get_servers(mode)["server"] = 'temp-server2'
openml.config._get_servers(mode)["apikey"] = 'temp-server2'

Comment on lines +1 to +6
from __future__ import annotations

from enum import Enum


class APIVersion(str, Enum):
Comment on lines +10 to 11
from urllib.parse import urljoin

Comment on lines +12 to 13
from urllib.parse import urlparse

Comment on lines +296 to +302
f"allowed versions: {', '.join(list(APIVersion))}"
)

if fallback_api_version is not None and fallback_api_version not in APIVersion:
raise ValueError(
f'invalid fallback_api_version="{fallback_api_version}" '
f"allowed versions: {', '.join(list(APIVersion))}"
Comment on lines +87 to +89
attr = getattr(api, name, None)
if attr is not None:
return api, attr
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

8 participants