Skip to content

MAINT: Make test dir read-only#13872

Merged
drammock merged 10 commits intomne-tools:mainfrom
larsoner:readonly
Apr 28, 2026
Merged

MAINT: Make test dir read-only#13872
drammock merged 10 commits intomne-tools:mainfrom
larsoner:readonly

Conversation

@larsoner
Copy link
Copy Markdown
Member

We should avoid modifying mne-testing-data during tests. Easiest way to enforce this is set the whole thing chmod -R a-w after downloading.

Any other repos that use tools/github_actions_download.sh will need updates like mne-tools/mne-bids#1583, but I think this is actually good to force on them -- it's dangerous for one project to disrupt the state of the testing files (can lead to hard to track down bugs!).

Locally with pytest I'm already observing some failures after doing my own chmod, but opening the PR here in true TDD fashion to make the CIs show it, too.

@larsoner
Copy link
Copy Markdown
Member Author

Failures probably related to GitHub having a bad day (took ages to access https://codeberg.org/nipy-data/nitest-freesurfer.git), I think this one is ready for review / marking for merge-when-green (and I'll tweak minimally as needed to get CIs green)

@larsoner larsoner marked this pull request as ready for review April 27, 2026 17:33
@larsoner larsoner requested a review from drammock as a code owner April 27, 2026 17:33
@drammock drammock merged commit b9b83b8 into mne-tools:main Apr 28, 2026
32 checks passed
@drammock drammock deleted the readonly branch April 28, 2026 22:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants