-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Specify host in web ui #523
Conversation
…3 prefers absolute imports; python2 seems to find them acceptable)
Hmm getting closer - now just python 2.6 is failing |
Having a lot of trouble debugging that 2.6 issue... I get different issues in each environment I try. So far have run vagrant up to try to use the virtual environment, in which case running
Also, on my mac, I get:
|
there is an open PR to drop 2.6 support |
… That could explain the failure
@PayscaleNateW don't worry about Python 2.6. I just merged a PR that drops support for it. |
…hon 2.6. That could explain the failure" This reverts commit a8c240f.
Awesome, thanks so much @cgoldberg ! |
Now tests are actually passing; conflicts resolved. Hopefully the pr looks ok |
@PayscaleNateW I pulled your changes, and I'm wondering, does it make sense to default in any values for the host text box? Maybe by parsing the locust file, and/or by reading a For example, it's now an extra step to run basic.py in the examples. It used to default to the value in the file, but now we'd have to explicitly enter it into the text box. Otherwise, I like the idea of making this configurable from the command line. |
Thanks for checking it out! Good call on including the default value. Just added a basic default. In terms of getting it from the locustfile, what would be the recommended way? Is it to set |
Fair point, trying to parse the files wouldn't work. I think "Set host input default to command line value" is a good enough improvement. |
Cool. Maybe I should remove the host attribute from the examples? |
Any help needed for this feature to merge? This feature would help install master+slaves once and POST different target hosts via web ui. Thanks @PayscaleNateW |
Hi @paravz - definitely open to help! I sort of lost track of this PR and looks like it now conflicts. So I don't know how it would play with the code now. But definitely feel free to pick it up from here. |
@PayscaleNateW Conflicts resolved. What other changes are outstanding here? |
these might be better declared within the tests since the data isn't shared globally |
Hi, |
@Acanthostega If you'd like to resolve the conflicts and turn around the requested changes/feedback, we're definitely open to reviewing the PR. |
@Acanthostega I'm so sorry that this PR has not gotten the attention it deserves. If you just resolve the conflicts I will test it out and merge it. |
@heyman I would like to merge this, but I cant seem to fix the conflicts directly on GH (I think I can do it by adding a commit to master with one line to remove that diff completely). |
Codecov Report
@@ Coverage Diff @@
## master #523 +/- ##
=========================================
+ Coverage 74.76% 75.5% +0.74%
=========================================
Files 18 18
Lines 1807 1817 +10
Branches 271 276 +5
=========================================
+ Hits 1351 1372 +21
+ Misses 389 382 -7
+ Partials 67 63 -4
Continue to review full report at Codecov.
|
I can fix the UI ordering once it is merged. Having this really old PR open is annoying to me :P @heyman Is it ok if I make number of users to simulate and hatch rate default to 1 at the same time? I dont use the web ui much, but having to fill out that number just to be able to run is annoying to me :) |
@cyberw You can merge it into a separate branch and make the changes there. Or make the changes directly to this PR (the PayscaleNateW:specify-host-in-web-ui branch). The rendering bug (see the upper left corner below the logo in the screenshot from my previous message) needs to be fixed as well. It 's probably caused by changes to the DOM/CSS that has been made in master after this PR was created.
I think it should be much more common that one wants to spawn >1 users than exactly 1 user, so I'd rather leave them empty I think. |
I'll try to make the changes directly to the PR. I can make it default to 1 and auto select the value when you click the field so there is no downside, even if you want to run >1 users... |
Hmm.. actually, if there needs to be fixes to the DOM/CSS then I'm probably not the right person to fix it :) |
I can take a look at it! |
I've fixed the issues, but while doing so I found another issue that we need to fix before merging (looking back in the thread, I can also see that @PayscaleNateW has already mentioned this issue): When running a test with two (or more) different Locust classes, with different I think the solution to this would be to only pre-fill the value picked up from the Locust classes if all of them have the same host attribute, while also adding some kind of caveat note that specifying a host through the Web UI will override the host for all locust classes. |
…ests with mulitple Locust classes that have different host attributes set
I think this should be mergeable now. |
LGTM & tested it |
Add support for specifying the hostname to test in the web ui, as opposed to in the command line.