You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "dsmiley (via GitHub)" <gi...@apache.org> on 2025/10/27 17:44:28 UTC

[PR] New runDevSlim alternative to "dev" [solr]

dsmiley opened a new pull request, #3816:
URL: https://github.com/apache/solr/pull/3816

   This introduces a convenient way to start Solr from Gradle, which I think is thus the most convenient way to start Solr *period*.  It relies on `devSlim`.  Note that IntelliJ can run Gradle tasks (action "Execute Gradle Task"), which in turn makes debugging simple, as you just need to hit the debug symbol.
   
   Downsides / trade-offs:
   * skips bin/solr (bash), thus isn't in sync with obscure settings it sets.  Not going to address that at all; since being a "JavaExec" task is quite the point, and is what benefits from being able to debug quickly.
   


-- 
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-unsubscribe@solr.apache.org

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


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


Re: [PR] New runDevSlim alternative to "dev" [solr]

Posted by "dsmiley (via GitHub)" <gi...@apache.org>.
dsmiley commented on code in PR #3816:
URL: https://github.com/apache/solr/pull/3816#discussion_r2496120776


##########
dev-docs/gradle-help/workflow.txt:
##########
@@ -31,15 +31,18 @@ Put together a local Solr binary "distribution" folder:
 gradlew -p solr/packaging assemble
 ls solr/packaging/build/solr-*               # expanded directory
 
-For quick local development
-gradlew -p solr/packaging dev
-ls solr/packaging/build/dev                  # expanded directory
+Build & run Solr directly from Gradle, skipping "bin/solr", retaining data between runs:
+gradlew -p solr/packaging runDevSlim

Review Comment:
   I would like there to be one for ease of remembering it.  But I want the slim thing to be the default, not "full".  I could just rename this to "runDev" and stop there.   Later we can decide if we want to bother with offering a full as well.  WDYT?  
   
   IMO "dev" should also _just_ be an alias to "devSlim".  If you want full, call `devFull`.  I disagree with "dev" building both.  WDYT @HoustonPutman ?  (I recall you introduced this in 2023).
   
   And for another aside... the name "dev" is not something I would have chosen... I think it was Dawid Weiss who thought of something quickly and there wasn't feedback at the time.  



-- 
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-unsubscribe@solr.apache.org

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


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


Re: [PR] New runDevSlim alternative to "dev" [solr]

Posted by "dsmiley (via GitHub)" <gi...@apache.org>.
dsmiley commented on PR #3816:
URL: https://github.com/apache/solr/pull/3816#issuecomment-3498837457

   It's now `runDev` (still uses the devSlim), and I'll merge this tomorrow.


-- 
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-unsubscribe@solr.apache.org

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


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


Re: [PR] New runDev alternative to "dev" [solr]

Posted by "dsmiley (via GitHub)" <gi...@apache.org>.
dsmiley merged PR #3816:
URL: https://github.com/apache/solr/pull/3816


-- 
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-unsubscribe@solr.apache.org

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


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


Re: [PR] New runDevSlim alternative to "dev" [solr]

Posted by "dsmiley (via GitHub)" <gi...@apache.org>.
dsmiley commented on code in PR #3816:
URL: https://github.com/apache/solr/pull/3816#discussion_r2494636151


##########
dev-docs/gradle-help/workflow.txt:
##########
@@ -31,15 +31,18 @@ Put together a local Solr binary "distribution" folder:
 gradlew -p solr/packaging assemble
 ls solr/packaging/build/solr-*               # expanded directory
 
-For quick local development
-gradlew -p solr/packaging dev
-ls solr/packaging/build/dev                  # expanded directory
+Build & run Solr directly from Gradle, skipping "bin/solr", retaining data between runs:
+gradlew -p solr/packaging runDevSlim

Review Comment:
   no.



-- 
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-unsubscribe@solr.apache.org

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


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


Re: [PR] New runDevSlim alternative to "dev" [solr]

Posted by "epugh (via GitHub)" <gi...@apache.org>.
epugh commented on code in PR #3816:
URL: https://github.com/apache/solr/pull/3816#discussion_r2494287165


##########
solr/packaging/build.gradle:
##########
@@ -227,21 +227,20 @@ tasks.register('runDevSlim', JavaExec) {
   doFirst {
     println "To attach a debugger, at the CLI pass: --debug-jvm"
     println "To pass JVM args, at the CLI pass: -PjvmArgs='--add-modules jdk.incubator.vector'"
-    println "To pass system properties, at the CLI pass: -Djetty.port=8983"
+    println "To pass system properties, at the CLI pass: -Dsolr.port.listen=8983"

Review Comment:
   💯 



-- 
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-unsubscribe@solr.apache.org

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


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


Re: [PR] New runDevSlim alternative to "dev" [solr]

Posted by "epugh (via GitHub)" <gi...@apache.org>.
epugh commented on code in PR #3816:
URL: https://github.com/apache/solr/pull/3816#discussion_r2494289979


##########
dev-docs/gradle-help/workflow.txt:
##########
@@ -31,15 +31,18 @@ Put together a local Solr binary "distribution" folder:
 gradlew -p solr/packaging assemble
 ls solr/packaging/build/solr-*               # expanded directory
 
-For quick local development
-gradlew -p solr/packaging dev
-ls solr/packaging/build/dev                  # expanded directory
+Build & run Solr directly from Gradle, skipping "bin/solr", retaining data between runs:
+gradlew -p solr/packaging runDevSlim

Review Comment:
   is there a `runDev` to match?   



-- 
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-unsubscribe@solr.apache.org

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


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


Re: [PR] New runDevSlim alternative to "dev" [solr]

Posted by "epugh (via GitHub)" <gi...@apache.org>.
epugh commented on code in PR #3816:
URL: https://github.com/apache/solr/pull/3816#discussion_r2496386133


##########
dev-docs/gradle-help/workflow.txt:
##########
@@ -31,15 +31,18 @@ Put together a local Solr binary "distribution" folder:
 gradlew -p solr/packaging assemble
 ls solr/packaging/build/solr-*               # expanded directory
 
-For quick local development
-gradlew -p solr/packaging dev
-ls solr/packaging/build/dev                  # expanded directory
+Build & run Solr directly from Gradle, skipping "bin/solr", retaining data between runs:
+gradlew -p solr/packaging runDevSlim

Review Comment:
   yeah, I think we could always rename it..    



-- 
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-unsubscribe@solr.apache.org

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


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