You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Mark Miller <ma...@gmail.com> on 2019/09/15 02:09:46 UTC

The Lucene Solr Gradle Build Game plan

https://issues.apache.org/jira/browse/SOLR-13452
Update the lucene-solr build from Ivy+Ant+Maven (shadow build) to Gradle.

Hey all.

Here is my Lucene and Solr 'move to Gradle' plans.

* I plan on trying to commit the Gradle build by 9/30
* In the meantime I'll do a bit more work on packaging, publishing, and
dependencies.
* It would be great if others could start digging in a bit as well.
* I plan to try and sidecar Gradle to begin with. Once that happens, I
really need others to start digging in as we have a lot to do (switch ci
and other tools to the new build, figure out new release docs and issues,
finish the Solr documentation module (I'll try and get to that earlier than
later), and generally make things pleasant across as many dev envs as we
can.
* Beyond that, there will likely be a longer tail of smaller issues or
missing things even after we make the switch.
* I'll put some effort into the side car experiment for another month or
two perhaps (maybe not much in November)
* If things are not looking like we will be able to flip the switch, I'll
look at pulling out Gradle.

- Mark

Re: The Lucene Solr Gradle Build Game plan

Posted by Mark Miller <ma...@gmail.com>.
Maybe making a backup first would improve things?

My first feeling was just let the user do this, but I work in a bunch of
envs and it's very nice to have.

At worst the task description and any doc can say WARNING!: we are going to
edit your file if you do this, there will be a .bak or something.

Mark

On Mon, Sep 16, 2019 at 1:36 PM Mark Miller <ma...@gmail.com> wrote:

> That's against Gradle best practices, if you look it up, this is the way
> Gradle is intended to work. Settings like
>
> That task description can warn about editing your file, but I feel it's
> pretty safe given that you have to decide to use it.
>
> We don't remove anything and we don't change controversial settings
> (unless they break us, like configure on demand).
>
> Settings like org.gradle.workers.max are used by the Daemon and meant to
> be pretty universal as Daemons are intended to be reused.
>
> Another property is ours - if you have overridden it, asking for these
> settings changes will change it. Good?
>
> Configure on demand will break us and is experimental and is noted around
> a variety of bugs, so we disable it.
>
> Sure, just smashing up someones ~/.gradle/gradle.properties is not nice,
> but making required and performance adjustments at request seems great to
> me.
>
> - Mark
>
> On Sun, Sep 15, 2019 at 10:56 PM Gus Heck <gu...@gmail.com> wrote:
>
>> Haven't looked at your code, but it sounds a bit scary for you (or
>> whomever comes after you) to touch my ~/.gradle/gradle.properties.
>> Sometimes I have some pretty important stuff there.... Can we use the
>> project specific gradle.properties in the project root dir and make it
>> .gitignore?
>>
>> On Sun, Sep 15, 2019 at 8:47 PM Mark Miller <ma...@gmail.com>
>> wrote:
>>
>>> Okay, there is now a task called defaultUserConfig
>>>
>>> You can do gw defaultUserConfig to set some recommended settings in
>>> ~/.gradle/gradle.properties. By default they should be more relaxed, but we
>>> can tune as needed.
>>>
>>> For better build performance but also more resource usage you can do:
>>>
>>> gw defaultUserConfig --style=aggressive
>>>
>>> Mark
>>>
>>> On Sun, Sep 15, 2019 at 5:50 PM Mark Miller <ma...@gmail.com>
>>> wrote:
>>>
>>>> By the way, I did hear about the hack day and some Gradle testing,
>>>> which is great, and very useful. Totally needed, but we also need a bit of
>>>> a more deep core developer view of things vs the old build as well. The
>>>> type of stuff that’s much harder to tease out than verifying all the new
>>>> build targets and such. Of course a lot of that can come after we switch,
>>>> but I have a sneaky feeling some core devs will have deep opinions about
>>>> certain things.
>>>>
>>>> Ill add a new task for default config setup.
>>>>
>>>> Mark
>>>>
>>>> On Sun, Sep 15, 2019 at 5:12 PM Mark Miller <ma...@gmail.com>
>>>> wrote:
>>>>
>>>>> I'll just detail it out here as well:
>>>>>
>>>>> You can configure parallelism in ~/.gradle/gradle.properties
>>>>>
>>>>> org.gradle.workers.max=2
>>>>> tests_jvms=5
>>>>>
>>>>> org.gradle.workers.max is controlled by gradle and defaults to the
>>>>> number of cores detected - I wish I could change to divided by 2.
>>>>> test_jvms is controlled by us and defaults to the number of cores
>>>>> detected / 2.
>>>>>
>>>>> org.gradle.workers.max  controls the total number of jvms that will be
>>>>> run in parallel - for tasks or tests or whatever gradle is doing.
>>>>> test_jvms controls how many parallel jvms a module will use for tests,
>>>>> but that is also limited by org.gradle.workers.max
>>>>>
>>>>> You should try setting both to cores / 2 and work down from there if
>>>>> needed.
>>>>>
>>>>> When running tests across multiple modules, org.gradle.workers.max is
>>>>> the actual limit for test jvms spun up because each module is only limited
>>>>> to test_jvms, but ALL tasks are limited to org.gradle.workers.max and
>>>>> module tasks are run in parallel by default.
>>>>>
>>>>> By setting them the same, we get similar behavior whether we run tests
>>>>> from the root directory of the project (all tests) or from a single module
>>>>> (say solr-core).
>>>>>
>>>>> On Sun, Sep 15, 2019 at 5:03 PM Mark Miller <ma...@gmail.com>
>>>>> wrote:
>>>>>
>>>>>> I've added more about that here:
>>>>>> https://cwiki.apache.org/confluence/display/SOLR/Intro+to+the+Gradle+build
>>>>>>
>>>>>> It's configurable, but difficult for us to choose a default based on
>>>>>> cores as far as I can tell and gradles default, which is based on cores
>>>>>> detected, is too high, especially because of hyperthreading.
>>>>>>
>>>>>> Probably the best we can do is default it to a hard 2 or 4 and let
>>>>>> people raise it depending on what wait you want to error. In both cases the
>>>>>> majority of people will want to change it.
>>>>>>
>>>>>> On Sun, Sep 15, 2019 at 3:39 PM Gus Heck <gu...@gmail.com> wrote:
>>>>>>
>>>>>>> Not sure if you heard, but about a half a dozen folks tried it out
>>>>>>> on macs and one on windows at the hack day on Tuesday before Activate. It
>>>>>>> caused some scrambling for sharing of power bricks (a single run of the
>>>>>>> tests eats 70% of a fully charged 2018 macbook pro battery in 45 min), but
>>>>>>> the good news is it only failed on well known flaky tests and on the one
>>>>>>> windows machine and that in the PDF building for the ref guide (and there
>>>>>>> was that small bit with the error message and the AtomicBoolean that I
>>>>>>> fixed). I've heard some opinions that maybe we don't need the PDF version
>>>>>>> in the future, The one bit of feedback that came out of it was it would be
>>>>>>> nice to have a task that tweaked the configs things to not peg the
>>>>>>> processor quite so efficiently :). Certainly we do want the mode for full
>>>>>>> utilization to be available, but a background mode would be good too in
>>>>>>> case folks need to do other work.
>>>>>>>
>>>>>>> -Gus
>>>>>>>
>>>>>>> On Sun, Sep 15, 2019 at 3:24 PM Mark Miller <ma...@gmail.com>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Okay, I've tried to spread that link a little on social media as
>>>>>>>> well.
>>>>>>>>
>>>>>>>> Please do some experimentation. Especially those of you that use or
>>>>>>>> know more esoteric things about the build. The basics are pretty solid,
>>>>>>>> most have been working for months now, it's the corners and crannies that
>>>>>>>> I'm more concerned about. You could have built and run tests a few months
>>>>>>>> ago and said, nice, it's working, but then I've done 10,000 things since
>>>>>>>> then that were necessary. You may easily not realize things are a problem
>>>>>>>> until you really dig into something.
>>>>>>>>
>>>>>>>> The more that devs can start trying out Gradle now, the less
>>>>>>>> overlap of the two build systems we will need.
>>>>>>>>
>>>>>>>> The idea of the overlap is that it will almost force many of us to
>>>>>>>> start trying things out - at which point we will start to understand any
>>>>>>>> key things that are missing, key problems or bugs, etc. If I just make the
>>>>>>>> switch and let the cards fall were they may, those cards are almost
>>>>>>>> certainly going to be very disruptive and annoying to a lot of people.
>>>>>>>>
>>>>>>>> It will also give us a chance to start rolling CI and other tools
>>>>>>>> over to using the Gradle build while ant+ivy are still available and in
>>>>>>>> charge. I don't think it's a great idea to try and do this all at one
>>>>>>>> moment, that will be difficult to coordinate and be more disruptive to less
>>>>>>>> interested devs. We would like to keep the dual build situation contained
>>>>>>>> and short though. That's why I have a plan to pull out if we don't make
>>>>>>>> enough progress by a month or twos time (closer to a month).
>>>>>>>>
>>>>>>>> If we have enough experimentation ahead of time, the overlap can be
>>>>>>>> very short - we start moving things like jenkins jobs over and when we are
>>>>>>>> done and confident the world is not ending, we make some adjustments so
>>>>>>>> that gradle owns the build (eg the dependency tree) and then remove
>>>>>>>> ant+ivy+maven.
>>>>>>>>
>>>>>>>> Some things like the smoke tester and what not *can* come shortly
>>>>>>>> after we switch I think - we have until the 9 release to truly get
>>>>>>>> everything in order (keeping in mind that we are still developing so some
>>>>>>>> things are still critical). But we need CI and other basics all moved over
>>>>>>>> when we flip the ownership switch.
>>>>>>>>
>>>>>>>> - Mark
>>>>>>>>
>>>>>>>> On Sun, Sep 15, 2019 at 12:28 PM Mark Miller <ma...@gmail.com>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> I've started to put together a little guide to help people ramp up
>>>>>>>>> here:
>>>>>>>>> https://cwiki.apache.org/confluence/display/SOLR/Intro+to+the+Gradle+build
>>>>>>>>>
>>>>>>>>> On Sat, Sep 14, 2019 at 9:09 PM Mark Miller <ma...@gmail.com>
>>>>>>>>> wrote:
>>>>>>>>>
>>>>>>>>>> https://issues.apache.org/jira/browse/SOLR-13452
>>>>>>>>>> Update the lucene-solr build from Ivy+Ant+Maven (shadow build) to
>>>>>>>>>> Gradle.
>>>>>>>>>>
>>>>>>>>>> Hey all.
>>>>>>>>>>
>>>>>>>>>> Here is my Lucene and Solr 'move to Gradle' plans.
>>>>>>>>>>
>>>>>>>>>> * I plan on trying to commit the Gradle build by 9/30
>>>>>>>>>> * In the meantime I'll do a bit more work on packaging,
>>>>>>>>>> publishing, and dependencies.
>>>>>>>>>> * It would be great if others could start digging in a bit as
>>>>>>>>>> well.
>>>>>>>>>> * I plan to try and sidecar Gradle to begin with. Once that
>>>>>>>>>> happens, I really need others to start digging in as we have a lot to do
>>>>>>>>>> (switch ci and other tools to the new build, figure out new release docs
>>>>>>>>>> and issues, finish the Solr documentation module (I'll try and get to that
>>>>>>>>>> earlier than later), and generally make things pleasant across as many dev
>>>>>>>>>> envs as we can.
>>>>>>>>>> * Beyond that, there will likely be a longer tail of smaller
>>>>>>>>>> issues or missing things even after we make the switch.
>>>>>>>>>> * I'll put some effort into the side car experiment for another
>>>>>>>>>> month or two perhaps (maybe not much in November)
>>>>>>>>>> * If things are not looking like we will be able to flip the
>>>>>>>>>> switch, I'll look at pulling out Gradle.
>>>>>>>>>>
>>>>>>>>>> - Mark
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> - Mark
>>>>>>>>>
>>>>>>>>> http://about.me/markrmiller
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> - Mark
>>>>>>>>
>>>>>>>> http://about.me/markrmiller
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> http://www.needhamsoftware.com (work)
>>>>>>> http://www.the111shift.com (play)
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> - Mark
>>>>>>
>>>>>> http://about.me/markrmiller
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> - Mark
>>>>>
>>>>> http://about.me/markrmiller
>>>>>
>>>> --
>>>> - Mark
>>>>
>>>> http://about.me/markrmiller
>>>>
>>>
>>>
>>> --
>>> - Mark
>>>
>>> http://about.me/markrmiller
>>>
>>
>>
>> --
>> http://www.needhamsoftware.com (work)
>> http://www.the111shift.com (play)
>>
>
>
> --
> - Mark
>
> http://about.me/markrmiller
>


-- 
- Mark

http://about.me/markrmiller

Re: The Lucene Solr Gradle Build Game plan

Posted by Mark Miller <ma...@gmail.com>.
That's against Gradle best practices, if you look it up, this is the way
Gradle is intended to work. Settings like

That task description can warn about editing your file, but I feel it's
pretty safe given that you have to decide to use it.

We don't remove anything and we don't change controversial settings (unless
they break us, like configure on demand).

Settings like org.gradle.workers.max are used by the Daemon and meant to be
pretty universal as Daemons are intended to be reused.

Another property is ours - if you have overridden it, asking for these
settings changes will change it. Good?

Configure on demand will break us and is experimental and is noted around a
variety of bugs, so we disable it.

Sure, just smashing up someones ~/.gradle/gradle.properties is not nice,
but making required and performance adjustments at request seems great to
me.

- Mark

On Sun, Sep 15, 2019 at 10:56 PM Gus Heck <gu...@gmail.com> wrote:

> Haven't looked at your code, but it sounds a bit scary for you (or
> whomever comes after you) to touch my ~/.gradle/gradle.properties.
> Sometimes I have some pretty important stuff there.... Can we use the
> project specific gradle.properties in the project root dir and make it
> .gitignore?
>
> On Sun, Sep 15, 2019 at 8:47 PM Mark Miller <ma...@gmail.com> wrote:
>
>> Okay, there is now a task called defaultUserConfig
>>
>> You can do gw defaultUserConfig to set some recommended settings in
>> ~/.gradle/gradle.properties. By default they should be more relaxed, but we
>> can tune as needed.
>>
>> For better build performance but also more resource usage you can do:
>>
>> gw defaultUserConfig --style=aggressive
>>
>> Mark
>>
>> On Sun, Sep 15, 2019 at 5:50 PM Mark Miller <ma...@gmail.com>
>> wrote:
>>
>>> By the way, I did hear about the hack day and some Gradle testing, which
>>> is great, and very useful. Totally needed, but we also need a bit of a more
>>> deep core developer view of things vs the old build as well. The type of
>>> stuff that’s much harder to tease out than verifying all the new build
>>> targets and such. Of course a lot of that can come after we switch, but I
>>> have a sneaky feeling some core devs will have deep opinions about certain
>>> things.
>>>
>>> Ill add a new task for default config setup.
>>>
>>> Mark
>>>
>>> On Sun, Sep 15, 2019 at 5:12 PM Mark Miller <ma...@gmail.com>
>>> wrote:
>>>
>>>> I'll just detail it out here as well:
>>>>
>>>> You can configure parallelism in ~/.gradle/gradle.properties
>>>>
>>>> org.gradle.workers.max=2
>>>> tests_jvms=5
>>>>
>>>> org.gradle.workers.max is controlled by gradle and defaults to the
>>>> number of cores detected - I wish I could change to divided by 2.
>>>> test_jvms is controlled by us and defaults to the number of cores
>>>> detected / 2.
>>>>
>>>> org.gradle.workers.max  controls the total number of jvms that will be
>>>> run in parallel - for tasks or tests or whatever gradle is doing.
>>>> test_jvms controls how many parallel jvms a module will use for tests,
>>>> but that is also limited by org.gradle.workers.max
>>>>
>>>> You should try setting both to cores / 2 and work down from there if
>>>> needed.
>>>>
>>>> When running tests across multiple modules, org.gradle.workers.max is
>>>> the actual limit for test jvms spun up because each module is only limited
>>>> to test_jvms, but ALL tasks are limited to org.gradle.workers.max and
>>>> module tasks are run in parallel by default.
>>>>
>>>> By setting them the same, we get similar behavior whether we run tests
>>>> from the root directory of the project (all tests) or from a single module
>>>> (say solr-core).
>>>>
>>>> On Sun, Sep 15, 2019 at 5:03 PM Mark Miller <ma...@gmail.com>
>>>> wrote:
>>>>
>>>>> I've added more about that here:
>>>>> https://cwiki.apache.org/confluence/display/SOLR/Intro+to+the+Gradle+build
>>>>>
>>>>> It's configurable, but difficult for us to choose a default based on
>>>>> cores as far as I can tell and gradles default, which is based on cores
>>>>> detected, is too high, especially because of hyperthreading.
>>>>>
>>>>> Probably the best we can do is default it to a hard 2 or 4 and let
>>>>> people raise it depending on what wait you want to error. In both cases the
>>>>> majority of people will want to change it.
>>>>>
>>>>> On Sun, Sep 15, 2019 at 3:39 PM Gus Heck <gu...@gmail.com> wrote:
>>>>>
>>>>>> Not sure if you heard, but about a half a dozen folks tried it out on
>>>>>> macs and one on windows at the hack day on Tuesday before Activate. It
>>>>>> caused some scrambling for sharing of power bricks (a single run of the
>>>>>> tests eats 70% of a fully charged 2018 macbook pro battery in 45 min), but
>>>>>> the good news is it only failed on well known flaky tests and on the one
>>>>>> windows machine and that in the PDF building for the ref guide (and there
>>>>>> was that small bit with the error message and the AtomicBoolean that I
>>>>>> fixed). I've heard some opinions that maybe we don't need the PDF version
>>>>>> in the future, The one bit of feedback that came out of it was it would be
>>>>>> nice to have a task that tweaked the configs things to not peg the
>>>>>> processor quite so efficiently :). Certainly we do want the mode for full
>>>>>> utilization to be available, but a background mode would be good too in
>>>>>> case folks need to do other work.
>>>>>>
>>>>>> -Gus
>>>>>>
>>>>>> On Sun, Sep 15, 2019 at 3:24 PM Mark Miller <ma...@gmail.com>
>>>>>> wrote:
>>>>>>
>>>>>>> Okay, I've tried to spread that link a little on social media as
>>>>>>> well.
>>>>>>>
>>>>>>> Please do some experimentation. Especially those of you that use or
>>>>>>> know more esoteric things about the build. The basics are pretty solid,
>>>>>>> most have been working for months now, it's the corners and crannies that
>>>>>>> I'm more concerned about. You could have built and run tests a few months
>>>>>>> ago and said, nice, it's working, but then I've done 10,000 things since
>>>>>>> then that were necessary. You may easily not realize things are a problem
>>>>>>> until you really dig into something.
>>>>>>>
>>>>>>> The more that devs can start trying out Gradle now, the less overlap
>>>>>>> of the two build systems we will need.
>>>>>>>
>>>>>>> The idea of the overlap is that it will almost force many of us to
>>>>>>> start trying things out - at which point we will start to understand any
>>>>>>> key things that are missing, key problems or bugs, etc. If I just make the
>>>>>>> switch and let the cards fall were they may, those cards are almost
>>>>>>> certainly going to be very disruptive and annoying to a lot of people.
>>>>>>>
>>>>>>> It will also give us a chance to start rolling CI and other tools
>>>>>>> over to using the Gradle build while ant+ivy are still available and in
>>>>>>> charge. I don't think it's a great idea to try and do this all at one
>>>>>>> moment, that will be difficult to coordinate and be more disruptive to less
>>>>>>> interested devs. We would like to keep the dual build situation contained
>>>>>>> and short though. That's why I have a plan to pull out if we don't make
>>>>>>> enough progress by a month or twos time (closer to a month).
>>>>>>>
>>>>>>> If we have enough experimentation ahead of time, the overlap can be
>>>>>>> very short - we start moving things like jenkins jobs over and when we are
>>>>>>> done and confident the world is not ending, we make some adjustments so
>>>>>>> that gradle owns the build (eg the dependency tree) and then remove
>>>>>>> ant+ivy+maven.
>>>>>>>
>>>>>>> Some things like the smoke tester and what not *can* come shortly
>>>>>>> after we switch I think - we have until the 9 release to truly get
>>>>>>> everything in order (keeping in mind that we are still developing so some
>>>>>>> things are still critical). But we need CI and other basics all moved over
>>>>>>> when we flip the ownership switch.
>>>>>>>
>>>>>>> - Mark
>>>>>>>
>>>>>>> On Sun, Sep 15, 2019 at 12:28 PM Mark Miller <ma...@gmail.com>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> I've started to put together a little guide to help people ramp up
>>>>>>>> here:
>>>>>>>> https://cwiki.apache.org/confluence/display/SOLR/Intro+to+the+Gradle+build
>>>>>>>>
>>>>>>>> On Sat, Sep 14, 2019 at 9:09 PM Mark Miller <ma...@gmail.com>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> https://issues.apache.org/jira/browse/SOLR-13452
>>>>>>>>> Update the lucene-solr build from Ivy+Ant+Maven (shadow build) to
>>>>>>>>> Gradle.
>>>>>>>>>
>>>>>>>>> Hey all.
>>>>>>>>>
>>>>>>>>> Here is my Lucene and Solr 'move to Gradle' plans.
>>>>>>>>>
>>>>>>>>> * I plan on trying to commit the Gradle build by 9/30
>>>>>>>>> * In the meantime I'll do a bit more work on packaging,
>>>>>>>>> publishing, and dependencies.
>>>>>>>>> * It would be great if others could start digging in a bit as well.
>>>>>>>>> * I plan to try and sidecar Gradle to begin with. Once that
>>>>>>>>> happens, I really need others to start digging in as we have a lot to do
>>>>>>>>> (switch ci and other tools to the new build, figure out new release docs
>>>>>>>>> and issues, finish the Solr documentation module (I'll try and get to that
>>>>>>>>> earlier than later), and generally make things pleasant across as many dev
>>>>>>>>> envs as we can.
>>>>>>>>> * Beyond that, there will likely be a longer tail of smaller
>>>>>>>>> issues or missing things even after we make the switch.
>>>>>>>>> * I'll put some effort into the side car experiment for another
>>>>>>>>> month or two perhaps (maybe not much in November)
>>>>>>>>> * If things are not looking like we will be able to flip the
>>>>>>>>> switch, I'll look at pulling out Gradle.
>>>>>>>>>
>>>>>>>>> - Mark
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> - Mark
>>>>>>>>
>>>>>>>> http://about.me/markrmiller
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> - Mark
>>>>>>>
>>>>>>> http://about.me/markrmiller
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> http://www.needhamsoftware.com (work)
>>>>>> http://www.the111shift.com (play)
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> - Mark
>>>>>
>>>>> http://about.me/markrmiller
>>>>>
>>>>
>>>>
>>>> --
>>>> - Mark
>>>>
>>>> http://about.me/markrmiller
>>>>
>>> --
>>> - Mark
>>>
>>> http://about.me/markrmiller
>>>
>>
>>
>> --
>> - Mark
>>
>> http://about.me/markrmiller
>>
>
>
> --
> http://www.needhamsoftware.com (work)
> http://www.the111shift.com (play)
>


-- 
- Mark

http://about.me/markrmiller

Re: The Lucene Solr Gradle Build Game plan

Posted by Gus Heck <gu...@gmail.com>.
Haven't looked at your code, but it sounds a bit scary for you (or whomever
comes after you) to touch my ~/.gradle/gradle.properties. Sometimes I have
some pretty important stuff there.... Can we use the project specific
gradle.properties in the project root dir and make it .gitignore?

On Sun, Sep 15, 2019 at 8:47 PM Mark Miller <ma...@gmail.com> wrote:

> Okay, there is now a task called defaultUserConfig
>
> You can do gw defaultUserConfig to set some recommended settings in
> ~/.gradle/gradle.properties. By default they should be more relaxed, but we
> can tune as needed.
>
> For better build performance but also more resource usage you can do:
>
> gw defaultUserConfig --style=aggressive
>
> Mark
>
> On Sun, Sep 15, 2019 at 5:50 PM Mark Miller <ma...@gmail.com> wrote:
>
>> By the way, I did hear about the hack day and some Gradle testing, which
>> is great, and very useful. Totally needed, but we also need a bit of a more
>> deep core developer view of things vs the old build as well. The type of
>> stuff that’s much harder to tease out than verifying all the new build
>> targets and such. Of course a lot of that can come after we switch, but I
>> have a sneaky feeling some core devs will have deep opinions about certain
>> things.
>>
>> Ill add a new task for default config setup.
>>
>> Mark
>>
>> On Sun, Sep 15, 2019 at 5:12 PM Mark Miller <ma...@gmail.com>
>> wrote:
>>
>>> I'll just detail it out here as well:
>>>
>>> You can configure parallelism in ~/.gradle/gradle.properties
>>>
>>> org.gradle.workers.max=2
>>> tests_jvms=5
>>>
>>> org.gradle.workers.max is controlled by gradle and defaults to the
>>> number of cores detected - I wish I could change to divided by 2.
>>> test_jvms is controlled by us and defaults to the number of cores
>>> detected / 2.
>>>
>>> org.gradle.workers.max  controls the total number of jvms that will be
>>> run in parallel - for tasks or tests or whatever gradle is doing.
>>> test_jvms controls how many parallel jvms a module will use for tests,
>>> but that is also limited by org.gradle.workers.max
>>>
>>> You should try setting both to cores / 2 and work down from there if
>>> needed.
>>>
>>> When running tests across multiple modules, org.gradle.workers.max is
>>> the actual limit for test jvms spun up because each module is only limited
>>> to test_jvms, but ALL tasks are limited to org.gradle.workers.max and
>>> module tasks are run in parallel by default.
>>>
>>> By setting them the same, we get similar behavior whether we run tests
>>> from the root directory of the project (all tests) or from a single module
>>> (say solr-core).
>>>
>>> On Sun, Sep 15, 2019 at 5:03 PM Mark Miller <ma...@gmail.com>
>>> wrote:
>>>
>>>> I've added more about that here:
>>>> https://cwiki.apache.org/confluence/display/SOLR/Intro+to+the+Gradle+build
>>>>
>>>> It's configurable, but difficult for us to choose a default based on
>>>> cores as far as I can tell and gradles default, which is based on cores
>>>> detected, is too high, especially because of hyperthreading.
>>>>
>>>> Probably the best we can do is default it to a hard 2 or 4 and let
>>>> people raise it depending on what wait you want to error. In both cases the
>>>> majority of people will want to change it.
>>>>
>>>> On Sun, Sep 15, 2019 at 3:39 PM Gus Heck <gu...@gmail.com> wrote:
>>>>
>>>>> Not sure if you heard, but about a half a dozen folks tried it out on
>>>>> macs and one on windows at the hack day on Tuesday before Activate. It
>>>>> caused some scrambling for sharing of power bricks (a single run of the
>>>>> tests eats 70% of a fully charged 2018 macbook pro battery in 45 min), but
>>>>> the good news is it only failed on well known flaky tests and on the one
>>>>> windows machine and that in the PDF building for the ref guide (and there
>>>>> was that small bit with the error message and the AtomicBoolean that I
>>>>> fixed). I've heard some opinions that maybe we don't need the PDF version
>>>>> in the future, The one bit of feedback that came out of it was it would be
>>>>> nice to have a task that tweaked the configs things to not peg the
>>>>> processor quite so efficiently :). Certainly we do want the mode for full
>>>>> utilization to be available, but a background mode would be good too in
>>>>> case folks need to do other work.
>>>>>
>>>>> -Gus
>>>>>
>>>>> On Sun, Sep 15, 2019 at 3:24 PM Mark Miller <ma...@gmail.com>
>>>>> wrote:
>>>>>
>>>>>> Okay, I've tried to spread that link a little on social media as well.
>>>>>>
>>>>>> Please do some experimentation. Especially those of you that use or
>>>>>> know more esoteric things about the build. The basics are pretty solid,
>>>>>> most have been working for months now, it's the corners and crannies that
>>>>>> I'm more concerned about. You could have built and run tests a few months
>>>>>> ago and said, nice, it's working, but then I've done 10,000 things since
>>>>>> then that were necessary. You may easily not realize things are a problem
>>>>>> until you really dig into something.
>>>>>>
>>>>>> The more that devs can start trying out Gradle now, the less overlap
>>>>>> of the two build systems we will need.
>>>>>>
>>>>>> The idea of the overlap is that it will almost force many of us to
>>>>>> start trying things out - at which point we will start to understand any
>>>>>> key things that are missing, key problems or bugs, etc. If I just make the
>>>>>> switch and let the cards fall were they may, those cards are almost
>>>>>> certainly going to be very disruptive and annoying to a lot of people.
>>>>>>
>>>>>> It will also give us a chance to start rolling CI and other tools
>>>>>> over to using the Gradle build while ant+ivy are still available and in
>>>>>> charge. I don't think it's a great idea to try and do this all at one
>>>>>> moment, that will be difficult to coordinate and be more disruptive to less
>>>>>> interested devs. We would like to keep the dual build situation contained
>>>>>> and short though. That's why I have a plan to pull out if we don't make
>>>>>> enough progress by a month or twos time (closer to a month).
>>>>>>
>>>>>> If we have enough experimentation ahead of time, the overlap can be
>>>>>> very short - we start moving things like jenkins jobs over and when we are
>>>>>> done and confident the world is not ending, we make some adjustments so
>>>>>> that gradle owns the build (eg the dependency tree) and then remove
>>>>>> ant+ivy+maven.
>>>>>>
>>>>>> Some things like the smoke tester and what not *can* come shortly
>>>>>> after we switch I think - we have until the 9 release to truly get
>>>>>> everything in order (keeping in mind that we are still developing so some
>>>>>> things are still critical). But we need CI and other basics all moved over
>>>>>> when we flip the ownership switch.
>>>>>>
>>>>>> - Mark
>>>>>>
>>>>>> On Sun, Sep 15, 2019 at 12:28 PM Mark Miller <ma...@gmail.com>
>>>>>> wrote:
>>>>>>
>>>>>>> I've started to put together a little guide to help people ramp up
>>>>>>> here:
>>>>>>> https://cwiki.apache.org/confluence/display/SOLR/Intro+to+the+Gradle+build
>>>>>>>
>>>>>>> On Sat, Sep 14, 2019 at 9:09 PM Mark Miller <ma...@gmail.com>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> https://issues.apache.org/jira/browse/SOLR-13452
>>>>>>>> Update the lucene-solr build from Ivy+Ant+Maven (shadow build) to
>>>>>>>> Gradle.
>>>>>>>>
>>>>>>>> Hey all.
>>>>>>>>
>>>>>>>> Here is my Lucene and Solr 'move to Gradle' plans.
>>>>>>>>
>>>>>>>> * I plan on trying to commit the Gradle build by 9/30
>>>>>>>> * In the meantime I'll do a bit more work on packaging, publishing,
>>>>>>>> and dependencies.
>>>>>>>> * It would be great if others could start digging in a bit as well.
>>>>>>>> * I plan to try and sidecar Gradle to begin with. Once that
>>>>>>>> happens, I really need others to start digging in as we have a lot to do
>>>>>>>> (switch ci and other tools to the new build, figure out new release docs
>>>>>>>> and issues, finish the Solr documentation module (I'll try and get to that
>>>>>>>> earlier than later), and generally make things pleasant across as many dev
>>>>>>>> envs as we can.
>>>>>>>> * Beyond that, there will likely be a longer tail of smaller issues
>>>>>>>> or missing things even after we make the switch.
>>>>>>>> * I'll put some effort into the side car experiment for another
>>>>>>>> month or two perhaps (maybe not much in November)
>>>>>>>> * If things are not looking like we will be able to flip the
>>>>>>>> switch, I'll look at pulling out Gradle.
>>>>>>>>
>>>>>>>> - Mark
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> - Mark
>>>>>>>
>>>>>>> http://about.me/markrmiller
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> - Mark
>>>>>>
>>>>>> http://about.me/markrmiller
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> http://www.needhamsoftware.com (work)
>>>>> http://www.the111shift.com (play)
>>>>>
>>>>
>>>>
>>>> --
>>>> - Mark
>>>>
>>>> http://about.me/markrmiller
>>>>
>>>
>>>
>>> --
>>> - Mark
>>>
>>> http://about.me/markrmiller
>>>
>> --
>> - Mark
>>
>> http://about.me/markrmiller
>>
>
>
> --
> - Mark
>
> http://about.me/markrmiller
>


-- 
http://www.needhamsoftware.com (work)
http://www.the111shift.com (play)

Re: The Lucene Solr Gradle Build Game plan

Posted by Mark Miller <ma...@gmail.com>.
Okay, there is now a task called defaultUserConfig

You can do gw defaultUserConfig to set some recommended settings in
~/.gradle/gradle.properties. By default they should be more relaxed, but we
can tune as needed.

For better build performance but also more resource usage you can do:

gw defaultUserConfig --style=aggressive

Mark

On Sun, Sep 15, 2019 at 5:50 PM Mark Miller <ma...@gmail.com> wrote:

> By the way, I did hear about the hack day and some Gradle testing, which
> is great, and very useful. Totally needed, but we also need a bit of a more
> deep core developer view of things vs the old build as well. The type of
> stuff that’s much harder to tease out than verifying all the new build
> targets and such. Of course a lot of that can come after we switch, but I
> have a sneaky feeling some core devs will have deep opinions about certain
> things.
>
> Ill add a new task for default config setup.
>
> Mark
>
> On Sun, Sep 15, 2019 at 5:12 PM Mark Miller <ma...@gmail.com> wrote:
>
>> I'll just detail it out here as well:
>>
>> You can configure parallelism in ~/.gradle/gradle.properties
>>
>> org.gradle.workers.max=2
>> tests_jvms=5
>>
>> org.gradle.workers.max is controlled by gradle and defaults to the number
>> of cores detected - I wish I could change to divided by 2.
>> test_jvms is controlled by us and defaults to the number of cores
>> detected / 2.
>>
>> org.gradle.workers.max  controls the total number of jvms that will be
>> run in parallel - for tasks or tests or whatever gradle is doing.
>> test_jvms controls how many parallel jvms a module will use for tests,
>> but that is also limited by org.gradle.workers.max
>>
>> You should try setting both to cores / 2 and work down from there if
>> needed.
>>
>> When running tests across multiple modules, org.gradle.workers.max is the
>> actual limit for test jvms spun up because each module is only limited to
>> test_jvms, but ALL tasks are limited to org.gradle.workers.max and module
>> tasks are run in parallel by default.
>>
>> By setting them the same, we get similar behavior whether we run tests
>> from the root directory of the project (all tests) or from a single module
>> (say solr-core).
>>
>> On Sun, Sep 15, 2019 at 5:03 PM Mark Miller <ma...@gmail.com>
>> wrote:
>>
>>> I've added more about that here:
>>> https://cwiki.apache.org/confluence/display/SOLR/Intro+to+the+Gradle+build
>>>
>>> It's configurable, but difficult for us to choose a default based on
>>> cores as far as I can tell and gradles default, which is based on cores
>>> detected, is too high, especially because of hyperthreading.
>>>
>>> Probably the best we can do is default it to a hard 2 or 4 and let
>>> people raise it depending on what wait you want to error. In both cases the
>>> majority of people will want to change it.
>>>
>>> On Sun, Sep 15, 2019 at 3:39 PM Gus Heck <gu...@gmail.com> wrote:
>>>
>>>> Not sure if you heard, but about a half a dozen folks tried it out on
>>>> macs and one on windows at the hack day on Tuesday before Activate. It
>>>> caused some scrambling for sharing of power bricks (a single run of the
>>>> tests eats 70% of a fully charged 2018 macbook pro battery in 45 min), but
>>>> the good news is it only failed on well known flaky tests and on the one
>>>> windows machine and that in the PDF building for the ref guide (and there
>>>> was that small bit with the error message and the AtomicBoolean that I
>>>> fixed). I've heard some opinions that maybe we don't need the PDF version
>>>> in the future, The one bit of feedback that came out of it was it would be
>>>> nice to have a task that tweaked the configs things to not peg the
>>>> processor quite so efficiently :). Certainly we do want the mode for full
>>>> utilization to be available, but a background mode would be good too in
>>>> case folks need to do other work.
>>>>
>>>> -Gus
>>>>
>>>> On Sun, Sep 15, 2019 at 3:24 PM Mark Miller <ma...@gmail.com>
>>>> wrote:
>>>>
>>>>> Okay, I've tried to spread that link a little on social media as well.
>>>>>
>>>>> Please do some experimentation. Especially those of you that use or
>>>>> know more esoteric things about the build. The basics are pretty solid,
>>>>> most have been working for months now, it's the corners and crannies that
>>>>> I'm more concerned about. You could have built and run tests a few months
>>>>> ago and said, nice, it's working, but then I've done 10,000 things since
>>>>> then that were necessary. You may easily not realize things are a problem
>>>>> until you really dig into something.
>>>>>
>>>>> The more that devs can start trying out Gradle now, the less overlap
>>>>> of the two build systems we will need.
>>>>>
>>>>> The idea of the overlap is that it will almost force many of us to
>>>>> start trying things out - at which point we will start to understand any
>>>>> key things that are missing, key problems or bugs, etc. If I just make the
>>>>> switch and let the cards fall were they may, those cards are almost
>>>>> certainly going to be very disruptive and annoying to a lot of people.
>>>>>
>>>>> It will also give us a chance to start rolling CI and other tools over
>>>>> to using the Gradle build while ant+ivy are still available and in charge.
>>>>> I don't think it's a great idea to try and do this all at one moment, that
>>>>> will be difficult to coordinate and be more disruptive to less interested
>>>>> devs. We would like to keep the dual build situation contained and short
>>>>> though. That's why I have a plan to pull out if we don't make enough
>>>>> progress by a month or twos time (closer to a month).
>>>>>
>>>>> If we have enough experimentation ahead of time, the overlap can be
>>>>> very short - we start moving things like jenkins jobs over and when we are
>>>>> done and confident the world is not ending, we make some adjustments so
>>>>> that gradle owns the build (eg the dependency tree) and then remove
>>>>> ant+ivy+maven.
>>>>>
>>>>> Some things like the smoke tester and what not *can* come shortly
>>>>> after we switch I think - we have until the 9 release to truly get
>>>>> everything in order (keeping in mind that we are still developing so some
>>>>> things are still critical). But we need CI and other basics all moved over
>>>>> when we flip the ownership switch.
>>>>>
>>>>> - Mark
>>>>>
>>>>> On Sun, Sep 15, 2019 at 12:28 PM Mark Miller <ma...@gmail.com>
>>>>> wrote:
>>>>>
>>>>>> I've started to put together a little guide to help people ramp up
>>>>>> here:
>>>>>> https://cwiki.apache.org/confluence/display/SOLR/Intro+to+the+Gradle+build
>>>>>>
>>>>>> On Sat, Sep 14, 2019 at 9:09 PM Mark Miller <ma...@gmail.com>
>>>>>> wrote:
>>>>>>
>>>>>>> https://issues.apache.org/jira/browse/SOLR-13452
>>>>>>> Update the lucene-solr build from Ivy+Ant+Maven (shadow build) to
>>>>>>> Gradle.
>>>>>>>
>>>>>>> Hey all.
>>>>>>>
>>>>>>> Here is my Lucene and Solr 'move to Gradle' plans.
>>>>>>>
>>>>>>> * I plan on trying to commit the Gradle build by 9/30
>>>>>>> * In the meantime I'll do a bit more work on packaging, publishing,
>>>>>>> and dependencies.
>>>>>>> * It would be great if others could start digging in a bit as well.
>>>>>>> * I plan to try and sidecar Gradle to begin with. Once that happens,
>>>>>>> I really need others to start digging in as we have a lot to do (switch ci
>>>>>>> and other tools to the new build, figure out new release docs and issues,
>>>>>>> finish the Solr documentation module (I'll try and get to that earlier than
>>>>>>> later), and generally make things pleasant across as many dev envs as we
>>>>>>> can.
>>>>>>> * Beyond that, there will likely be a longer tail of smaller issues
>>>>>>> or missing things even after we make the switch.
>>>>>>> * I'll put some effort into the side car experiment for another
>>>>>>> month or two perhaps (maybe not much in November)
>>>>>>> * If things are not looking like we will be able to flip the switch,
>>>>>>> I'll look at pulling out Gradle.
>>>>>>>
>>>>>>> - Mark
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> - Mark
>>>>>>
>>>>>> http://about.me/markrmiller
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> - Mark
>>>>>
>>>>> http://about.me/markrmiller
>>>>>
>>>>
>>>>
>>>> --
>>>> http://www.needhamsoftware.com (work)
>>>> http://www.the111shift.com (play)
>>>>
>>>
>>>
>>> --
>>> - Mark
>>>
>>> http://about.me/markrmiller
>>>
>>
>>
>> --
>> - Mark
>>
>> http://about.me/markrmiller
>>
> --
> - Mark
>
> http://about.me/markrmiller
>


-- 
- Mark

http://about.me/markrmiller

Re: The Lucene Solr Gradle Build Game plan

Posted by Mark Miller <ma...@gmail.com>.
By the way, I did hear about the hack day and some Gradle testing, which is
great, and very useful. Totally needed, but we also need a bit of a more
deep core developer view of things vs the old build as well. The type of
stuff that’s much harder to tease out than verifying all the new build
targets and such. Of course a lot of that can come after we switch, but I
have a sneaky feeling some core devs will have deep opinions about certain
things.

Ill add a new task for default config setup.

Mark

On Sun, Sep 15, 2019 at 5:12 PM Mark Miller <ma...@gmail.com> wrote:

> I'll just detail it out here as well:
>
> You can configure parallelism in ~/.gradle/gradle.properties
>
> org.gradle.workers.max=2
> tests_jvms=5
>
> org.gradle.workers.max is controlled by gradle and defaults to the number
> of cores detected - I wish I could change to divided by 2.
> test_jvms is controlled by us and defaults to the number of cores detected
> / 2.
>
> org.gradle.workers.max  controls the total number of jvms that will be run
> in parallel - for tasks or tests or whatever gradle is doing.
> test_jvms controls how many parallel jvms a module will use for tests, but
> that is also limited by org.gradle.workers.max
>
> You should try setting both to cores / 2 and work down from there if
> needed.
>
> When running tests across multiple modules, org.gradle.workers.max is the
> actual limit for test jvms spun up because each module is only limited to
> test_jvms, but ALL tasks are limited to org.gradle.workers.max and module
> tasks are run in parallel by default.
>
> By setting them the same, we get similar behavior whether we run tests
> from the root directory of the project (all tests) or from a single module
> (say solr-core).
>
> On Sun, Sep 15, 2019 at 5:03 PM Mark Miller <ma...@gmail.com> wrote:
>
>> I've added more about that here:
>> https://cwiki.apache.org/confluence/display/SOLR/Intro+to+the+Gradle+build
>>
>> It's configurable, but difficult for us to choose a default based on
>> cores as far as I can tell and gradles default, which is based on cores
>> detected, is too high, especially because of hyperthreading.
>>
>> Probably the best we can do is default it to a hard 2 or 4 and let people
>> raise it depending on what wait you want to error. In both cases the
>> majority of people will want to change it.
>>
>> On Sun, Sep 15, 2019 at 3:39 PM Gus Heck <gu...@gmail.com> wrote:
>>
>>> Not sure if you heard, but about a half a dozen folks tried it out on
>>> macs and one on windows at the hack day on Tuesday before Activate. It
>>> caused some scrambling for sharing of power bricks (a single run of the
>>> tests eats 70% of a fully charged 2018 macbook pro battery in 45 min), but
>>> the good news is it only failed on well known flaky tests and on the one
>>> windows machine and that in the PDF building for the ref guide (and there
>>> was that small bit with the error message and the AtomicBoolean that I
>>> fixed). I've heard some opinions that maybe we don't need the PDF version
>>> in the future, The one bit of feedback that came out of it was it would be
>>> nice to have a task that tweaked the configs things to not peg the
>>> processor quite so efficiently :). Certainly we do want the mode for full
>>> utilization to be available, but a background mode would be good too in
>>> case folks need to do other work.
>>>
>>> -Gus
>>>
>>> On Sun, Sep 15, 2019 at 3:24 PM Mark Miller <ma...@gmail.com>
>>> wrote:
>>>
>>>> Okay, I've tried to spread that link a little on social media as well.
>>>>
>>>> Please do some experimentation. Especially those of you that use or
>>>> know more esoteric things about the build. The basics are pretty solid,
>>>> most have been working for months now, it's the corners and crannies that
>>>> I'm more concerned about. You could have built and run tests a few months
>>>> ago and said, nice, it's working, but then I've done 10,000 things since
>>>> then that were necessary. You may easily not realize things are a problem
>>>> until you really dig into something.
>>>>
>>>> The more that devs can start trying out Gradle now, the less overlap of
>>>> the two build systems we will need.
>>>>
>>>> The idea of the overlap is that it will almost force many of us to
>>>> start trying things out - at which point we will start to understand any
>>>> key things that are missing, key problems or bugs, etc. If I just make the
>>>> switch and let the cards fall were they may, those cards are almost
>>>> certainly going to be very disruptive and annoying to a lot of people.
>>>>
>>>> It will also give us a chance to start rolling CI and other tools over
>>>> to using the Gradle build while ant+ivy are still available and in charge.
>>>> I don't think it's a great idea to try and do this all at one moment, that
>>>> will be difficult to coordinate and be more disruptive to less interested
>>>> devs. We would like to keep the dual build situation contained and short
>>>> though. That's why I have a plan to pull out if we don't make enough
>>>> progress by a month or twos time (closer to a month).
>>>>
>>>> If we have enough experimentation ahead of time, the overlap can be
>>>> very short - we start moving things like jenkins jobs over and when we are
>>>> done and confident the world is not ending, we make some adjustments so
>>>> that gradle owns the build (eg the dependency tree) and then remove
>>>> ant+ivy+maven.
>>>>
>>>> Some things like the smoke tester and what not *can* come shortly after
>>>> we switch I think - we have until the 9 release to truly get everything in
>>>> order (keeping in mind that we are still developing so some things are
>>>> still critical). But we need CI and other basics all moved over when we
>>>> flip the ownership switch.
>>>>
>>>> - Mark
>>>>
>>>> On Sun, Sep 15, 2019 at 12:28 PM Mark Miller <ma...@gmail.com>
>>>> wrote:
>>>>
>>>>> I've started to put together a little guide to help people ramp up
>>>>> here:
>>>>> https://cwiki.apache.org/confluence/display/SOLR/Intro+to+the+Gradle+build
>>>>>
>>>>> On Sat, Sep 14, 2019 at 9:09 PM Mark Miller <ma...@gmail.com>
>>>>> wrote:
>>>>>
>>>>>> https://issues.apache.org/jira/browse/SOLR-13452
>>>>>> Update the lucene-solr build from Ivy+Ant+Maven (shadow build) to
>>>>>> Gradle.
>>>>>>
>>>>>> Hey all.
>>>>>>
>>>>>> Here is my Lucene and Solr 'move to Gradle' plans.
>>>>>>
>>>>>> * I plan on trying to commit the Gradle build by 9/30
>>>>>> * In the meantime I'll do a bit more work on packaging, publishing,
>>>>>> and dependencies.
>>>>>> * It would be great if others could start digging in a bit as well.
>>>>>> * I plan to try and sidecar Gradle to begin with. Once that happens,
>>>>>> I really need others to start digging in as we have a lot to do (switch ci
>>>>>> and other tools to the new build, figure out new release docs and issues,
>>>>>> finish the Solr documentation module (I'll try and get to that earlier than
>>>>>> later), and generally make things pleasant across as many dev envs as we
>>>>>> can.
>>>>>> * Beyond that, there will likely be a longer tail of smaller issues
>>>>>> or missing things even after we make the switch.
>>>>>> * I'll put some effort into the side car experiment for another month
>>>>>> or two perhaps (maybe not much in November)
>>>>>> * If things are not looking like we will be able to flip the switch,
>>>>>> I'll look at pulling out Gradle.
>>>>>>
>>>>>> - Mark
>>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> - Mark
>>>>>
>>>>> http://about.me/markrmiller
>>>>>
>>>>
>>>>
>>>> --
>>>> - Mark
>>>>
>>>> http://about.me/markrmiller
>>>>
>>>
>>>
>>> --
>>> http://www.needhamsoftware.com (work)
>>> http://www.the111shift.com (play)
>>>
>>
>>
>> --
>> - Mark
>>
>> http://about.me/markrmiller
>>
>
>
> --
> - Mark
>
> http://about.me/markrmiller
>
-- 
- Mark

http://about.me/markrmiller

Re: The Lucene Solr Gradle Build Game plan

Posted by Mark Miller <ma...@gmail.com>.
bq. Are we free to commit to that gradle branch or do you prefer PRs?

Commit away unless you are looking for feedback and a PR makes it easier.

I held onto it for long enough :) Time to get some more blood in this thing.

Also, if there are any things or parts that are important and you don't
have time for, file a JIRA and assign me and I will do it. Largely, I am
looking more for input and collaboration and what's more critically missing
then manual labor. At the same time, we need some labor too, because if
this goes in with me doing 99% of it, there is something that smells wrong
about moving.

bq. I’m not ready to push anything to the branch yet, but hopefully will be
in the next day or two.

Thanks so much Cassandra! Let me know if I can help on any trouble.

- Mark

On Tue, Sep 17, 2019 at 12:31 PM Cassandra Targett <ca...@gmail.com>
wrote:

> I got started on the Ref Guide build last night. The biggest change there
> is to use the asciidoctor-gradle-plugin instead of using the
> asciidoctor-ant plugin.
>
> So far I’ve got it working enough to build a single page of the Ref Guide
> into a PDF file. Baby steps ;)
>
> By itself that only gets us the PDF, while our HTML is built with several
> Ruby gems which we had to require people to install locally. However, the
> asciidoctor-gradle plugin includes JRuby, so fingers crossed we’ll finally
> be able to get that working and end up in a better place than we are today,
> and with a more unified build configuration than we currently have.
>
> I’m not ready to push anything to the branch yet, but hopefully will be in
> the next day or two.
>
> Cassandra
> On Sep 17, 2019, 5:02 AM -0500, Dawid Weiss <da...@gmail.com>,
> wrote:
>
> [...] last I remember Dawid signed up for it starting around today (15th)
> ;)
>
>
> Ah... so you remembered?... Kind of hoped you forgot. :)
>
> I'll take a look and try to tackle some of Chris's questions. Are we
> free to commit to that gradle branch or do you prefer PRs?
>
> D.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>
>

-- 
- Mark

http://about.me/markrmiller

Re: The Lucene Solr Gradle Build Game plan

Posted by Gus Heck <gu...@gmail.com>.
I mentioned when we chatted at activate that I had a build in the past that
was doing some pulling of gems... Looked back and it was actually using
https://github.com/robfletcher/gradle-compass which was doing the gem
management. Seems to use https://github.com/jruby-gradle/jruby-gradle-plugin to
pull gems (if I'm reading their code right). That could be helpful in
automating the requirements for the html ref guide.

On Tue, Sep 17, 2019 at 1:32 PM Cassandra Targett <ca...@gmail.com>
wrote:

> I got started on the Ref Guide build last night. The biggest change there
> is to use the asciidoctor-gradle-plugin instead of using the
> asciidoctor-ant plugin.
>
> So far I’ve got it working enough to build a single page of the Ref Guide
> into a PDF file. Baby steps ;)
>
> By itself that only gets us the PDF, while our HTML is built with several
> Ruby gems which we had to require people to install locally. However, the
> asciidoctor-gradle plugin includes JRuby, so fingers crossed we’ll finally
> be able to get that working and end up in a better place than we are today,
> and with a more unified build configuration than we currently have.
>
> I’m not ready to push anything to the branch yet, but hopefully will be in
> the next day or two.
>
> Cassandra
> On Sep 17, 2019, 5:02 AM -0500, Dawid Weiss <da...@gmail.com>,
> wrote:
>
> [...] last I remember Dawid signed up for it starting around today (15th)
> ;)
>
>
> Ah... so you remembered?... Kind of hoped you forgot. :)
>
> I'll take a look and try to tackle some of Chris's questions. Are we
> free to commit to that gradle branch or do you prefer PRs?
>
> D.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>
>

-- 
http://www.needhamsoftware.com (work)
http://www.the111shift.com (play)

Re: The Lucene Solr Gradle Build Game plan

Posted by Cassandra Targett <ca...@gmail.com>.
I got started on the Ref Guide build last night. The biggest change there is to use the asciidoctor-gradle-plugin instead of using the asciidoctor-ant plugin.

So far I’ve got it working enough to build a single page of the Ref Guide into a PDF file. Baby steps ;)

By itself that only gets us the PDF, while our HTML is built with several Ruby gems which we had to require people to install locally. However, the asciidoctor-gradle plugin includes JRuby, so fingers crossed we’ll finally be able to get that working and end up in a better place than we are today, and with a more unified build configuration than we currently have.

I’m not ready to push anything to the branch yet, but hopefully will be in the next day or two.

Cassandra
On Sep 17, 2019, 5:02 AM -0500, Dawid Weiss <da...@gmail.com>, wrote:
> > [...] last I remember Dawid signed up for it starting around today (15th) ;)
>
> Ah... so you remembered?... Kind of hoped you forgot. :)
>
> I'll take a look and try to tackle some of Chris's questions. Are we
> free to commit to that gradle branch or do you prefer PRs?
>
> D.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>

Re: The Lucene Solr Gradle Build Game plan

Posted by Dawid Weiss <da...@gmail.com>.
> [...] last I remember Dawid signed up for it starting around today (15th) ;)

Ah... so you remembered?... Kind of hoped you forgot. :)

I'll take a look and try to tackle some of Chris's questions. Are we
free to commit to that gradle branch or do you prefer PRs?

D.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Re: The Lucene Solr Gradle Build Game plan

Posted by Mark Miller <ma...@gmail.com>.
This is no reproduce output yet, in my mind that is waiting with the tests
seed work that I started on but needs review and finishing.

tests_jvms is jvms and no user param naming is yet thought out or final
when it comes to modifying the build. I've instead stuck to exposing few
things and expecting them to get exposed as needed.

tests_jvms is basically a default translation from ant, I'm hoping someone
else want's to own what happens here.

bq. how do we get *all* of the logging from failed tests to be written to
stdout/stderr when a test fail?

Most things are pretty easy in Gradle. If you want to do it or want me to
do it, please file a JIRA. If it's not a quick fix for someone, it would be
great to start tracking what each individual thinks is critical in JIRA.

All the test stuff needs review and some tweaks (has not changed sine last
email thread which you may not have caught), last I remember Dawid signed
up for it starting around today (15th) ;) See previous email chain.

bq. What's the plan as far as things like "ant beast"

beast stuff will come later

tests.jvms is tests_jvms :) The other settings along these lines are either
part of the test Runner (not most) or the Ant test launcher from
RandomizedTesting. We will have some form of beasting, but that's almost
last in line in terms of what I'm doing now.

- Mark

On Mon, Sep 16, 2019 at 1:59 PM Chris Hostetter <ho...@fucit.org>
wrote:

>
> Some misc questions after playing around with gradle on this branch for a
> bit today in no particular order...
>
> : tests_jvms=5
>         ...
> : test_jvms is controlled by us and defaults to the number of cores
> detected
> : / 2.
>
> If tests_jvms is a lucene/solr specific property, that needs to
> be in a users "multi-project" "~/.gradle" file ... shouldn't we name it
> namespace it with something like "lucene_solr_test_jvms" to make that
> clear reduce future confusion/collsion?  (as i anticipate this wo't be the
> last prop we may need)
>
> How do we get "reproduce with" type output (by default) when a test fails?
>
> For that matter, how do we get *all* of the logging from failed tests to
> be written to stdout/stderr when a test fail?  ... this is pretty
> important for making jenkin's console log a good "one stop shop" for
> understanding everything that went wrong in a build.
>
> ("--debug" and "--info" seem to do this, but they write a *TON* more
> gradle specific shit then "ant test" type logging use to produce by
> default, and don't care if the test passes or not ... which would make
> them way too excessively verbose for a jenkins build)
>
> What's the plan as far as things like "ant beast", "-Dtests.dups",
> "-Dtests.iters" & "-Dtests.jvms" ? ... those types of options are all
> pretty critical for diagnosing and troubleshooting failures.
> ("-Dtests.jvms=1" is important for figuring out if/how the execution of
> one test might polute static variables in the JVM that cause a failure in
> a subsequent class in the sane JVM)
>
> is there a simple option to prevent gradle from using curses even though
> it detects it's being run in a tty?
>
>
> -Hoss
> http://www.lucidworks.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>
>

-- 
- Mark

http://about.me/markrmiller

Re: The Lucene Solr Gradle Build Game plan

Posted by Mark Miller <ma...@gmail.com>.
Anyway, moving on from gradle properties - I'm sure that will work out just
fine. My vote is to add support for build.properties like we have now for
users, I've said what I think beyond that (gradle.properties is for the
gradle build), I don't think I'm needed anymore there.

In terms of your point about the build being too specialized or not,  I
agree. This is a big build, there is a lot going on. This is why I would
not be comfortable putting the build in if others don't get involved.

I expect plenty of points to come up. I expect we will get to talk about
those points and come to a decision on what to do. I can talk past a lot of
objects in a point by point response email chain, so I think it's best that
we devote a JIRA to anything that people feel is important in order to
focus an actionable discussion.

I won't say that my way will win every JIRA, but I will say that I have
thought about things very carefully in terms of what is relied on and what
conventions or standards are broken. Even still, we might change things for
style (there is plenty of subjective organizational things going on, I've
been waiting for Uwe to improve them) or I missed something or was wrong.
But I've spent some time in my head on this, so there is not just some
weird important thing that only I will understand and if I get hit by a
bus, on no. I see a lot of that everywhere I look and so I've made choices
carefully actually.

I'm super happy with most of the results, but there are likely better
options for many things, I'd love to hear them.

If there is something you feel you don't understand though:

* Perhaps it's because you have only just started looking at a complex 60
module project build made to coexist with an existing complicated build and
that takes a little time to get up to speed on always.
* It's something that can be easily dropped and is not relied on.

If it's something else, great, I'm looking for those most of all, let's
hear em.

- Mark

Re: The Lucene Solr Gradle Build Game plan

Posted by Mark Miller <ma...@gmail.com>.
Lastly, on testFast, it's a target I would add and support just for myself
regardless of if Gradle does a better job or if we used randomized testing
or if no one else used it.

I have to run a lot of tests, I have a lot of cores, and a general gradle
improvement or even the randomized testing solution pale in comparison to
what can be done for our specific test situation.

I can make our tests fast (which is critically helpful for hardcore devs),
rather than focus on some general test framework that does a so so job of
mitigating long test times.

Mark

On Fri, Sep 20, 2019 at 8:47 AM Mark Miller <ma...@gmail.com> wrote:

>
>
> On Fri, Sep 20, 2019 at 1:37 AM Dawid Weiss <da...@gmail.com> wrote:
>
>> Hi Mark,
>>
>> > I find the Gradle way of doing things odd, but I knew better than to
>> try and go directly against them.
>> > So none of this is really my choosing, I went with how you are supposed
>> to do it.
>>
>> Nah -- that's not really right. Gradle is really flexible and there is
>> no "convention" in my opinion. Everyone seems to do things their own
>> way. What you mentioned perhaps results from this layering of build
>> environment property shadowing:
>>
>> https://docs.gradle.org/current/userguide/build_environment.html
>>
>> What we deal with are two different categories of properties --
>> project properties (like tests.seed and other things affecting the
>> build) and properties configuring gradle itself (like
>> daemon-disabling, parallelisation, etc.).  My concern lies with local
>> configuration of the latter; messing with global gradle configuration
>> affects any other project you're working on which is what I'm not
>> comfortable with.
>>
>>
> There is convention for this :) The convention is to commit your
> gradle.properties and that is what holds your project config. It's widely
> done and promoted by the Gradle team. Bucking that is confusing and against
> best practices.
>
> What you do with your global gradle file is up to you, has nothing to do
> with convention, it just works how it works. If you don't want to put props
> in that file, no one will make you :)
>
>
>
>> > When it comes to allowing another prop file just for our project, I'm
>> all for it - just not the standard gradle.properties that is supposed to be
>> committed in a gradle project.
>>
>> It doesn't have to be committed nor is it needed in most cases. Just
>> about the only exception is when you need to alter gradle itself --
>> increase the heap or force some other settings. Like here:
>>
>> https://github.com/elastic/elasticsearch/blob/master/gradle.properties
>>
>> For anything else you can use your own properties (read from anywhere
>> you like) and layer them in any way you like.
>>
>>
> The convention is to commit it with gradle :) This is where the project
> properties like the version and often dep versions live.
>
> If you want a properties file that is not committed, you should make
> another and thats fine, just like build.properties with ant now.
>
>
>
>> > You cannot override any settings from your gradle home file regardless,
>> so it's a little non intuitive - gradle home props rule all.
>>
>> Yes and that's exactly my concern. Even when you think of
>> experimenting on different Lucene branches or having a "pristine"
>> build -- a clean checkout should just work without you having to worry
>> about any global overrides (in my opinion). A local non-versioned
>> developer-only override file would work nicer here.
>>
>> > Anyway, I have exposed like one of our properties, so no, it's not
>> thought out or how it's going to be at all. Probably that property should
>> be name spaced beyond tests_jvms (translated from tests.jvms),
>>
>> They can be dot-separated and this works just fine. You need to be a
>> bit more careful in groovy to quote it as a property but otherwise
>> it'll work just fine. See the examples I committed yesterday for
>> tests, for instance -Ptests.iters=5
>>
>> > Sucking in a user prop file like we do with ant sounds great, just have
>> to get used to the fact that you cannot override your global settings.
>>
>> That's my point -- if we don't have to mess with global settings then
>> we don't have to worry about it. Your "presets" task would still work
>> like a charm but instead of modifying globals it'd modify
>> local-non-versioned override file. This is easy to achieve (but you
>> have to move them out from gradle.properties which is a
>> higher-precedence level).]\
>>
>
> My presets are not how this is supposed to work! They are a simple tool to
> help non gradle people get something working today (like literally today)
> with reasonable settings. That is not how I expect normal people to
> configure gradle.
> It's def not how I expect someone that knows gradle to work.
>
> This is like if I made the ant build and showed you how to set some
> properties to try it out and you are like, no, I don't want to set
> properties via command line, that's crazy! I'd be like, okay, don't.
>
> I don't care how you want to set properties and I'm not here to set them
> for you (but I do want to give Gradle noobs that have to switch some easy
> options to get started!).
>
>
>>
>> > Anyway, I've never found it to be a problem. I didn't expect everyone
>> would customize our project settings in their gradle home file, I usually
>> put stuff there that I want to apply to all my checkouts (tests.jvms is
>> actually one of them), but all that is very individual.
>>
>> I think the configuration we have right now is incorrect in principle
>> (the two different types of configuration settings I mentioned at the
>> start are mixed). The daemon in particular already affected me
>> (because I'd like to tweak build settings with the daemon for faster
>> turnaround but at the same time not have it overridden globally).
>>
>
> I'm not really sure what you are talking about. The daemon is not
> controlled by us, it's controlled by you and what you put in your global
> file.
>
> I turned off the daemon in our config so that on CI it won't be used when
> no setting is in the global config. We can do that other ways. I think you
> are confused about what I'm doing here.
>
> This project is not trying to control your gradle settings, nor does it
> need to. It's trying to pick good defaults if you have not chosen to make
> those choices yourself.
>
> I don't expect anyone that knows Gradle to use the little task I have that
> spits out props. Thats also just going to spit them to the screen by
> default, it's going to be a tool to give noobs an idea of what can be set
> and what settings might work best for our project.
>
>
>>
>> > But running tests within a module, or even running all modules tests,
>> was no good. You have solr-core tests coming late, you have many tests that
>> pop up from short runs to minutes+ (often tests with many sub class tests),
>> and you have a static JVM assignment for each test. So basically, it's easy
>> to be running long tests at the end of a run and use few JVM's, and with
>> our tests, this can be devastating.
>>
>> As for "soft" ordering of test tasks between modules you could try to
>> configure cross-module task precedence with mustRunAfter (set it up
>> programmatically)... this is a bit of an overkill but it'll ensure no
>> tests run before the core tests are finished, for example.
>>
>> > We are a terrible case for gradles parallel tests.
>>
>> I read the issue history on their tracker. Indeed the situation could
>> be improved. This is something we can work on later though, really. We
>> can even switch the tests to an ant runner for now. The benefits of
>> other cleanups are worth facing the tests problem.
>>
>
> That I would rather not do - I think gradle test should stick to being
> gradle test, I saw that ES did that and it's something I disliked from the
> start.
>
>
>>
>> > So I started with solr-core generally taking 20+ minutes or more on my
>> 18 core machine, and with some other simple test taming, testFail can now
>> do it in just under 7 minutes.
>>
>> I haven't seen the implementation of this yet, but it's interesting.
>> My general remark for the gradle build system switch would be that we
>> try to make it simpler and easier... :) If you keep adding hardcore
>> tweaks of gradle internal tasks (like you already do) then things will
>> become hard to follow for others (like me) and you'll remain the only
>> person who understands how it works. :)
>>
>
> I would say this: their code to manage this is 1000 times more simple than
> the code to do it in randomized testing :)
>
> What are the current hardcore tweaks I'm making by the way? Bring them up
> for discussion. I think the only one that is really there is the plugin
> that makes deps actually work nice.
>
> Everything else I shoot for convention or best practices. It's just that
> without the consistent versions plugin, deps across modules in Gradle suck.
>
> Beyond that, having a target that works with tests until Gradle is not
> silly with them is really the only way to fix tests until they do a better
> job.
>
> I've made a second target so that anyone that wants to run tests the slow
> standard way can. The other Gradles targets will still depend on test.
>
> I'm not a fan of replacing internal Gradle tasks.
>
> I've been very careful about what I've added or changed actually - it's
> very well thought out.
>
> For something like testFast (or whatever it's called), first it's super
> simple code, second, it's not something we need to rely on (it's bonus).
> Third, it's ridiculously better than the test task for running tests in our
> project. Perfect qualities.
>
>
> --
> - Mark
>
> http://about.me/markrmiller
>


-- 
- Mark

http://about.me/markrmiller

Re: The Lucene Solr Gradle Build Game plan

Posted by Uwe Schindler <uw...@thetaphi.de>.
No problem with pushing.

But: please get rid of Maven and Ant builds as soon as possible. Having three systems at same time will be a full desaster (the Maven one got very outdated, I fixed the parts for Java 11 recently and updated some build time dependencies that were not updated correctly). IMHO, while we are on finalizing the switch to Gradle and removal of Ant and Maven stuff, we should stop updating versions of dependencies for a while.

Once we are ready on master, we can merge to 8.x and add the missing parts there (Java versions and also the Multirelease Jar task not yet ported to Gradle; I can work on that).

Once it is merged and working on both branches we should really remove Ant and Maven. After that we can proceed and update dependencies.

One important thing: Did you check that all compile time dependencies and version numbers of build tools (rat, forbidden,...) are equal between ant and Gradle?

Greetings from Apachecon,
Uwe

Am October 23, 2019 1:03:52 PM UTC schrieb Erick Erickson <er...@gmail.com>:
>Woohooo! Let the fun begin!
>
>I’ll update the “How To Contribute” page after you do and link to the
>Gradle Intro page. From what I just tried, both Ant and Gradle will
>peacefully co-exist at least for a while on master, correct?
>
>> On Oct 23, 2019, at 7:55 AM, Mark Miller <ma...@gmail.com>
>wrote:
>> 
>> Okay, I stayed up to deal with the current craziness around
>settings.gradle and the fallout from that again.
>> 
>> Let's just put this in master today and deal with the rest there.
>> 
>> - Mark
>> 
>> On Tue, Oct 22, 2019 at 8:37 PM Mark Miller <ma...@gmail.com>
>wrote:
>> 3rd time for a lot of it ;)
>> 
>> Yes, 7 is the latest Gradle branch and active and pushable. 
>> 
>> I keep what one is active up to date is the jira desc. 
>> 
>> I would not push too much complicated until I unfark settings.gradle.
>
>> 
>> Mark
>> 
>> On Tue, Oct 22, 2019 at 9:58 AM Erick Erickson
><er...@gmail.com> wrote:
>> Been there, done that. And it’s totally frustrating!
>> 
>> Just to make it totally clear to me, this is the solr-13452_gradle_7
>branch of the public repo, correct? And we all can push to it?
>> 
>> Cheer up, it’s always faster to do it the second time ;)…
>> 
>> In the bad old days when we didn’t have VCS and were working with
>“C”, the .c files and the compiled version .o were in the same
>directory. Twice in a week the boss typed:
>> 
>> ‘rm * .o’
>> 
>> rather than
>> 
>> ‘rm *.o”
>> 
>> deleting the source code as well. Oops. 
>> 
>> 
>> 
>> > On Oct 21, 2019, at 9:58 PM, Mark Miller <ma...@gmail.com>
>wrote:
>> > 
>> > And yes, if it's not clear, I've lost 80-90% of these same work
>before. Total idiot.
>> > 
>> > - Mark
>> > 
>> > On Mon, Oct 21, 2019 at 8:56 PM Mark Miller <ma...@gmail.com>
>wrote:
>> > The branch is there, certainly it can go in without me.
>> > 
>> > It does need the settings.xml fix. When I think about timing, my
>main concern is my availability - I'll be gone nov 14 to the end of the
>month and then holidays are busy. If others want to take on the
>responsibility though, I would not stop it. Trying to get gradle in
>while keeping my other work from going stale was looking like a tall
>order by the 14th.
>> > 
>> > I'm not sure what my plans are at the moment. I'm a totally idiot
>and just lost 10 days of 16-20 hours per day of work, including the
>settings.xml fix. Luckily at least that is straightforward enough to do
>again.
>> > 
>> > As it is, I have little to no desire to do much now. I'll try and
>make that settings fix soon and then the build is not ready (dist needs
>work, dependencies need vetting, some other make sure everything is
>100% stuff) but it can probably go in and get what it needs as we go.
>> > 
>> > - Mark
>> > 
>> > On Mon, Oct 21, 2019 at 7:49 AM Erick Erickson
><er...@gmail.com> wrote:
>> > Going out on a limb here, as in “this may be a whacky idea but
>let’s toss it around anyway”.
>> > 
>> > - Check in the test fixes and Gradle build in the current state to
>master/9.0 as soon as possible. Essentially let it break however it
>will, even if that means we shut off Jenkins for a while. Or only test
>Lucene. Or…..
>> > 
>> > - Concentrate (all of us in our copious spare time) on fixing
>master at least back to the state it is today reliability-wise.
>> > 
>> > - Cut Solr 9.0 when it’s ready. My _guess_ would be early next
>year.
>> > 
>> > - Slow/stop 8x development as necessary.
>> > 
>> > - Yes, the 8x code line will have a short life, about 1 year. Given
>that 9.0 was the first one we required Java 11, I pretty much expected
>that.
>> > 
>> > I don’t have strong feelings about this proposal, so feel free to
>shoot it down. That said, if we get the work Mark has done in front of
>everyone, there’s less incentive to “just let Mark do it”. And it’s not
>like we’d be breaking the currently released version.
>> > 
>> > Erick
>> > 
>> > > On Oct 21, 2019, at 7:39 AM, Martin Gainty <mg...@hotmail.com>
>wrote:
>> > > 
>> > > agree with david
>> > > as your schedule gets packed there are more than a few that are
>willing to pickup the slack
>> > > if the branch is checked-in and labelled we can tackle what needs
>to be done
>> > > From: David Smiley <da...@gmail.com>
>> > > Sent: Monday, October 21, 2019 2:13 AM
>> > > To: Mark Miller <ma...@gmail.com>
>> > > Cc: Lucene Dev <de...@lucene.apache.org>
>> > > Subject: Re: The Lucene Solr Gradle Build Game plan
>> > >  
>> > > Thanks for your efforts Mark!
>> > > 
>> > > Why has the migration to Gradle somehow been blocked by
>performance improvements to Solr's tests?
>> > > What are the blockers to the Gradle branch being merged to
>master?  It's an experimental shadow build, so... none?
>> > > 
>> > > I appreciate you want everything to be great from the beginning
>but I think it's better to try and find that subjective line where it's
>good enough to be committed then iterated on in follow-up issues.
>> > > 
>> > > ~ David Smiley
>> > > Apache Lucene/Solr Search Developer
>> > > http://www.linkedin.com/in/davidwsmiley
>> > > 
>> > > 
>> > > On Mon, Oct 21, 2019 at 1:30 AM Mark Miller
><ma...@gmail.com> wrote:
>> > > Hello Dawid, I'm sorry about the absence. I had a two week trip
>to SF and that tends to steal my mind, thank god something does.
>> > > 
>> > > Yes, I have local changes that you should likely wait for.
>> > > 
>> > > There is a substantial issue with how I was mapping our directory
>names to project names. That issue led to allowing some funny things
>and so addressing it makes the build a bit to a lot less silly. Sorry
>Tomoko Uchida :(
>> > > 
>> > > Anyway, I had to pause Gradle when I remembered that Solr tests
>are only slow for silly or broken reasons.
>> > > 
>> > > So I worked on that and then I remember that about a year and a
>half ago I had realized SolrCloud was seriously rotting in come very
>core and key areas. At the time I spent a lot of effort on my Starburst
>branch addressing some fundamental problems and patterns. I then had a
>6 week sabbatical and 3 week movie making trip. Though my own lack of
>care, I lost all that work and mostly forgot about the whole thing.
>> > > 
>> > > Coming back to that, after wasting a lot of effort trying to find
>my previous work, I set off to duplicate that work and hopefully take
>it a bit further. I really can't work on anything unless until that is
>on a clear path to being addressed unless someone attached to my
>livelihood forces me.
>> > > 
>> > > Meanwhile, I'll be gone half of November on across the world
>vacation and December is always a mess.
>> > > 
>> > > On the plus side, the gradle build has gotten some great testing,
>but I'm little fuzzy on when I'm ready. I will certainly be separating
>out these efforts. So I'll be extracting the gradle changes to the
>gradle branch and keeping my new state as a separate branch.
>> > > 
>> > > - Mark
>> > 
>> > 
>> >
>---------------------------------------------------------------------
>> > To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
>> > For additional commands, e-mail: dev-help@lucene.apache.org
>> > 
>> > 
>> > 
>> > -- 
>> > - Mark
>> > 
>> > http://about.me/markrmiller
>> > 
>> > 
>> > -- 
>> > - Mark
>> > 
>> > http://about.me/markrmiller
>> 
>> -- 
>> - Mark
>> 
>> http://about.me/markrmiller
>> 
>> 
>> -- 
>> - Mark
>> 
>> http://about.me/markrmiller
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
>For additional commands, e-mail: dev-help@lucene.apache.org

--
Uwe Schindler
Achterdiek 19, 28357 Bremen
https://www.thetaphi.de

Re: The Lucene Solr Gradle Build Game plan

Posted by Erick Erickson <er...@gmail.com>.
Woohooo! Let the fun begin!

I’ll update the “How To Contribute” page after you do and link to the Gradle Intro page. From what I just tried, both Ant and Gradle will peacefully co-exist at least for a while on master, correct?

> On Oct 23, 2019, at 7:55 AM, Mark Miller <ma...@gmail.com> wrote:
> 
> Okay, I stayed up to deal with the current craziness around settings.gradle and the fallout from that again.
> 
> Let's just put this in master today and deal with the rest there.
> 
> - Mark
> 
> On Tue, Oct 22, 2019 at 8:37 PM Mark Miller <ma...@gmail.com> wrote:
> 3rd time for a lot of it ;)
> 
> Yes, 7 is the latest Gradle branch and active and pushable. 
> 
> I keep what one is active up to date is the jira desc. 
> 
> I would not push too much complicated until I unfark settings.gradle. 
> 
> Mark
> 
> On Tue, Oct 22, 2019 at 9:58 AM Erick Erickson <er...@gmail.com> wrote:
> Been there, done that. And it’s totally frustrating!
> 
> Just to make it totally clear to me, this is the solr-13452_gradle_7 branch of the public repo, correct? And we all can push to it?
> 
> Cheer up, it’s always faster to do it the second time ;)…
> 
> In the bad old days when we didn’t have VCS and were working with “C”, the .c files and the compiled version .o were in the same directory. Twice in a week the boss typed:
> 
> ‘rm * .o’
> 
> rather than
> 
> ‘rm *.o”
> 
> deleting the source code as well. Oops. 
> 
> 
> 
> > On Oct 21, 2019, at 9:58 PM, Mark Miller <ma...@gmail.com> wrote:
> > 
> > And yes, if it's not clear, I've lost 80-90% of these same work before. Total idiot.
> > 
> > - Mark
> > 
> > On Mon, Oct 21, 2019 at 8:56 PM Mark Miller <ma...@gmail.com> wrote:
> > The branch is there, certainly it can go in without me.
> > 
> > It does need the settings.xml fix. When I think about timing, my main concern is my availability - I'll be gone nov 14 to the end of the month and then holidays are busy. If others want to take on the responsibility though, I would not stop it. Trying to get gradle in while keeping my other work from going stale was looking like a tall order by the 14th.
> > 
> > I'm not sure what my plans are at the moment. I'm a totally idiot and just lost 10 days of 16-20 hours per day of work, including the settings.xml fix. Luckily at least that is straightforward enough to do again.
> > 
> > As it is, I have little to no desire to do much now. I'll try and make that settings fix soon and then the build is not ready (dist needs work, dependencies need vetting, some other make sure everything is 100% stuff) but it can probably go in and get what it needs as we go.
> > 
> > - Mark
> > 
> > On Mon, Oct 21, 2019 at 7:49 AM Erick Erickson <er...@gmail.com> wrote:
> > Going out on a limb here, as in “this may be a whacky idea but let’s toss it around anyway”.
> > 
> > - Check in the test fixes and Gradle build in the current state to master/9.0 as soon as possible. Essentially let it break however it will, even if that means we shut off Jenkins for a while. Or only test Lucene. Or…..
> > 
> > - Concentrate (all of us in our copious spare time) on fixing master at least back to the state it is today reliability-wise.
> > 
> > - Cut Solr 9.0 when it’s ready. My _guess_ would be early next year.
> > 
> > - Slow/stop 8x development as necessary.
> > 
> > - Yes, the 8x code line will have a short life, about 1 year. Given that 9.0 was the first one we required Java 11, I pretty much expected that.
> > 
> > I don’t have strong feelings about this proposal, so feel free to shoot it down. That said, if we get the work Mark has done in front of everyone, there’s less incentive to “just let Mark do it”. And it’s not like we’d be breaking the currently released version.
> > 
> > Erick
> > 
> > > On Oct 21, 2019, at 7:39 AM, Martin Gainty <mg...@hotmail.com> wrote:
> > > 
> > > agree with david
> > > as your schedule gets packed there are more than a few that are willing to pickup the slack
> > > if the branch is checked-in and labelled we can tackle what needs to be done
> > > From: David Smiley <da...@gmail.com>
> > > Sent: Monday, October 21, 2019 2:13 AM
> > > To: Mark Miller <ma...@gmail.com>
> > > Cc: Lucene Dev <de...@lucene.apache.org>
> > > Subject: Re: The Lucene Solr Gradle Build Game plan
> > >  
> > > Thanks for your efforts Mark!
> > > 
> > > Why has the migration to Gradle somehow been blocked by performance improvements to Solr's tests?
> > > What are the blockers to the Gradle branch being merged to master?  It's an experimental shadow build, so... none?
> > > 
> > > I appreciate you want everything to be great from the beginning but I think it's better to try and find that subjective line where it's good enough to be committed then iterated on in follow-up issues.
> > > 
> > > ~ David Smiley
> > > Apache Lucene/Solr Search Developer
> > > http://www.linkedin.com/in/davidwsmiley
> > > 
> > > 
> > > On Mon, Oct 21, 2019 at 1:30 AM Mark Miller <ma...@gmail.com> wrote:
> > > Hello Dawid, I'm sorry about the absence. I had a two week trip to SF and that tends to steal my mind, thank god something does.
> > > 
> > > Yes, I have local changes that you should likely wait for.
> > > 
> > > There is a substantial issue with how I was mapping our directory names to project names. That issue led to allowing some funny things and so addressing it makes the build a bit to a lot less silly. Sorry Tomoko Uchida :(
> > > 
> > > Anyway, I had to pause Gradle when I remembered that Solr tests are only slow for silly or broken reasons.
> > > 
> > > So I worked on that and then I remember that about a year and a half ago I had realized SolrCloud was seriously rotting in come very core and key areas. At the time I spent a lot of effort on my Starburst branch addressing some fundamental problems and patterns. I then had a 6 week sabbatical and 3 week movie making trip. Though my own lack of care, I lost all that work and mostly forgot about the whole thing.
> > > 
> > > Coming back to that, after wasting a lot of effort trying to find my previous work, I set off to duplicate that work and hopefully take it a bit further. I really can't work on anything unless until that is on a clear path to being addressed unless someone attached to my livelihood forces me.
> > > 
> > > Meanwhile, I'll be gone half of November on across the world vacation and December is always a mess.
> > > 
> > > On the plus side, the gradle build has gotten some great testing, but I'm little fuzzy on when I'm ready. I will certainly be separating out these efforts. So I'll be extracting the gradle changes to the gradle branch and keeping my new state as a separate branch.
> > > 
> > > - Mark
> > 
> > 
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> > For additional commands, e-mail: dev-help@lucene.apache.org
> > 
> > 
> > 
> > -- 
> > - Mark
> > 
> > http://about.me/markrmiller
> > 
> > 
> > -- 
> > - Mark
> > 
> > http://about.me/markrmiller
> 
> -- 
> - Mark
> 
> http://about.me/markrmiller
> 
> 
> -- 
> - Mark
> 
> http://about.me/markrmiller


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Re: The Lucene Solr Gradle Build Game plan

Posted by Mark Miller <ma...@gmail.com>.
Okay, I stayed up to deal with the current craziness around settings.gradle
and the fallout from that again.

Let's just put this in master today and deal with the rest there.

- Mark

On Tue, Oct 22, 2019 at 8:37 PM Mark Miller <ma...@gmail.com> wrote:

> 3rd time for a lot of it ;)
>
> Yes, 7 is the latest Gradle branch and active and pushable.
>
> I keep what one is active up to date is the jira desc.
>
> I would not push too much complicated until I unfark settings.gradle.
>
> Mark
>
> On Tue, Oct 22, 2019 at 9:58 AM Erick Erickson <er...@gmail.com>
> wrote:
>
>> Been there, done that. And it’s totally frustrating!
>>
>> Just to make it totally clear to me, this is the solr-13452_gradle_7
>> branch of the public repo, correct? And we all can push to it?
>>
>> Cheer up, it’s always faster to do it the second time ;)…
>>
>> In the bad old days when we didn’t have VCS and were working with “C”,
>> the .c files and the compiled version .o were in the same directory. Twice
>> in a week the boss typed:
>>
>> ‘rm * .o’
>>
>> rather than
>>
>> ‘rm *.o”
>>
>> deleting the source code as well. Oops.
>>
>>
>>
>> > On Oct 21, 2019, at 9:58 PM, Mark Miller <ma...@gmail.com> wrote:
>> >
>> > And yes, if it's not clear, I've lost 80-90% of these same work before.
>> Total idiot.
>> >
>> > - Mark
>> >
>> > On Mon, Oct 21, 2019 at 8:56 PM Mark Miller <ma...@gmail.com>
>> wrote:
>> > The branch is there, certainly it can go in without me.
>> >
>> > It does need the settings.xml fix. When I think about timing, my main
>> concern is my availability - I'll be gone nov 14 to the end of the month
>> and then holidays are busy. If others want to take on the responsibility
>> though, I would not stop it. Trying to get gradle in while keeping my other
>> work from going stale was looking like a tall order by the 14th.
>> >
>> > I'm not sure what my plans are at the moment. I'm a totally idiot and
>> just lost 10 days of 16-20 hours per day of work, including the
>> settings.xml fix. Luckily at least that is straightforward enough to do
>> again.
>> >
>> > As it is, I have little to no desire to do much now. I'll try and make
>> that settings fix soon and then the build is not ready (dist needs work,
>> dependencies need vetting, some other make sure everything is 100% stuff)
>> but it can probably go in and get what it needs as we go.
>> >
>> > - Mark
>> >
>> > On Mon, Oct 21, 2019 at 7:49 AM Erick Erickson <er...@gmail.com>
>> wrote:
>> > Going out on a limb here, as in “this may be a whacky idea but let’s
>> toss it around anyway”.
>> >
>> > - Check in the test fixes and Gradle build in the current state to
>> master/9.0 as soon as possible. Essentially let it break however it will,
>> even if that means we shut off Jenkins for a while. Or only test Lucene.
>> Or…..
>> >
>> > - Concentrate (all of us in our copious spare time) on fixing master at
>> least back to the state it is today reliability-wise.
>> >
>> > - Cut Solr 9.0 when it’s ready. My _guess_ would be early next year.
>> >
>> > - Slow/stop 8x development as necessary.
>> >
>> > - Yes, the 8x code line will have a short life, about 1 year. Given
>> that 9.0 was the first one we required Java 11, I pretty much expected that.
>> >
>> > I don’t have strong feelings about this proposal, so feel free to shoot
>> it down. That said, if we get the work Mark has done in front of everyone,
>> there’s less incentive to “just let Mark do it”. And it’s not like we’d be
>> breaking the currently released version.
>> >
>> > Erick
>> >
>> > > On Oct 21, 2019, at 7:39 AM, Martin Gainty <mg...@hotmail.com>
>> wrote:
>> > >
>> > > agree with david
>> > > as your schedule gets packed there are more than a few that are
>> willing to pickup the slack
>> > > if the branch is checked-in and labelled we can tackle what needs to
>> be done
>> > > From: David Smiley <da...@gmail.com>
>> > > Sent: Monday, October 21, 2019 2:13 AM
>> > > To: Mark Miller <ma...@gmail.com>
>> > > Cc: Lucene Dev <de...@lucene.apache.org>
>> > > Subject: Re: The Lucene Solr Gradle Build Game plan
>> > >
>> > > Thanks for your efforts Mark!
>> > >
>> > > Why has the migration to Gradle somehow been blocked by performance
>> improvements to Solr's tests?
>> > > What are the blockers to the Gradle branch being merged to master?
>> It's an experimental shadow build, so... none?
>> > >
>> > > I appreciate you want everything to be great from the beginning but I
>> think it's better to try and find that subjective line where it's good
>> enough to be committed then iterated on in follow-up issues.
>> > >
>> > > ~ David Smiley
>> > > Apache Lucene/Solr Search Developer
>> > > http://www.linkedin.com/in/davidwsmiley
>> > >
>> > >
>> > > On Mon, Oct 21, 2019 at 1:30 AM Mark Miller <ma...@gmail.com>
>> wrote:
>> > > Hello Dawid, I'm sorry about the absence. I had a two week trip to SF
>> and that tends to steal my mind, thank god something does.
>> > >
>> > > Yes, I have local changes that you should likely wait for.
>> > >
>> > > There is a substantial issue with how I was mapping our directory
>> names to project names. That issue led to allowing some funny things and so
>> addressing it makes the build a bit to a lot less silly. Sorry Tomoko
>> Uchida :(
>> > >
>> > > Anyway, I had to pause Gradle when I remembered that Solr tests are
>> only slow for silly or broken reasons.
>> > >
>> > > So I worked on that and then I remember that about a year and a half
>> ago I had realized SolrCloud was seriously rotting in come very core and
>> key areas. At the time I spent a lot of effort on my Starburst branch
>> addressing some fundamental problems and patterns. I then had a 6 week
>> sabbatical and 3 week movie making trip. Though my own lack of care, I lost
>> all that work and mostly forgot about the whole thing.
>> > >
>> > > Coming back to that, after wasting a lot of effort trying to find my
>> previous work, I set off to duplicate that work and hopefully take it a bit
>> further. I really can't work on anything unless until that is on a clear
>> path to being addressed unless someone attached to my livelihood forces me.
>> > >
>> > > Meanwhile, I'll be gone half of November on across the world vacation
>> and December is always a mess.
>> > >
>> > > On the plus side, the gradle build has gotten some great testing, but
>> I'm little fuzzy on when I'm ready. I will certainly be separating out
>> these efforts. So I'll be extracting the gradle changes to the gradle
>> branch and keeping my new state as a separate branch.
>> > >
>> > > - Mark
>> >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
>> > For additional commands, e-mail: dev-help@lucene.apache.org
>> >
>> >
>> >
>> > --
>> > - Mark
>> >
>> > http://about.me/markrmiller
>> >
>> >
>> > --
>> > - Mark
>> >
>> > http://about.me/markrmiller
>>
>> --
> - Mark
>
> http://about.me/markrmiller
>


-- 
- Mark

http://about.me/markrmiller

Re: The Lucene Solr Gradle Build Game plan

Posted by Mark Miller <ma...@gmail.com>.
3rd time for a lot of it ;)

Yes, 7 is the latest Gradle branch and active and pushable.

I keep what one is active up to date is the jira desc.

I would not push too much complicated until I unfark settings.gradle.

Mark

On Tue, Oct 22, 2019 at 9:58 AM Erick Erickson <er...@gmail.com>
wrote:

> Been there, done that. And it’s totally frustrating!
>
> Just to make it totally clear to me, this is the solr-13452_gradle_7
> branch of the public repo, correct? And we all can push to it?
>
> Cheer up, it’s always faster to do it the second time ;)…
>
> In the bad old days when we didn’t have VCS and were working with “C”, the
> .c files and the compiled version .o were in the same directory. Twice in a
> week the boss typed:
>
> ‘rm * .o’
>
> rather than
>
> ‘rm *.o”
>
> deleting the source code as well. Oops.
>
>
>
> > On Oct 21, 2019, at 9:58 PM, Mark Miller <ma...@gmail.com> wrote:
> >
> > And yes, if it's not clear, I've lost 80-90% of these same work before.
> Total idiot.
> >
> > - Mark
> >
> > On Mon, Oct 21, 2019 at 8:56 PM Mark Miller <ma...@gmail.com>
> wrote:
> > The branch is there, certainly it can go in without me.
> >
> > It does need the settings.xml fix. When I think about timing, my main
> concern is my availability - I'll be gone nov 14 to the end of the month
> and then holidays are busy. If others want to take on the responsibility
> though, I would not stop it. Trying to get gradle in while keeping my other
> work from going stale was looking like a tall order by the 14th.
> >
> > I'm not sure what my plans are at the moment. I'm a totally idiot and
> just lost 10 days of 16-20 hours per day of work, including the
> settings.xml fix. Luckily at least that is straightforward enough to do
> again.
> >
> > As it is, I have little to no desire to do much now. I'll try and make
> that settings fix soon and then the build is not ready (dist needs work,
> dependencies need vetting, some other make sure everything is 100% stuff)
> but it can probably go in and get what it needs as we go.
> >
> > - Mark
> >
> > On Mon, Oct 21, 2019 at 7:49 AM Erick Erickson <er...@gmail.com>
> wrote:
> > Going out on a limb here, as in “this may be a whacky idea but let’s
> toss it around anyway”.
> >
> > - Check in the test fixes and Gradle build in the current state to
> master/9.0 as soon as possible. Essentially let it break however it will,
> even if that means we shut off Jenkins for a while. Or only test Lucene.
> Or…..
> >
> > - Concentrate (all of us in our copious spare time) on fixing master at
> least back to the state it is today reliability-wise.
> >
> > - Cut Solr 9.0 when it’s ready. My _guess_ would be early next year.
> >
> > - Slow/stop 8x development as necessary.
> >
> > - Yes, the 8x code line will have a short life, about 1 year. Given that
> 9.0 was the first one we required Java 11, I pretty much expected that.
> >
> > I don’t have strong feelings about this proposal, so feel free to shoot
> it down. That said, if we get the work Mark has done in front of everyone,
> there’s less incentive to “just let Mark do it”. And it’s not like we’d be
> breaking the currently released version.
> >
> > Erick
> >
> > > On Oct 21, 2019, at 7:39 AM, Martin Gainty <mg...@hotmail.com>
> wrote:
> > >
> > > agree with david
> > > as your schedule gets packed there are more than a few that are
> willing to pickup the slack
> > > if the branch is checked-in and labelled we can tackle what needs to
> be done
> > > From: David Smiley <da...@gmail.com>
> > > Sent: Monday, October 21, 2019 2:13 AM
> > > To: Mark Miller <ma...@gmail.com>
> > > Cc: Lucene Dev <de...@lucene.apache.org>
> > > Subject: Re: The Lucene Solr Gradle Build Game plan
> > >
> > > Thanks for your efforts Mark!
> > >
> > > Why has the migration to Gradle somehow been blocked by performance
> improvements to Solr's tests?
> > > What are the blockers to the Gradle branch being merged to master?
> It's an experimental shadow build, so... none?
> > >
> > > I appreciate you want everything to be great from the beginning but I
> think it's better to try and find that subjective line where it's good
> enough to be committed then iterated on in follow-up issues.
> > >
> > > ~ David Smiley
> > > Apache Lucene/Solr Search Developer
> > > http://www.linkedin.com/in/davidwsmiley
> > >
> > >
> > > On Mon, Oct 21, 2019 at 1:30 AM Mark Miller <ma...@gmail.com>
> wrote:
> > > Hello Dawid, I'm sorry about the absence. I had a two week trip to SF
> and that tends to steal my mind, thank god something does.
> > >
> > > Yes, I have local changes that you should likely wait for.
> > >
> > > There is a substantial issue with how I was mapping our directory
> names to project names. That issue led to allowing some funny things and so
> addressing it makes the build a bit to a lot less silly. Sorry Tomoko
> Uchida :(
> > >
> > > Anyway, I had to pause Gradle when I remembered that Solr tests are
> only slow for silly or broken reasons.
> > >
> > > So I worked on that and then I remember that about a year and a half
> ago I had realized SolrCloud was seriously rotting in come very core and
> key areas. At the time I spent a lot of effort on my Starburst branch
> addressing some fundamental problems and patterns. I then had a 6 week
> sabbatical and 3 week movie making trip. Though my own lack of care, I lost
> all that work and mostly forgot about the whole thing.
> > >
> > > Coming back to that, after wasting a lot of effort trying to find my
> previous work, I set off to duplicate that work and hopefully take it a bit
> further. I really can't work on anything unless until that is on a clear
> path to being addressed unless someone attached to my livelihood forces me.
> > >
> > > Meanwhile, I'll be gone half of November on across the world vacation
> and December is always a mess.
> > >
> > > On the plus side, the gradle build has gotten some great testing, but
> I'm little fuzzy on when I'm ready. I will certainly be separating out
> these efforts. So I'll be extracting the gradle changes to the gradle
> branch and keeping my new state as a separate branch.
> > >
> > > - Mark
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> > For additional commands, e-mail: dev-help@lucene.apache.org
> >
> >
> >
> > --
> > - Mark
> >
> > http://about.me/markrmiller
> >
> >
> > --
> > - Mark
> >
> > http://about.me/markrmiller
>
> --
- Mark

http://about.me/markrmiller

Re: The Lucene Solr Gradle Build Game plan

Posted by Erick Erickson <er...@gmail.com>.
Been there, done that. And it’s totally frustrating!

Just to make it totally clear to me, this is the solr-13452_gradle_7 branch of the public repo, correct? And we all can push to it?

Cheer up, it’s always faster to do it the second time ;)…

In the bad old days when we didn’t have VCS and were working with “C”, the .c files and the compiled version .o were in the same directory. Twice in a week the boss typed:

‘rm * .o’

rather than

‘rm *.o”

deleting the source code as well. Oops. 



