-
Notifications
You must be signed in to change notification settings - Fork 9
Issue 52855: Missing Servlet API when extracting remote pipeline resources #1045
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
Issue 52855: Missing Servlet API when extracting remote pipeline resources #1045
Conversation
…ar doesn't include Servlet API
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 don't suppose we have a test that alerts us to issue like this...
Hi @labkey-jeckels, I am looking at ways to add testing over this. If labkeyServer.jar exists, then it seems like it would be easy to have an integration that that either: 1) executes the extract command and verifies the results, or 2) maybe refactor this code to separate a method that inspects the JAR and returns a list of files to extract from the code that actually does the extraction. The former could be tested without actually extracting files. However, unless someone actually runs the a gradle dist step, does labkeyServer.jar exist on a normal TeamCity and/or dev machine? It's possible I havent fully wrapped my head about all the uses here. |
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.
Just some error message changes
It should exist on a TeamCity agent. On dev machines we have I'm also pondering how to get better coverage on this, and whether it would give meaningful coverage or not. I mistakenly thought we had reasonable coverage from the |
hi @labkey-jeckels: OK. What do you think about merging this PR to restore functionality, and then address testing / future-proofing of this in another PR? I have not had time to really dig into this myself, but would be willing to give it a try. I also did not really look in depth that the two different code paths that exist (PipelineServiceImpl and this), but obviously it would be nice if they were more formally synchronized. My github-actions CI builds a distribution, and it would be relatively easy for this code to run '-extract' and inspect the results; however, i think it's better to put something into core labkey. |
Rationale
We have two places that extract JARs for remote pipeline scenarios. This one, used in our tests, and another used from the command line. They should be kept in sync.
Related Pull Requests
Changes