-
Notifications
You must be signed in to change notification settings - Fork 15
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
iotlab-experiment: errors when binaries have same name but different paths #35
Comments
Hi Martine, You could theoretically send a multipart manually with duplicated entries (without cli-tools, or by modifying cli-tools), containing both firmware files, but the backend API would assume the first one it encounters is the one needed by a given node, and you would get samr21 nodes flashed with arduino-zero firmwares, or the inverse. To work around this and get the behavior your want, I think the only options are:
Hope it helps, |
That's what I did in the end ;-). BTW why not identify the binaries by e.g. a hash in the backend? That's how e.g. Git gets around such problems. |
You could ask @cladmi who wrote that part of the system at least 4 years ago about that ;-) But identifying a file by its basename/filename probably seemed like a sensible idea. It makes the experiment JSON description also easier to create/read for us humans (git stores hashes for file changes but what human reads inside the .git directorty on a regular basis ? ;-) ) Good luck with everything 👍 |
A solution could be to store a name with a hash or something internally. I can look into it. |
maybe we could use the full relative name (bin/samr21-xpro/tests_gnrc_udp.elf vs bin/arduino-zero/tests_gnrc_udp.elf ) ? these are obviously unique. I'm not sure what |
@fsaintma would know. I think there will be issues now (or be refused by the server) has I think that when exporting an experiment all files are flat in the archive. |
When running
iotlab-experiment
with two distinct binaries with the same name e.g. (using RIOT'stests/gnrc_udp
for two different boards):I get an error:
Is there a way (except renaming the binary) to get around this somehow?
The text was updated successfully, but these errors were encountered: