Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
fix: add proper kill process to conftest. #249 #278
fix: add proper kill process to conftest. #249 #278
Changes from all commits
e7a78eb
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think replacing "python" with "py" might fix the failing windows tests?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
python
withpy
- that did not helppython base_routes.py --dev
does not work in Windows 10 as well because inside dev_event_handler.py we have this:self.processes.append(subprocess.Popen(["python3", self.file_name], start_new_session=False))
Hence the test corresponding to starting up a dev server also fails on Windows
I tried adding a conditional inside dev_event_handler.py that replaces
python3
withpython
in win32 platform - the dev server starts, but then for some reason it fails to find the modules, including RobynThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be the case as we dropped dev server support for windows. But it shouldn't be failing. Can you share the error log please?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
windows_test.log
This is the log file obtained
Traceback relevant to this particular failure:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suspect that
test_dev_index_request()
would still fail anyways, on Windows?python base_routes.py --dev
on Windows 10 does not work (in my machine at least), and throws up errors instead (traceback included in the previous message)test_dev_index_request()
tries to run the aforementioned command, expects a server to get created, and then tries makes a GET request to the server. However, the command seems to fail.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also,
test_global_index_request()
is failing in Windows.BASE_URL
should behttp://127.0.0.1
instead? Referencetest_global_index_request()
would pass in both Windows and Linux. Whilerequests.get('http://0.0.0.0:8080')
is works on Linux, it throwsrequests.exceptions.ConnectionError
when the platform is WindowsThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Trying to run python base_routes.py --dev on Windows 10 does not work (in my machine at least), and throws up errors instead (traceback included in the previous message)
test_dev_index_request() tries to run the aforementioned command, expects a server to get created, and then tries makes a GET request to the server. However, the command seems to fail.
@guilefoylegaurav , you're correct about this. This needs to be fixed. I will create an issue for this. Thank you!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be "0.0.0.0" only as this test is indeed for a session that is available throughout the IP. We have the local ip adress test already availble.