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

[24.2] Don't fail startup on conflicting data table definition #19855

Draft
wants to merge 1 commit into
base: release_24.2
Choose a base branch
from

Conversation

mvdbeek
Copy link
Member

@mvdbeek mvdbeek commented Mar 20, 2025

While I'm all for failing hard on configuration issues, this one is almost unpredictable, as rebooting a galaxy instance will fail if being unlucky enough to install the wrong combination of tools with data tables. And it won't fail during installation, but at any point a restart is necessary, making it not obvious what caused this and when to expect this.

How to test the changes?

(Select all options that apply)

  • I've included appropriate automated tests.
  • This is a refactoring of components with existing test coverage.
  • Instructions for manual testing are as follows:
    1. [add testing steps and prerequisites here if you didn't write automated tests covering all your changes]

License

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

While I'm all for failing hard on configuration issues, this one is
almost unpredictable, as rebooting a galaxy instance will fail if being
unlucky enough to install the wrong combination of tools with data
tables. And it won't fail during installation, but at any point a
restart is necessary, making it not obvious what caused this and when to
expect this.
@mvdbeek mvdbeek added kind/bug area/admin area/configuration Galaxy's configuration system labels Mar 20, 2025
@mvdbeek mvdbeek changed the base branch from dev to release_24.2 March 20, 2025 11:47
@github-actions github-actions bot added this to the 25.0 milestone Mar 20, 2025
@mvdbeek mvdbeek changed the title Don't fail startup on conflicting data table definition [24.2] Don't fail startup on conflicting data table definition Mar 20, 2025
@mvdbeek
Copy link
Member Author

mvdbeek commented Mar 20, 2025

Test failures unrelated and result from the branch switch 😆

Copy link
Member

@jmchilton jmchilton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This feels like it will cause the problem to happen more and what happens when these tools are used? It seems like the right course is to force admins to fix the tool data tables - not that I have any clue how to do that. So I think I'm an approve because I don't know how to actually fix the problem and -0 at the same time.

@mvdbeek
Copy link
Member Author

mvdbeek commented Mar 20, 2025

This feels like it will cause the problem to happen more and what happens when these tools are used?

I won't let this slip by in sentry, and I think the .eu team also has an eye on it. We should have the tool shed refuse this too ...

@mvdbeek
Copy link
Member Author

mvdbeek commented Mar 20, 2025

You know what - there should be a singular source of truth for each loc file. When things like #19855 happen - we only install tools that match the loc definition.

that is a good idea. the tool shed should probably also refuse upload ... actually I kind of think it used to ?

@mvdbeek mvdbeek marked this pull request as draft March 20, 2025 14:45
@mvdbeek
Copy link
Member Author

mvdbeek commented Mar 20, 2025

I'll see if I can do that

@jmchilton
Copy link
Member

actually I kind of think it used to ?

I don't think I removed code that did this. In my head this was always an unaddressed problem. But my memory has already been proven fairly wrong on that other issue earlier in the week.

@mvdbeek
Copy link
Member Author

mvdbeek commented Mar 20, 2025

yeah, it's not because of recent code, we haven't updated MTS in a long time. But I know I touched related code a couple of years ago that could have potentially broken the checks

@martenson
Copy link
Member

We should have the tool shed refuse this too ...

agreed, with instances moving to autoupdate enforcing consistency at TS makes sense to me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/admin area/configuration Galaxy's configuration system kind/bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants