-
-
Notifications
You must be signed in to change notification settings - Fork 273
DOC: Update CONTRIBUTING.md with local services setup and test instructions #1709
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -76,13 +76,43 @@ However, it is also possible to use the [openml-python docker image](https://git | |||||||||||||||||||||||||||||||||||||||||||
| pre-commit install | ||||||||||||||||||||||||||||||||||||||||||||
| ``` | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| ### Starting Local Services | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| The test suite runs against local services via Docker. Before starting the services for the first time, set the required file permissions: | ||||||||||||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||||||||||||
| ```bash | ||||||||||||||||||||||||||||||||||||||||||||
| chown -R www-data:www-data data/php | ||||||||||||||||||||||||||||||||||||||||||||
| # Or, if the above fails (e.g. because `www-data` does not exist on your system): | ||||||||||||||||||||||||||||||||||||||||||||
| chmod -R 777 data/php | ||||||||||||||||||||||||||||||||||||||||||||
|
||||||||||||||||||||||||||||||||||||||||||||
| chmod -R 777 data/php | |
| chmod -R a+rw data/php |
Copilot
AI
Apr 12, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The permission commands reference data/php before the openml/services repo is cloned/entered; following these steps in order will likely fail with “No such file or directory”. Consider reordering to clone/cd into services first (or explicitly prefix the path with services/).
| The test suite runs against local services via Docker. Before starting the services for the first time, set the required file permissions: | |
| ```bash | |
| chown -R www-data:www-data data/php | |
| # Or, if the above fails (e.g. because `www-data` does not exist on your system): | |
| chmod -R 777 data/php | |
| ``` | |
| Then clone the [openml/services](https://github.com/openml/services) repository and start the services: | |
| ```bash | |
| git clone https://github.com/openml/services.git | |
| cd services | |
| The test suite runs against local services via Docker. Before starting the services for the first time, clone the [openml/services](https://github.com/openml/services) repository, enter it, and set the required file permissions: | |
| ```bash | |
| git clone https://github.com/openml/services.git | |
| cd services | |
| chown -R www-data:www-data data/php | |
| # Or, if the above fails (e.g. because `www-data` does not exist on your system): | |
| chmod -R 777 data/php |
Copilot
AI
Apr 12, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The documented docker compose command doesn’t match the CI service startup (CI uses --profile rest-api --profile minio --profile evaluation-engine plus data/logs permission tweaks in .github/workflows/test.yml:125-127). If the goal is to let contributors replicate CI locally, update the command or clarify why evaluation-engine (and the extra chmods) are not needed here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
“The test suite runs against local services via Docker” reads as the default behavior, but later instructions indicate local services are opt-in via
OPENML_USE_LOCAL_SERVICES. Consider rephrasing to avoid confusion (e.g., CI runs against local services, or tests can be run against local services).