-
Notifications
You must be signed in to change notification settings - Fork 2
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
Unexpected behaviour of snews_pt set-name
with no argument
#105
Comments
Hi @Sheshuk thanks for pointing this out! The functionality we thought was that a user only needs to specify their name once. Which replaces the default detector name here; SNEWS_Publishing_Tools/snews_pt/auxiliary/test-config.env Lines 1 to 2 in f9b990a
and from then on, it always fetches this name. Now the problem is, during testing, test scenarios are need to be sent with different experiment names, which replaces the default name at each test, and the last name sticks there. We need to think of a better way to circumvent this. |
Hm, I don't remember what I did previously on this machine with snews_pt, but here's what I did this time: #1. Create the new virtual environment
python -m venv venv_dev
source venv_dev/bin/activate
#2. Install the snews_pt package
pip install snews_pt
#3. Added my credentials
hop auth add
#4. Tried to set the name
snews_pt set-name So it looks like this last experiment is stored somewhere outside of the current python environment? |
Yes, looks like this is what happened. Making a message with I think it is a serious problem: especially since the Firedrills/Publish section gives us explicit example of changing this. IMO The MessageBuilder should do exactly one thing: build the message (that's what the user expects), and the fact that it changes some state underneath - a global configuration - is totally unexpected and unwanted. What is the use case of setting the |
I think you are right, and this should be fixed. If you like, start a PR, otherwise, I'll try to get back to this in some time. |
The effect of this is that run_scenarios resets the detector name default, when it shouldn't. Caused confusion in today's testing session. I like the idea that Also the TEST detector should be a va;id detector name for at the very least testing connections. Maybe this should be a separate issue? |
Hi, I'm going through the quickstart instructions, and see a minor problem with the command.
Observed behavior
When I run the command:
I get
which I'm not :)
Expected behavior
From the quickstart I read
but if executed without an argument, it will display the accepted detector names and request an input based on the index of your detector
, so I expected the command to let me choose.The CLI documentation also doesn't describe what happens without the command:
Suggested solutions
We need to either:
Fix the command behavior: if run with no name specified, show the allowed experiment names list. Or just print the help message
Fix the documentation
The text was updated successfully, but these errors were encountered: