Skip to content

Register pytest uses_test_server marker#1632

Open
AniruthKarthik wants to merge 5 commits intoopenml:mainfrom
AniruthKarthik:fix-pytest-marker
Open

Register pytest uses_test_server marker#1632
AniruthKarthik wants to merge 5 commits intoopenml:mainfrom
AniruthKarthik:fix-pytest-marker

Conversation

@AniruthKarthik
Copy link

Fixes PytestUnknownMarkWarning by registering the custom uses_test_server marker.
Related to #1631.

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.

you should register this marker in pyproject.toml, where the previous markers are defined.

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.

@AniruthKarthik are you working on this? please update with your changes, currently these are no files being changed.

@AniruthKarthik
Copy link
Author

@AniruthKarthik are you working on this? please update with your changes, currently these are no files being changed.

Sorry ! I had the changes staged locally but forgot to actually commit and push them. I've now pushed the fix 😅

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.

Looks Good.

@fkiraly please approve the workflows, the previous warnings should disappear, I tried them out locally.

Copy link
Collaborator

@fkiraly fkiraly left a comment

Choose a reason for hiding this comment

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

fine in terms of logic - though in terms of naming, would test_server not be more in line? Although that would also mean changing the markers.

@geetu040
Copy link
Collaborator

fine in terms of logic - though in terms of naming, would test_server not be more in line? Although that would also mean changing the markers.

Sure, I am in favor of it.

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.

@AniruthKarthik could you please rename uses_test_server to test_server everywhere?
Also remove server from the markers list in pyproject.toml, it's not being used anywhere now.

@fkiraly
Copy link
Collaborator

fkiraly commented Feb 16, 2026

Also remove server from the markers list in pyproject.toml, it's not being used anywhere now.

Hm, should the marker then not just be server? Or is that covering both test and production?

@fkiraly
Copy link
Collaborator

fkiraly commented Feb 16, 2026

@PGijsbers who is sitting next to me is saying it is fine to remove server, in favour of production and test_server.

@PGijsbers also thinks it is better to rename production to production_server.

@AniruthKarthik
Copy link
Author

AniruthKarthik commented Feb 16, 2026

@fkiraly should i rename production to production_server ???

@fkiraly
Copy link
Collaborator

fkiraly commented Feb 17, 2026

@AniruthKarthik, yes, that would be appreciated - please also the pytest markers

@fkiraly fkiraly added the maintenance & CI Continuous integration & package distribution label Feb 17, 2026
@AniruthKarthik
Copy link
Author

@fkiraly Renamed production to production_server across CLI shorthands and pytest markers as discussed, and removed the unused server marker. Please review and merge.

@fkiraly
Copy link
Collaborator

fkiraly commented Feb 17, 2026

great! Could you also update in the developer_setup.md?

"server: anything that connects to a server",
"upload: anything that uploads to a server",
"production: any interaction with the production server",
"production_server: any interaction with the production server",
Copy link
Collaborator

Choose a reason for hiding this comment

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

mistake in indentation?

@AniruthKarthik
Copy link
Author

@fkiraly I'll fix the indentation. There is no developer_setup.md , should i create one or update contribution.md ???

@geetu040
Copy link
Collaborator

geetu040 commented Feb 18, 2026

@fkiraly I'll fix the indentation. There is no developer_setup.md , should i create one or update contribution.md ???

Please sync with main, it has been added recently.

Copy link
Collaborator

Choose a reason for hiding this comment

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

rename uses_test_server to test_server in this file.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants