Skip to content

Conversation

@mih
Copy link
Member

@mih mih commented Oct 19, 2023

  • IO specifications are stored in platform-native conventions
  • IO specifications are reported as-is

combined with the absence of any platform type record, this makes run-records non-portable across unix/windows scopes.

Ping datalad/datalad#7512

TODO

  • rethink the interpretation of old run-records. I tend to believe that we should never guess. We should add a config switch how run-records are to be intepreted. By default, all recorded paths should be considered POSIX. By config, we should be able to switch that to windows (not to native). This could/would be considered for reading (rerun) AND writing (run). If incoming paths are incompatible with the setting (e.g., absolute windows path and a POSIX setting), an error would be issued.

@mih mih force-pushed the runpatch branch 2 times, most recently from dfcb669 to a77f06b Compare October 20, 2023 05:50
@codecov
Copy link

codecov bot commented Oct 20, 2023

Codecov Report

❌ Patch coverage is 94.68085% with 5 lines in your changes missing coverage. Please review.
✅ Project coverage is 92.37%. Comparing base (ce6a9c5) to head (099fa24).
⚠️ Report is 609 commits behind head on main.

Files with missing lines Patch % Lines
datalad_next/patches/run.py 86.84% 5 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #491      +/-   ##
==========================================
- Coverage   92.41%   92.37%   -0.05%     
==========================================
  Files         126      125       -1     
  Lines        9577     9611      +34     
  Branches     1036     1038       +2     
==========================================
+ Hits         8851     8878      +27     
- Misses        704      711       +7     
  Partials       22       22              

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

mih added 2 commits October 23, 2023 06:57
- IO specifications are stored in platform-native conventions
- IO specifications are reported as-is

combined with the absence of any platform type record, this makes
run-records non-portable across unix/windows scopes.

Ping datalad/datalad#7512
There is limited support for reading and acting on old run-records
that have paths stored in platform conventions. Detection works
when the path matching an existing item on the file system.

Paths are always stored in POSIX notation, whenever they are relative.
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