-
Notifications
You must be signed in to change notification settings - Fork 23
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
Make Paths Windows‐Compatible #9
Conversation
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.
These file names were generated by the tool itself, based on the corresponding library definition, which has been updated to use -
instead of :
, and we should use the same names here.
To prevent similar issues when people try to run benchmarks on Windows, it would be a good idea to make sure the tool filters out invalid characters from the filenames it generates. The filename sanitizer code is currently really dumb, and it's not even factored out. I like the idea of systematically replacing /
, \\
, :
, >
, \0
etc with underscores, depending on the current system.
(It needs to be possible to use colons and angle brackets in chart titles, even if the underlying filesystem forbids their use.)
L.O.L. I was trying to work on the dependency graph from the bottom up (swift-collections-benchmarks before swift-collections), but I guess I was holding it backwards. With the original definitions changed, will all the derived stuff in this repository be automatically fixed by the next run? If so, then I recommend just doing that and scrapping this PR. This was done by hand not realizing root definitions existed elsewhere. |
Oh, these won't be automatically regenerated -- synchronizing the filenames will just make things easier if these examples ever need to be recreated. |
I addressed the feedback about existing changes.
I would rather leave that for someone more familiar with the Windows than I am. It does not appear that simple: https://stackoverflow.com/a/1976050/5280938 |
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.
Looks good! Thank you 😊
@swift-ci test |
I submitted #10 to fix generated filenames on Windows. |
This resolves swift‐collections‐benchmark’s portion of apple/swift-collections#33.
Checklist