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
[Bug] Silent crashes with invalid database label names #910
Comments
Cause (probably)Algorithm images are usually built on top of the algorithm wrapper. This is using python:3.10-slim-bullseye as base image at the moment, which as a Debian based image has dash as its At the moment, environment variables are used to pass to the algorithm container the details of the database to use. This means that the database label will become a environment variable name. While bash seems to be OK loading env vars with a "
Dash only allows valid identifiers: "a letter or underscore followed by zero or more letters, underscores, and digits". |
For now I've pushed a small commit to our fork, but can just push in a branch to vantage6/vantage6 if that's preferable. Also using small issue to get acquainted with your development workflow. :) |
Hi Luis, thanks for reporting and also solving this! I think it would be best if you could also create a pull request here. We usually ship non-high-prio bugs such as these in the next release so in that case it would be best to create a PR of your branch to branch |
I was having some issues with setting up testing for client, and I think I'll only have time to take at look at again towards the end of the week. Since it's a super minor issue and I'd like to use it (mostly) as an opportunity to go through this process (testing, your guys' git workflow, etc), I propose we leave it for a patch release (or 4.2). For a patch release, to what branch would I do my PR from my branch in our fork? Also, so, do you folks prefer we work on branches in our fork and PR from there, or do you prefer we create branches in vantage6/vantage6 and PR from there? (If we are allowed). |
Hi Luis, a branch in this repository is preferred, since we can then check out the branch most easily. I think you are allowed to do this as member of the vantage6 github organization. We usually merge patch releases directly in main |
There was a small issue with this PR which is to be resolved with #986 |
Describe the bug
Using a "
-
" for a database label results in a crashed algorithm. It can be a bit confusing to troubleshoot.To Reproduce
Steps to reproduce the behavior:
Expected behavior
It's a very minor issue, but perhaps it is worth a warning or error when including non-valid characters in database labels. Either at client side or a node side. Or both..
Details
Once #154 is tackled, it seems very likely that there won't be a need to create these environment variables with the label in their name, so this shouldn't be an issue after that.
The text was updated successfully, but these errors were encountered: