Issue 52855: Missing Servlet API when extracting remote pipeline resources#1045
Conversation
…ar doesn't include Servlet API
labkey-adam
left a comment
There was a problem hiding this comment.
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. |
labkey-tchad
left a comment
There was a problem hiding this comment.
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