Skip to content

Conversation

@EmanAbdelhaleem
Copy link
Contributor

@EmanAbdelhaleem EmanAbdelhaleem commented Jan 20, 2026

Fixes #1625
Depends on #1576
Related to #1575

Details
This PR implements Setups resource, and refactor its existing functions

@codecov-commenter
Copy link

codecov-commenter commented Jan 20, 2026

Codecov Report

❌ Patch coverage is 64.91885% with 281 lines in your changes missing coverage. Please review.
✅ Project coverage is 54.46%. Comparing base (d421b9e) to head (a2e2361).

Files with missing lines Patch % Lines
openml/_api/clients/http.py 53.19% 88 Missing ⚠️
openml/_api/resources/base/versions.py 24.71% 67 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/setup.py 79.45% 15 Missing ⚠️
openml/_api/setup/_utils.py 56.00% 11 Missing ⚠️
openml/_api/setup/builder.py 81.08% 7 Missing ⚠️
openml/setups/setup.py 33.33% 6 Missing ⚠️
openml/_api/resources/base/base.py 78.57% 3 Missing ⚠️
... and 2 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1619      +/-   ##
==========================================
+ Coverage   52.04%   54.46%   +2.42%     
==========================================
  Files          36       63      +27     
  Lines        4333     5064     +731     
==========================================
+ Hits         2255     2758     +503     
- Misses       2078     2306     +228     

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

@geetu040 geetu040 mentioned this pull request Jan 21, 2026
25 tasks
@EmanAbdelhaleem EmanAbdelhaleem marked this pull request as ready for review January 21, 2026 23:13
@EmanAbdelhaleem
Copy link
Contributor Author

Running the tests for both files:
tests\test_api\test_setups.py or tests\test_setups\test_setup_functions.py give
openml.exceptions.OpenMLServerException: https://www.openml.org/api/v1/xml/setup/exists/ returned code 103: Authen... for setup_exists related tests.

To reproduce:
pytest tests\test_setups\test_setup_functions.py

@EmanAbdelhaleem
Copy link
Contributor Author

@geetu040 Ready for review

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 - setups

5 participants