Skip to content
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

Update best_practice_search() for changes in galaxy-tool-util #1224

Merged
merged 7 commits into from
Apr 20, 2022

Conversation

nsoranzo
Copy link
Member

@nsoranzo nsoranzo commented Apr 1, 2022

In galaxyproject/galaxy#13532 I've removed the channels_override parameter from the best_search_result() method in galaxy-tool-util.

@nsoranzo

This comment was marked as resolved.

nsoranzo added a commit to nsoranzo/galaxy that referenced this pull request Apr 4, 2022
Fix issue found when testing planemo in
galaxyproject/planemo#1224 (comment) :

```
2022-04-01T14:44:05.3964452Z [2022-04-01 14:41:23 +0000] [6904] [WARNING] Invalid HTTP request received.
2022-04-01T14:44:05.3964583Z Traceback (most recent call last):
2022-04-01T14:44:05.3965087Z   File "/tmp/planemo-test-workspace/gx_venv_3/lib/python3.7/site-packages/uvicorn/protocols/http/h11_impl.py", line 136, in handle_events
2022-04-01T14:44:05.3965218Z     event = self.conn.next_event()
2022-04-01T14:44:05.3965652Z   File "/tmp/planemo-test-workspace/gx_venv_3/lib/python3.7/site-packages/h11/_connection.py", line 443, in next_event
2022-04-01T14:44:05.3965801Z     exc._reraise_as_remote_protocol_error()
2022-04-01T14:44:05.3966277Z   File "/tmp/planemo-test-workspace/gx_venv_3/lib/python3.7/site-packages/h11/_util.py", line 76, in _reraise_as_remote_protocol_error
2022-04-01T14:44:05.3966383Z     raise self
2022-04-01T14:44:05.3966831Z   File "/tmp/planemo-test-workspace/gx_venv_3/lib/python3.7/site-packages/h11/_connection.py", line 425, in next_event
2022-04-01T14:44:05.3966977Z     event = self._extract_next_receive_event()
2022-04-01T14:44:05.3967445Z   File "/tmp/planemo-test-workspace/gx_venv_3/lib/python3.7/site-packages/h11/_connection.py", line 367, in _extract_next_receive_event
2022-04-01T14:44:05.3967588Z     event = self._reader(self._receive_buffer)
2022-04-01T14:44:05.3968049Z   File "/tmp/planemo-test-workspace/gx_venv_3/lib/python3.7/site-packages/h11/_readers.py", line 73, in maybe_read_from_IDLE_client
2022-04-01T14:44:05.3968225Z     request_line_re, lines[0], "illegal request line: {!r}", lines[0]
2022-04-01T14:44:05.3968629Z   File "/tmp/planemo-test-workspace/gx_venv_3/lib/python3.7/site-packages/h11/_util.py", line 88, in validate
2022-04-01T14:44:05.3968781Z     raise LocalProtocolError(msg)
2022-04-01T14:44:05.3969215Z h11._util.RemoteProtocolError: illegal request line: bytearray(b'--a250a2c0546542508998e4e0ac8f1001')
2022-04-01T14:44:05.3969497Z [2022-04-01 14:41:23 +0000] [6904] [WARNING] Invalid HTTP request received.
2022-04-01T14:44:05.3969623Z Traceback (most recent call last):
2022-04-01T14:44:05.3970105Z   File "/tmp/planemo-test-workspace/gx_venv_3/lib/python3.7/site-packages/uvicorn/protocols/http/h11_impl.py", line 136, in handle_events
2022-04-01T14:44:05.3970231Z     event = self.conn.next_event()
2022-04-01T14:44:05.3970655Z   File "/tmp/planemo-test-workspace/gx_venv_3/lib/python3.7/site-packages/h11/_connection.py", line 423, in next_event
2022-04-01T14:44:05.3971003Z     raise RemoteProtocolError("Can't receive data when peer state is ERROR")
2022-04-01T14:44:05.3971287Z h11._util.RemoteProtocolError: Can't receive data when peer state is ERROR
```
nsoranzo added a commit to nsoranzo/galaxy that referenced this pull request Apr 4, 2022
Fix issue found when testing planemo in
galaxyproject/planemo#1224 (comment) :