> On Oct 21, 2019, at 9:58 PM, Mark Miller <ma...@gmail.com> wrote:
> 
> And yes, if it's not clear, I've lost 80-90% of these same work before. Total idiot.
> 
> - Mark
> 
> On Mon, Oct 21, 2019 at 8:56 PM Mark Miller <ma...@gmail.com> wrote:
> The branch is there, certainly it can go in without me.
> 
> It does need the settings.xml fix. When I think about timing, my main concern is my availability - I'll be gone nov 14 to the end of the month and then holidays are busy. If others want to take on the responsibility though, I would not stop it. Trying to get gradle in while keeping my other work from going stale was looking like a tall order by the 14th.
> 
> I'm not sure what my plans are at the moment. I'm a totally idiot and just lost 10 days of 16-20 hours per day of work, including the settings.xml fix. Luckily at least that is straightforward enough to do again.
> 
> As it is, I have little to no desire to do much now. I'll try and make that settings fix soon and then the build is not ready (dist needs work, dependencies need vetting, some other make sure everything is 100% stuff) but it can probably go in and get what it needs as we go.
> 
> - Mark
> 
> On Mon, Oct 21, 2019 at 7:49 AM Erick Erickson <er...@gmail.com> wrote:
> Going out on a limb here, as in “this may be a whacky idea but let’s toss it around anyway”.
> 
> - Check in the test fixes and Gradle build in the current state to master/9.0 as soon as possible. Essentially let it break however it will, even if that means we shut off Jenkins for a while. Or only test Lucene. Or…..
> 
> - Concentrate (all of us in our copious spare time) on fixing master at least back to the state it is today reliability-wise.
> 
> - Cut Solr 9.0 when it’s ready. My _guess_ would be early next year.
> 
> - Slow/stop 8x development as necessary.
> 
> - Yes, the 8x code line will have a short life, about 1 year. Given that 9.0 was the first one we required Java 11, I pretty much expected that.
> 
> I don’t have strong feelings about this proposal, so feel free to shoot it down. That said, if we get the work Mark has done in front of everyone, there’s less incentive to “just let Mark do it”. And it’s not like we’d be breaking the currently released version.
> 
> Erick
> 
> > On Oct 21, 2019, at 7:39 AM, Martin Gainty <mg...@hotmail.com> wrote:
> > 
> > agree with david
> > as your schedule gets packed there are more than a few that are willing to pickup the slack
> > if the branch is checked-in and labelled we can tackle what needs to be done
> > From: David Smiley <da...@gmail.com>
> > Sent: Monday, October 21, 2019 2:13 AM
> > To: Mark Miller <ma...@gmail.com>
> > Cc: Lucene Dev <de...@lucene.apache.org>
> > Subject: Re: The Lucene Solr Gradle Build Game plan
> >  
> > Thanks for your efforts Mark!
> > 
> > Why has the migration to Gradle somehow been blocked by performance improvements to Solr's tests?
> > What are the blockers to the Gradle branch being merged to master?  It's an experimental shadow build, so... none?
> > 
> > I appreciate you want everything to be great from the beginning but I think it's better to try and find that subjective line where it's good enough to be committed then iterated on in follow-up issues.
> > 
> > ~ David Smiley
> > Apache Lucene/Solr Search Developer
> > http://www.linkedin.com/in/davidwsmiley
> > 
> > 
> > On Mon, Oct 21, 2019 at 1:30 AM Mark Miller <ma...@gmail.com> wrote:
> > Hello Dawid, I'm sorry about the absence. I had a two week trip to SF and that tends to steal my mind, thank god something does.
> > 
> > Yes, I have local changes that you should likely wait for.
> > 
> > There is a substantial issue with how I was mapping our directory names to project names. That issue led to allowing some funny things and so addressing it makes the build a bit to a lot less silly. Sorry Tomoko Uchida :(
> > 
> > Anyway, I had to pause Gradle when I remembered that Solr tests are only slow for silly or broken reasons.
> > 
> > So I worked on that and then I remember that about a year and a half ago I had realized SolrCloud was seriously rotting in come very core and key areas. At the time I spent a lot of effort on my Starburst branch addressing some fundamental problems and patterns. I then had a 6 week sabbatical and 3 week movie making trip. Though my own lack of care, I lost all that work and mostly forgot about the whole thing.
> > 
> > Coming back to that, after wasting a lot of effort trying to find my previous work, I set off to duplicate that work and hopefully take it a bit further. I really can't work on anything unless until that is on a clear path to being addressed unless someone attached to my livelihood forces me.
> > 
> > Meanwhile, I'll be gone half of November on across the world vacation and December is always a mess.
> > 
> > On the plus side, the gradle build has gotten some great testing, but I'm little fuzzy on when I'm ready. I will certainly be separating out these efforts. So I'll be extracting the gradle changes to the gradle branch and keeping my new state as a separate branch.
> > 
> > - Mark
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
> 
> 
> 
> -- 
> - Mark
> 
> http://about.me/markrmiller
> 
> 
> -- 
> - Mark
> 
> http://about.me/markrmiller


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Re: The Lucene Solr Gradle Build Game plan

Posted by Mark Miller <ma...@gmail.com>.
And yes, if it's not clear, I've lost 80-90% of these same work before.
Total idiot.

- Mark

On Mon, Oct 21, 2019 at 8:56 PM Mark Miller <ma...@gmail.com> wrote:

> The branch is there, certainly it can go in without me.
>
> It does need the settings.xml fix. When I think about timing, my main
> concern is my availability - I'll be gone nov 14 to the end of the month
> and then holidays are busy. If others want to take on the responsibility
> though, I would not stop it. Trying to get gradle in while keeping my other
> work from going stale was looking like a tall order by the 14th.
>
> I'm not sure what my plans are at the moment. I'm a totally idiot and just
> lost 10 days of 16-20 hours per day of work, including the settings.xml
> fix. Luckily at least that is straightforward enough to do again.
>
> As it is, I have little to no desire to do much now. I'll try and make
> that settings fix soon and then the build is not ready (dist needs work,
> dependencies need vetting, some other make sure everything is 100% stuff)
> but it can probably go in and get what it needs as we go.
>
> - Mark
>
> On Mon, Oct 21, 2019 at 7:49 AM Erick Erickson <er...@gmail.com>
> wrote:
>
>> Going out on a limb here, as in “this may be a whacky idea but let’s toss
>> it around anyway”.
>>
>> - Check in the test fixes and Gradle build in the current state to
>> master/9.0 as soon as possible. Essentially let it break however it will,
>> even if that means we shut off Jenkins for a while. Or only test Lucene.
>> Or…..
>>
>> - Concentrate (all of us in our copious spare time) on fixing master at
>> least back to the state it is today reliability-wise.
>>
>> - Cut Solr 9.0 when it’s ready. My _guess_ would be early next year.
>>
>> - Slow/stop 8x development as necessary.
>>
>> - Yes, the 8x code line will have a short life, about 1 year. Given that
>> 9.0 was the first one we required Java 11, I pretty much expected that.
>>
>> I don’t have strong feelings about this proposal, so feel free to shoot
>> it down. That said, if we get the work Mark has done in front of everyone,
>> there’s less incentive to “just let Mark do it”. And it’s not like we’d be
>> breaking the currently released version.
>>
>> Erick
>>
>> > On Oct 21, 2019, at 7:39 AM, Martin Gainty <mg...@hotmail.com> wrote:
>> >
>> > agree with david
>> > as your schedule gets packed there are more than a few that are willing
>> to pickup the slack
>> > if the branch is checked-in and labelled we can tackle what needs to be
>> done
>> > From: David Smiley <da...@gmail.com>
>> > Sent: Monday, October 21, 2019 2:13 AM
>> > To: Mark Miller <ma...@gmail.com>
>> > Cc: Lucene Dev <de...@lucene.apache.org>
>> > Subject: Re: The Lucene Solr Gradle Build Game plan
>> >
>> > Thanks for your efforts Mark!
>> >
>> > Why has the migration to Gradle somehow been blocked by performance
>> improvements to Solr's tests?
>> > What are the blockers to the Gradle branch being merged to master?
>> It's an experimental shadow build, so... none?
>> >
>> > I appreciate you want everything to be great from the beginning but I
>> think it's better to try and find that subjective line where it's good
>> enough to be committed then iterated on in follow-up issues.
>> >
>> > ~ David Smiley
>> > Apache Lucene/Solr Search Developer
>> > http://www.linkedin.com/in/davidwsmiley
>> >
>> >
>> > On Mon, Oct 21, 2019 at 1:30 AM Mark Miller <ma...@gmail.com>
>> wrote:
>> > Hello Dawid, I'm sorry about the absence. I had a two week trip to SF
>> and that tends to steal my mind, thank god something does.
>> >
>> > Yes, I have local changes that you should likely wait for.
>> >
>> > There is a substantial issue with how I was mapping our directory names
>> to project names. That issue led to allowing some funny things and so
>> addressing it makes the build a bit to a lot less silly. Sorry Tomoko
>> Uchida :(
>> >
>> > Anyway, I had to pause Gradle when I remembered that Solr tests are
>> only slow for silly or broken reasons.
>> >
>> > So I worked on that and then I remember that about a year and a half
>> ago I had realized SolrCloud was seriously rotting in come very core and
>> key areas. At the time I spent a lot of effort on my Starburst branch
>> addressing some fundamental problems and patterns. I then had a 6 week
>> sabbatical and 3 week movie making trip. Though my own lack of care, I lost
>> all that work and mostly forgot about the whole thing.
>> >
>> > Coming back to that, after wasting a lot of effort trying to find my
>> previous work, I set off to duplicate that work and hopefully take it a bit
>> further. I really can't work on anything unless until that is on a clear
>> path to being addressed unless someone attached to my livelihood forces me.
>> >
>> > Meanwhile, I'll be gone half of November on across the world vacation
>> and December is always a mess.
>> >
>> > On the plus side, the gradle build has gotten some great testing, but
>> I'm little fuzzy on when I'm ready. I will certainly be separating out
>> these efforts. So I'll be extracting the gradle changes to the gradle
>> branch and keeping my new state as a separate branch.
>> >
>> > - Mark
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: dev-help@lucene.apache.org
>>
>>
>
> --
> - Mark
>
> http://about.me/markrmiller
>


-- 
- Mark

http://about.me/markrmiller

Re: The Lucene Solr Gradle Build Game plan

Posted by Mark Miller <ma...@gmail.com>.
The branch is there, certainly it can go in without me.

It does need the settings.xml fix. When I think about timing, my main
concern is my availability - I'll be gone nov 14 to the end of the month
and then holidays are busy. If others want to take on the responsibility
though, I would not stop it. Trying to get gradle in while keeping my other
work from going stale was looking like a tall order by the 14th.

I'm not sure what my plans are at the moment. I'm a totally idiot and just
lost 10 days of 16-20 hours per day of work, including the settings.xml
fix. Luckily at least that is straightforward enough to do again.

As it is, I have little to no desire to do much now. I'll try and make that
settings fix soon and then the build is not ready (dist needs work,
dependencies need vetting, some other make sure everything is 100% stuff)
but it can probably go in and get what it needs as we go.

- Mark

On Mon, Oct 21, 2019 at 7:49 AM Erick Erickson <er...@gmail.com>
wrote:

> Going out on a limb here, as in “this may be a whacky idea but let’s toss
> it around anyway”.
>
> - Check in the test fixes and Gradle build in the current state to
> master/9.0 as soon as possible. Essentially let it break however it will,
> even if that means we shut off Jenkins for a while. Or only test Lucene.
> Or…..
>
> - Concentrate (all of us in our copious spare time) on fixing master at
> least back to the state it is today reliability-wise.
>
> - Cut Solr 9.0 when it’s ready. My _guess_ would be early next year.
>
> - Slow/stop 8x development as necessary.
>
> - Yes, the 8x code line will have a short life, about 1 year. Given that
> 9.0 was the first one we required Java 11, I pretty much expected that.
>
> I don’t have strong feelings about this proposal, so feel free to shoot it
> down. That said, if we get the work Mark has done in front of everyone,
> there’s less incentive to “just let Mark do it”. And it’s not like we’d be
> breaking the currently released version.
>
> Erick
>
> > On Oct 21, 2019, at 7:39 AM, Martin Gainty <mg...@hotmail.com> wrote:
> >
> > agree with david
> > as your schedule gets packed there are more than a few that are willing
> to pickup the slack
> > if the branch is checked-in and labelled we can tackle what needs to be
> done
> > From: David Smiley <da...@gmail.com>
> > Sent: Monday, October 21, 2019 2:13 AM
> > To: Mark Miller <ma...@gmail.com>
> > Cc: Lucene Dev <de...@lucene.apache.org>
> > Subject: Re: The Lucene Solr Gradle Build Game plan
> >
> > Thanks for your efforts Mark!
> >
> > Why has the migration to Gradle somehow been blocked by performance
> improvements to Solr's tests?
> > What are the blockers to the Gradle branch being merged to master?  It's
> an experimental shadow build, so... none?
> >
> > I appreciate you want everything to be great from the beginning but I
> think it's better to try and find that subjective line where it's good
> enough to be committed then iterated on in follow-up issues.
> >
> > ~ David Smiley
> > Apache Lucene/Solr Search Developer
> > http://www.linkedin.com/in/davidwsmiley
> >
> >
> > On Mon, Oct 21, 2019 at 1:30 AM Mark Miller <ma...@gmail.com>
> wrote:
> > Hello Dawid, I'm sorry about the absence. I had a two week trip to SF
> and that tends to steal my mind, thank god something does.
> >
> > Yes, I have local changes that you should likely wait for.
> >
> > There is a substantial issue with how I was mapping our directory names
> to project names. That issue led to allowing some funny things and so
> addressing it makes the build a bit to a lot less silly. Sorry Tomoko
> Uchida :(
> >
> > Anyway, I had to pause Gradle when I remembered that Solr tests are only
> slow for silly or broken reasons.
> >
> > So I worked on that and then I remember that about a year and a half ago
> I had realized SolrCloud was seriously rotting in come very core and key
> areas. At the time I spent a lot of effort on my Starburst branch
> addressing some fundamental problems and patterns. I then had a 6 week
> sabbatical and 3 week movie making trip. Though my own lack of care, I lost
> all that work and mostly forgot about the whole thing.
> >
> > Coming back to that, after wasting a lot of effort trying to find my
> previous work, I set off to duplicate that work and hopefully take it a bit
> further. I really can't work on anything unless until that is on a clear
> path to being addressed unless someone attached to my livelihood forces me.
> >
> > Meanwhile, I'll be gone half of November on across the world vacation
> and December is always a mess.
> >
> > On the plus side, the gradle build has gotten some great testing, but
> I'm little fuzzy on when I'm ready. I will certainly be separating out
> these efforts. So I'll be extracting the gradle changes to the gradle
> branch and keeping my new state as a separate branch.
> >
> > - Mark
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>
>

-- 
- Mark

http://about.me/markrmiller

Re: The Lucene Solr Gradle Build Game plan

Posted by Erick Erickson <er...@gmail.com>.
Going out on a limb here, as in “this may be a whacky idea but let’s toss it around anyway”.

- Check in the test fixes and Gradle build in the current state to master/9.0 as soon as possible. Essentially let it break however it will, even if that means we shut off Jenkins for a while. Or only test Lucene. Or…..

- Concentrate (all of us in our copious spare time) on fixing master at least back to the state it is today reliability-wise.

- Cut Solr 9.0 when it’s ready. My _guess_ would be early next year.

- Slow/stop 8x development as necessary.

- Yes, the 8x code line will have a short life, about 1 year. Given that 9.0 was the first one we required Java 11, I pretty much expected that.

I don’t have strong feelings about this proposal, so feel free to shoot it down. That said, if we get the work Mark has done in front of everyone, there’s less incentive to “just let Mark do it”. And it’s not like we’d be breaking the currently released version.

Erick

> On Oct 21, 2019, at 7:39 AM, Martin Gainty <mg...@hotmail.com> wrote:
> 
> agree with david
> as your schedule gets packed there are more than a few that are willing to pickup the slack
> if the branch is checked-in and labelled we can tackle what needs to be done
> From: David Smiley <da...@gmail.com>
> Sent: Monday, October 21, 2019 2:13 AM
> To: Mark Miller <ma...@gmail.com>
> Cc: Lucene Dev <de...@lucene.apache.org>
> Subject: Re: The Lucene Solr Gradle Build Game plan
>  
> Thanks for your efforts Mark!
> 
> Why has the migration to Gradle somehow been blocked by performance improvements to Solr's tests?
> What are the blockers to the Gradle branch being merged to master?  It's an experimental shadow build, so... none?
> 
> I appreciate you want everything to be great from the beginning but I think it's better to try and find that subjective line where it's good enough to be committed then iterated on in follow-up issues.
> 
> ~ David Smiley
> Apache Lucene/Solr Search Developer
> http://www.linkedin.com/in/davidwsmiley
> 
> 
> On Mon, Oct 21, 2019 at 1:30 AM Mark Miller <ma...@gmail.com> wrote:
> Hello Dawid, I'm sorry about the absence. I had a two week trip to SF and that tends to steal my mind, thank god something does.
> 
> Yes, I have local changes that you should likely wait for.
> 
> There is a substantial issue with how I was mapping our directory names to project names. That issue led to allowing some funny things and so addressing it makes the build a bit to a lot less silly. Sorry Tomoko Uchida :(
> 
> Anyway, I had to pause Gradle when I remembered that Solr tests are only slow for silly or broken reasons.
> 
> So I worked on that and then I remember that about a year and a half ago I had realized SolrCloud was seriously rotting in come very core and key areas. At the time I spent a lot of effort on my Starburst branch addressing some fundamental problems and patterns. I then had a 6 week sabbatical and 3 week movie making trip. Though my own lack of care, I lost all that work and mostly forgot about the whole thing.
> 
> Coming back to that, after wasting a lot of effort trying to find my previous work, I set off to duplicate that work and hopefully take it a bit further. I really can't work on anything unless until that is on a clear path to being addressed unless someone attached to my livelihood forces me.
> 
> Meanwhile, I'll be gone half of November on across the world vacation and December is always a mess.
> 
> On the plus side, the gradle build has gotten some great testing, but I'm little fuzzy on when I'm ready. I will certainly be separating out these efforts. So I'll be extracting the gradle changes to the gradle branch and keeping my new state as a separate branch.
> 
> - Mark


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Re: The Lucene Solr Gradle Build Game plan

Posted by Martin Gainty <mg...@hotmail.com>.
agree with david
as your schedule gets packed there are more than a few that are willing to pickup the slack
if the branch is checked-in and labelled we can tackle what needs to be done
________________________________
From: David Smiley <da...@gmail.com>
Sent: Monday, October 21, 2019 2:13 AM
To: Mark Miller <ma...@gmail.com>
Cc: Lucene Dev <de...@lucene.apache.org>
Subject: Re: The Lucene Solr Gradle Build Game plan

Thanks for your efforts Mark!

Why has the migration to Gradle somehow been blocked by performance improvements to Solr's tests?
What are the blockers to the Gradle branch being merged to master?  It's an experimental shadow build, so... none?

I appreciate you want everything to be great from the beginning but I think it's better to try and find that subjective line where it's good enough to be committed then iterated on in follow-up issues.

~ David Smiley
Apache Lucene/Solr Search Developer
http://www.linkedin.com/in/davidwsmiley


On Mon, Oct 21, 2019 at 1:30 AM Mark Miller <ma...@gmail.com>> wrote:
Hello Dawid, I'm sorry about the absence. I had a two week trip to SF and that tends to steal my mind, thank god something does.

Yes, I have local changes that you should likely wait for.

There is a substantial issue with how I was mapping our directory names to project names. That issue led to allowing some funny things and so addressing it makes the build a bit to a lot less silly. Sorry Tomoko Uchida :(

Anyway, I had to pause Gradle when I remembered that Solr tests are only slow for silly or broken reasons.

So I worked on that and then I remember that about a year and a half ago I had realized SolrCloud was seriously rotting in come very core and key areas. At the time I spent a lot of effort on my Starburst branch addressing some fundamental problems and patterns. I then had a 6 week sabbatical and 3 week movie making trip. Though my own lack of care, I lost all that work and mostly forgot about the whole thing.

Coming back to that, after wasting a lot of effort trying to find my previous work, I set off to duplicate that work and hopefully take it a bit further. I really can't work on anything unless until that is on a clear path to being addressed unless someone attached to my livelihood forces me.

Meanwhile, I'll be gone half of November on across the world vacation and December is always a mess.

On the plus side, the gradle build has gotten some great testing, but I'm little fuzzy on when I'm ready. I will certainly be separating out these efforts. So I'll be extracting the gradle changes to the gradle branch and keeping my new state as a separate branch.

- Mark






Re: The Lucene Solr Gradle Build Game plan

Posted by Dawid Weiss <da...@gmail.com>.
Thanks for clarifying, Mark. We all have real jobs (and life) so
delays are I think understandable. I tend to agree with David that
even something that is slow at start has benefits but I respect your
will to keep the partial work unpublished.

I've made some changes here and there (the original gradle branch,
Solr ref guide) and some seem valuable even now -- for example I can
compile the ref guide without installing any extra tools, which is
great.

D.

On Mon, Oct 21, 2019 at 7:30 AM Mark Miller <ma...@gmail.com> wrote:
>
> Hello Dawid, I'm sorry about the absence. I had a two week trip to SF and that tends to steal my mind, thank god something does.
>
> Yes, I have local changes that you should likely wait for.
>
> There is a substantial issue with how I was mapping our directory names to project names. That issue led to allowing some funny things and so addressing it makes the build a bit to a lot less silly. Sorry Tomoko Uchida :(
>
> Anyway, I had to pause Gradle when I remembered that Solr tests are only slow for silly or broken reasons.
>
> So I worked on that and then I remember that about a year and a half ago I had realized SolrCloud was seriously rotting in come very core and key areas. At the time I spent a lot of effort on my Starburst branch addressing some fundamental problems and patterns. I then had a 6 week sabbatical and 3 week movie making trip. Though my own lack of care, I lost all that work and mostly forgot about the whole thing.
>
> Coming back to that, after wasting a lot of effort trying to find my previous work, I set off to duplicate that work and hopefully take it a bit further. I really can't work on anything unless until that is on a clear path to being addressed unless someone attached to my livelihood forces me.
>
> Meanwhile, I'll be gone half of November on across the world vacation and December is always a mess.
>
> On the plus side, the gradle build has gotten some great testing, but I'm little fuzzy on when I'm ready. I will certainly be separating out these efforts. So I'll be extracting the gradle changes to the gradle branch and keeping my new state as a separate branch.
>
> - Mark
>
>
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Re: The Lucene Solr Gradle Build Game plan

Posted by David Smiley <da...@gmail.com>.
Thanks for your efforts Mark!

Why has the migration to Gradle somehow been blocked by performance
improvements to Solr's tests?
What are the blockers to the Gradle branch being merged to master?  It's an
experimental shadow build, so... none?

I appreciate you want everything to be great from the beginning but I think
it's better to try and find that subjective line where it's good enough to
be committed then iterated on in follow-up issues.

~ David Smiley
Apache Lucene/Solr Search Developer
http://www.linkedin.com/in/davidwsmiley


On Mon, Oct 21, 2019 at 1:30 AM Mark Miller <ma...@gmail.com> wrote:

> Hello Dawid, I'm sorry about the absence. I had a two week trip to SF and
> that tends to steal my mind, thank god something does.
>
> Yes, I have local changes that you should likely wait for.
>
> There is a substantial issue with how I was mapping our directory names to
> project names. That issue led to allowing some funny things and so
> addressing it makes the build a bit to a lot less silly. Sorry Tomoko
> Uchida :(
>
> Anyway, I had to pause Gradle when I remembered that Solr tests are only
> slow for silly or broken reasons.
>
> So I worked on that and then I remember that about a year and a half ago I
> had realized SolrCloud was seriously rotting in come very core and key
> areas. At the time I spent a lot of effort on my Starburst branch
> addressing some fundamental problems and patterns. I then had a 6 week
> sabbatical and 3 week movie making trip. Though my own lack of care, I lost
> all that work and mostly forgot about the whole thing.
>
> Coming back to that, after wasting a lot of effort trying to find my
> previous work, I set off to duplicate that work and hopefully take it a bit
> further. I really can't work on anything unless until that is on a clear
> path to being addressed unless someone attached to my livelihood forces me.
>
> Meanwhile, I'll be gone half of November on across the world vacation and
> December is always a mess.
>
> On the plus side, the gradle build has gotten some great testing, but I'm
> little fuzzy on when I'm ready. I will certainly be separating out these
> efforts. So I'll be extracting the gradle changes to the gradle branch and
> keeping my new state as a separate branch.
>
> - Mark
>
>
>
>
>
>

Re: The Lucene Solr Gradle Build Game plan

Posted by Mark Miller <ma...@gmail.com>.
Hello Dawid, I'm sorry about the absence. I had a two week trip to SF and
that tends to steal my mind, thank god something does.

Yes, I have local changes that you should likely wait for.

There is a substantial issue with how I was mapping our directory names to
project names. That issue led to allowing some funny things and so
addressing it makes the build a bit to a lot less silly. Sorry Tomoko
Uchida :(

Anyway, I had to pause Gradle when I remembered that Solr tests are only
slow for silly or broken reasons.

So I worked on that and then I remember that about a year and a half ago I
had realized SolrCloud was seriously rotting in come very core and key
areas. At the time I spent a lot of effort on my Starburst branch
addressing some fundamental problems and patterns. I then had a 6 week
sabbatical and 3 week movie making trip. Though my own lack of care, I lost
all that work and mostly forgot about the whole thing.

Coming back to that, after wasting a lot of effort trying to find my
previous work, I set off to duplicate that work and hopefully take it a bit
further. I really can't work on anything unless until that is on a clear
path to being addressed unless someone attached to my livelihood forces me.

Meanwhile, I'll be gone half of November on across the world vacation and
December is always a mess.

On the plus side, the gradle build has gotten some great testing, but I'm
little fuzzy on when I'm ready. I will certainly be separating out these
efforts. So I'll be extracting the gradle changes to the gradle branch and
keeping my new state as a separate branch.

- Mark

Re: The Lucene Solr Gradle Build Game plan

Posted by Cassandra Targett <ca...@gmail.com>.
On Oct 17, 2019, 11:03 AM -0500, Dawid Weiss <da...@gmail.com>, wrote:
> > I’m not sure the next steps here - we could merge the changed files into the main Gradle branch?
>
> I'm kind of waiting for Mark to coordinate this, actually. I've
> modified some test code on the gradle branch but Mark has been talking
> about changes he's made locally so I don't know if it makes sense to
> put more work into something that may be thrown away. A patch on the
> existing refguide branch is fine I think since it can always be
> reapplied.

OK, that makes sense.

>
> > My next project is going to be ripping out the PDF builds from the Ref Guide build process, so that will also eventually require more changes here.
>
> What do you mean by this? Isn't buildPdf doing that already?
>
We decided recently to no longer publish the PDF and focus on the HTML version: https://issues.apache.org/jira/browse/SOLR-13782. We might have skipped that in the Gradle build, but I knew I wasn’t going to have time then to figure out what we didn’t need. Some things have changed, though, and I will have time in the next few weeks to work on it. We also haven’t told the general user community about this yet, and I think there’s a chance they will want us to still produce a PDF in some form so we may end up keeping it.

>
> Dawid
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>

Re: The Lucene Solr Gradle Build Game plan

Posted by Dawid Weiss <da...@gmail.com>.
> All the targets work now - we can call this done!

I've tried

gradlew -p solr\solr-ref-guide buildSite buildPdf

and it worked for me just fine (no syntax highlighting but I guess we
can add that later). It's great to not have to install anything
manually, yay.

> Thank you so much Dawid for your help with this, I never would have been able to do this on my own.

I wrote a few todos in the gradle build file -- some things could be
improved but I wouldn't change too much before we have a consolidated
branch with those changes.

> I’m not sure the next steps here - we could merge the changed files into the main Gradle branch?

I'm kind of waiting for Mark to coordinate this, actually. I've
modified some test code on the gradle branch but Mark has been talking
about changes he's made locally so I don't know if it makes sense to
put more work into something that may be thrown away. A patch on the
existing refguide branch is fine I think since it can always be
reapplied.

> My next project is going to be ripping out the PDF builds from the Ref Guide build process, so that will also eventually require more changes here.

What do you mean by this? Isn't buildPdf doing that already?

Dawid

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Re: The Lucene Solr Gradle Build Game plan

Posted by Cassandra Targett <ca...@gmail.com>.
I’ve just pushed some changes to the "jira/SOLR-13452_gradle_7_refguide” branch - two cherry-picks from my recent changes for SOLR-12786 updating the docs for later Asciidoc versions, a couple outlier fixes I made in other commits to master I didn’t want to cherry-pick, and finally my edits to build.gradle building on the great work Dawid did for this. All the targets work now - we can call this done!

Thank you so much Dawid for your help with this, I never would have been able to do this on my own.

I’m not sure the next steps here - we could merge the changed files into the main Gradle branch? Not sure when that was last rebased with master, but a bunch of various changes might be needed. We could hold this in this branch until the next rebase?

My next project is going to be ripping out the PDF builds from the Ref Guide build process, so that will also eventually require more changes here.

Cassandra
On Oct 13, 2019, 8:58 AM -0500, Erick Erickson <er...@gmail.com>, wrote:
> Agree entirely with Dawid.
>
> > On Oct 11, 2019, at 5:54 PM, Dawid Weiss <da...@gmail.com> wrote:
> >
> > That's entirely up to you, Cassandra. I tried to use Rouge but
> > couldn't get it to work. Please feel free to upgrade to newer versions
> > of those tools -- if it works we should be using newer, supported
> > version lines I think.
> >
> > Dawid
> >
> > On Fri, Oct 11, 2019 at 10:20 PM Cassandra Targett
> > <ca...@gmail.com> wrote:
> > >
> > > I had a number of problems getting either Jekyll build to run at all - it kept getting stuck in various places.
> > >
> > > I eventually traced the problem to the pygments.rb plugin - I have python, so it didn’t complain about it missing, just kept throwing errors about missing header in a file. But when I took it out everything started working.
> > >
> > > So I swapped it out for Rouge which is Ruby-based and comes with Jekyll. However, it wasn't really well supported until Asciidoctor 2.x, so we either lose syntax highlighting entirely or upgrade Asciidoctor & jekyll-asciidoc version to get the better support.
> > >
> > > If we go with the older version of Asciidoctor we also have to downgrade Slim to 3.0.1 since I found a bug a year ago using the 4.0.1 version of Slim with Jekyll-asciidoc, which has since been fixed in the later versions.
> > >
> > > The whole reason we hadn’t upgraded Asciidoctor was because people needed to install it locally to get our old build to run, and I wasn’t sure how to force folks to update their local version. However, with Gradle we can force the version we want because the build is handling the dependencies.
> > >
> > > So, the choice is - downgrade the Asciidoctor version and lose syntax highlighting, or I could upgrade Asciidoctor for the project now (in the Ant build & Jenkins jobs) and fix the pages that will fail the validation check. As soon as those pages are fixed, the Gradle build will work fine.
> > >
> > > Cassandra
> > > On Oct 11, 2019, 1:28 PM -0500, Dawid Weiss <da...@gmail.com>, wrote:
> > >
> > >
> > > Sure. Try and see if you can make it work. It is just about the only thing that still needs to be done, the rest works like a charm.
> > >
> > > On Fri, Oct 11, 2019, 20:20 Cassandra Targett <ca...@gmail.com> wrote:
> > > >
> > > > Sorry for the delay getting back to you Dawid. That problem is actually because of the Asciidoctor version. The jekyll-asciidoc plugin will install Asciidoctor if it is not already installed, and it installs a version where the way the links are constructed is different and breaks our validation.
> > > >
> > > > More details about why this happens (if you’re curious) is in https://issues.apache.org/jira/browse/SOLR-12786?focusedCommentId=16622115&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-16622115
> > > >
> > > > Both the Jenkins script used for Jenkins Ref Guide jobs (./dev-tools/scripts/jenkins.build.ref.guide.sh) and the Ref Guide README (./solr/solr-ref-guide/README.adoc) show examples of how to make sure the right Asciidoctor version is installed - the easiest is to install the Asciidoctor gem version we want first. Let me see if I can insert a line to install before the jekyll-asciidoc gem and see if that fixes it.
> > > >
> > > > Cassandra
> > > > On Oct 10, 2019, 2:22 AM -0500, Dawid Weiss <da...@gmail.com>, wrote:
> > > >
> > > > Ping, ping. I wanted to finalize the build of solr ref guide since I
> > > > started it. Almost everything is working on the branch but I can't get
> > > > minor differences to work and I believe they're due to a different
> > > > jekyll version (than that mentioned in the docs).
> > > >
> > > > Specifically, the invalid links are because of asciidoc sections like
> > > > this (in the processed resource-and-plugin-loading.adoc):
> > > >
> > > > === solr_home/lib
> > > >
> > > > In bare bones html (pure asciidoctor) this gets emitted as:
> > > >
> > > > <h3 id="solr_home-lib">solr_home/lib</h3>
> > > >
> > > > but when compiled via jekyll this becomes:
> > > >
> > > > <h3 id="solr_homelib">solr_home/lib</h3>
> > > >
> > > > which I can't really explain.
> > > >
> > > > Cassandra what's the exact version of jekyll that runs the compilation
> > > > that is working for you?
> > > >
> > > > D.
> > > >
> > > > On Fri, Oct 4, 2019 at 11:42 AM Dawid Weiss <da...@gmail.com> wrote:
> > > >
> > > >
> > > > Seems like pygments is to blame for the python requirement... I didn't
> > > > check but there seem to be ruby-only
> > > > highlighters for jekyll as well:
> > > >
> > > > https://jekyll-windows.juthilo.com/3-syntax-highlighting/
> > > >
> > > > On Fri, Oct 4, 2019 at 11:39 AM Dawid Weiss <da...@gmail.com> wrote:
> > > >
> > > >
> > > > Hi Cassandra,
> > > >
> > > > Apologies this took so long -- I wasn't familiar with these
> > > > site-generation tools and the whole ecosystem is rather... fragile :)
> > > > After a few attempts at using gradle plugins I eventually leaned
> > > > towards using asciidoctor and jekyll explicitly (so that we know which
> > > > versions are being used and don't have to rely on dependencies).
> > > >
> > > > I got bare bone html checking working, PDF generation working and site
> > > > generation working although the final link check currently fail for me
> > > > with a bunch of errors. This works for me on Windows... on Linux I get
> > > > site-generation generate a strange error from within jekyll:
> > > >
> > > > Conversion error: Jekyll::AsciiDoc::Converter encountered an error
> > > > while converting 'about-filters.adoc':
> > > > Bad file descriptor - /usr/bin/python2
> > > >
> > > > I could install python but I don't see why it'd need it. Perhaps there
> > > > is something in the docs that would avoid using python altogether but
> > > > I haven't had the time to look into it.
> > > >
> > > > Please feel free to check out the jira/SOLR-13452_gradle_7_refguide
> > > > branch and try to run:
> > > >
> > > > ./gradlew -p solr/solr-ref-guide buildPdf buildSite
> > > >
> > > > There is a lot of room for improvement -- from property substitution,
> > > > through how the "tools" are handled at the moment to task naming but I
> > > > left this for the future. The initial step would be probably to get
> > > > the site generation running on Linux/ Macs but I'd gladly hand it over
> > > > back to you -- I can help with Gradle but a the rest of those tools
> > > > are a mistery to me.
> > > >
> > > > Dawid
> > > >
> > > > On Fri, Sep 27, 2019 at 7:53 PM Dawid Weiss <da...@gmail.com> wrote:
> > > >
> > > >
> > > >
> > > > No problem. I will get it to work entirely, but not before next week - I am away for the weekend.
> > > >
> > > > Dawid
> > > >
> > > > On Fri, Sep 27, 2019, 16:17 Cassandra Targett <ca...@gmail.com> wrote:
> > > >
> > > >
> > > > Thanks Dawid for working on this! I’ve been a bit swamped the last couple of days but will take a look today at what you’ve been able to do so far and see where we might need to go from here.
> > > >
> > > > Cassandra
> > > > On Sep 26, 2019, 7:25 AM -0500, Dawid Weiss <da...@gmail.com>, wrote:
> > > >
> > > > I agree. Although I also understand the concern of trying to merge the
> > > > changes while we're in the transition period... it'd be hell. I'd say
> > > > move as much stuff as possible with the current folder structure (and
> > > > ignore what cannot be ported easily) then switch as soon as possible
> > > > to gradle and hack the old cruft with a chainsaw...
> > > >
> > > > D.
> > > >
> > > > On Thu, Sep 26, 2019 at 2:13 PM Erick Erickson <er...@gmail.com> wrote:
> > > >
> > > >
> > > > Of course I’ll completely defer to Dawid and Mark (well and anybody else actually, you know, doing _work_), but just can’t resist chiming in ;).
> > > >
> > > > My vote would be to “do it the Gradle way”. Yes, it’s a PITA to learn new stuff and I won’t like it. Tough. I see no reason to carry a bunch of cruft around because “that the way we always did it”.
> > > >
> > > > If we lose functionality, that’s a different discussion, starting with “do we need that functionality". But jumping through hoops and having to maintain that awkwardness forever going forward just because we forced the Ant structure on Gradle strikes me as a poor trade off.
> > > >
> > > > That said, I’m not doing the work so I really have no vote. But don’t strain to do it the old way on my account ;)
> > > >
> > > > Erick
> > > >
> > > > P.S. Thanks Dawid for jumping in!
> > > >
> > > > On Sep 26, 2019, at 3:57 AM, Dawid Weiss <da...@gmail.com> wrote:
> > > >
> > > > I pushed it in to Lucene repo (it's on Cassandra's refguide branch
> > > > anyway, so shouldn't interfere with anything else); seems like it's in
> > > > better shape than previous code anyway (those questions I asked about
> > > > the nature of the gradle port still hold though).
> > > >
> > > > I got as far as building initial bare-bones HTML.
> > > >
> > > > .\gradlew -p solr\solr-ref-guide clean bareBonesHtmlValidation
> > > >
> > > > I don't know anything about the pipeline involved (asciidoctor, etc.)
> > > > so it's very likely some attributes will have to be corrected later
> > > > on.
> > > >
> > > > Dawid
> > > >
> > > > On Wed, Sep 25, 2019 at 9:14 PM Dawid Weiss <da...@gmail.com> wrote:
> > > >
> > > >
> > > > I looked at the solr ref guide build and started converting it to
> > > > Gradle but have a question to Mark (because he coordinates the
> > > > effort).
> > > >
> > > > What immediately jumps into face is the decision problem -- do we want
> > > > to emulate what ant does at the moment or do we want to clean it up
> > > > (breaking file/ folder structure and causing incompatibility with ant
> > > > build).
> > > >
> > > > I went the "compatible" way and started porting ant tasks but it's
> > > > quite awkward. For example -- there are template properties that refer
> > > > to ivy version properties... we could emulate/ compute these but it's
> > > > a pain. The way the module is currently structured is also awkward -
> > > > it'd be more natural to have a separate java project with the "tools"
> > > > required to compile extra stuff and just reference it from the manual
> > > > build (and this would be a plain module, not a java module). This
> > > > would limit the need for customizing source sets, classpaths, etc.
> > > >
> > > > My few initial tasks syncing sources, setting up infrastructure to
> > > > filter templates and compiling the required tools are here:
> > > > https://github.com/apache/lucene-solr/compare/jira/SOLR-13452_gradle_7_refguide...dweiss:jira/SOLR-13452_gradle_7_refguide?expand=1
> > > >
> > > > I'll stop and wait for feedback (especially on the ivy versions issue)
> > > > before I resume.
> > > >
> > > > Dawid
> > > >
> > > > On Wed, Sep 25, 2019 at 6:20 PM Dawid Weiss <da...@gmail.com> wrote:
> > > >
> > > >
> > > > Never mind, I've got it.
> > > >
> > > > D.
> > > >
> > > > On Wed, Sep 25, 2019 at 7:59 AM Dawid Weiss <da...@gmail.com> wrote:
> > > >
> > > >
> > > > Hi Cassandra,
> > > >
> > > > I’m more than happy to share more details our current build so we can replicate some of the above steps, but I’m stuck without a lot more basic Gradle skills that I don’t have time to acquire with day-job/personal life commitments. I put it into a separate branch so we could iterate a little easier, can anyone help?
> > > >
> > > >
> > > > Where is this branch you made changes on? If you can point me at the
> > > > corresponding ant code I'll try to help you out.
> > > >
> > > > Dawid
> > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> > > > For additional commands, e-mail: dev-help@lucene.apache.org
> > > >
> > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> > > > For additional commands, e-mail: dev-help@lucene.apache.org
> > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> > > > For additional commands, e-mail: dev-help@lucene.apache.org
> > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> > > > For additional commands, e-mail: dev-help@lucene.apache.org
> > > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> > For additional commands, e-mail: dev-help@lucene.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>

Re: The Lucene Solr Gradle Build Game plan

Posted by Erick Erickson <er...@gmail.com>.
Agree entirely with Dawid.

> On Oct 11, 2019, at 5:54 PM, Dawid Weiss <da...@gmail.com> wrote:
> 
> That's entirely up to you, Cassandra. I tried to use Rouge but
> couldn't get it to work. Please feel free to upgrade to newer versions
> of those tools -- if it works we should be using newer, supported
> version lines I think.
> 
> Dawid
> 
> On Fri, Oct 11, 2019 at 10:20 PM Cassandra Targett
> <ca...@gmail.com> wrote:
>> 
>> I had a number of problems getting either Jekyll build to run at all - it kept getting stuck in various places.
>> 
>> I eventually traced the problem to the pygments.rb plugin - I have python, so it didn’t complain about it missing, just kept throwing errors about missing header in a file. But when I took it out everything started working.
>> 
>> So I swapped it out for Rouge which is Ruby-based and comes with Jekyll. However, it wasn't really well supported until Asciidoctor 2.x, so we either lose syntax highlighting entirely or upgrade Asciidoctor & jekyll-asciidoc version to get the better support.
>> 
>> If we go with the older version of Asciidoctor we also have to downgrade Slim to 3.0.1 since I found a bug a year ago using the 4.0.1 version of Slim with Jekyll-asciidoc, which has since been fixed in the later versions.
>> 
>> The whole reason we hadn’t upgraded Asciidoctor was because people needed to install it locally to get our old build to run, and I wasn’t sure how to force folks to update their local version. However, with Gradle we can force the version we want because the build is handling the dependencies.
>> 
>> So, the choice is - downgrade the Asciidoctor version and lose syntax highlighting, or I could upgrade Asciidoctor for the project now (in the Ant build & Jenkins jobs) and fix the pages that will fail the validation check. As soon as those pages are fixed, the Gradle build will work fine.
>> 
>> Cassandra
>> On Oct 11, 2019, 1:28 PM -0500, Dawid Weiss <da...@gmail.com>, wrote:
>> 
>> 
>> Sure. Try and see if you can make it work. It is just about the only thing that still needs to be done, the rest works like a charm.
>> 
>> On Fri, Oct 11, 2019, 20:20 Cassandra Targett <ca...@gmail.com> wrote:
>>> 
>>> Sorry for the delay getting back to you Dawid. That problem is actually because of the Asciidoctor version. The jekyll-asciidoc plugin will install Asciidoctor if it is not already installed, and it installs a version where the way the links are constructed is different and breaks our validation.
>>> 
>>> More details about why this happens (if you’re curious) is in https://issues.apache.org/jira/browse/SOLR-12786?focusedCommentId=16622115&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-16622115
>>> 
>>> Both the Jenkins script used for Jenkins Ref Guide jobs (./dev-tools/scripts/jenkins.build.ref.guide.sh) and the Ref Guide README (./solr/solr-ref-guide/README.adoc) show examples of how to make sure the right Asciidoctor version is installed - the easiest is to install the Asciidoctor gem version we want first. Let me see if I can insert a line to install before the jekyll-asciidoc gem and see if that fixes it.
>>> 
>>> Cassandra
>>> On Oct 10, 2019, 2:22 AM -0500, Dawid Weiss <da...@gmail.com>, wrote:
>>> 
>>> Ping, ping. I wanted to finalize the build of solr ref guide since I
>>> started it. Almost everything is working on the branch but I can't get
>>> minor differences to work and I believe they're due to a different
>>> jekyll version (than that mentioned in the docs).
>>> 
>>> Specifically, the invalid links are because of asciidoc sections like
>>> this (in the processed resource-and-plugin-loading.adoc):
>>> 
>>> === solr_home/lib
>>> 
>>> In bare bones html (pure asciidoctor) this gets emitted as:
>>> 
>>> <h3 id="solr_home-lib">solr_home/lib</h3>
>>> 
>>> but when compiled via jekyll this becomes:
>>> 
>>> <h3 id="solr_homelib">solr_home/lib</h3>
>>> 
>>> which I can't really explain.
>>> 
>>> Cassandra what's the exact version of jekyll that runs the compilation
>>> that is working for you?
>>> 
>>> D.
>>> 
>>> On Fri, Oct 4, 2019 at 11:42 AM Dawid Weiss <da...@gmail.com> wrote:
>>> 
>>> 
>>> Seems like pygments is to blame for the python requirement... I didn't
>>> check but there seem to be ruby-only
>>> highlighters for jekyll as well:
>>> 
>>> https://jekyll-windows.juthilo.com/3-syntax-highlighting/
>>> 
>>> On Fri, Oct 4, 2019 at 11:39 AM Dawid Weiss <da...@gmail.com> wrote:
>>> 
>>> 
>>> Hi Cassandra,
>>> 
>>> Apologies this took so long -- I wasn't familiar with these
>>> site-generation tools and the whole ecosystem is rather... fragile :)
>>> After a few attempts at using gradle plugins I eventually leaned
>>> towards using asciidoctor and jekyll explicitly (so that we know which
>>> versions are being used and don't have to rely on dependencies).
>>> 
>>> I got bare bone html checking working, PDF generation working and site
>>> generation working although the final link check currently fail for me
>>> with a bunch of errors. This works for me on Windows... on Linux I get
>>> site-generation generate a strange error from within jekyll:
>>> 
>>> Conversion error: Jekyll::AsciiDoc::Converter encountered an error
>>> while converting 'about-filters.adoc':
>>> Bad file descriptor - /usr/bin/python2
>>> 
>>> I could install python but I don't see why it'd need it. Perhaps there
>>> is something in the docs that would avoid using python altogether but
>>> I haven't had the time to look into it.
>>> 
>>> Please feel free to check out the jira/SOLR-13452_gradle_7_refguide
>>> branch and try to run:
>>> 
>>> ./gradlew -p solr/solr-ref-guide buildPdf buildSite
>>> 
>>> There is a lot of room for improvement -- from property substitution,
>>> through how the "tools" are handled at the moment to task naming but I
>>> left this for the future. The initial step would be probably to get
>>> the site generation running on Linux/ Macs but I'd gladly hand it over
>>> back to you -- I can help with Gradle but a the rest of those tools
>>> are a mistery to me.
>>> 
>>> Dawid
>>> 
>>> On Fri, Sep 27, 2019 at 7:53 PM Dawid Weiss <da...@gmail.com> wrote:
>>> 
>>> 
>>> 
>>> No problem. I will get it to work entirely, but not before next week - I am away for the weekend.
>>> 
>>> Dawid
>>> 
>>> On Fri, Sep 27, 2019, 16:17 Cassandra Targett <ca...@gmail.com> wrote:
>>> 
>>> 
>>> Thanks Dawid for working on this! I’ve been a bit swamped the last couple of days but will take a look today at what you’ve been able to do so far and see where we might need to go from here.
>>> 
>>> Cassandra
>>> On Sep 26, 2019, 7:25 AM -0500, Dawid Weiss <da...@gmail.com>, wrote:
>>> 
>>> I agree. Although I also understand the concern of trying to merge the
>>> changes while we're in the transition period... it'd be hell. I'd say
>>> move as much stuff as possible with the current folder structure (and
>>> ignore what cannot be ported easily) then switch as soon as possible
>>> to gradle and hack the old cruft with a chainsaw...
>>> 
>>> D.
>>> 
>>> On Thu, Sep 26, 2019 at 2:13 PM Erick Erickson <er...@gmail.com> wrote:
>>> 
>>> 
>>> Of course I’ll completely defer to Dawid and Mark (well and anybody else actually, you know, doing _work_), but just can’t resist chiming in ;).
>>> 
>>> My vote would be to “do it the Gradle way”. Yes, it’s a PITA to learn new stuff and I won’t like it. Tough. I see no reason to carry a bunch of cruft around because “that the way we always did it”.
>>> 
>>> If we lose functionality, that’s a different discussion, starting with “do we need that functionality". But jumping through hoops and having to maintain that awkwardness forever going forward just because we forced the Ant structure on Gradle strikes me as a poor trade off.
>>> 
>>> That said, I’m not doing the work so I really have no vote. But don’t strain to do it the old way on my account ;)
>>> 
>>> Erick
>>> 
>>> P.S. Thanks Dawid for jumping in!
>>> 
>>> On Sep 26, 2019, at 3:57 AM, Dawid Weiss <da...@gmail.com> wrote:
>>> 
>>> I pushed it in to Lucene repo (it's on Cassandra's refguide branch
>>> anyway, so shouldn't interfere with anything else); seems like it's in
>>> better shape than previous code anyway (those questions I asked about
>>> the nature of the gradle port still hold though).
>>> 
>>> I got as far as building initial bare-bones HTML.
>>> 
>>> .\gradlew -p solr\solr-ref-guide clean bareBonesHtmlValidation
>>> 
>>> I don't know anything about the pipeline involved (asciidoctor, etc.)
>>> so it's very likely some attributes will have to be corrected later
>>> on.
>>> 
>>> Dawid
>>> 
>>> On Wed, Sep 25, 2019 at 9:14 PM Dawid Weiss <da...@gmail.com> wrote:
>>> 
>>> 
>>> I looked at the solr ref guide build and started converting it to
>>> Gradle but have a question to Mark (because he coordinates the
>>> effort).
>>> 
>>> What immediately jumps into face is the decision problem -- do we want
>>> to emulate what ant does at the moment or do we want to clean it up
>>> (breaking file/ folder structure and causing incompatibility with ant
>>> build).
>>> 
>>> I went the "compatible" way and started porting ant tasks but it's
>>> quite awkward. For example -- there are template properties that refer
>>> to ivy version properties... we could emulate/ compute these but it's
>>> a pain. The way the module is currently structured is also awkward -
>>> it'd be more natural to have a separate java project with the "tools"
>>> required to compile extra stuff and just reference it from the manual
>>> build (and this would be a plain module, not a java module). This
>>> would limit the need for customizing source sets, classpaths, etc.
>>> 
>>> My few initial tasks syncing sources, setting up infrastructure to
>>> filter templates and compiling the required tools are here:
>>> https://github.com/apache/lucene-solr/compare/jira/SOLR-13452_gradle_7_refguide...dweiss:jira/SOLR-13452_gradle_7_refguide?expand=1
>>> 
>>> I'll stop and wait for feedback (especially on the ivy versions issue)
>>> before I resume.
>>> 
>>> Dawid
>>> 
>>> On Wed, Sep 25, 2019 at 6:20 PM Dawid Weiss <da...@gmail.com> wrote:
>>> 
>>> 
>>> Never mind, I've got it.
>>> 
>>> D.
>>> 
>>> On Wed, Sep 25, 2019 at 7:59 AM Dawid Weiss <da...@gmail.com> wrote:
>>> 
>>> 
>>> Hi Cassandra,
>>> 
>>> I’m more than happy to share more details our current build so we can replicate some of the above steps, but I’m stuck without a lot more basic Gradle skills that I don’t have time to acquire with day-job/personal life commitments. I put it into a separate branch so we could iterate a little easier, can anyone help?
>>> 
>>> 
>>> Where is this branch you made changes on? If you can point me at the
>>> corresponding ant code I'll try to help you out.
>>> 
>>> Dawid
>>> 
>>> 
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
>>> For additional commands, e-mail: dev-help@lucene.apache.org
>>> 
>>> 
>>> 
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
>>> For additional commands, e-mail: dev-help@lucene.apache.org
>>> 
>>> 
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
>>> For additional commands, e-mail: dev-help@lucene.apache.org
>>> 
>>> 
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
>>> For additional commands, e-mail: dev-help@lucene.apache.org
>>> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Re: The Lucene Solr Gradle Build Game plan

Posted by Dawid Weiss <da...@gmail.com>.
That's entirely up to you, Cassandra. I tried to use Rouge but
couldn't get it to work. Please feel free to upgrade to newer versions
of those tools -- if it works we should be using newer, supported
version lines I think.

Dawid

On Fri, Oct 11, 2019 at 10:20 PM Cassandra Targett
<ca...@gmail.com> wrote:
>
> I had a number of problems getting either Jekyll build to run at all - it kept getting stuck in various places.
>
> I eventually traced the problem to the pygments.rb plugin - I have python, so it didn’t complain about it missing, just kept throwing errors about missing header in a file. But when I took it out everything started working.
>
> So I swapped it out for Rouge which is Ruby-based and comes with Jekyll. However, it wasn't really well supported until Asciidoctor 2.x, so we either lose syntax highlighting entirely or upgrade Asciidoctor & jekyll-asciidoc version to get the better support.
>
> If we go with the older version of Asciidoctor we also have to downgrade Slim to 3.0.1 since I found a bug a year ago using the 4.0.1 version of Slim with Jekyll-asciidoc, which has since been fixed in the later versions.
>
> The whole reason we hadn’t upgraded Asciidoctor was because people needed to install it locally to get our old build to run, and I wasn’t sure how to force folks to update their local version. However, with Gradle we can force the version we want because the build is handling the dependencies.
>
> So, the choice is - downgrade the Asciidoctor version and lose syntax highlighting, or I could upgrade Asciidoctor for the project now (in the Ant build & Jenkins jobs) and fix the pages that will fail the validation check. As soon as those pages are fixed, the Gradle build will work fine.
>
> Cassandra
> On Oct 11, 2019, 1:28 PM -0500, Dawid Weiss <da...@gmail.com>, wrote:
>
>
> Sure. Try and see if you can make it work. It is just about the only thing that still needs to be done, the rest works like a charm.
>
> On Fri, Oct 11, 2019, 20:20 Cassandra Targett <ca...@gmail.com> wrote:
>>
>> Sorry for the delay getting back to you Dawid. That problem is actually because of the Asciidoctor version. The jekyll-asciidoc plugin will install Asciidoctor if it is not already installed, and it installs a version where the way the links are constructed is different and breaks our validation.
>>
>> More details about why this happens (if you’re curious) is in https://issues.apache.org/jira/browse/SOLR-12786?focusedCommentId=16622115&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-16622115
>>
>> Both the Jenkins script used for Jenkins Ref Guide jobs (./dev-tools/scripts/jenkins.build.ref.guide.sh) and the Ref Guide README (./solr/solr-ref-guide/README.adoc) show examples of how to make sure the right Asciidoctor version is installed - the easiest is to install the Asciidoctor gem version we want first. Let me see if I can insert a line to install before the jekyll-asciidoc gem and see if that fixes it.
>>
>> Cassandra
>> On Oct 10, 2019, 2:22 AM -0500, Dawid Weiss <da...@gmail.com>, wrote:
>>
>> Ping, ping. I wanted to finalize the build of solr ref guide since I
>> started it. Almost everything is working on the branch but I can't get
>> minor differences to work and I believe they're due to a different
>> jekyll version (than that mentioned in the docs).
>>
>> Specifically, the invalid links are because of asciidoc sections like
>> this (in the processed resource-and-plugin-loading.adoc):
>>
>> === solr_home/lib
>>
>> In bare bones html (pure asciidoctor) this gets emitted as:
>>
>> <h3 id="solr_home-lib">solr_home/lib</h3>
>>
>> but when compiled via jekyll this becomes:
>>
>> <h3 id="solr_homelib">solr_home/lib</h3>
>>
>> which I can't really explain.
>>
>> Cassandra what's the exact version of jekyll that runs the compilation
>> that is working for you?
>>
>> D.
>>
>> On Fri, Oct 4, 2019 at 11:42 AM Dawid Weiss <da...@gmail.com> wrote:
>>
>>
>> Seems like pygments is to blame for the python requirement... I didn't
>> check but there seem to be ruby-only
>> highlighters for jekyll as well:
>>
>> https://jekyll-windows.juthilo.com/3-syntax-highlighting/
>>
>> On Fri, Oct 4, 2019 at 11:39 AM Dawid Weiss <da...@gmail.com> wrote:
>>
>>
>> Hi Cassandra,
>>
>> Apologies this took so long -- I wasn't familiar with these
>> site-generation tools and the whole ecosystem is rather... fragile :)
>> After a few attempts at using gradle plugins I eventually leaned
>> towards using asciidoctor and jekyll explicitly (so that we know which
>> versions are being used and don't have to rely on dependencies).
>>
>> I got bare bone html checking working, PDF generation working and site
>> generation working although the final link check currently fail for me
>> with a bunch of errors. This works for me on Windows... on Linux I get
>> site-generation generate a strange error from within jekyll:
>>
>> Conversion error: Jekyll::AsciiDoc::Converter encountered an error
>> while converting 'about-filters.adoc':
>> Bad file descriptor - /usr/bin/python2
>>
>> I could install python but I don't see why it'd need it. Perhaps there
>> is something in the docs that would avoid using python altogether but
>> I haven't had the time to look into it.
>>
>> Please feel free to check out the jira/SOLR-13452_gradle_7_refguide
>> branch and try to run:
>>
>> ./gradlew -p solr/solr-ref-guide buildPdf buildSite
>>
>> There is a lot of room for improvement -- from property substitution,
>> through how the "tools" are handled at the moment to task naming but I
>> left this for the future. The initial step would be probably to get
>> the site generation running on Linux/ Macs but I'd gladly hand it over
>> back to you -- I can help with Gradle but a the rest of those tools
>> are a mistery to me.
>>
>> Dawid
>>
>> On Fri, Sep 27, 2019 at 7:53 PM Dawid Weiss <da...@gmail.com> wrote:
>>
>>
>>
>> No problem. I will get it to work entirely, but not before next week - I am away for the weekend.
>>
>> Dawid
>>
>> On Fri, Sep 27, 2019, 16:17 Cassandra Targett <ca...@gmail.com> wrote:
>>
>>
>> Thanks Dawid for working on this! I’ve been a bit swamped the last couple of days but will take a look today at what you’ve been able to do so far and see where we might need to go from here.
>>
>> Cassandra
>> On Sep 26, 2019, 7:25 AM -0500, Dawid Weiss <da...@gmail.com>, wrote:
>>
>> I agree. Although I also understand the concern of trying to merge the
>> changes while we're in the transition period... it'd be hell. I'd say
>> move as much stuff as possible with the current folder structure (and
>> ignore what cannot be ported easily) then switch as soon as possible
>> to gradle and hack the old cruft with a chainsaw...
>>
>> D.
>>
>> On Thu, Sep 26, 2019 at 2:13 PM Erick Erickson <er...@gmail.com> wrote:
>>
>>
>> Of course I’ll completely defer to Dawid and Mark (well and anybody else actually, you know, doing _work_), but just can’t resist chiming in ;).
>>
>> My vote would be to “do it the Gradle way”. Yes, it’s a PITA to learn new stuff and I won’t like it. Tough. I see no reason to carry a bunch of cruft around because “that the way we always did it”.
>>
>> If we lose functionality, that’s a different discussion, starting with “do we need that functionality". But jumping through hoops and having to maintain that awkwardness forever going forward just because we forced the Ant structure on Gradle strikes me as a poor trade off.
>>
>> That said, I’m not doing the work so I really have no vote. But don’t strain to do it the old way on my account ;)
>>
>> Erick
>>
>> P.S. Thanks Dawid for jumping in!
>>
>> On Sep 26, 2019, at 3:57 AM, Dawid Weiss <da...@gmail.com> wrote:
>>
>> I pushed it in to Lucene repo (it's on Cassandra's refguide branch
>> anyway, so shouldn't interfere with anything else); seems like it's in
>> better shape than previous code anyway (those questions I asked about
>> the nature of the gradle port still hold though).
>>
>> I got as far as building initial bare-bones HTML.
>>
>> .\gradlew -p solr\solr-ref-guide clean bareBonesHtmlValidation
>>
>> I don't know anything about the pipeline involved (asciidoctor, etc.)
>> so it's very likely some attributes will have to be corrected later
>> on.
>>
>> Dawid
>>
>> On Wed, Sep 25, 2019 at 9:14 PM Dawid Weiss <da...@gmail.com> wrote:
>>
>>
>> I looked at the solr ref guide build and started converting it to
>> Gradle but have a question to Mark (because he coordinates the
>> effort).
>>
>> What immediately jumps into face is the decision problem -- do we want
>> to emulate what ant does at the moment or do we want to clean it up
>> (breaking file/ folder structure and causing incompatibility with ant
>> build).
>>
>> I went the "compatible" way and started porting ant tasks but it's
>> quite awkward. For example -- there are template properties that refer
>> to ivy version properties... we could emulate/ compute these but it's
>> a pain. The way the module is currently structured is also awkward -
>> it'd be more natural to have a separate java project with the "tools"
>> required to compile extra stuff and just reference it from the manual
>> build (and this would be a plain module, not a java module). This
>> would limit the need for customizing source sets, classpaths, etc.
>>
>> My few initial tasks syncing sources, setting up infrastructure to
>> filter templates and compiling the required tools are here:
>> https://github.com/apache/lucene-solr/compare/jira/SOLR-13452_gradle_7_refguide...dweiss:jira/SOLR-13452_gradle_7_refguide?expand=1
>>
>> I'll stop and wait for feedback (especially on the ivy versions issue)
>> before I resume.
>>
>> Dawid
>>
>> On Wed, Sep 25, 2019 at 6:20 PM Dawid Weiss <da...@gmail.com> wrote:
>>
>>
>> Never mind, I've got it.
>>
>> D.
>>
>> On Wed, Sep 25, 2019 at 7:59 AM Dawid Weiss <da...@gmail.com> wrote:
>>
>>
>> Hi Cassandra,
>>
>> I’m more than happy to share more details our current build so we can replicate some of the above steps, but I’m stuck without a lot more basic Gradle skills that I don’t have time to acquire with day-job/personal life commitments. I put it into a separate branch so we could iterate a little easier, can anyone help?
>>
>>
>> Where is this branch you made changes on? If you can point me at the
>> corresponding ant code I'll try to help you out.
>>
>> Dawid
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: dev-help@lucene.apache.org
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: dev-help@lucene.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: dev-help@lucene.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: dev-help@lucene.apache.org
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Re: The Lucene Solr Gradle Build Game plan

Posted by Cassandra Targett <ca...@gmail.com>.
I had a number of problems getting either Jekyll build to run at all - it kept getting stuck in various places.

I eventually traced the problem to the pygments.rb plugin - I have python, so it didn’t complain about it missing, just kept throwing errors about missing header in a file. But when I took it out everything started working.

So I swapped it out for Rouge which is Ruby-based and comes with Jekyll. However, it wasn't really well supported until Asciidoctor 2.x, so we either lose syntax highlighting entirely or upgrade Asciidoctor & jekyll-asciidoc version to get the better support.

If we go with the older version of Asciidoctor we also have to downgrade Slim to 3.0.1 since I found a bug a year ago using the 4.0.1 version of Slim with Jekyll-asciidoc, which has since been fixed in the later versions.

The whole reason we hadn’t upgraded Asciidoctor was because people needed to install it locally to get our old build to run, and I wasn’t sure how to force folks to update their local version. However, with Gradle we can force the version we want because the build is handling the dependencies.

So, the choice is - downgrade the Asciidoctor version and lose syntax highlighting, or I could upgrade Asciidoctor for the project now (in the Ant build & Jenkins jobs) and fix the pages that will fail the validation check. As soon as those pages are fixed, the Gradle build will work fine.

Cassandra
On Oct 11, 2019, 1:28 PM -0500, Dawid Weiss <da...@gmail.com>, wrote:
>
> Sure. Try and see if you can make it work. It is just about the only thing that still needs to be done, the rest works like a charm.
>
> > On Fri, Oct 11, 2019, 20:20 Cassandra Targett <ca...@gmail.com> wrote:
> > > Sorry for the delay getting back to you Dawid. That problem is actually because of the Asciidoctor version. The jekyll-asciidoc plugin will install Asciidoctor if it is not already installed, and it installs a version where the way the links are constructed is different and breaks our validation.
> > >
> > > More details about why this happens (if you’re curious) is in https://issues.apache.org/jira/browse/SOLR-12786?focusedCommentId=16622115&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-16622115
> > >
> > > Both the Jenkins script used for Jenkins Ref Guide jobs (./dev-tools/scripts/jenkins.build.ref.guide.sh) and the Ref Guide README (./solr/solr-ref-guide/README.adoc) show examples of how to make sure the right Asciidoctor version is installed - the easiest is to install the Asciidoctor gem version we want first. Let me see if I can insert a line to install before the jekyll-asciidoc gem and see if that fixes it.
> > >
> > > Cassandra
> > > On Oct 10, 2019, 2:22 AM -0500, Dawid Weiss <da...@gmail.com>, wrote:
> > > > Ping, ping. I wanted to finalize the build of solr ref guide since I
> > > > started it. Almost everything is working on the branch but I can't get
> > > > minor differences to work and I believe they're due to a different
> > > > jekyll version (than that mentioned in the docs).
> > > >
> > > > Specifically, the invalid links are because of asciidoc sections like
> > > > this (in the processed resource-and-plugin-loading.adoc):
> > > >
> > > > === solr_home/lib
> > > >
> > > > In bare bones html (pure asciidoctor) this gets emitted as:
> > > >
> > > > <h3 id="solr_home-lib">solr_home/lib</h3>
> > > >
> > > > but when compiled via jekyll this becomes:
> > > >
> > > > <h3 id="solr_homelib">solr_home/lib</h3>
> > > >
> > > > which I can't really explain.
> > > >
> > > > Cassandra what's the exact version of jekyll that runs the compilation
> > > > that is working for you?
> > > >
> > > > D.
> > > >
> > > > On Fri, Oct 4, 2019 at 11:42 AM Dawid Weiss <da...@gmail.com> wrote:
> > > > >
> > > > > Seems like pygments is to blame for the python requirement... I didn't
> > > > > check but there seem to be ruby-only
> > > > > highlighters for jekyll as well:
> > > > >
> > > > > https://jekyll-windows.juthilo.com/3-syntax-highlighting/
> > > > >
> > > > > On Fri, Oct 4, 2019 at 11:39 AM Dawid Weiss <da...@gmail.com> wrote:
> > > > > >
> > > > > > Hi Cassandra,
> > > > > >
> > > > > > Apologies this took so long -- I wasn't familiar with these
> > > > > > site-generation tools and the whole ecosystem is rather... fragile :)
> > > > > > After a few attempts at using gradle plugins I eventually leaned
> > > > > > towards using asciidoctor and jekyll explicitly (so that we know which
> > > > > > versions are being used and don't have to rely on dependencies).
> > > > > >
> > > > > > I got bare bone html checking working, PDF generation working and site
> > > > > > generation working although the final link check currently fail for me
> > > > > > with a bunch of errors. This works for me on Windows... on Linux I get
> > > > > > site-generation generate a strange error from within jekyll:
> > > > > >
> > > > > > Conversion error: Jekyll::AsciiDoc::Converter encountered an error
> > > > > > while converting 'about-filters.adoc':
> > > > > > Bad file descriptor - /usr/bin/python2
> > > > > >
> > > > > > I could install python but I don't see why it'd need it. Perhaps there
> > > > > > is something in the docs that would avoid using python altogether but
> > > > > > I haven't had the time to look into it.
> > > > > >
> > > > > > Please feel free to check out the jira/SOLR-13452_gradle_7_refguide
> > > > > > branch and try to run:
> > > > > >
> > > > > > ./gradlew -p solr/solr-ref-guide buildPdf buildSite
> > > > > >
> > > > > > There is a lot of room for improvement -- from property substitution,
> > > > > > through how the "tools" are handled at the moment to task naming but I
> > > > > > left this for the future. The initial step would be probably to get
> > > > > > the site generation running on Linux/ Macs but I'd gladly hand it over
> > > > > > back to you -- I can help with Gradle but a the rest of those tools
> > > > > > are a mistery to me.
> > > > > >
> > > > > > Dawid
> > > > > >
> > > > > > On Fri, Sep 27, 2019 at 7:53 PM Dawid Weiss <da...@gmail.com> wrote:
> > > > > > >
> > > > > > >
> > > > > > > No problem. I will get it to work entirely, but not before next week - I am away for the weekend.
> > > > > > >
> > > > > > > Dawid
> > > > > > >
> > > > > > > On Fri, Sep 27, 2019, 16:17 Cassandra Targett <ca...@gmail.com> wrote:
> > > > > > > >
> > > > > > > > Thanks Dawid for working on this! I’ve been a bit swamped the last couple of days but will take a look today at what you’ve been able to do so far and see where we might need to go from here.
> > > > > > > >
> > > > > > > > Cassandra
> > > > > > > > On Sep 26, 2019, 7:25 AM -0500, Dawid Weiss <da...@gmail.com>, wrote:
> > > > > > > >
> > > > > > > > I agree. Although I also understand the concern of trying to merge the
> > > > > > > > changes while we're in the transition period... it'd be hell. I'd say
> > > > > > > > move as much stuff as possible with the current folder structure (and
> > > > > > > > ignore what cannot be ported easily) then switch as soon as possible
> > > > > > > > to gradle and hack the old cruft with a chainsaw...
> > > > > > > >
> > > > > > > > D.
> > > > > > > >
> > > > > > > > On Thu, Sep 26, 2019 at 2:13 PM Erick Erickson <er...@gmail.com> wrote:
> > > > > > > >
> > > > > > > >
> > > > > > > > Of course I’ll completely defer to Dawid and Mark (well and anybody else actually, you know, doing _work_), but just can’t resist chiming in ;).
> > > > > > > >
> > > > > > > > My vote would be to “do it the Gradle way”. Yes, it’s a PITA to learn new stuff and I won’t like it. Tough. I see no reason to carry a bunch of cruft around because “that the way we always did it”.
> > > > > > > >
> > > > > > > > If we lose functionality, that’s a different discussion, starting with “do we need that functionality". But jumping through hoops and having to maintain that awkwardness forever going forward just because we forced the Ant structure on Gradle strikes me as a poor trade off.
> > > > > > > >
> > > > > > > > That said, I’m not doing the work so I really have no vote. But don’t strain to do it the old way on my account ;)
> > > > > > > >
> > > > > > > > Erick
> > > > > > > >
> > > > > > > > P.S. Thanks Dawid for jumping in!
> > > > > > > >
> > > > > > > > On Sep 26, 2019, at 3:57 AM, Dawid Weiss <da...@gmail.com> wrote:
> > > > > > > >
> > > > > > > > I pushed it in to Lucene repo (it's on Cassandra's refguide branch
> > > > > > > > anyway, so shouldn't interfere with anything else); seems like it's in
> > > > > > > > better shape than previous code anyway (those questions I asked about
> > > > > > > > the nature of the gradle port still hold though).
> > > > > > > >
> > > > > > > > I got as far as building initial bare-bones HTML.
> > > > > > > >
> > > > > > > > .\gradlew -p solr\solr-ref-guide clean bareBonesHtmlValidation
> > > > > > > >
> > > > > > > > I don't know anything about the pipeline involved (asciidoctor, etc.)
> > > > > > > > so it's very likely some attributes will have to be corrected later
> > > > > > > > on.
> > > > > > > >
> > > > > > > > Dawid
> > > > > > > >
> > > > > > > > On Wed, Sep 25, 2019 at 9:14 PM Dawid Weiss <da...@gmail.com> wrote:
> > > > > > > >
> > > > > > > >
> > > > > > > > I looked at the solr ref guide build and started converting it to
> > > > > > > > Gradle but have a question to Mark (because he coordinates the
> > > > > > > > effort).
> > > > > > > >
> > > > > > > > What immediately jumps into face is the decision problem -- do we want
> > > > > > > > to emulate what ant does at the moment or do we want to clean it up
> > > > > > > > (breaking file/ folder structure and causing incompatibility with ant
> > > > > > > > build).
> > > > > > > >
> > > > > > > > I went the "compatible" way and started porting ant tasks but it's
> > > > > > > > quite awkward. For example -- there are template properties that refer
> > > > > > > > to ivy version properties... we could emulate/ compute these but it's
> > > > > > > > a pain. The way the module is currently structured is also awkward -
> > > > > > > > it'd be more natural to have a separate java project with the "tools"
> > > > > > > > required to compile extra stuff and just reference it from the manual
> > > > > > > > build (and this would be a plain module, not a java module). This
> > > > > > > > would limit the need for customizing source sets, classpaths, etc.
> > > > > > > >
> > > > > > > > My few initial tasks syncing sources, setting up infrastructure to
> > > > > > > > filter templates and compiling the required tools are here:
> > > > > > > > https://github.com/apache/lucene-solr/compare/jira/SOLR-13452_gradle_7_refguide...dweiss:jira/SOLR-13452_gradle_7_refguide?expand=1
> > > > > > > >
> > > > > > > > I'll stop and wait for feedback (especially on the ivy versions issue)
> > > > > > > > before I resume.
> > > > > > > >
> > > > > > > > Dawid
> > > > > > > >
> > > > > > > > On Wed, Sep 25, 2019 at 6:20 PM Dawid Weiss <da...@gmail.com> wrote:
> > > > > > > >
> > > > > > > >
> > > > > > > > Never mind, I've got it.
> > > > > > > >
> > > > > > > > D.
> > > > > > > >
> > > > > > > > On Wed, Sep 25, 2019 at 7:59 AM Dawid Weiss <da...@gmail.com> wrote:
> > > > > > > >
> > > > > > > >
> > > > > > > > Hi Cassandra,
> > > > > > > >
> > > > > > > > I’m more than happy to share more details our current build so we can replicate some of the above steps, but I’m stuck without a lot more basic Gradle skills that I don’t have time to acquire with day-job/personal life commitments. I put it into a separate branch so we could iterate a little easier, can anyone help?
> > > > > > > >
> > > > > > > >
> > > > > > > > Where is this branch you made changes on? If you can point me at the
> > > > > > > > corresponding ant code I'll try to help you out.
> > > > > > > >
> > > > > > > > Dawid
> > > > > > > >
> > > > > > > >
> > > > > > > > ---------------------------------------------------------------------
> > > > > > > > To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> > > > > > > > For additional commands, e-mail: dev-help@lucene.apache.org
> > > > > > > >
> > > > > > > >
> > > > > > > >
> > > > > > > > ---------------------------------------------------------------------
> > > > > > > > To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> > > > > > > > For additional commands, e-mail: dev-help@lucene.apache.org
> > > > > > > >
> > > > > > > >
> > > > > > > > ---------------------------------------------------------------------
> > > > > > > > To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> > > > > > > > For additional commands, e-mail: dev-help@lucene.apache.org
> > > > > > > >
> > > >
> > > > ---------------------------------------------------------------------
> > > > To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> > > > For additional commands, e-mail: dev-help@lucene.apache.org
> > > >

Re: The Lucene Solr Gradle Build Game plan

Posted by Dawid Weiss <da...@gmail.com>.
Sure. Try and see if you can make it work. It is just about the only thing
that still needs to be done, the rest works like a charm.

On Fri, Oct 11, 2019, 20:20 Cassandra Targett <ca...@gmail.com> wrote:

> Sorry for the delay getting back to you Dawid. That problem is actually
> because of the Asciidoctor version. The jekyll-asciidoc plugin will install
> Asciidoctor if it is not already installed, and it installs a version where
> the way the links are constructed is different and breaks our validation.
>
> More details about why this happens (if you’re curious) is in
> https://issues.apache.org/jira/browse/SOLR-12786?focusedCommentId=16622115&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-16622115
>
> Both the Jenkins script used for Jenkins Ref Guide jobs
> (./dev-tools/scripts/jenkins.build.ref.guide.sh) and the Ref Guide README
> (./solr/solr-ref-guide/README.adoc) show examples of how to make sure the
> right Asciidoctor version is installed - the easiest is to install the
> Asciidoctor gem version we want first. Let me see if I can insert a line to
> install before the jekyll-asciidoc gem and see if that fixes it.
>
> Cassandra
> On Oct 10, 2019, 2:22 AM -0500, Dawid Weiss <da...@gmail.com>,
> wrote:
>
> Ping, ping. I wanted to finalize the build of solr ref guide since I
> started it. Almost everything is working on the branch but I can't get
> minor differences to work and I believe they're due to a different
> jekyll version (than that mentioned in the docs).
>
> Specifically, the invalid links are because of asciidoc sections like
> this (in the processed resource-and-plugin-loading.adoc):
>
> === solr_home/lib
>
> In bare bones html (pure asciidoctor) this gets emitted as:
>
> <h3 id="solr_home-lib">solr_home/lib</h3>
>
> but when compiled via jekyll this becomes:
>
> <h3 id="solr_homelib">solr_home/lib</h3>
>
> which I can't really explain.
>
> Cassandra what's the exact version of jekyll that runs the compilation
> that is working for you?
>
> D.
>
> On Fri, Oct 4, 2019 at 11:42 AM Dawid Weiss <da...@gmail.com> wrote:
>
>
> Seems like pygments is to blame for the python requirement... I didn't
> check but there seem to be ruby-only
> highlighters for jekyll as well:
>
> https://jekyll-windows.juthilo.com/3-syntax-highlighting/
>
> On Fri, Oct 4, 2019 at 11:39 AM Dawid Weiss <da...@gmail.com> wrote:
>
>
> Hi Cassandra,
>
> Apologies this took so long -- I wasn't familiar with these
> site-generation tools and the whole ecosystem is rather... fragile :)
> After a few attempts at using gradle plugins I eventually leaned
> towards using asciidoctor and jekyll explicitly (so that we know which
> versions are being used and don't have to rely on dependencies).
>
> I got bare bone html checking working, PDF generation working and site
> generation working although the final link check currently fail for me
> with a bunch of errors. This works for me on Windows... on Linux I get
> site-generation generate a strange error from within jekyll:
>
> Conversion error: Jekyll::AsciiDoc::Converter encountered an error
> while converting 'about-filters.adoc':
> Bad file descriptor - /usr/bin/python2
>
> I could install python but I don't see why it'd need it. Perhaps there
> is something in the docs that would avoid using python altogether but
> I haven't had the time to look into it.
>
> Please feel free to check out the jira/SOLR-13452_gradle_7_refguide
> branch and try to run:
>
> ./gradlew -p solr/solr-ref-guide buildPdf buildSite
>
> There is a lot of room for improvement -- from property substitution,
> through how the "tools" are handled at the moment to task naming but I
> left this for the future. The initial step would be probably to get
> the site generation running on Linux/ Macs but I'd gladly hand it over
> back to you -- I can help with Gradle but a the rest of those tools
> are a mistery to me.
>
> Dawid
>
> On Fri, Sep 27, 2019 at 7:53 PM Dawid Weiss <da...@gmail.com> wrote:
>
>
>
> No problem. I will get it to work entirely, but not before next week - I
> am away for the weekend.
>
> Dawid
>
> On Fri, Sep 27, 2019, 16:17 Cassandra Targett <ca...@gmail.com>
> wrote:
>
>
> Thanks Dawid for working on this! I’ve been a bit swamped the last couple
> of days but will take a look today at what you’ve been able to do so far
> and see where we might need to go from here.
>
> Cassandra
> On Sep 26, 2019, 7:25 AM -0500, Dawid Weiss <da...@gmail.com>,
> wrote:
>
> I agree. Although I also understand the concern of trying to merge the
> changes while we're in the transition period... it'd be hell. I'd say
> move as much stuff as possible with the current folder structure (and
> ignore what cannot be ported easily) then switch as soon as possible
> to gradle and hack the old cruft with a chainsaw...
>
> D.
>
> On Thu, Sep 26, 2019 at 2:13 PM Erick Erickson <er...@gmail.com>
> wrote:
>
>
> Of course I’ll completely defer to Dawid and Mark (well and anybody else
> actually, you know, doing _work_), but just can’t resist chiming in ;).
>
> My vote would be to “do it the Gradle way”. Yes, it’s a PITA to learn new
> stuff and I won’t like it. Tough. I see no reason to carry a bunch of cruft
> around because “that the way we always did it”.
>
> If we lose functionality, that’s a different discussion, starting with “do
> we need that functionality". But jumping through hoops and having to
> maintain that awkwardness forever going forward just because we forced the
> Ant structure on Gradle strikes me as a poor trade off.
>
> That said, I’m not doing the work so I really have no vote. But don’t
> strain to do it the old way on my account ;)
>
> Erick
>
> P.S. Thanks Dawid for jumping in!
>
> On Sep 26, 2019, at 3:57 AM, Dawid Weiss <da...@gmail.com> wrote:
>
> I pushed it in to Lucene repo (it's on Cassandra's refguide branch
> anyway, so shouldn't interfere with anything else); seems like it's in
> better shape than previous code anyway (those questions I asked about
> the nature of the gradle port still hold though).
>
> I got as far as building initial bare-bones HTML.
>
> .\gradlew -p solr\solr-ref-guide clean bareBonesHtmlValidation
>
> I don't know anything about the pipeline involved (asciidoctor, etc.)
> so it's very likely some attributes will have to be corrected later
> on.
>
> Dawid
>
> On Wed, Sep 25, 2019 at 9:14 PM Dawid Weiss <da...@gmail.com> wrote:
>
>
> I looked at the solr ref guide build and started converting it to
> Gradle but have a question to Mark (because he coordinates the
> effort).
>
> What immediately jumps into face is the decision problem -- do we want
> to emulate what ant does at the moment or do we want to clean it up
> (breaking file/ folder structure and causing incompatibility with ant
> build).
>
> I went the "compatible" way and started porting ant tasks but it's
> quite awkward. For example -- there are template properties that refer
> to ivy version properties... we could emulate/ compute these but it's
> a pain. The way the module is currently structured is also awkward -
> it'd be more natural to have a separate java project with the "tools"
> required to compile extra stuff and just reference it from the manual
> build (and this would be a plain module, not a java module). This
> would limit the need for customizing source sets, classpaths, etc.
>
> My few initial tasks syncing sources, setting up infrastructure to
> filter templates and compiling the required tools are here:
>
> https://github.com/apache/lucene-solr/compare/jira/SOLR-13452_gradle_7_refguide...dweiss:jira/SOLR-13452_gradle_7_refguide?expand=1
>
> I'll stop and wait for feedback (especially on the ivy versions issue)
> before I resume.
>
> Dawid
>
> On Wed, Sep 25, 2019 at 6:20 PM Dawid Weiss <da...@gmail.com> wrote:
>
>
> Never mind, I've got it.
>
> D.
>
> On Wed, Sep 25, 2019 at 7:59 AM Dawid Weiss <da...@gmail.com> wrote:
>
>
> Hi Cassandra,
>
> I’m more than happy to share more details our current build so we can
> replicate some of the above steps, but I’m stuck without a lot more basic
> Gradle skills that I don’t have time to acquire with day-job/personal life
> commitments. I put it into a separate branch so we could iterate a little
> easier, can anyone help?
>
>
> Where is this branch you made changes on? If you can point me at the
> corresponding ant code I'll try to help you out.
>
> Dawid
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>
>

Re: The Lucene Solr Gradle Build Game plan

Posted by Cassandra Targett <ca...@gmail.com>.
Sorry for the delay getting back to you Dawid. That problem is actually because of the Asciidoctor version. The jekyll-asciidoc plugin will install Asciidoctor if it is not already installed, and it installs a version where the way the links are constructed is different and breaks our validation.

More details about why this happens (if you’re curious) is in https://issues.apache.org/jira/browse/SOLR-12786?focusedCommentId=16622115&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-16622115

Both the Jenkins script used for Jenkins Ref Guide jobs (./dev-tools/scripts/jenkins.build.ref.guide.sh) and the Ref Guide README (./solr/solr-ref-guide/README.adoc) show examples of how to make sure the right Asciidoctor version is installed - the easiest is to install the Asciidoctor gem version we want first. Let me see if I can insert a line to install before the jekyll-asciidoc gem and see if that fixes it.

Cassandra
On Oct 10, 2019, 2:22 AM -0500, Dawid Weiss <da...@gmail.com>, wrote:
> Ping, ping. I wanted to finalize the build of solr ref guide since I
> started it. Almost everything is working on the branch but I can't get
> minor differences to work and I believe they're due to a different
> jekyll version (than that mentioned in the docs).
>
> Specifically, the invalid links are because of asciidoc sections like
> this (in the processed resource-and-plugin-loading.adoc):
>
> === solr_home/lib
>
> In bare bones html (pure asciidoctor) this gets emitted as:
>
> <h3 id="solr_home-lib">solr_home/lib</h3>
>
> but when compiled via jekyll this becomes:
>
> <h3 id="solr_homelib">solr_home/lib</h3>
>
> which I can't really explain.
>
> Cassandra what's the exact version of jekyll that runs the compilation
> that is working for you?
>
> D.
>
> On Fri, Oct 4, 2019 at 11:42 AM Dawid Weiss <da...@gmail.com> wrote:
> >
> > Seems like pygments is to blame for the python requirement... I didn't
> > check but there seem to be ruby-only
> > highlighters for jekyll as well:
> >
> > https://jekyll-windows.juthilo.com/3-syntax-highlighting/
> >
> > On Fri, Oct 4, 2019 at 11:39 AM Dawid Weiss <da...@gmail.com> wrote:
> > >
> > > Hi Cassandra,
> > >
> > > Apologies this took so long -- I wasn't familiar with these
> > > site-generation tools and the whole ecosystem is rather... fragile :)
> > > After a few attempts at using gradle plugins I eventually leaned
> > > towards using asciidoctor and jekyll explicitly (so that we know which
> > > versions are being used and don't have to rely on dependencies).
> > >
> > > I got bare bone html checking working, PDF generation working and site
> > > generation working although the final link check currently fail for me
> > > with a bunch of errors. This works for me on Windows... on Linux I get
> > > site-generation generate a strange error from within jekyll:
> > >
> > > Conversion error: Jekyll::AsciiDoc::Converter encountered an error
> > > while converting 'about-filters.adoc':
> > > Bad file descriptor - /usr/bin/python2
> > >
> > > I could install python but I don't see why it'd need it. Perhaps there
> > > is something in the docs that would avoid using python altogether but
> > > I haven't had the time to look into it.
> > >
> > > Please feel free to check out the jira/SOLR-13452_gradle_7_refguide
> > > branch and try to run:
> > >
> > > ./gradlew -p solr/solr-ref-guide buildPdf buildSite
> > >
> > > There is a lot of room for improvement -- from property substitution,
> > > through how the "tools" are handled at the moment to task naming but I
> > > left this for the future. The initial step would be probably to get
> > > the site generation running on Linux/ Macs but I'd gladly hand it over
> > > back to you -- I can help with Gradle but a the rest of those tools
> > > are a mistery to me.
> > >
> > > Dawid
> > >
> > > On Fri, Sep 27, 2019 at 7:53 PM Dawid Weiss <da...@gmail.com> wrote:
> > > >
> > > >
> > > > No problem. I will get it to work entirely, but not before next week - I am away for the weekend.
> > > >
> > > > Dawid
> > > >
> > > > On Fri, Sep 27, 2019, 16:17 Cassandra Targett <ca...@gmail.com> wrote:
> > > > >
> > > > > Thanks Dawid for working on this! I’ve been a bit swamped the last couple of days but will take a look today at what you’ve been able to do so far and see where we might need to go from here.
> > > > >
> > > > > Cassandra
> > > > > On Sep 26, 2019, 7:25 AM -0500, Dawid Weiss <da...@gmail.com>, wrote:
> > > > >
> > > > > I agree. Although I also understand the concern of trying to merge the
> > > > > changes while we're in the transition period... it'd be hell. I'd say
> > > > > move as much stuff as possible with the current folder structure (and
> > > > > ignore what cannot be ported easily) then switch as soon as possible
> > > > > to gradle and hack the old cruft with a chainsaw...
> > > > >
> > > > > D.
> > > > >
> > > > > On Thu, Sep 26, 2019 at 2:13 PM Erick Erickson <er...@gmail.com> wrote:
> > > > >
> > > > >
> > > > > Of course I’ll completely defer to Dawid and Mark (well and anybody else actually, you know, doing _work_), but just can’t resist chiming in ;).
> > > > >
> > > > > My vote would be to “do it the Gradle way”. Yes, it’s a PITA to learn new stuff and I won’t like it. Tough. I see no reason to carry a bunch of cruft around because “that the way we always did it”.
> > > > >
> > > > > If we lose functionality, that’s a different discussion, starting with “do we need that functionality". But jumping through hoops and having to maintain that awkwardness forever going forward just because we forced the Ant structure on Gradle strikes me as a poor trade off.
> > > > >
> > > > > That said, I’m not doing the work so I really have no vote. But don’t strain to do it the old way on my account ;)
> > > > >
> > > > > Erick
> > > > >
> > > > > P.S. Thanks Dawid for jumping in!
> > > > >
> > > > > On Sep 26, 2019, at 3:57 AM, Dawid Weiss <da...@gmail.com> wrote:
> > > > >
> > > > > I pushed it in to Lucene repo (it's on Cassandra's refguide branch
> > > > > anyway, so shouldn't interfere with anything else); seems like it's in
> > > > > better shape than previous code anyway (those questions I asked about
> > > > > the nature of the gradle port still hold though).
> > > > >
> > > > > I got as far as building initial bare-bones HTML.
> > > > >
> > > > > .\gradlew -p solr\solr-ref-guide clean bareBonesHtmlValidation
> > > > >
> > > > > I don't know anything about the pipeline involved (asciidoctor, etc.)
> > > > > so it's very likely some attributes will have to be corrected later
> > > > > on.
> > > > >
> > > > > Dawid
> > > > >
> > > > > On Wed, Sep 25, 2019 at 9:14 PM Dawid Weiss <da...@gmail.com> wrote:
> > > > >
> > > > >
> > > > > I looked at the solr ref guide build and started converting it to
> > > > > Gradle but have a question to Mark (because he coordinates the
> > > > > effort).
> > > > >
> > > > > What immediately jumps into face is the decision problem -- do we want
> > > > > to emulate what ant does at the moment or do we want to clean it up
> > > > > (breaking file/ folder structure and causing incompatibility with ant
> > > > > build).
> > > > >
> > > > > I went the "compatible" way and started porting ant tasks but it's
> > > > > quite awkward. For example -- there are template properties that refer
> > > > > to ivy version properties... we could emulate/ compute these but it's
> > > > > a pain. The way the module is currently structured is also awkward -
> > > > > it'd be more natural to have a separate java project with the "tools"
> > > > > required to compile extra stuff and just reference it from the manual
> > > > > build (and this would be a plain module, not a java module). This
> > > > > would limit the need for customizing source sets, classpaths, etc.
> > > > >
> > > > > My few initial tasks syncing sources, setting up infrastructure to
> > > > > filter templates and compiling the required tools are here:
> > > > > https://github.com/apache/lucene-solr/compare/jira/SOLR-13452_gradle_7_refguide...dweiss:jira/SOLR-13452_gradle_7_refguide?expand=1
> > > > >
> > > > > I'll stop and wait for feedback (especially on the ivy versions issue)
> > > > > before I resume.
> > > > >
> > > > > Dawid
> > > > >
> > > > > On Wed, Sep 25, 2019 at 6:20 PM Dawid Weiss <da...@gmail.com> wrote:
> > > > >
> > > > >
> > > > > Never mind, I've got it.
> > > > >
> > > > > D.
> > > > >
> > > > > On Wed, Sep 25, 2019 at 7:59 AM Dawid Weiss <da...@gmail.com> wrote:
> > > > >
> > > > >
> > > > > Hi Cassandra,
> > > > >
> > > > > I’m more than happy to share more details our current build so we can replicate some of the above steps, but I’m stuck without a lot more basic Gradle skills that I don’t have time to acquire with day-job/personal life commitments. I put it into a separate branch so we could iterate a little easier, can anyone help?
> > > > >
> > > > >
> > > > > Where is this branch you made changes on? If you can point me at the
> > > > > corresponding ant code I'll try to help you out.
> > > > >
> > > > > Dawid
> > > > >
> > > > >
> > > > > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> > > > > For additional commands, e-mail: dev-help@lucene.apache.org
> > > > >
> > > > >
> > > > >
> > > > > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> > > > > For additional commands, e-mail: dev-help@lucene.apache.org
> > > > >
> > > > >
> > > > > ---------------------------------------------------------------------
> > > > > To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> > > > > For additional commands, e-mail: dev-help@lucene.apache.org
> > > > >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>

Re: The Lucene Solr Gradle Build Game plan

Posted by Dawid Weiss <da...@gmail.com>.
Ping, ping. I wanted to finalize the build of solr ref guide since I
started it. Almost everything is working on the branch but I can't get
minor differences to work and I believe they're due to a different
jekyll version (than that mentioned in the docs).

Specifically, the invalid links are because of asciidoc sections like
this (in the processed resource-and-plugin-loading.adoc):

=== solr_home/lib

In bare bones html (pure asciidoctor) this gets emitted as:

<h3 id="solr_home-lib">solr_home/lib</h3>

but when compiled via jekyll this becomes:

<h3 id="solr_homelib">solr_home/lib</h3>

which I can't really explain.

Cassandra what's the exact version of jekyll that runs the compilation
that is working for you?

D.

On Fri, Oct 4, 2019 at 11:42 AM Dawid Weiss <da...@gmail.com> wrote:
>
> Seems like pygments is to blame for the python requirement... I didn't
> check but there seem to be ruby-only
> highlighters for jekyll as well:
>
> https://jekyll-windows.juthilo.com/3-syntax-highlighting/
>
> On Fri, Oct 4, 2019 at 11:39 AM Dawid Weiss <da...@gmail.com> wrote:
> >
> > Hi Cassandra,
> >
> > Apologies this took so long -- I wasn't familiar with these
> > site-generation tools and the whole ecosystem is rather... fragile :)
> > After a few attempts at using gradle plugins I eventually leaned
> > towards using asciidoctor and jekyll explicitly (so that we know which
> > versions are being used and don't have to rely on dependencies).
> >
> > I got bare bone html checking working, PDF generation working and site
> > generation working although the final link check currently fail for me
> > with a bunch of errors. This works for me on Windows... on Linux I get
> > site-generation generate a strange error from within jekyll:
> >
> >   Conversion error: Jekyll::AsciiDoc::Converter encountered an error
> > while converting 'about-filters.adoc':
> >                     Bad file descriptor - /usr/bin/python2
> >
> > I could install python but I don't see why it'd need it. Perhaps there
> > is something in the docs that would avoid using python altogether but
> > I haven't had the time to look into it.
> >
> > Please feel free to check out the jira/SOLR-13452_gradle_7_refguide
> > branch and try to run:
> >
> > ./gradlew -p solr/solr-ref-guide buildPdf buildSite
> >
> > There is a lot of room for improvement -- from property substitution,
> > through how the "tools" are handled at the moment to task naming but I
> > left this for the future. The initial step would be probably to get
> > the site generation running on Linux/ Macs but I'd gladly hand it over
> > back to you -- I can help with Gradle but a the rest of those tools
> > are a mistery to me.
> >
> > Dawid
> >
> > On Fri, Sep 27, 2019 at 7:53 PM Dawid Weiss <da...@gmail.com> wrote:
> > >
> > >
> > > No problem. I will get it to work entirely, but not before next week - I am away for the weekend.
> > >
> > > Dawid
> > >
> > > On Fri, Sep 27, 2019, 16:17 Cassandra Targett <ca...@gmail.com> wrote:
> > >>
> > >> Thanks Dawid for working on this! I’ve been a bit swamped the last couple of days but will take a look today at what you’ve been able to do so far and see where we might need to go from here.
> > >>
> > >> Cassandra
> > >> On Sep 26, 2019, 7:25 AM -0500, Dawid Weiss <da...@gmail.com>, wrote:
> > >>
> > >> I agree. Although I also understand the concern of trying to merge the
> > >> changes while we're in the transition period... it'd be hell. I'd say
> > >> move as much stuff as possible with the current folder structure (and
> > >> ignore what cannot be ported easily) then switch as soon as possible
> > >> to gradle and hack the old cruft with a chainsaw...
> > >>
> > >> D.
> > >>
> > >> On Thu, Sep 26, 2019 at 2:13 PM Erick Erickson <er...@gmail.com> wrote:
> > >>
> > >>
> > >> Of course I’ll completely defer to Dawid and Mark (well and anybody else actually, you know, doing _work_), but just can’t resist chiming in ;).
> > >>
> > >> My vote would be to “do it the Gradle way”. Yes, it’s a PITA to learn new stuff and I won’t like it. Tough. I see no reason to carry a bunch of cruft around because “that the way we always did it”.
> > >>
> > >> If we lose functionality, that’s a different discussion, starting with “do we need that functionality". But jumping through hoops and having to maintain that awkwardness forever going forward just because we forced the Ant structure on Gradle strikes me as a poor trade off.
> > >>
> > >> That said, I’m not doing the work so I really have no vote. But don’t strain to do it the old way on my account ;)
> > >>
> > >> Erick
> > >>
> > >> P.S. Thanks Dawid for jumping in!
> > >>
> > >> On Sep 26, 2019, at 3:57 AM, Dawid Weiss <da...@gmail.com> wrote:
> > >>
> > >> I pushed it in to Lucene repo (it's on Cassandra's refguide branch
> > >> anyway, so shouldn't interfere with anything else); seems like it's in
> > >> better shape than previous code anyway (those questions I asked about
> > >> the nature of the gradle port still hold though).
> > >>
> > >> I got as far as building initial bare-bones HTML.
> > >>
> > >> .\gradlew -p solr\solr-ref-guide clean bareBonesHtmlValidation
> > >>
> > >> I don't know anything about the pipeline involved (asciidoctor, etc.)
> > >> so it's very likely some attributes will have to be corrected later
> > >> on.
> > >>
> > >> Dawid
> > >>
> > >> On Wed, Sep 25, 2019 at 9:14 PM Dawid Weiss <da...@gmail.com> wrote:
> > >>
> > >>
> > >> I looked at the solr ref guide build and started converting it to
> > >> Gradle but have a question to Mark (because he coordinates the
> > >> effort).
> > >>
> > >> What immediately jumps into face is the decision problem -- do we want
> > >> to emulate what ant does at the moment or do we want to clean it up
> > >> (breaking file/ folder structure and causing incompatibility with ant
> > >> build).
> > >>
> > >> I went the "compatible" way and started porting ant tasks but it's
> > >> quite awkward. For example -- there are template properties that refer
> > >> to ivy version properties... we could emulate/ compute these but it's
> > >> a pain. The way the module is currently structured is also awkward -
> > >> it'd be more natural to have a separate java project with the "tools"
> > >> required to compile extra stuff and just reference it from the manual
> > >> build (and this would be a plain module, not a java module). This
> > >> would limit the need for customizing source sets, classpaths, etc.
> > >>
> > >> My few initial tasks syncing sources, setting up infrastructure to
> > >> filter templates and compiling the required tools are here:
> > >> https://github.com/apache/lucene-solr/compare/jira/SOLR-13452_gradle_7_refguide...dweiss:jira/SOLR-13452_gradle_7_refguide?expand=1
> > >>
> > >> I'll stop and wait for feedback (especially on the ivy versions issue)
> > >> before I resume.
> > >>
> > >> Dawid
> > >>
> > >> On Wed, Sep 25, 2019 at 6:20 PM Dawid Weiss <da...@gmail.com> wrote:
> > >>
> > >>
> > >> Never mind, I've got it.
> > >>
> > >> D.
> > >>
> > >> On Wed, Sep 25, 2019 at 7:59 AM Dawid Weiss <da...@gmail.com> wrote:
> > >>
> > >>
> > >> Hi Cassandra,
> > >>
> > >> I’m more than happy to share more details our current build so we can replicate some of the above steps, but I’m stuck without a lot more basic Gradle skills that I don’t have time to acquire with day-job/personal life commitments. I put it into a separate branch so we could iterate a little easier, can anyone help?
> > >>
> > >>
> > >> Where is this branch you made changes on? If you can point me at the
> > >> corresponding ant code I'll try to help you out.
> > >>
> > >> Dawid
> > >>
> > >>
> > >> ---------------------------------------------------------------------
> > >> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> > >> For additional commands, e-mail: dev-help@lucene.apache.org
> > >>
> > >>
> > >>
> > >> ---------------------------------------------------------------------
> > >> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> > >> For additional commands, e-mail: dev-help@lucene.apache.org
> > >>
> > >>
> > >> ---------------------------------------------------------------------
> > >> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> > >> For additional commands, e-mail: dev-help@lucene.apache.org
> > >>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Re: The Lucene Solr Gradle Build Game plan

Posted by Dawid Weiss <da...@gmail.com>.
Seems like pygments is to blame for the python requirement... I didn't
check but there seem to be ruby-only
highlighters for jekyll as well:

https://jekyll-windows.juthilo.com/3-syntax-highlighting/

On Fri, Oct 4, 2019 at 11:39 AM Dawid Weiss <da...@gmail.com> wrote:
>
> Hi Cassandra,
>
> Apologies this took so long -- I wasn't familiar with these
> site-generation tools and the whole ecosystem is rather... fragile :)
> After a few attempts at using gradle plugins I eventually leaned
> towards using asciidoctor and jekyll explicitly (so that we know which
> versions are being used and don't have to rely on dependencies).
>
> I got bare bone html checking working, PDF generation working and site
> generation working although the final link check currently fail for me
> with a bunch of errors. This works for me on Windows... on Linux I get
> site-generation generate a strange error from within jekyll:
>
>   Conversion error: Jekyll::AsciiDoc::Converter encountered an error
> while converting 'about-filters.adoc':
>                     Bad file descriptor - /usr/bin/python2
>
> I could install python but I don't see why it'd need it. Perhaps there
> is something in the docs that would avoid using python altogether but
> I haven't had the time to look into it.
>
> Please feel free to check out the jira/SOLR-13452_gradle_7_refguide
> branch and try to run:
>
> ./gradlew -p solr/solr-ref-guide buildPdf buildSite
>
> There is a lot of room for improvement -- from property substitution,
> through how the "tools" are handled at the moment to task naming but I
> left this for the future. The initial step would be probably to get
> the site generation running on Linux/ Macs but I'd gladly hand it over
> back to you -- I can help with Gradle but a the rest of those tools
> are a mistery to me.
>
> Dawid
>
> On Fri, Sep 27, 2019 at 7:53 PM Dawid Weiss <da...@gmail.com> wrote:
> >
> >
> > No problem. I will get it to work entirely, but not before next week - I am away for the weekend.
> >
> > Dawid
> >
> > On Fri, Sep 27, 2019, 16:17 Cassandra Targett <ca...@gmail.com> wrote:
> >>
> >> Thanks Dawid for working on this! I’ve been a bit swamped the last couple of days but will take a look today at what you’ve been able to do so far and see where we might need to go from here.
> >>
> >> Cassandra
> >> On Sep 26, 2019, 7:25 AM -0500, Dawid Weiss <da...@gmail.com>, wrote:
> >>
> >> I agree. Although I also understand the concern of trying to merge the
> >> changes while we're in the transition period... it'd be hell. I'd say
> >> move as much stuff as possible with the current folder structure (and
> >> ignore what cannot be ported easily) then switch as soon as possible
> >> to gradle and hack the old cruft with a chainsaw...
> >>
> >> D.
> >>
> >> On Thu, Sep 26, 2019 at 2:13 PM Erick Erickson <er...@gmail.com> wrote:
> >>
> >>
> >> Of course I’ll completely defer to Dawid and Mark (well and anybody else actually, you know, doing _work_), but just can’t resist chiming in ;).
> >>
> >> My vote would be to “do it the Gradle way”. Yes, it’s a PITA to learn new stuff and I won’t like it. Tough. I see no reason to carry a bunch of cruft around because “that the way we always did it”.
> >>
> >> If we lose functionality, that’s a different discussion, starting with “do we need that functionality". But jumping through hoops and having to maintain that awkwardness forever going forward just because we forced the Ant structure on Gradle strikes me as a poor trade off.
> >>
> >> That said, I’m not doing the work so I really have no vote. But don’t strain to do it the old way on my account ;)
> >>
> >> Erick
> >>
> >> P.S. Thanks Dawid for jumping in!
> >>
> >> On Sep 26, 2019, at 3:57 AM, Dawid Weiss <da...@gmail.com> wrote:
> >>
> >> I pushed it in to Lucene repo (it's on Cassandra's refguide branch
> >> anyway, so shouldn't interfere with anything else); seems like it's in
> >> better shape than previous code anyway (those questions I asked about
> >> the nature of the gradle port still hold though).
> >>
> >> I got as far as building initial bare-bones HTML.
> >>
> >> .\gradlew -p solr\solr-ref-guide clean bareBonesHtmlValidation
> >>
> >> I don't know anything about the pipeline involved (asciidoctor, etc.)
> >> so it's very likely some attributes will have to be corrected later
> >> on.
> >>
> >> Dawid
> >>
> >> On Wed, Sep 25, 2019 at 9:14 PM Dawid Weiss <da...@gmail.com> wrote:
> >>
> >>
> >> I looked at the solr ref guide build and started converting it to
> >> Gradle but have a question to Mark (because he coordinates the
> >> effort).
> >>
> >> What immediately jumps into face is the decision problem -- do we want
> >> to emulate what ant does at the moment or do we want to clean it up
> >> (breaking file/ folder structure and causing incompatibility with ant
> >> build).
> >>
> >> I went the "compatible" way and started porting ant tasks but it's
> >> quite awkward. For example -- there are template properties that refer
> >> to ivy version properties... we could emulate/ compute these but it's
> >> a pain. The way the module is currently structured is also awkward -
> >> it'd be more natural to have a separate java project with the "tools"
> >> required to compile extra stuff and just reference it from the manual
> >> build (and this would be a plain module, not a java module). This
> >> would limit the need for customizing source sets, classpaths, etc.
> >>
> >> My few initial tasks syncing sources, setting up infrastructure to
> >> filter templates and compiling the required tools are here:
> >> https://github.com/apache/lucene-solr/compare/jira/SOLR-13452_gradle_7_refguide...dweiss:jira/SOLR-13452_gradle_7_refguide?expand=1
> >>
> >> I'll stop and wait for feedback (especially on the ivy versions issue)
> >> before I resume.
> >>
> >> Dawid
> >>
> >> On Wed, Sep 25, 2019 at 6:20 PM Dawid Weiss <da...@gmail.com> wrote:
> >>
> >>
> >> Never mind, I've got it.
> >>
> >> D.
> >>
> >> On Wed, Sep 25, 2019 at 7:59 AM Dawid Weiss <da...@gmail.com> wrote:
> >>
> >>
> >> Hi Cassandra,
> >>
> >> I’m more than happy to share more details our current build so we can replicate some of the above steps, but I’m stuck without a lot more basic Gradle skills that I don’t have time to acquire with day-job/personal life commitments. I put it into a separate branch so we could iterate a little easier, can anyone help?
> >>
> >>
> >> Where is this branch you made changes on? If you can point me at the
> >> corresponding ant code I'll try to help you out.
> >>
> >> Dawid
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> >> For additional commands, e-mail: dev-help@lucene.apache.org
> >>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> >> For additional commands, e-mail: dev-help@lucene.apache.org
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> >> For additional commands, e-mail: dev-help@lucene.apache.org
> >>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Re: The Lucene Solr Gradle Build Game plan

Posted by Dawid Weiss <da...@gmail.com>.
Hi Cassandra,

Apologies this took so long -- I wasn't familiar with these
site-generation tools and the whole ecosystem is rather... fragile :)
After a few attempts at using gradle plugins I eventually leaned
towards using asciidoctor and jekyll explicitly (so that we know which
versions are being used and don't have to rely on dependencies).

I got bare bone html checking working, PDF generation working and site
generation working although the final link check currently fail for me
with a bunch of errors. This works for me on Windows... on Linux I get
site-generation generate a strange error from within jekyll:

  Conversion error: Jekyll::AsciiDoc::Converter encountered an error
while converting 'about-filters.adoc':
                    Bad file descriptor - /usr/bin/python2

I could install python but I don't see why it'd need it. Perhaps there
is something in the docs that would avoid using python altogether but
I haven't had the time to look into it.

Please feel free to check out the jira/SOLR-13452_gradle_7_refguide
branch and try to run:

./gradlew -p solr/solr-ref-guide buildPdf buildSite

There is a lot of room for improvement -- from property substitution,
through how the "tools" are handled at the moment to task naming but I
left this for the future. The initial step would be probably to get
the site generation running on Linux/ Macs but I'd gladly hand it over
back to you -- I can help with Gradle but a the rest of those tools
are a mistery to me.

Dawid

On Fri, Sep 27, 2019 at 7:53 PM Dawid Weiss <da...@gmail.com> wrote:
>
>
> No problem. I will get it to work entirely, but not before next week - I am away for the weekend.
>
> Dawid
>
> On Fri, Sep 27, 2019, 16:17 Cassandra Targett <ca...@gmail.com> wrote:
>>
>> Thanks Dawid for working on this! I’ve been a bit swamped the last couple of days but will take a look today at what you’ve been able to do so far and see where we might need to go from here.
>>
>> Cassandra
>> On Sep 26, 2019, 7:25 AM -0500, Dawid Weiss <da...@gmail.com>, wrote:
>>
>> I agree. Although I also understand the concern of trying to merge the
>> changes while we're in the transition period... it'd be hell. I'd say
>> move as much stuff as possible with the current folder structure (and
>> ignore what cannot be ported easily) then switch as soon as possible
>> to gradle and hack the old cruft with a chainsaw...
>>
>> D.
>>
>> On Thu, Sep 26, 2019 at 2:13 PM Erick Erickson <er...@gmail.com> wrote:
>>
>>
>> Of course I’ll completely defer to Dawid and Mark (well and anybody else actually, you know, doing _work_), but just can’t resist chiming in ;).
>>
>> My vote would be to “do it the Gradle way”. Yes, it’s a PITA to learn new stuff and I won’t like it. Tough. I see no reason to carry a bunch of cruft around because “that the way we always did it”.
>>
>> If we lose functionality, that’s a different discussion, starting with “do we need that functionality". But jumping through hoops and having to maintain that awkwardness forever going forward just because we forced the Ant structure on Gradle strikes me as a poor trade off.
>>
>> That said, I’m not doing the work so I really have no vote. But don’t strain to do it the old way on my account ;)
>>
>> Erick
>>
>> P.S. Thanks Dawid for jumping in!
>>
>> On Sep 26, 2019, at 3:57 AM, Dawid Weiss <da...@gmail.com> wrote:
>>
>> I pushed it in to Lucene repo (it's on Cassandra's refguide branch
>> anyway, so shouldn't interfere with anything else); seems like it's in
>> better shape than previous code anyway (those questions I asked about
>> the nature of the gradle port still hold though).
>>
>> I got as far as building initial bare-bones HTML.
>>
>> .\gradlew -p solr\solr-ref-guide clean bareBonesHtmlValidation
>>
>> I don't know anything about the pipeline involved (asciidoctor, etc.)
>> so it's very likely some attributes will have to be corrected later
>> on.
>>
>> Dawid
>>
>> On Wed, Sep 25, 2019 at 9:14 PM Dawid Weiss <da...@gmail.com> wrote:
>>
>>
>> I looked at the solr ref guide build and started converting it to
>> Gradle but have a question to Mark (because he coordinates the
>> effort).
>>
>> What immediately jumps into face is the decision problem -- do we want
>> to emulate what ant does at the moment or do we want to clean it up
>> (breaking file/ folder structure and causing incompatibility with ant
>> build).
>>
>> I went the "compatible" way and started porting ant tasks but it's
>> quite awkward. For example -- there are template properties that refer
>> to ivy version properties... we could emulate/ compute these but it's
>> a pain. The way the module is currently structured is also awkward -
>> it'd be more natural to have a separate java project with the "tools"
>> required to compile extra stuff and just reference it from the manual
>> build (and this would be a plain module, not a java module). This
>> would limit the need for customizing source sets, classpaths, etc.
>>
>> My few initial tasks syncing sources, setting up infrastructure to
>> filter templates and compiling the required tools are here:
>> https://github.com/apache/lucene-solr/compare/jira/SOLR-13452_gradle_7_refguide...dweiss:jira/SOLR-13452_gradle_7_refguide?expand=1
>>
>> I'll stop and wait for feedback (especially on the ivy versions issue)
>> before I resume.
>>
>> Dawid
>>
>> On Wed, Sep 25, 2019 at 6:20 PM Dawid Weiss <da...@gmail.com> wrote:
>>
>>
>> Never mind, I've got it.
>>
>> D.
>>
>> On Wed, Sep 25, 2019 at 7:59 AM Dawid Weiss <da...@gmail.com> wrote:
>>
>>
>> Hi Cassandra,
>>
>> I’m more than happy to share more details our current build so we can replicate some of the above steps, but I’m stuck without a lot more basic Gradle skills that I don’t have time to acquire with day-job/personal life commitments. I put it into a separate branch so we could iterate a little easier, can anyone help?
>>
>>
>> Where is this branch you made changes on? If you can point me at the
>> corresponding ant code I'll try to help you out.
>>
>> Dawid
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: dev-help@lucene.apache.org
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: dev-help@lucene.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: dev-help@lucene.apache.org
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Re: The Lucene Solr Gradle Build Game plan

Posted by Dawid Weiss <da...@gmail.com>.
No problem. I will get it to work entirely, but not before next week - I am
away for the weekend.

Dawid

On Fri, Sep 27, 2019, 16:17 Cassandra Targett <ca...@gmail.com> wrote:

> Thanks Dawid for working on this! I’ve been a bit swamped the last couple
> of days but will take a look today at what you’ve been able to do so far
> and see where we might need to go from here.
>
> Cassandra
> On Sep 26, 2019, 7:25 AM -0500, Dawid Weiss <da...@gmail.com>,
> wrote:
>
> I agree. Although I also understand the concern of trying to merge the
> changes while we're in the transition period... it'd be hell. I'd say
> move as much stuff as possible with the current folder structure (and
> ignore what cannot be ported easily) then switch as soon as possible
> to gradle and hack the old cruft with a chainsaw...
>
> D.
>
> On Thu, Sep 26, 2019 at 2:13 PM Erick Erickson <er...@gmail.com>
> wrote:
>
>
> Of course I’ll completely defer to Dawid and Mark (well and anybody else
> actually, you know, doing _work_), but just can’t resist chiming in ;).
>
> My vote would be to “do it the Gradle way”. Yes, it’s a PITA to learn new
> stuff and I won’t like it. Tough. I see no reason to carry a bunch of cruft
> around because “that the way we always did it”.
>
> If we lose functionality, that’s a different discussion, starting with “do
> we need that functionality". But jumping through hoops and having to
> maintain that awkwardness forever going forward just because we forced the
> Ant structure on Gradle strikes me as a poor trade off.
>
> That said, I’m not doing the work so I really have no vote. But don’t
> strain to do it the old way on my account ;)
>
> Erick
>
> P.S. Thanks Dawid for jumping in!
>
> On Sep 26, 2019, at 3:57 AM, Dawid Weiss <da...@gmail.com> wrote:
>
> I pushed it in to Lucene repo (it's on Cassandra's refguide branch
> anyway, so shouldn't interfere with anything else); seems like it's in
> better shape than previous code anyway (those questions I asked about
> the nature of the gradle port still hold though).
>
> I got as far as building initial bare-bones HTML.
>
> .\gradlew -p solr\solr-ref-guide clean bareBonesHtmlValidation
>
> I don't know anything about the pipeline involved (asciidoctor, etc.)
> so it's very likely some attributes will have to be corrected later
> on.
>
> Dawid
>
> On Wed, Sep 25, 2019 at 9:14 PM Dawid Weiss <da...@gmail.com> wrote:
>
>
> I looked at the solr ref guide build and started converting it to
> Gradle but have a question to Mark (because he coordinates the
> effort).
>
> What immediately jumps into face is the decision problem -- do we want
> to emulate what ant does at the moment or do we want to clean it up
> (breaking file/ folder structure and causing incompatibility with ant
> build).
>
> I went the "compatible" way and started porting ant tasks but it's
> quite awkward. For example -- there are template properties that refer
> to ivy version properties... we could emulate/ compute these but it's
> a pain. The way the module is currently structured is also awkward -
> it'd be more natural to have a separate java project with the "tools"
> required to compile extra stuff and just reference it from the manual
> build (and this would be a plain module, not a java module). This
> would limit the need for customizing source sets, classpaths, etc.
>
> My few initial tasks syncing sources, setting up infrastructure to
> filter templates and compiling the required tools are here:
>
> https://github.com/apache/lucene-solr/compare/jira/SOLR-13452_gradle_7_refguide...dweiss:jira/SOLR-13452_gradle_7_refguide?expand=1
>
> I'll stop and wait for feedback (especially on the ivy versions issue)
> before I resume.
>
> Dawid
>
> On Wed, Sep 25, 2019 at 6:20 PM Dawid Weiss <da...@gmail.com> wrote:
>
>
> Never mind, I've got it.
>
> D.
>
> On Wed, Sep 25, 2019 at 7:59 AM Dawid Weiss <da...@gmail.com> wrote:
>
>
> Hi Cassandra,
>
> I’m more than happy to share more details our current build so we can
> replicate some of the above steps, but I’m stuck without a lot more basic
> Gradle skills that I don’t have time to acquire with day-job/personal life
> commitments. I put it into a separate branch so we could iterate a little
> easier, can anyone help?
>
>
> Where is this branch you made changes on? If you can point me at the
> corresponding ant code I'll try to help you out.
>
> Dawid
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>
>

Re: The Lucene Solr Gradle Build Game plan

Posted by Cassandra Targett <ca...@gmail.com>.
Thanks Dawid for working on this! I’ve been a bit swamped the last couple of days but will take a look today at what you’ve been able to do so far and see where we might need to go from here.

Cassandra
On Sep 26, 2019, 7:25 AM -0500, Dawid Weiss <da...@gmail.com>, wrote:
> I agree. Although I also understand the concern of trying to merge the
> changes while we're in the transition period... it'd be hell. I'd say
> move as much stuff as possible with the current folder structure (and
> ignore what cannot be ported easily) then switch as soon as possible
> to gradle and hack the old cruft with a chainsaw...
>
> D.
>
> On Thu, Sep 26, 2019 at 2:13 PM Erick Erickson <er...@gmail.com> wrote:
> >
> > Of course I’ll completely defer to Dawid and Mark (well and anybody else actually, you know, doing _work_), but just can’t resist chiming in ;).
> >
> > My vote would be to “do it the Gradle way”. Yes, it’s a PITA to learn new stuff and I won’t like it. Tough. I see no reason to carry a bunch of cruft around because “that the way we always did it”.
> >
> > If we lose functionality, that’s a different discussion, starting with “do we need that functionality". But jumping through hoops and having to maintain that awkwardness forever going forward just because we forced the Ant structure on Gradle strikes me as a poor trade off.
> >
> > That said, I’m not doing the work so I really have no vote. But don’t strain to do it the old way on my account ;)
> >
> > Erick
> >
> > P.S. Thanks Dawid for jumping in!
> >
> > > On Sep 26, 2019, at 3:57 AM, Dawid Weiss <da...@gmail.com> wrote:
> > >
> > > I pushed it in to Lucene repo (it's on Cassandra's refguide branch
> > > anyway, so shouldn't interfere with anything else); seems like it's in
> > > better shape than previous code anyway (those questions I asked about
> > > the nature of the gradle port still hold though).
> > >
> > > I got as far as building initial bare-bones HTML.
> > >
> > > .\gradlew -p solr\solr-ref-guide clean bareBonesHtmlValidation
> > >
> > > I don't know anything about the pipeline involved (asciidoctor, etc.)
> > > so it's very likely some attributes will have to be corrected later
> > > on.
> > >
> > > Dawid
> > >
> > > On Wed, Sep 25, 2019 at 9:14 PM Dawid Weiss <da...@gmail.com> wrote:
> > > >
> > > > I looked at the solr ref guide build and started converting it to
> > > > Gradle but have a question to Mark (because he coordinates the
> > > > effort).
> > > >
> > > > What immediately jumps into face is the decision problem -- do we want
> > > > to emulate what ant does at the moment or do we want to clean it up
> > > > (breaking file/ folder structure and causing incompatibility with ant
> > > > build).
> > > >
> > > > I went the "compatible" way and started porting ant tasks but it's
> > > > quite awkward. For example -- there are template properties that refer
> > > > to ivy version properties... we could emulate/ compute these but it's
> > > > a pain. The way the module is currently structured is also awkward -
> > > > it'd be more natural to have a separate java project with the "tools"
> > > > required to compile extra stuff and just reference it from the manual
> > > > build (and this would be a plain module, not a java module). This
> > > > would limit the need for customizing source sets, classpaths, etc.
> > > >
> > > > My few initial tasks syncing sources, setting up infrastructure to
> > > > filter templates and compiling the required tools are here:
> > > > https://github.com/apache/lucene-solr/compare/jira/SOLR-13452_gradle_7_refguide...dweiss:jira/SOLR-13452_gradle_7_refguide?expand=1
> > > >
> > > > I'll stop and wait for feedback (especially on the ivy versions issue)
> > > > before I resume.
> > > >
> > > > Dawid
> > > >
> > > > On Wed, Sep 25, 2019 at 6:20 PM Dawid Weiss <da...@gmail.com> wrote:
> > > > >
> > > > > Never mind, I've got it.
> > > > >
> > > > > D.
> > > > >
> > > > > On Wed, Sep 25, 2019 at 7:59 AM Dawid Weiss <da...@gmail.com> wrote:
> > > > > >
> > > > > > Hi Cassandra,
> > > > > >
> > > > > > > I’m more than happy to share more details our current build so we can replicate some of the above steps, but I’m stuck without a lot more basic Gradle skills that I don’t have time to acquire with day-job/personal life commitments. I put it into a separate branch so we could iterate a little easier, can anyone help?
> > > > > >
> > > > > > Where is this branch you made changes on? If you can point me at the
> > > > > > corresponding ant code I'll try to help you out.
> > > > > >
> > > > > > Dawid
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> > > For additional commands, e-mail: dev-help@lucene.apache.org
> > >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> > For additional commands, e-mail: dev-help@lucene.apache.org
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>

Re: The Lucene Solr Gradle Build Game plan

Posted by Dawid Weiss <da...@gmail.com>.
I agree. Although I also understand the concern of trying to merge the
changes while we're in the transition period... it'd be hell. I'd say
move as much stuff as possible with the current folder structure (and
ignore what cannot be ported easily) then switch as soon as possible
to gradle and hack the old cruft with a chainsaw...

D.

On Thu, Sep 26, 2019 at 2:13 PM Erick Erickson <er...@gmail.com> wrote:
>
> Of course I’ll completely defer to Dawid and Mark (well and anybody else actually, you know, doing _work_), but just can’t resist chiming in ;).
>
> My vote would be to “do it the Gradle way”. Yes, it’s a PITA to learn new stuff and I won’t like it. Tough. I see no reason to carry a bunch of cruft around because “that the way we always did it”.
>
> If we lose functionality, that’s a different discussion, starting with “do we need that functionality". But jumping through hoops and having to maintain that awkwardness forever going forward just because we forced the Ant structure on Gradle strikes me as a poor trade off.
>
> That said, I’m not doing the work so I really have no vote. But don’t strain to do it the old way on my account ;)
>
> Erick
>
> P.S. Thanks Dawid for jumping in!
>
> > On Sep 26, 2019, at 3:57 AM, Dawid Weiss <da...@gmail.com> wrote:
> >
> > I pushed it in to Lucene repo (it's on Cassandra's refguide branch
> > anyway, so shouldn't interfere with anything else); seems like it's in
> > better shape than previous code anyway (those questions I asked about
> > the nature of the gradle port still hold though).
> >
> > I got as far as building initial bare-bones HTML.
> >
> > .\gradlew -p solr\solr-ref-guide clean bareBonesHtmlValidation
> >
> > I don't know anything about the pipeline involved (asciidoctor, etc.)
> > so it's very likely some attributes will  have to be corrected later
> > on.
> >
> > Dawid
> >
> > On Wed, Sep 25, 2019 at 9:14 PM Dawid Weiss <da...@gmail.com> wrote:
> >>
> >> I looked at the solr ref guide build and started converting it to
> >> Gradle but have a question to Mark (because he coordinates the
> >> effort).
> >>
> >> What immediately jumps into face is the decision problem -- do we want
> >> to emulate what ant does at the moment or do we want to clean it up
> >> (breaking file/ folder structure and causing incompatibility with ant
> >> build).
> >>
> >> I went the "compatible" way and started porting ant tasks but it's
> >> quite awkward. For example -- there are template properties that refer
> >> to ivy version properties... we could emulate/ compute these but it's
> >> a pain. The way the module is currently structured is also awkward -
> >> it'd be more natural to have a separate java project with the "tools"
> >> required to compile extra stuff and just reference it from the manual
> >> build (and this would be a plain module, not a java module). This
> >> would limit the need for customizing source sets, classpaths, etc.
> >>
> >> My few initial tasks syncing sources, setting up infrastructure to
> >> filter templates and compiling the required tools are here:
> >> https://github.com/apache/lucene-solr/compare/jira/SOLR-13452_gradle_7_refguide...dweiss:jira/SOLR-13452_gradle_7_refguide?expand=1
> >>
> >> I'll stop and wait for feedback (especially on the ivy versions issue)
> >> before I resume.
> >>
> >> Dawid
> >>
> >> On Wed, Sep 25, 2019 at 6:20 PM Dawid Weiss <da...@gmail.com> wrote:
> >>>
> >>> Never mind, I've got it.
> >>>
> >>> D.
> >>>
> >>> On Wed, Sep 25, 2019 at 7:59 AM Dawid Weiss <da...@gmail.com> wrote:
> >>>>
> >>>> Hi Cassandra,
> >>>>
> >>>>> I’m more than happy to share more details our current build so we can replicate some of the above steps, but I’m stuck without a lot more basic Gradle skills that I don’t have time to acquire with day-job/personal life commitments. I put it into a separate branch so we could iterate a little easier, can anyone help?
> >>>>
> >>>> Where is this branch you made changes on? If you can point me at the
> >>>> corresponding ant code I'll try to help you out.
> >>>>
> >>>> Dawid
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> > For additional commands, e-mail: dev-help@lucene.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Re: The Lucene Solr Gradle Build Game plan

Posted by Erick Erickson <er...@gmail.com>.
Of course I’ll completely defer to Dawid and Mark (well and anybody else actually, you know, doing _work_), but just can’t resist chiming in ;).

My vote would be to “do it the Gradle way”. Yes, it’s a PITA to learn new stuff and I won’t like it. Tough. I see no reason to carry a bunch of cruft around because “that the way we always did it”.

If we lose functionality, that’s a different discussion, starting with “do we need that functionality". But jumping through hoops and having to maintain that awkwardness forever going forward just because we forced the Ant structure on Gradle strikes me as a poor trade off.

That said, I’m not doing the work so I really have no vote. But don’t strain to do it the old way on my account ;)

Erick

P.S. Thanks Dawid for jumping in!

> On Sep 26, 2019, at 3:57 AM, Dawid Weiss <da...@gmail.com> wrote:
> 
> I pushed it in to Lucene repo (it's on Cassandra's refguide branch
> anyway, so shouldn't interfere with anything else); seems like it's in
> better shape than previous code anyway (those questions I asked about
> the nature of the gradle port still hold though).
> 
> I got as far as building initial bare-bones HTML.
> 
> .\gradlew -p solr\solr-ref-guide clean bareBonesHtmlValidation
> 
> I don't know anything about the pipeline involved (asciidoctor, etc.)
> so it's very likely some attributes will  have to be corrected later
> on.
> 
> Dawid
> 
> On Wed, Sep 25, 2019 at 9:14 PM Dawid Weiss <da...@gmail.com> wrote:
>> 
>> I looked at the solr ref guide build and started converting it to
>> Gradle but have a question to Mark (because he coordinates the
>> effort).
>> 
>> What immediately jumps into face is the decision problem -- do we want
>> to emulate what ant does at the moment or do we want to clean it up
>> (breaking file/ folder structure and causing incompatibility with ant
>> build).
>> 
>> I went the "compatible" way and started porting ant tasks but it's
>> quite awkward. For example -- there are template properties that refer
>> to ivy version properties... we could emulate/ compute these but it's
>> a pain. The way the module is currently structured is also awkward -
>> it'd be more natural to have a separate java project with the "tools"
>> required to compile extra stuff and just reference it from the manual
>> build (and this would be a plain module, not a java module). This
>> would limit the need for customizing source sets, classpaths, etc.
>> 
>> My few initial tasks syncing sources, setting up infrastructure to
>> filter templates and compiling the required tools are here:
>> https://github.com/apache/lucene-solr/compare/jira/SOLR-13452_gradle_7_refguide...dweiss:jira/SOLR-13452_gradle_7_refguide?expand=1
>> 
>> I'll stop and wait for feedback (especially on the ivy versions issue)
>> before I resume.
>> 
>> Dawid
>> 
>> On Wed, Sep 25, 2019 at 6:20 PM Dawid Weiss <da...@gmail.com> wrote:
>>> 
>>> Never mind, I've got it.
>>> 
>>> D.
>>> 
>>> On Wed, Sep 25, 2019 at 7:59 AM Dawid Weiss <da...@gmail.com> wrote:
>>>> 
>>>> Hi Cassandra,
>>>> 
>>>>> I’m more than happy to share more details our current build so we can replicate some of the above steps, but I’m stuck without a lot more basic Gradle skills that I don’t have time to acquire with day-job/personal life commitments. I put it into a separate branch so we could iterate a little easier, can anyone help?
>>>> 
>>>> Where is this branch you made changes on? If you can point me at the
>>>> corresponding ant code I'll try to help you out.
>>>> 
>>>> Dawid
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Re: The Lucene Solr Gradle Build Game plan

Posted by Dawid Weiss <da...@gmail.com>.
I pushed it in to Lucene repo (it's on Cassandra's refguide branch
anyway, so shouldn't interfere with anything else); seems like it's in
better shape than previous code anyway (those questions I asked about
the nature of the gradle port still hold though).

I got as far as building initial bare-bones HTML.

.\gradlew -p solr\solr-ref-guide clean bareBonesHtmlValidation

I don't know anything about the pipeline involved (asciidoctor, etc.)
so it's very likely some attributes will  have to be corrected later
on.

Dawid

On Wed, Sep 25, 2019 at 9:14 PM Dawid Weiss <da...@gmail.com> wrote:
>
> I looked at the solr ref guide build and started converting it to
> Gradle but have a question to Mark (because he coordinates the
> effort).
>
> What immediately jumps into face is the decision problem -- do we want
> to emulate what ant does at the moment or do we want to clean it up
> (breaking file/ folder structure and causing incompatibility with ant
> build).
>
> I went the "compatible" way and started porting ant tasks but it's
> quite awkward. For example -- there are template properties that refer
> to ivy version properties... we could emulate/ compute these but it's
> a pain. The way the module is currently structured is also awkward -
> it'd be more natural to have a separate java project with the "tools"
> required to compile extra stuff and just reference it from the manual
> build (and this would be a plain module, not a java module). This
> would limit the need for customizing source sets, classpaths, etc.
>
> My few initial tasks syncing sources, setting up infrastructure to
> filter templates and compiling the required tools are here:
> https://github.com/apache/lucene-solr/compare/jira/SOLR-13452_gradle_7_refguide...dweiss:jira/SOLR-13452_gradle_7_refguide?expand=1
>
> I'll stop and wait for feedback (especially on the ivy versions issue)
> before I resume.
>
> Dawid
>
> On Wed, Sep 25, 2019 at 6:20 PM Dawid Weiss <da...@gmail.com> wrote:
> >
> > Never mind, I've got it.
> >
> > D.
> >
> > On Wed, Sep 25, 2019 at 7:59 AM Dawid Weiss <da...@gmail.com> wrote:
> > >
> > > Hi Cassandra,
> > >
> > > > I’m more than happy to share more details our current build so we can replicate some of the above steps, but I’m stuck without a lot more basic Gradle skills that I don’t have time to acquire with day-job/personal life commitments. I put it into a separate branch so we could iterate a little easier, can anyone help?
> > >
> > > Where is this branch you made changes on? If you can point me at the
> > > corresponding ant code I'll try to help you out.
> > >
> > > Dawid

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Re: The Lucene Solr Gradle Build Game plan

Posted by Dawid Weiss <da...@gmail.com>.
I looked at the solr ref guide build and started converting it to
Gradle but have a question to Mark (because he coordinates the
effort).

What immediately jumps into face is the decision problem -- do we want
to emulate what ant does at the moment or do we want to clean it up
(breaking file/ folder structure and causing incompatibility with ant
build).

I went the "compatible" way and started porting ant tasks but it's
quite awkward. For example -- there are template properties that refer
to ivy version properties... we could emulate/ compute these but it's
a pain. The way the module is currently structured is also awkward -
it'd be more natural to have a separate java project with the "tools"
required to compile extra stuff and just reference it from the manual
build (and this would be a plain module, not a java module). This
would limit the need for customizing source sets, classpaths, etc.

My few initial tasks syncing sources, setting up infrastructure to
filter templates and compiling the required tools are here:
https://github.com/apache/lucene-solr/compare/jira/SOLR-13452_gradle_7_refguide...dweiss:jira/SOLR-13452_gradle_7_refguide?expand=1

I'll stop and wait for feedback (especially on the ivy versions issue)
before I resume.

Dawid

On Wed, Sep 25, 2019 at 6:20 PM Dawid Weiss <da...@gmail.com> wrote:
>
> Never mind, I've got it.
>
> D.
>
> On Wed, Sep 25, 2019 at 7:59 AM Dawid Weiss <da...@gmail.com> wrote:
> >
> > Hi Cassandra,
> >
> > > I’m more than happy to share more details our current build so we can replicate some of the above steps, but I’m stuck without a lot more basic Gradle skills that I don’t have time to acquire with day-job/personal life commitments. I put it into a separate branch so we could iterate a little easier, can anyone help?
> >
> > Where is this branch you made changes on? If you can point me at the
> > corresponding ant code I'll try to help you out.
> >
> > Dawid

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Re: The Lucene Solr Gradle Build Game plan

Posted by Dawid Weiss <da...@gmail.com>.
Never mind, I've got it.

D.

On Wed, Sep 25, 2019 at 7:59 AM Dawid Weiss <da...@gmail.com> wrote:
>
> Hi Cassandra,
>
> > I’m more than happy to share more details our current build so we can replicate some of the above steps, but I’m stuck without a lot more basic Gradle skills that I don’t have time to acquire with day-job/personal life commitments. I put it into a separate branch so we could iterate a little easier, can anyone help?
>
> Where is this branch you made changes on? If you can point me at the
> corresponding ant code I'll try to help you out.
>
> Dawid

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Re: The Lucene Solr Gradle Build Game plan

Posted by Gézapeti <ge...@gmail.com>.
Hi Cassandra and Dawid,

I don't really understand how the ref guide build works, but I managed to
make the solr-ref-guide project compile on calling gradle build
I've pushed my small changes to
https://github.com/gezapeti/lucene-solr/tree/jira/SOLR-13452_gradle_7_refguide
Dawid, you can find Cassandra's work at
https://github.com/apache/lucene-solr/tree/jira/SOLR-13452_gradle_7_refguide

Cassandra, is there a way to generate a single-page html version of the
ref-guide?

Hope it helps
gp


On Wed, Sep 25, 2019 at 8:00 AM Dawid Weiss <da...@gmail.com> wrote:

> Hi Cassandra,
>
> > I’m more than happy to share more details our current build so we can
> replicate some of the above steps, but I’m stuck without a lot more basic
> Gradle skills that I don’t have time to acquire with day-job/personal life
> commitments. I put it into a separate branch so we could iterate a little
> easier, can anyone help?
>
> Where is this branch you made changes on? If you can point me at the
> corresponding ant code I'll try to help you out.
>
> Dawid
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>
>

Re: The Lucene Solr Gradle Build Game plan

Posted by Dawid Weiss <da...@gmail.com>.
Hi Cassandra,

> I’m more than happy to share more details our current build so we can replicate some of the above steps, but I’m stuck without a lot more basic Gradle skills that I don’t have time to acquire with day-job/personal life commitments. I put it into a separate branch so we could iterate a little easier, can anyone help?

Where is this branch you made changes on? If you can point me at the
corresponding ant code I'll try to help you out.

Dawid

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Re: The Lucene Solr Gradle Build Game plan

Posted by Cassandra Targett <ca...@gmail.com>.
I just pushed a new branch for the Ref Guide based off the gradle_7 branch (it’s "jira/SOLR-13452_gradle_7_refguide”). I’m completely stuck and try as I might I can't get myself unstuck with the time I have.

There are several phases to our current build, and some of these we can drop if we drop the PDF build. Just to summarize:

1) All files in solr/solr-ref-guide/src are copied to solr/build/solr-ref-guide. The _config.yml.template (used by Jekyll) is populated (I think) and copied to plain _config.yml for Jekyll to use.

2) The page hierarchy is built for the left nav and for the previous-next links at the bottom of each page. The file list for the PDF is created. The bare-bones-html is created to check all the links (unique section ids, javadoc links).

3) Jekyll creates the HTML pages and asciidoctor-ant creates the PDF.

I might be missing some nuances there, but that’s the gist. I’ve barely been able to recreate this in the branch I created.

I’ve added a task for Jekyll to the build.gradle and am able to get it to download the gems (unlike today when you have to download them in advance), but the build still fails because it doesn't have all the usual steps of copying the dir and fixing the template, etc., but those steps are beyond what I know how to do.

It also occurred to me that we could replace some of the Java classes with Groovy in the build.gradle itself, but again, I can’t do it.

I’ve also replaced the asciidoctor-ant with asciidoctor-gradle-plugin, but I’m not sure how much that’s really getting us if we don’t do the PDF. Supposedly the latest versions of that plugin (2.3) allow better gem support, but I couldn’t get them to work so I reverted back to 1.6. Someone who knows Gradle better might have better luck.

I’m more than happy to share more details our current build so we can replicate some of the above steps, but I’m stuck without a lot more basic Gradle skills that I don’t have time to acquire with day-job/personal life commitments. I put it into a separate branch so we could iterate a little easier, can anyone help?

Cassandra
On Sep 20, 2019, 2:59 PM -0500, Dawid Weiss <da...@gmail.com>, wrote:
> I don't want to blow this discussion out of proportion so I'll try to
> make it quick...
>
> > There is convention for this :) The convention is to commit your gradle.properties and that is what holds your project config. It's widely done and promoted by the Gradle team.
>
> I disagree with this statement and base my opinion on both my
> experience and what's written in [1]. The gradle.properties file is
> for configuring gradle (and the build's system properties), not for
> configuring project properties and project-related behavior. Even the
> API reflects this distinction (gradle environment vs. the Settings
> object vs. eventual project properties and their inheritance). I'd
> argue that the current setup abuses gradle properties for things that
> could as well be defined elsewhere; ideally as normal project
> properties (however loaded or declared) where they'd be nicely
> propagated to subprojects. But it's cosmetics, fine.
>
> > The daemon is not controlled by us, it's controlled by you and what you put in your global file.
>
> Exactly. But the versioned gradle.properties has:
>
> org.gradle.daemon=false
>
> If I'd like to work with Lucene with daemon enabled, I'll have to
> change this setting globally (in ~/.gradle.properties). This will
> affect any other Gradle project I have on that machine, which isn't
> too great. Sure, I can set up an environment variable override or even
> a command alias but it's not the point -- it's either a global
> override of this daemon setting or having a dirty checkout. And this
> somehow doesn't feel right to me.
>
> > I would say this: their code to manage this is 1000 times more simple than the code to do it in randomized testing :)
>
> Well, I strive for perfection but am not hesitant to recognize
> brighter minds (think JUnitBenchmark vs. JMH...).
>
> > For something like testFast (or whatever it's called), first it's super simple code, second,
>
> Hmm. Did you push these changes? Which branch is this testFast code
> on? I committed a few cleanups to jira/SOLR-13452_gradle_7 -- don't
> know if you saw them.
>
> > This is a big build, there is a lot going on. [... ] so I think it's best that we devote a JIRA to anything that people feel is important in order to focus an actionable discussion.
>
> I think it'd be easier to work collectively on that dedicated gradle
> branch, cleaning up stuff and introducing small changes there, but if
> you'd rather have Jira issues or PRs that's up to you -- I asked about
> this but didn't receive a reply.
>
> Dawid
>
> [1] https://docs.gradle.org/current/userguide/build_environment.html
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>

Re: The Lucene Solr Gradle Build Game plan

Posted by Dawid Weiss <da...@gmail.com>.
I don't want to blow this discussion out of proportion so I'll try to
make it quick...

> There is convention for this :) The convention is to commit your gradle.properties and that is what holds your project config. It's widely done and promoted by the Gradle team.

I disagree with this statement and base my opinion on both my
experience and what's written in [1]. The gradle.properties file is
for configuring gradle (and the build's system properties), not for
configuring project properties and project-related behavior. Even the
API reflects this distinction (gradle environment vs. the Settings
object vs. eventual project properties and their inheritance). I'd
argue that the current setup abuses gradle properties for things that
could as well be defined elsewhere; ideally as normal project
properties (however loaded or declared) where they'd be nicely
propagated to subprojects. But it's cosmetics, fine.

> The daemon is not controlled by us, it's controlled by you and what you put in your global file.

Exactly. But the versioned gradle.properties has:

org.gradle.daemon=false

If I'd like to work with Lucene with daemon enabled, I'll have to
change this setting globally (in ~/.gradle.properties). This will
affect any other Gradle project I have on that machine, which isn't
too great. Sure, I can set up an environment variable override or even
a command alias but it's not the point -- it's either a global
override of this daemon setting or having a dirty checkout. And this
somehow doesn't feel right to me.

> I would say this: their code to manage this is 1000 times more simple than the code to do it in randomized testing :)

Well, I strive for perfection but am not hesitant to recognize
brighter minds (think JUnitBenchmark vs. JMH...).

> For something like testFast (or whatever it's called), first it's super simple code, second,

Hmm. Did you push these changes? Which branch is this testFast code
on? I committed a few cleanups to jira/SOLR-13452_gradle_7 -- don't
know if you saw them.

> This is a big build, there is a lot going on. [... ] so I think it's best that we devote a JIRA to anything that people feel is important in order to focus an actionable discussion.

I think it'd be easier to work collectively on that dedicated gradle
branch, cleaning up stuff and introducing small changes there, but if
you'd rather have Jira issues or PRs that's up to you -- I asked about
this but didn't receive a reply.

Dawid

[1] https://docs.gradle.org/current/userguide/build_environment.html

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Re: The Lucene Solr Gradle Build Game plan

Posted by Mark Miller <ma...@gmail.com>.
On Fri, Sep 20, 2019 at 1:37 AM Dawid Weiss <da...@gmail.com> wrote:

> Hi Mark,
>
> > I find the Gradle way of doing things odd, but I knew better than to try
> and go directly against them.
> > So none of this is really my choosing, I went with how you are supposed
> to do it.
>
> Nah -- that's not really right. Gradle is really flexible and there is
> no "convention" in my opinion. Everyone seems to do things their own
> way. What you mentioned perhaps results from this layering of build
> environment property shadowing:
>
> https://docs.gradle.org/current/userguide/build_environment.html
>
> What we deal with are two different categories of properties --
> project properties (like tests.seed and other things affecting the
> build) and properties configuring gradle itself (like
> daemon-disabling, parallelisation, etc.).  My concern lies with local
> configuration of the latter; messing with global gradle configuration
> affects any other project you're working on which is what I'm not
> comfortable with.
>
>
There is convention for this :) The convention is to commit your
gradle.properties and that is what holds your project config. It's widely
done and promoted by the Gradle team. Bucking that is confusing and against
best practices.

What you do with your global gradle file is up to you, has nothing to do
with convention, it just works how it works. If you don't want to put props
in that file, no one will make you :)



> > When it comes to allowing another prop file just for our project, I'm
> all for it - just not the standard gradle.properties that is supposed to be
> committed in a gradle project.
>
> It doesn't have to be committed nor is it needed in most cases. Just
> about the only exception is when you need to alter gradle itself --
> increase the heap or force some other settings. Like here:
>
> https://github.com/elastic/elasticsearch/blob/master/gradle.properties
>
> For anything else you can use your own properties (read from anywhere
> you like) and layer them in any way you like.
>
>
The convention is to commit it with gradle :) This is where the project
properties like the version and often dep versions live.

If you want a properties file that is not committed, you should make
another and thats fine, just like build.properties with ant now.



> > You cannot override any settings from your gradle home file regardless,
> so it's a little non intuitive - gradle home props rule all.
>
> Yes and that's exactly my concern. Even when you think of
> experimenting on different Lucene branches or having a "pristine"
> build -- a clean checkout should just work without you having to worry
> about any global overrides (in my opinion). A local non-versioned
> developer-only override file would work nicer here.
>
> > Anyway, I have exposed like one of our properties, so no, it's not
> thought out or how it's going to be at all. Probably that property should
> be name spaced beyond tests_jvms (translated from tests.jvms),
>
> They can be dot-separated and this works just fine. You need to be a
> bit more careful in groovy to quote it as a property but otherwise
> it'll work just fine. See the examples I committed yesterday for
> tests, for instance -Ptests.iters=5
>
> > Sucking in a user prop file like we do with ant sounds great, just have
> to get used to the fact that you cannot override your global settings.
>
> That's my point -- if we don't have to mess with global settings then
> we don't have to worry about it. Your "presets" task would still work
> like a charm but instead of modifying globals it'd modify
> local-non-versioned override file. This is easy to achieve (but you
> have to move them out from gradle.properties which is a
> higher-precedence level).]\
>

My presets are not how this is supposed to work! They are a simple tool to
help non gradle people get something working today (like literally today)
with reasonable settings. That is not how I expect normal people to
configure gradle.
It's def not how I expect someone that knows gradle to work.

This is like if I made the ant build and showed you how to set some
properties to try it out and you are like, no, I don't want to set
properties via command line, that's crazy! I'd be like, okay, don't.

I don't care how you want to set properties and I'm not here to set them
for you (but I do want to give Gradle noobs that have to switch some easy
options to get started!).


>
> > Anyway, I've never found it to be a problem. I didn't expect everyone
> would customize our project settings in their gradle home file, I usually
> put stuff there that I want to apply to all my checkouts (tests.jvms is
> actually one of them), but all that is very individual.
>
> I think the configuration we have right now is incorrect in principle
> (the two different types of configuration settings I mentioned at the
> start are mixed). The daemon in particular already affected me
> (because I'd like to tweak build settings with the daemon for faster
> turnaround but at the same time not have it overridden globally).
>

I'm not really sure what you are talking about. The daemon is not
controlled by us, it's controlled by you and what you put in your global
file.

I turned off the daemon in our config so that on CI it won't be used when
no setting is in the global config. We can do that other ways. I think you
are confused about what I'm doing here.

This project is not trying to control your gradle settings, nor does it
need to. It's trying to pick good defaults if you have not chosen to make
those choices yourself.

I don't expect anyone that knows Gradle to use the little task I have that
spits out props. Thats also just going to spit them to the screen by
default, it's going to be a tool to give noobs an idea of what can be set
and what settings might work best for our project.


>
> > But running tests within a module, or even running all modules tests,
> was no good. You have solr-core tests coming late, you have many tests that
> pop up from short runs to minutes+ (often tests with many sub class tests),
> and you have a static JVM assignment for each test. So basically, it's easy
> to be running long tests at the end of a run and use few JVM's, and with
> our tests, this can be devastating.
>
> As for "soft" ordering of test tasks between modules you could try to
> configure cross-module task precedence with mustRunAfter (set it up
> programmatically)... this is a bit of an overkill but it'll ensure no
> tests run before the core tests are finished, for example.
>
> > We are a terrible case for gradles parallel tests.
>
> I read the issue history on their tracker. Indeed the situation could
> be improved. This is something we can work on later though, really. We
> can even switch the tests to an ant runner for now. The benefits of
> other cleanups are worth facing the tests problem.
>

That I would rather not do - I think gradle test should stick to being
gradle test, I saw that ES did that and it's something I disliked from the
start.


>
> > So I started with solr-core generally taking 20+ minutes or more on my
> 18 core machine, and with some other simple test taming, testFail can now
> do it in just under 7 minutes.
>
> I haven't seen the implementation of this yet, but it's interesting.
> My general remark for the gradle build system switch would be that we
> try to make it simpler and easier... :) If you keep adding hardcore
> tweaks of gradle internal tasks (like you already do) then things will
> become hard to follow for others (like me) and you'll remain the only
> person who understands how it works. :)
>

I would say this: their code to manage this is 1000 times more simple than
the code to do it in randomized testing :)

What are the current hardcore tweaks I'm making by the way? Bring them up
for discussion. I think the only one that is really there is the plugin
that makes deps actually work nice.

Everything else I shoot for convention or best practices. It's just that
without the consistent versions plugin, deps across modules in Gradle suck.

Beyond that, having a target that works with tests until Gradle is not
silly with them is really the only way to fix tests until they do a better
job.

I've made a second target so that anyone that wants to run tests the slow
standard way can. The other Gradles targets will still depend on test.

I'm not a fan of replacing internal Gradle tasks.

I've been very careful about what I've added or changed actually - it's
very well thought out.

For something like testFast (or whatever it's called), first it's super
simple code, second, it's not something we need to rely on (it's bonus).
Third, it's ridiculously better than the test task for running tests in our
project. Perfect qualities.


-- 
- Mark

http://about.me/markrmiller

Re: The Lucene Solr Gradle Build Game plan

Posted by Dawid Weiss <da...@gmail.com>.
Hi Mark,

> I find the Gradle way of doing things odd, but I knew better than to try and go directly against them.
> So none of this is really my choosing, I went with how you are supposed to do it.

Nah -- that's not really right. Gradle is really flexible and there is
no "convention" in my opinion. Everyone seems to do things their own
way. What you mentioned perhaps results from this layering of build
environment property shadowing:

https://docs.gradle.org/current/userguide/build_environment.html

What we deal with are two different categories of properties --
project properties (like tests.seed and other things affecting the
build) and properties configuring gradle itself (like
daemon-disabling, parallelisation, etc.).  My concern lies with local
configuration of the latter; messing with global gradle configuration
affects any other project you're working on which is what I'm not
comfortable with.

> When it comes to allowing another prop file just for our project, I'm all for it - just not the standard gradle.properties that is supposed to be committed in a gradle project.

It doesn't have to be committed nor is it needed in most cases. Just
about the only exception is when you need to alter gradle itself --
increase the heap or force some other settings. Like here:

https://github.com/elastic/elasticsearch/blob/master/gradle.properties

For anything else you can use your own properties (read from anywhere
you like) and layer them in any way you like.

> You cannot override any settings from your gradle home file regardless, so it's a little non intuitive - gradle home props rule all.

Yes and that's exactly my concern. Even when you think of
experimenting on different Lucene branches or having a "pristine"
build -- a clean checkout should just work without you having to worry
about any global overrides (in my opinion). A local non-versioned
developer-only override file would work nicer here.

> Anyway, I have exposed like one of our properties, so no, it's not thought out or how it's going to be at all. Probably that property should be name spaced beyond tests_jvms (translated from tests.jvms),

They can be dot-separated and this works just fine. You need to be a
bit more careful in groovy to quote it as a property but otherwise
it'll work just fine. See the examples I committed yesterday for
tests, for instance -Ptests.iters=5

> Sucking in a user prop file like we do with ant sounds great, just have to get used to the fact that you cannot override your global settings.

That's my point -- if we don't have to mess with global settings then
we don't have to worry about it. Your "presets" task would still work
like a charm but instead of modifying globals it'd modify
local-non-versioned override file. This is easy to achieve (but you
have to move them out from gradle.properties which is a
higher-precedence level).

> Anyway, I've never found it to be a problem. I didn't expect everyone would customize our project settings in their gradle home file, I usually put stuff there that I want to apply to all my checkouts (tests.jvms is actually one of them), but all that is very individual.

I think the configuration we have right now is incorrect in principle
(the two different types of configuration settings I mentioned at the
start are mixed). The daemon in particular already affected me
(because I'd like to tweak build settings with the daemon for faster
turnaround but at the same time not have it overridden globally).

> But running tests within a module, or even running all modules tests, was no good. You have solr-core tests coming late, you have many tests that pop up from short runs to minutes+ (often tests with many sub class tests), and you have a static JVM assignment for each test. So basically, it's easy to be running long tests at the end of a run and use few JVM's, and with our tests, this can be devastating.

As for "soft" ordering of test tasks between modules you could try to
configure cross-module task precedence with mustRunAfter (set it up
programmatically)... this is a bit of an overkill but it'll ensure no
tests run before the core tests are finished, for example.

> We are a terrible case for gradles parallel tests.

I read the issue history on their tracker. Indeed the situation could
be improved. This is something we can work on later though, really. We
can even switch the tests to an ant runner for now. The benefits of
other cleanups are worth facing the tests problem.

> So I started with solr-core generally taking 20+ minutes or more on my 18 core machine, and with some other simple test taming, testFail can now do it in just under 7 minutes.

I haven't seen the implementation of this yet, but it's interesting.
My general remark for the gradle build system switch would be that we
try to make it simpler and easier... :) If you keep adding hardcore
tweaks of gradle internal tasks (like you already do) then things will
become hard to follow for others (like me) and you'll remain the only
person who understands how it works. :)

D.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Re: The Lucene Solr Gradle Build Game plan

Posted by Mark Miller <ma...@gmail.com>.
On Wed, Sep 18, 2019 at 10:46 AM Dawid Weiss <da...@gmail.com> wrote:

>
> > If tests_jvms is a lucene/solr specific property, that needs to be in a
> users "multi-project" "~/.gradle" file
>
> Yeah... I'm not at all a fan of modifying the global gradle settings
> file. While it may be ok for settings that only apply to Lucene (if
> prefixed) there are other things like enabling or disabling the daemon
> which should be a matter of project-local settings. Ideally, I'd like
> to see something like:


I find the Gradle way of doing things odd, but I knew better than to try
and go directly against them.

So none of this is really my choosing, I went with how you are supposed to
do it.

When it comes to allowing another prop file just for our project, I'm all
for it - just not the standard gradle.properties that is supposed to be
committed in a gradle project.

You cannot override any settings from your gradle home file regardless, so
it's a little non intuitive - gradle home props rule all.

Anyway, I have exposed like one of our properties, so no, it's not thought
out or how it's going to be at all. Probably that property should be name
spaced beyond tests_jvms (translated from tests.jvms), but then we might
want to support a short cut notation for command line.

Sucking in a user prop file like we do with ant sounds great, just have to
get used to the fact that you cannot override your global settings. Trying
to subvert that in some way def feels like a bad path.

Anyway, I've never found it to be a problem. I didn't expect everyone would
customize our project settings in their gradle home file, I usually put
stuff there that I want to apply to all my checkouts (tests.jvms is
actually one of them), but all that is very individual.

You can also set these on the command line - it's mostly the same as ant.
If you leave stuff out of your home gradle file and just add to some file
we suck in, ezpeasy. I haven't prescribed or enforced anything here.

There will be more/better getting started doc and more finished stuff the
closer we get.

> What's the plan as far as things like "ant beast", "-Dtests.dups",
"-Dtests.iters" & "-Dtests.jvms" ?

I've been having plenty of issues with just regular tests. Gradle
statically assigns all tests in basically fs order to N JVMs. If you run
tests against all the Solr modules, it's pretty sweet because it doesn't
just use a few executors on the small modules and go a module at a time -
it does them together more and less and keeps things busy.
But running tests within a module, or even running all modules tests, was
no good. You have solr-core tests coming late, you have many tests that pop
up from short runs to minutes+ (often tests with many sub class tests), and
you have a static JVM assignment for each test. So basically, it's easy to
be running long tests at the end of a run and use few JVM's, and with our
tests, this can be devastating.
Now Dawids Ant test launcher tries to be a lot smarter about all this and
caches run times so that it can order tests and holds some back for idle
JVM's, etc. So I was looking at already very slow tests times on master
often being much worse on gradle depending on if you ran tests across
modules (which even the field a bit).
We are a terrible case for gradles parallel tests.

I figured I would improve tests times like usual to solve this as much as I
could, but it's really not enough - our project is too large, too many
tests, projects much smaller than our complain about this gradle issue.

Luckily though, the abstractions and code that runs tests is super simple.
So in the end, I made a new test target called testFast for now, and it's
mostly feature complete with the test target (extends the Test task) except
that it doesn't support rerunning just failed tests currently and doesn't
support looking for tests via reflection, just file inclusions / exclusion
regex.

It's really just simple logic changes of a pretty simple process and gives
us a lot of options. Of course we will leave gradles default test task in
place and this will be an alternate target.

The regular test task will find tests and send every single one in before
any ever get processed, so that is changed to start processing right away
instead (which is why the retry failed tests processor was taken out of the
chain). So testFast scans all the tests and puts them into normal, slow,
and slowest categories based on annotations. It shuffles those buckets and
sends the slowest to the JVMs first. Then we hold tests back if too many
are outstanding so that when we get towards the end, tests can go to idle
JVM's instead of lining up early not knowing if it's a very slow line. When
the tests hit the JVM's, instead of simple round robin, we look at how many
tests are already in line at each JVM and choose the shortest line or
shuffle.

So I started with solr-core generally taking 20+ minutes or more on my 18
core machine, and with some other simple test taming, testFail can now do
it in just under 7 minutes.

Very easy to add the beasting support that is not already part of the test
runner and easy to make sure the test runner can do it's job correctly.

- Mark

>

Re: The Lucene Solr Gradle Build Game plan

Posted by Dawid Weiss <da...@gmail.com>.
Hi Chris,

> ...but some naive google searching suggests it's possible to do something
> similar using "apply from" to load in a *.gradle file using an arbitrary

Gradle is like ant (or more) -- you can do pretty much anything. So
yes, you can load arbitrary config files.
There are certain special properties which govern how gradle itself is
launched though (like daemon forking rules) and
I don't know if you can override these from the project-build level.
These raise my concern a bit (especially the daemon forking property,
which I don't want to override globally).

> FWIW: I'm not sure if the deterministic ordering is that important --

I agree at this stage it may be not that important.

> (i don't know that i've ever tried to rerun that exact list of every test
> that ran in the same JVM in the same order as what was reported -- or even
> how i would if i wanted to other then with a really fucking complicated
> -Dtests.class=... param)

The ant runner uses identical order (for that first batch of
"hard-scheduled" test suites) if you pass it the same seed. This isn't
that important I think.

D.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Re: The Lucene Solr Gradle Build Game plan

Posted by Chris Hostetter <ho...@fucit.org>.
: which should be a matter of project-local settings. Ideally, I'd like
: to see something like:
: 
: checkout/gradle-defaults.properties [versioned]
: checkout/gradle-local.properties [developer-tweaks, not versioned]
: 
: but short of declaring a custom "user home" for gradle (-g switch) I
: don't see how this can be achieved. Perhaps the initial checkout could

I gather from your comments (and from the link you mentioned in another 
question) that gradle does not have a direct equivilent of ant's...

  <property file="${user.home}/lucene.build.properties"/>

...but some naive google searching suggests it's possible to do something 
similar using "apply from" to load in a *.gradle file using an arbitrary 
path, which could contain property declarations which would then evidently 
by overlayed on the existing groovy file? 
(maybe?)

Ex: this in our build.gradle file...

	apply from: '$USER_HOME/lucene.properties.gradle'

...and this in my ~/lucene.properties.gradle file...

	ext { 
            test_jvms = 42
        }

...would that work?


: > ("-Dtests.jvms=1" is important for figuring out if/how the execution 
: of one test might polute static variables in the JVM
: 
: I don't think it'll work even if you have one JVM unless Gradle test
: runner's order is deterministic... which I'm not sure it is, even with
: a single JVM that runs the tests.

FWIW: I'm not sure if the deterministic ordering is that important --
although you reminded me that being able to *review* the list of tests 
that ran in the same JVM when a failure happens is helpful...

(i don't know that i've ever tried to rerun that exact list of every test 
that ran in the same JVM in the same order as what was reported -- or even 
how i would if i wanted to other then with a really fucking complicated 
-Dtests.class=... param)

I'd guess that 90% of the time when i currently use "-Dtests.jvms=1" it's 
when running a single test class with -Dtests.dups=N to confirm & fix 
shitty use of statics in BeforeClass/AfterClass methods (typically 
problematic if/when the jenkins [repro] target does something like 
-Dtests.dups=5 -DtestcaseSomeTestThatFailed but defaults to using 
tests.jvms=3, so we see 2/5 suite level failures that look nothing like 
whatever the original failure was that jenkins was attempting to 
reproduce)

the 10% of the time -- where that's not the issue, and a failure in one 
test really was caused byt some previous test in the same JVM mucking up 
some static variable state -- eyeballing the list of tests that also ran 
in that JVM usually helps narrow down the list of suspects, and then i 
just try beasting those 2 (or 3) tests together with "-Dtests.jvms=1", not 
worrying about the order and just trusting that if i'm right eventually 
they'll be run in the problematic order.


-Hoss
http://www.lucidworks.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Re: The Lucene Solr Gradle Build Game plan

Posted by Dawid Weiss <da...@gmail.com>.
I've been eyeballing Mark's impressive work on the build system in
Gradle. Hoss asked a
numer of questions that relate to tests and I feel I should address
them, even if some poorly. Here it comes, inlined with Hoss's
questions.

> If tests_jvms is a lucene/solr specific property, that needs to be in a users "multi-project" "~/.gradle" file

Yeah... I'm not at all a fan of modifying the global gradle settings
file. While it may be ok for settings that only apply to Lucene (if
prefixed) there are other things like enabling or disabling the daemon
which should be a matter of project-local settings. Ideally, I'd like
to see something like:

checkout/gradle-defaults.properties [versioned]
checkout/gradle-local.properties [developer-tweaks, not versioned]

but short of declaring a custom "user home" for gradle (-g switch) I
don't see how this can be achieved. Perhaps the initial checkout could
not carry gradle.properties at all and the build would require an
initial setup via Mark's "defaultUserConfig". This could then write
(unversioned!) gradle.properties with the selected defaults within the
checkout folder (so there'd be no need to tweak the global file).
People can then tweak it to their liking or call defaultUserConfig
with appropriate options again to overwrite the changes.

> How do we get "reproduce with" type output (by default) when a test fails?

This should be doable -- we do it from Ant after all. You can pass
properties to gradle via "-P" so this can be used in the same way we
pass them to ant. In fact, it already works:

gradlew :lucene:lucene-core:test --tests TestDemo -Ptests.seed=deadbeef

> For that matter, how do we get *all* of the logging from failed tests to be written to stdout/stderr when a test fail?

There probably is an API in gradle to do this. I know Ryan wrote a
runner for Elastic a long time ago so there may be even code to look
at. I agree it is quite important to get this to work, especially for
CI logs.

> What's the plan as far as things like "ant beast", "-Dtests.dups", "-Dtests.iters" & "-Dtests.jvms" ?

Reiteration (tests.iters) is part of the test runner so it'd already
work if that property was passed to it (via -P). It isn't at the
moment -- I'll work on it.

As for tests.dups and tests.jvms this will have to be emulated somehow
at Gradle level. Don't know how though. I'm sure there'll be ways --
this is essentially a programming language.

> ("-Dtests.jvms=1" is important for figuring out if/how the execution of one test might polute static variables in the JVM

I don't think it'll work even if you have one JVM unless Gradle test
runner's order is deterministic... which I'm not sure it is, even with
a single JVM that runs the tests.

> is there a simple option to prevent gradle from using curses even though it detects it's being run in a tty?

You can pass --console=plain to gradle, use -Dorg.gradle.console=plain
or specify this property in any other way (via environment variable,
etc.). See here:

https://docs.gradle.org/current/userguide/build_environment.html

Dawid




On Mon, Sep 16, 2019 at 8:59 PM Chris Hostetter
<ho...@fucit.org> wrote:
>
>
> Some misc questions after playing around with gradle on this branch for a
> bit today in no particular order...
>
> : tests_jvms=5
>         ...
> : test_jvms is controlled by us and defaults to the number of cores detected
> : / 2.
>
> If tests_jvms is a lucene/solr specific property, that needs to
> be in a users "multi-project" "~/.gradle" file ... shouldn't we name it
> namespace it with something like "lucene_solr_test_jvms" to make that
> clear reduce future confusion/collsion?  (as i anticipate this wo't be the
> last prop we may need)
>
> How do we get "reproduce with" type output (by default) when a test fails?
>
> For that matter, how do we get *all* of the logging from failed tests to
> be written to stdout/stderr when a test fail?  ... this is pretty
> important for making jenkin's console log a good "one stop shop" for
> understanding everything that went wrong in a build.
>
> ("--debug" and "--info" seem to do this, but they write a *TON* more
> gradle specific shit then "ant test" type logging use to produce by
> default, and don't care if the test passes or not ... which would make
> them way too excessively verbose for a jenkins build)
>
> What's the plan as far as things like "ant beast", "-Dtests.dups",
> "-Dtests.iters" & "-Dtests.jvms" ? ... those types of options are all
> pretty critical for diagnosing and troubleshooting failures.
> ("-Dtests.jvms=1" is important for figuring out if/how the execution of
> one test might polute static variables in the JVM that cause a failure in
> a subsequent class in the sane JVM)
>
> is there a simple option to prevent gradle from using curses even though
> it detects it's being run in a tty?
>
>
> -Hoss
> http://www.lucidworks.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
> For additional commands, e-mail: dev-help@lucene.apache.org
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Re: The Lucene Solr Gradle Build Game plan

Posted by Chris Hostetter <ho...@fucit.org>.
Some misc questions after playing around with gradle on this branch for a 
bit today in no particular order...

: tests_jvms=5
	...
: test_jvms is controlled by us and defaults to the number of cores detected
: / 2.

If tests_jvms is a lucene/solr specific property, that needs to 
be in a users "multi-project" "~/.gradle" file ... shouldn't we name it 
namespace it with something like "lucene_solr_test_jvms" to make that 
clear reduce future confusion/collsion?  (as i anticipate this wo't be the 
last prop we may need)

How do we get "reproduce with" type output (by default) when a test fails? 

For that matter, how do we get *all* of the logging from failed tests to 
be written to stdout/stderr when a test fail?  ... this is pretty 
important for making jenkin's console log a good "one stop shop" for 
understanding everything that went wrong in a build.  

("--debug" and "--info" seem to do this, but they write a *TON* more 
gradle specific shit then "ant test" type logging use to produce by 
default, and don't care if the test passes or not ... which would make 
them way too excessively verbose for a jenkins build)

What's the plan as far as things like "ant beast", "-Dtests.dups", 
"-Dtests.iters" & "-Dtests.jvms" ? ... those types of options are all 
pretty critical for diagnosing and troubleshooting failures.  
("-Dtests.jvms=1" is important for figuring out if/how the execution of 
one test might polute static variables in the JVM that cause a failure in 
a subsequent class in the sane JVM)

is there a simple option to prevent gradle from using curses even though 
it detects it's being run in a tty?


-Hoss
http://www.lucidworks.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Re: The Lucene Solr Gradle Build Game plan

Posted by Mark Miller <ma...@gmail.com>.
I'll just detail it out here as well:

You can configure parallelism in ~/.gradle/gradle.properties

org.gradle.workers.max=2
tests_jvms=5

org.gradle.workers.max is controlled by gradle and defaults to the number
of cores detected - I wish I could change to divided by 2.
test_jvms is controlled by us and defaults to the number of cores detected
/ 2.

org.gradle.workers.max  controls the total number of jvms that will be run
in parallel - for tasks or tests or whatever gradle is doing.
test_jvms controls how many parallel jvms a module will use for tests, but
that is also limited by org.gradle.workers.max

You should try setting both to cores / 2 and work down from there if needed.

When running tests across multiple modules, org.gradle.workers.max is the
actual limit for test jvms spun up because each module is only limited to
test_jvms, but ALL tasks are limited to org.gradle.workers.max and module
tasks are run in parallel by default.

By setting them the same, we get similar behavior whether we run tests from
the root directory of the project (all tests) or from a single module (say
solr-core).

On Sun, Sep 15, 2019 at 5:03 PM Mark Miller <ma...@gmail.com> wrote:

> I've added more about that here:
> https://cwiki.apache.org/confluence/display/SOLR/Intro+to+the+Gradle+build
>
> It's configurable, but difficult for us to choose a default based on cores
> as far as I can tell and gradles default, which is based on cores detected,
> is too high, especially because of hyperthreading.
>
> Probably the best we can do is default it to a hard 2 or 4 and let people
> raise it depending on what wait you want to error. In both cases the
> majority of people will want to change it.
>
> On Sun, Sep 15, 2019 at 3:39 PM Gus Heck <gu...@gmail.com> wrote:
>
>> Not sure if you heard, but about a half a dozen folks tried it out on
>> macs and one on windows at the hack day on Tuesday before Activate. It
>> caused some scrambling for sharing of power bricks (a single run of the
>> tests eats 70% of a fully charged 2018 macbook pro battery in 45 min), but
>> the good news is it only failed on well known flaky tests and on the one
>> windows machine and that in the PDF building for the ref guide (and there
>> was that small bit with the error message and the AtomicBoolean that I
>> fixed). I've heard some opinions that maybe we don't need the PDF version
>> in the future, The one bit of feedback that came out of it was it would be
>> nice to have a task that tweaked the configs things to not peg the
>> processor quite so efficiently :). Certainly we do want the mode for full
>> utilization to be available, but a background mode would be good too in
>> case folks need to do other work.
>>
>> -Gus
>>
>> On Sun, Sep 15, 2019 at 3:24 PM Mark Miller <ma...@gmail.com>
>> wrote:
>>
>>> Okay, I've tried to spread that link a little on social media as well.
>>>
>>> Please do some experimentation. Especially those of you that use or know
>>> more esoteric things about the build. The basics are pretty solid, most
>>> have been working for months now, it's the corners and crannies that I'm
>>> more concerned about. You could have built and run tests a few months ago
>>> and said, nice, it's working, but then I've done 10,000 things since then
>>> that were necessary. You may easily not realize things are a problem until
>>> you really dig into something.
>>>
>>> The more that devs can start trying out Gradle now, the less overlap of
>>> the two build systems we will need.
>>>
>>> The idea of the overlap is that it will almost force many of us to start
>>> trying things out - at which point we will start to understand any key
>>> things that are missing, key problems or bugs, etc. If I just make the
>>> switch and let the cards fall were they may, those cards are almost
>>> certainly going to be very disruptive and annoying to a lot of people.
>>>
>>> It will also give us a chance to start rolling CI and other tools over
>>> to using the Gradle build while ant+ivy are still available and in charge.
>>> I don't think it's a great idea to try and do this all at one moment, that
>>> will be difficult to coordinate and be more disruptive to less interested
>>> devs. We would like to keep the dual build situation contained and short
>>> though. That's why I have a plan to pull out if we don't make enough
>>> progress by a month or twos time (closer to a month).
>>>
>>> If we have enough experimentation ahead of time, the overlap can be very
>>> short - we start moving things like jenkins jobs over and when we are done
>>> and confident the world is not ending, we make some adjustments so that
>>> gradle owns the build (eg the dependency tree) and then remove
>>> ant+ivy+maven.
>>>
>>> Some things like the smoke tester and what not *can* come shortly after
>>> we switch I think - we have until the 9 release to truly get everything in
>>> order (keeping in mind that we are still developing so some things are
>>> still critical). But we need CI and other basics all moved over when we
>>> flip the ownership switch.
>>>
>>> - Mark
>>>
>>> On Sun, Sep 15, 2019 at 12:28 PM Mark Miller <ma...@gmail.com>
>>> wrote:
>>>
>>>> I've started to put together a little guide to help people ramp up
>>>> here:
>>>> https://cwiki.apache.org/confluence/display/SOLR/Intro+to+the+Gradle+build
>>>>
>>>> On Sat, Sep 14, 2019 at 9:09 PM Mark Miller <ma...@gmail.com>
>>>> wrote:
>>>>
>>>>> https://issues.apache.org/jira/browse/SOLR-13452
>>>>> Update the lucene-solr build from Ivy+Ant+Maven (shadow build) to
>>>>> Gradle.
>>>>>
>>>>> Hey all.
>>>>>
>>>>> Here is my Lucene and Solr 'move to Gradle' plans.
>>>>>
>>>>> * I plan on trying to commit the Gradle build by 9/30
>>>>> * In the meantime I'll do a bit more work on packaging, publishing,
>>>>> and dependencies.
>>>>> * It would be great if others could start digging in a bit as well.
>>>>> * I plan to try and sidecar Gradle to begin with. Once that happens, I
>>>>> really need others to start digging in as we have a lot to do (switch ci
>>>>> and other tools to the new build, figure out new release docs and issues,
>>>>> finish the Solr documentation module (I'll try and get to that earlier than
>>>>> later), and generally make things pleasant across as many dev envs as we
>>>>> can.
>>>>> * Beyond that, there will likely be a longer tail of smaller issues or
>>>>> missing things even after we make the switch.
>>>>> * I'll put some effort into the side car experiment for another month
>>>>> or two perhaps (maybe not much in November)
>>>>> * If things are not looking like we will be able to flip the switch,
>>>>> I'll look at pulling out Gradle.
>>>>>
>>>>> - Mark
>>>>>
>>>>
>>>>
>>>> --
>>>> - Mark
>>>>
>>>> http://about.me/markrmiller
>>>>
>>>
>>>
>>> --
>>> - Mark
>>>
>>> http://about.me/markrmiller
>>>
>>
>>
>> --
>> http://www.needhamsoftware.com (work)
>> http://www.the111shift.com (play)
>>
>
>
> --
> - Mark
>
> http://about.me/markrmiller
>


-- 
- Mark

http://about.me/markrmiller

Re: The Lucene Solr Gradle Build Game plan

Posted by Mark Miller <ma...@gmail.com>.
I've added more about that here:
https://cwiki.apache.org/confluence/display/SOLR/Intro+to+the+Gradle+build

It's configurable, but difficult for us to choose a default based on cores
as far as I can tell and gradles default, which is based on cores detected,
is too high, especially because of hyperthreading.

Probably the best we can do is default it to a hard 2 or 4 and let people
raise it depending on what wait you want to error. In both cases the
majority of people will want to change it.

On Sun, Sep 15, 2019 at 3:39 PM Gus Heck <gu...@gmail.com> wrote:

> Not sure if you heard, but about a half a dozen folks tried it out on macs
> and one on windows at the hack day on Tuesday before Activate. It caused
> some scrambling for sharing of power bricks (a single run of the tests eats
> 70% of a fully charged 2018 macbook pro battery in 45 min), but the good
> news is it only failed on well known flaky tests and on the one windows
> machine and that in the PDF building for the ref guide (and there was that
> small bit with the error message and the AtomicBoolean that I fixed). I've
> heard some opinions that maybe we don't need the PDF version in the future,
> The one bit of feedback that came out of it was it would be nice to have a
> task that tweaked the configs things to not peg the processor quite so
> efficiently :). Certainly we do want the mode for full utilization to be
> available, but a background mode would be good too in case folks need to do
> other work.
>
> -Gus
>
> On Sun, Sep 15, 2019 at 3:24 PM Mark Miller <ma...@gmail.com> wrote:
>
>> Okay, I've tried to spread that link a little on social media as well.
>>
>> Please do some experimentation. Especially those of you that use or know
>> more esoteric things about the build. The basics are pretty solid, most
>> have been working for months now, it's the corners and crannies that I'm
>> more concerned about. You could have built and run tests a few months ago
>> and said, nice, it's working, but then I've done 10,000 things since then
>> that were necessary. You may easily not realize things are a problem until
>> you really dig into something.
>>
>> The more that devs can start trying out Gradle now, the less overlap of
>> the two build systems we will need.
>>
>> The idea of the overlap is that it will almost force many of us to start
>> trying things out - at which point we will start to understand any key
>> things that are missing, key problems or bugs, etc. If I just make the
>> switch and let the cards fall were they may, those cards are almost
>> certainly going to be very disruptive and annoying to a lot of people.
>>
>> It will also give us a chance to start rolling CI and other tools over to
>> using the Gradle build while ant+ivy are still available and in charge. I
>> don't think it's a great idea to try and do this all at one moment, that
>> will be difficult to coordinate and be more disruptive to less interested
>> devs. We would like to keep the dual build situation contained and short
>> though. That's why I have a plan to pull out if we don't make enough
>> progress by a month or twos time (closer to a month).
>>
>> If we have enough experimentation ahead of time, the overlap can be very
>> short - we start moving things like jenkins jobs over and when we are done
>> and confident the world is not ending, we make some adjustments so that
>> gradle owns the build (eg the dependency tree) and then remove
>> ant+ivy+maven.
>>
>> Some things like the smoke tester and what not *can* come shortly after
>> we switch I think - we have until the 9 release to truly get everything in
>> order (keeping in mind that we are still developing so some things are
>> still critical). But we need CI and other basics all moved over when we
>> flip the ownership switch.
>>
>> - Mark
>>
>> On Sun, Sep 15, 2019 at 12:28 PM Mark Miller <ma...@gmail.com>
>> wrote:
>>
>>> I've started to put together a little guide to help people ramp up here:
>>> https://cwiki.apache.org/confluence/display/SOLR/Intro+to+the+Gradle+build
>>>
>>> On Sat, Sep 14, 2019 at 9:09 PM Mark Miller <ma...@gmail.com>
>>> wrote:
>>>
>>>> https://issues.apache.org/jira/browse/SOLR-13452
>>>> Update the lucene-solr build from Ivy+Ant+Maven (shadow build) to
>>>> Gradle.
>>>>
>>>> Hey all.
>>>>
>>>> Here is my Lucene and Solr 'move to Gradle' plans.
>>>>
>>>> * I plan on trying to commit the Gradle build by 9/30
>>>> * In the meantime I'll do a bit more work on packaging, publishing, and
>>>> dependencies.
>>>> * It would be great if others could start digging in a bit as well.
>>>> * I plan to try and sidecar Gradle to begin with. Once that happens, I
>>>> really need others to start digging in as we have a lot to do (switch ci
>>>> and other tools to the new build, figure out new release docs and issues,
>>>> finish the Solr documentation module (I'll try and get to that earlier than
>>>> later), and generally make things pleasant across as many dev envs as we
>>>> can.
>>>> * Beyond that, there will likely be a longer tail of smaller issues or
>>>> missing things even after we make the switch.
>>>> * I'll put some effort into the side car experiment for another month
>>>> or two perhaps (maybe not much in November)
>>>> * If things are not looking like we will be able to flip the switch,
>>>> I'll look at pulling out Gradle.
>>>>
>>>> - Mark
>>>>
>>>
>>>
>>> --
>>> - Mark
>>>
>>> http://about.me/markrmiller
>>>
>>
>>
>> --
>> - Mark
>>
>> http://about.me/markrmiller
>>
>
>
> --
> http://www.needhamsoftware.com (work)
> http://www.the111shift.com (play)
>


-- 
- Mark

http://about.me/markrmiller

Re: The Lucene Solr Gradle Build Game plan

Posted by Gus Heck <gu...@gmail.com>.
Not sure if you heard, but about a half a dozen folks tried it out on macs
and one on windows at the hack day on Tuesday before Activate. It caused
some scrambling for sharing of power bricks (a single run of the tests eats
70% of a fully charged 2018 macbook pro battery in 45 min), but the good
news is it only failed on well known flaky tests and on the one windows
machine and that in the PDF building for the ref guide (and there was that
small bit with the error message and the AtomicBoolean that I fixed). I've
heard some opinions that maybe we don't need the PDF version in the future,
The one bit of feedback that came out of it was it would be nice to have a
task that tweaked the configs things to not peg the processor quite so
efficiently :). Certainly we do want the mode for full utilization to be
available, but a background mode would be good too in case folks need to do
other work.

-Gus

On Sun, Sep 15, 2019 at 3:24 PM Mark Miller <ma...@gmail.com> wrote:

> Okay, I've tried to spread that link a little on social media as well.
>
> Please do some experimentation. Especially those of you that use or know
> more esoteric things about the build. The basics are pretty solid, most
> have been working for months now, it's the corners and crannies that I'm
> more concerned about. You could have built and run tests a few months ago
> and said, nice, it's working, but then I've done 10,000 things since then
> that were necessary. You may easily not realize things are a problem until
> you really dig into something.
>
> The more that devs can start trying out Gradle now, the less overlap of
> the two build systems we will need.
>
> The idea of the overlap is that it will almost force many of us to start
> trying things out - at which point we will start to understand any key
> things that are missing, key problems or bugs, etc. If I just make the
> switch and let the cards fall were they may, those cards are almost
> certainly going to be very disruptive and annoying to a lot of people.
>
> It will also give us a chance to start rolling CI and other tools over to
> using the Gradle build while ant+ivy are still available and in charge. I
> don't think it's a great idea to try and do this all at one moment, that
> will be difficult to coordinate and be more disruptive to less interested
> devs. We would like to keep the dual build situation contained and short
> though. That's why I have a plan to pull out if we don't make enough
> progress by a month or twos time (closer to a month).
>
> If we have enough experimentation ahead of time, the overlap can be very
> short - we start moving things like jenkins jobs over and when we are done
> and confident the world is not ending, we make some adjustments so that
> gradle owns the build (eg the dependency tree) and then remove
> ant+ivy+maven.
>
> Some things like the smoke tester and what not *can* come shortly after we
> switch I think - we have until the 9 release to truly get everything in
> order (keeping in mind that we are still developing so some things are
> still critical). But we need CI and other basics all moved over when we
> flip the ownership switch.
>
> - Mark
>
> On Sun, Sep 15, 2019 at 12:28 PM Mark Miller <ma...@gmail.com>
> wrote:
>
>> I've started to put together a little guide to help people ramp up here:
>> https://cwiki.apache.org/confluence/display/SOLR/Intro+to+the+Gradle+build
>>
>> On Sat, Sep 14, 2019 at 9:09 PM Mark Miller <ma...@gmail.com>
>> wrote:
>>
>>> https://issues.apache.org/jira/browse/SOLR-13452
>>> Update the lucene-solr build from Ivy+Ant+Maven (shadow build) to Gradle.
>>>
>>> Hey all.
>>>
>>> Here is my Lucene and Solr 'move to Gradle' plans.
>>>
>>> * I plan on trying to commit the Gradle build by 9/30
>>> * In the meantime I'll do a bit more work on packaging, publishing, and
>>> dependencies.
>>> * It would be great if others could start digging in a bit as well.
>>> * I plan to try and sidecar Gradle to begin with. Once that happens, I
>>> really need others to start digging in as we have a lot to do (switch ci
>>> and other tools to the new build, figure out new release docs and issues,
>>> finish the Solr documentation module (I'll try and get to that earlier than
>>> later), and generally make things pleasant across as many dev envs as we
>>> can.
>>> * Beyond that, there will likely be a longer tail of smaller issues or
>>> missing things even after we make the switch.
>>> * I'll put some effort into the side car experiment for another month or
>>> two perhaps (maybe not much in November)
>>> * If things are not looking like we will be able to flip the switch,
>>> I'll look at pulling out Gradle.
>>>
>>> - Mark
>>>
>>
>>
>> --
>> - Mark
>>
>> http://about.me/markrmiller
>>
>
>
> --
> - Mark
>
> http://about.me/markrmiller
>


-- 
http://www.needhamsoftware.com (work)
http://www.the111shift.com (play)

Re: The Lucene Solr Gradle Build Game plan

Posted by Mark Miller <ma...@gmail.com>.
Okay, I've tried to spread that link a little on social media as well.

Please do some experimentation. Especially those of you that use or know
more esoteric things about the build. The basics are pretty solid, most
have been working for months now, it's the corners and crannies that I'm
more concerned about. You could have built and run tests a few months ago
and said, nice, it's working, but then I've done 10,000 things since then
that were necessary. You may easily not realize things are a problem until
you really dig into something.

The more that devs can start trying out Gradle now, the less overlap of the
two build systems we will need.

The idea of the overlap is that it will almost force many of us to start
trying things out - at which point we will start to understand any key
things that are missing, key problems or bugs, etc. If I just make the
switch and let the cards fall were they may, those cards are almost
certainly going to be very disruptive and annoying to a lot of people.

It will also give us a chance to start rolling CI and other tools over to
using the Gradle build while ant+ivy are still available and in charge. I
don't think it's a great idea to try and do this all at one moment, that
will be difficult to coordinate and be more disruptive to less interested
devs. We would like to keep the dual build situation contained and short
though. That's why I have a plan to pull out if we don't make enough
progress by a month or twos time (closer to a month).

If we have enough experimentation ahead of time, the overlap can be very
short - we start moving things like jenkins jobs over and when we are done
and confident the world is not ending, we make some adjustments so that
gradle owns the build (eg the dependency tree) and then remove
ant+ivy+maven.

Some things like the smoke tester and what not *can* come shortly after we
switch I think - we have until the 9 release to truly get everything in
order (keeping in mind that we are still developing so some things are
still critical). But we need CI and other basics all moved over when we
flip the ownership switch.

- Mark

On Sun, Sep 15, 2019 at 12:28 PM Mark Miller <ma...@gmail.com> wrote:

> I've started to put together a little guide to help people ramp up here:
> https://cwiki.apache.org/confluence/display/SOLR/Intro+to+the+Gradle+build
>
> On Sat, Sep 14, 2019 at 9:09 PM Mark Miller <ma...@gmail.com> wrote:
>
>> https://issues.apache.org/jira/browse/SOLR-13452
>> Update the lucene-solr build from Ivy+Ant+Maven (shadow build) to Gradle.
>>
>> Hey all.
>>
>> Here is my Lucene and Solr 'move to Gradle' plans.
>>
>> * I plan on trying to commit the Gradle build by 9/30
>> * In the meantime I'll do a bit more work on packaging, publishing, and
>> dependencies.
>> * It would be great if others could start digging in a bit as well.
>> * I plan to try and sidecar Gradle to begin with. Once that happens, I
>> really need others to start digging in as we have a lot to do (switch ci
>> and other tools to the new build, figure out new release docs and issues,
>> finish the Solr documentation module (I'll try and get to that earlier than
>> later), and generally make things pleasant across as many dev envs as we
>> can.
>> * Beyond that, there will likely be a longer tail of smaller issues or
>> missing things even after we make the switch.
>> * I'll put some effort into the side car experiment for another month or
>> two perhaps (maybe not much in November)
>> * If things are not looking like we will be able to flip the switch, I'll
>> look at pulling out Gradle.
>>
>> - Mark
>>
>
>
> --
> - Mark
>
> http://about.me/markrmiller
>


-- 
- Mark

http://about.me/markrmiller

Re: The Lucene Solr Gradle Build Game plan

Posted by Mark Miller <ma...@gmail.com>.
I've started to put together a little guide to help people ramp up here:
https://cwiki.apache.org/confluence/display/SOLR/Intro+to+the+Gradle+build

On Sat, Sep 14, 2019 at 9:09 PM Mark Miller <ma...@gmail.com> wrote:

> https://issues.apache.org/jira/browse/SOLR-13452
> Update the lucene-solr build from Ivy+Ant+Maven (shadow build) to Gradle.
>
> Hey all.
>
> Here is my Lucene and Solr 'move to Gradle' plans.
>
> * I plan on trying to commit the Gradle build by 9/30
> * In the meantime I'll do a bit more work on packaging, publishing, and
> dependencies.
> * It would be great if others could start digging in a bit as well.
> * I plan to try and sidecar Gradle to begin with. Once that happens, I
> really need others to start digging in as we have a lot to do (switch ci
> and other tools to the new build, figure out new release docs and issues,
> finish the Solr documentation module (I'll try and get to that earlier than
> later), and generally make things pleasant across as many dev envs as we
> can.
> * Beyond that, there will likely be a longer tail of smaller issues or
> missing things even after we make the switch.
> * I'll put some effort into the side car experiment for another month or
> two perhaps (maybe not much in November)
> * If things are not looking like we will be able to flip the switch, I'll
> look at pulling out Gradle.
>
> - Mark
>


-- 
- Mark

http://about.me/markrmiller