epugh commented on code in PR #1999:
URL: https://github.com/apache/solr/pull/1999#discussion_r1355278242


##########
solr/packaging/test/test_opennlp.bats:
##########
@@ -0,0 +1,110 @@
+#!/usr/bin/env bats
+
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+load bats_helper
+
+setup_file() {
+  common_clean_setup
+  
+}
+
+teardown_file() {
+  common_setup
+  solr stop -all
+}
+
+setup() {
+  common_setup
+}
+
+teardown() {
+  # save a snapshot of SOLR_HOME for failed tests
+  save_home_on_failure
+}
+
+@test "Check lifecycle of sentiment classification" {
+  
+  # GPU versions is linux and windows only, not OSX.  So swap jars.
+  rm -f ${SOLR_TIP}/modules/analysis-extras/lib/onnxruntime_gpu-1.14.0.jar
+  # restore 
+  #curl --insecure -o 
${SOLR_TIP}/modules/analysis-extras/lib/onnxruntime-1.14.0.jar 
https://repo1.maven.org/maven2/com/microsoft/onnxruntime/onnxruntime/1.14.0/onnxruntime-1.14.0.jar
+  cp /Users/epugh/Documents/projects/solr-epugh/onnxruntime-1.14.0.jar 
${SOLR_TIP}/modules/analysis-extras/lib/

Review Comment:
   yeah...    I was in the back of David Smiley's car in the wilds of New 
Brunswick Canada while I was working on this and didn't want to burn up my data 
plan ;-).    Likewise I need to figure out a better apporoach with the model 
since it's 600 mb....   I don't know if I can find a toy one that is super 
small, or if I add docs to download it from hugging facet etc.    Longer term, 
I doin't even think this bats test gets committed the way it is because of all 
the external dependencies..   Though..  if I had a super small model that I 
could check into Git, maybe that owuld be okay?  Like we have a binary package 
for some of the package tests..



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org
For additional commands, e-mail: issues-h...@solr.apache.org

Reply via email to