```
2022-04-01T14:44:05.3964452Z [2022-04-01 14:41:23 +0000] [6904] [WARNING] Invalid HTTP request received.
2022-04-01T14:44:05.3964583Z Traceback (most recent call last):
2022-04-01T14:44:05.3965087Z   File "/tmp/planemo-test-workspace/gx_venv_3/lib/python3.7/site-packages/uvicorn/protocols/http/h11_impl.py", line 136, in handle_events
2022-04-01T14:44:05.3965218Z     event = self.conn.next_event()
2022-04-01T14:44:05.3965652Z   File "/tmp/planemo-test-workspace/gx_venv_3/lib/python3.7/site-packages/h11/_connection.py", line 443, in next_event
2022-04-01T14:44:05.3965801Z     exc._reraise_as_remote_protocol_error()
2022-04-01T14:44:05.3966277Z   File "/tmp/planemo-test-workspace/gx_venv_3/lib/python3.7/site-packages/h11/_util.py", line 76, in _reraise_as_remote_protocol_error
2022-04-01T14:44:05.3966383Z     raise self
2022-04-01T14:44:05.3966831Z   File "/tmp/planemo-test-workspace/gx_venv_3/lib/python3.7/site-packages/h11/_connection.py", line 425, in next_event
2022-04-01T14:44:05.3966977Z     event = self._extract_next_receive_event()
2022-04-01T14:44:05.3967445Z   File "/tmp/planemo-test-workspace/gx_venv_3/lib/python3.7/site-packages/h11/_connection.py", line 367, in _extract_next_receive_event
2022-04-01T14:44:05.3967588Z     event = self._reader(self._receive_buffer)
2022-04-01T14:44:05.3968049Z   File "/tmp/planemo-test-workspace/gx_venv_3/lib/python3.7/site-packages/h11/_readers.py", line 73, in maybe_read_from_IDLE_client
2022-04-01T14:44:05.3968225Z     request_line_re, lines[0], "illegal request line: {!r}", lines[0]
2022-04-01T14:44:05.3968629Z   File "/tmp/planemo-test-workspace/gx_venv_3/lib/python3.7/site-packages/h11/_util.py", line 88, in validate
2022-04-01T14:44:05.3968781Z     raise LocalProtocolError(msg)
2022-04-01T14:44:05.3969215Z h11._util.RemoteProtocolError: illegal request line: bytearray(b'--a250a2c0546542508998e4e0ac8f1001')
2022-04-01T14:44:05.3969497Z [2022-04-01 14:41:23 +0000] [6904] [WARNING] Invalid HTTP request received.
2022-04-01T14:44:05.3969623Z Traceback (most recent call last):
2022-04-01T14:44:05.3970105Z   File "/tmp/planemo-test-workspace/gx_venv_3/lib/python3.7/site-packages/uvicorn/protocols/http/h11_impl.py", line 136, in handle_events
2022-04-01T14:44:05.3970231Z     event = self.conn.next_event()
2022-04-01T14:44:05.3970655Z   File "/tmp/planemo-test-workspace/gx_venv_3/lib/python3.7/site-packages/h11/_connection.py", line 423, in next_event
2022-04-01T14:44:05.3971003Z     raise RemoteProtocolError("Can't receive data when peer state is ERROR")
2022-04-01T14:44:05.3971287Z h11._util.RemoteProtocolError: Can't receive data when peer state is ERROR
```
@nsoranzo
Copy link
Member Author

nsoranzo commented Apr 5, 2022

The unit-quick and unit-nonredundant-noclientbuild-noshed test builds now pass, but they don't complete properly until they time out after 90'. Maybe a Galaxy process that doesn't stop?

@nsoranzo nsoranzo force-pushed the update_best_practice_search branch 2 times, most recently from c70605a to fb72273 Compare April 19, 2022 14:07
@nsoranzo nsoranzo force-pushed the update_best_practice_search branch from fb72273 to 9dec705 Compare April 19, 2022 14:43
@nsoranzo nsoranzo force-pushed the update_best_practice_search branch 2 times, most recently from 13222ff to e56c608 Compare April 19, 2022 16:54
@nsoranzo
Copy link
Member Author

Found the issue with tests not terminating!
I see this when testing in my old local virtualenv: /opt/planemo/tests/shed_app.py:184: UserWarning: The 'environ['werkzeug.server.shutdown']' function is deprecated and will be removed in Werkzeug 2.1.
The CI tests install Werkzeug 2.1.1 , where this functionality has been removed. Working on a fix now.

@nsoranzo nsoranzo force-pushed the update_best_practice_search branch from e56c608 to 2fde60d Compare April 19, 2022 18:12
@nsoranzo nsoranzo force-pushed the update_best_practice_search branch from 2fde60d to 1a13d8c Compare April 20, 2022 12:08
- Remove unused `skip_unless_python_2_7()` function.
- Do not use mutable data structures for argument defaults.
- Sync ``modify_environ()`` with Galaxy version, with fixes.
@nsoranzo nsoranzo force-pushed the update_best_practice_search branch from 1a13d8c to 76553a2 Compare April 20, 2022 12:13
@mvdbeek mvdbeek merged commit 5ea6a31 into galaxyproject:master Apr 20, 2022
@jmchilton
Copy link
Member

Thank you so much @nsoranzo !

@nsoranzo nsoranzo deleted the update_best_practice_search branch April 26, 2022 17:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants