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

merge release_23.1 into dev #16933

Merged
merged 19 commits into from
Oct 27, 2023
Merged

merge release_23.1 into dev #16933

merged 19 commits into from
Oct 27, 2023

Conversation

martenson
Copy link
Member

resolving conflict in lib/galaxy/model/metadata.py

please check @jdavcs @mvdbeek

License

  • I agree to license these and all my past contributions to the core galaxy codebase under the MIT license.

mvdbeek and others added 18 commits October 24, 2023 11:03
Fixes
```
UnboundLocalError: local variable 'runner' referenced before assignment
  File "galaxy/jobs/handler.py", line 541, in __handle_waiting_jobs
    self.dispatcher.put(self.job_wrappers.pop(job.id))
  File "galaxy/jobs/handler.py", line 1224, in put
    runner = self.get_job_runner(job_wrapper, get_task_runner=True)
  File "galaxy/jobs/handler.py", line 1221, in get_job_runner
    return runner
```
from https://sentry.galaxyproject.org/share/issue/a0a0049feb53487f9c84ede3784624b0/
which followed `(53095435) Invalid job runner: bridges`.
[23.1] Fix unbound ``runner`` variable when there is an error in the job config
[23.1] Provide error message instead of internal server error
[23.1] Fix missing grep input in sort1 tool
…n_error_reporting

[23.1] Improve invocation error reporting
…y_import_path_linking

[23.1] Fix library import from path linking files
…import_path_linking

[23.1] Test link data with extended metadata
Side-steps a problem with FileParameter in the most efficient way
possible. This likely became a problem for one of Wolfgang's workflow
afer we dropped some earlier unnecessary flushes.
[23.1] Skip change_datatype things if we're not actually changing the extension
@jdavcs
Copy link
Member

jdavcs commented Oct 26, 2023

The merge is fine.

This is a good example of what may go wrong with code duplication and why I made the edit suggestion in #16931. Now we have two completely different statements:
session.query(galaxy.model.MetadataFile).filter_by(uuid=value).one_or_none()
and
session.execute(select(galaxy.model.MetadataFile).filter_by(uuid=value)).scalar_one_or_none()
which do exactly the same thing. This makes that code rather unintuitive. I'll fix this.

@martenson
Copy link
Member Author

You can push the refactoring here in the merge if you wish, so any confusion is short-lived.

@jdavcs
Copy link
Member

jdavcs commented Oct 26, 2023

I don't think a merge PR requires approval, but just in case, +1, looks good. Thanks!

Co-authored-by: John Davis <[email protected]>
@mvdbeek mvdbeek merged commit 6038b50 into galaxyproject:dev Oct 27, 2023
49 of 51 checks passed
@martenson martenson deleted the merge231in branch October 27, 2023 19:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants