Skip to content

Conversation

@dpaetzel
Copy link
Collaborator

Serialization is broken due to always using the same fixed file name (relative to the current working directory) for the temporary pickle files. This is a problem in setups where multiple instances of XCSF run in parallel (e.g. on Slurm clusters).

This PR simply replaces the hardcoded file name with mkstemp.

@dpaetzel dpaetzel requested a review from rpreen July 23, 2025 13:38
@codecov
Copy link

codecov bot commented Jul 23, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 70.59%. Comparing base (d8353dc) to head (c194805).

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #204   +/-   ##
=======================================
  Coverage   70.59%   70.59%           
=======================================
  Files          61       61           
  Lines        8940     8940           
  Branches      934      934           
=======================================
  Hits         6311     6311           
  Misses       2629     2629           

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

@rpreen
Copy link
Member

rpreen commented Jul 23, 2025

Looks like Windows doesn't like it.

@dpaetzel
Copy link
Collaborator Author

dpaetzel commented Jul 23, 2025

Yeah, right, I'm sorry. 🙁 I would have to check how to make this work on Windows. Probably via some #ifdef _WIN32 stuff based on which the necessary stuff is imported or something.

@dpaetzel
Copy link
Collaborator Author

Right now, I can't make the time, though. Maybe just keep this open until when I do find some time …

Serialization was broken/errored due to always using the same fixed file
name for the temporary pickle files. This is a problem in setups where
multiple instances of XCSF run in parallel (e.g. on Slurm clusters).
@dpaetzel dpaetzel force-pushed the fix-serialization-tmp-fname branch from bc84506 to beb78b1 Compare August 8, 2025 09:07
@rpreen rpreen changed the title Use proper tempfiles in {de,}serialize feat: use proper tempfiles in {de,}serialize Oct 27, 2025
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.

2 participants