Skip to content

Mark a test which we know fails when connected to the test server - #1787

Merged
PGijsbers merged 5 commits into
mainfrom
maint/mark-test
Nov 5, 2026
Merged

PGijsbers merged 5 commits into
mainfrom
maint/mark-test

Conversation

@PGijsbers

Copy link
Copy Markdown
Member

The Windows CI still connects to the test server. There is an issue with the Elasticsearch instance on the test server which makes that particular test fail. This is a server-side issue, not something openml-python can fix. The issue seems to be persistent. For that reason I am marking the test as expected to fail when connecting to test.openml.org. It works fine with local services (also use in CI, by the Ubuntu runners).

@PGijsbers PGijsbers added serverside These issues are present in the rest API and not fixable by the Python package. maintenance & CI Continuous integration & package distribution labels Nov 4, 2026
@codecov-commenter

codecov-commenter commented Nov 4, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 51.84%. Comparing base (28f9f6e) to head (b6b329e).

Additional details and impacted files
@@             Coverage Diff             @@
##             main    #1787       +/-   ##
===========================================
- Coverage   80.05%   51.84%   -28.22%     
===========================================
  Files          63       63               
  Lines        5551     5551               
===========================================
- Hits         4444     2878     -1566     
- Misses       1107     2673     +1566     

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

Comment on lines +129 to 150
def test_v1_status_update(dataset_v1, static_cache_dir):
openml.config.apikey = TestBase.admin_key
arff_file_path = (
static_cache_dir
/ "org"
/ "openml"
/ "test"
/ "data"
/ "download"
/ "1666876"
/ "phpFsFYVN"
/ "body.arff"
)
new_dataset = OpenMLDataset(
f"TEST-{time.time()!s}-UploadTestWithURL",
"test",
"ARFF",
data_format="arff",
version=1,
url="https://www.openml.org/data/download/61/dataset_61_iris.arff",
licence="public",
default_target_attribute="class",
data_file=arff_file_path,
)

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

URL uploading is now disabled on the server. This test doesn't really care about the particulars of the dataset being uploaded, so we just switch it to file upload. (I think this test isn't even really appropriate for openml-python to begin with, but that's not something I want to discuss as part of the PR but rather look at sometime separately).

@PGijsbers
PGijsbers requested a review from L-Agbaria November 5, 2026 13:04
@PGijsbers
PGijsbers merged commit f4fd28e into main Nov 5, 2026
24 checks passed
@PGijsbers
PGijsbers deleted the maint/mark-test branch November 5, 2026 14:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintenance & CI Continuous integration & package distribution serverside These issues are present in the rest API and not fixable by the Python package.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants