Add hack that allows specifying the user directory as git#649
Add hack that allows specifying the user directory as git#649
Conversation
|
Heyo, I definitely mentioned [1] as something that would be a nice feature to have for benchmarking other peoples algorithms, as they intend their setup to be. I'm on board with most of the features with some additional commentary. I think one of the priorities would be the specifying the commit-sha, optionally even having a recommended one in the framework's own definition (i.e. "if benchmarking, and you want the latest use this version for now while we work on main"). As for the hack of setting it to the user-directory, that kind of works but ultimately the goal of having the As for the slower setup times, I'm not that concerned as usually:
|
|
Thanks for your thoughts! While specifying specific repo versions with commit hashes remains useful/important, I would say the
is what a stable branch or otherwise releases should be for. In practice, I don't think people would want to update commit hashes every time they decide something is stable. For the subdirectory, other people could also have two repositories: one with the framework, one with the integration. Though I guess that also requires some additional work to ensure the repositories are in sync by e.g., add it in CI or introducing some versioning constraints in the integration repo.
Yes, so either the framework integration/definition would be either its own option, or we could allow for arbitrary many user dirs to be defined, where all configs files are simply merged in the process (as it's currently merging predefined files with the user files). |
Minimal hack to easily define frameworks and configurations remotely (e.g., on a GitHub repository).
The repository must have all the files you would expect for adding a custom framework locally, like this one. With the hack we just identify if the custom directory is a git repository, and if so clone it first, then set the local directory as the user directory.
@Innixma @eddiebergman Where do you think we should go from here? I think a few things might be nice to have:
frameworks.yamlto allow us to specify integration scripts of frameworks, so that you canpython runbenchmark.py FRAMEWORKand it can then automatically fetch the integration forFRAMEWORKif it is one of the "trusted" predefined ones in the shippedframeworks.yaml?Are there any additions or concerns that come to mind? Love to hear your thoughts.
Footnotes
This was a request from.. either of you, I think. I am personally not convinced yet, as this will also lead up to much slower setup times. Especially if you may need to fetch multiple commits when navigating to a compatible integration. ↩