You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@edgent.apache.org by Christofer Dutz <ch...@c-ware.de> on 2017/09/18 09:01:47 UTC
Re: What's left to do for Maven migration?
Hi Dale,
last weekend I addressed your open points regarding the source releases.
One thing I should mention is that the editor files shouldn’t be a problem as when using the maven-release-plugin the tagged version of the sources are checked out and built. So there shouldn’t be any leftover files. This should only be a problem when manually activating the “apache-release” profile.
I also I filled one of the two TODOs in the DEVELOPMENT.md file.
Added inline comments in the confluence page … will have a look at the samples next.
Chris
Am 30.08.17, 18:44 schrieb "Dale LaBossiere" <dm...@gmail.com>:
Chris,
Simply stated: awesome progress while I’ve been out. Nice work!!!
I’m now starting to review all of the changes to bring myself up to date.
I completely agree with the desire to merge asap… with emphasis on “as possible” / “as practical” :-)
Hopefully I’ll reach your conclusion that now is the time.
— Dale
> On Aug 28, 2017, at 4:58 AM, Christofer Dutz <ch...@c-ware.de> wrote:
>
> Hi All,
>
> Ok so I double checked the confluence Maven vs Gradle page and think I addressed the remaining open issues.
>
> The Site generation now works fine from my point of view.
>
> So, what’s left to do? Do we need any final changes?
>
> I think it would be good to do the merge back soon as I do think that it does make it more difficult for others to contribute and/or makes it more difficult for us to maintain the branch if others started contributing more.
>
> Chris
>
Re: What's left to do for Maven migration?
Posted by Susan Cline <ho...@pacbell.net>.
Thanks for digging into this Chris. Your efforts are appreciated.
Susan
> On Sep 20, 2017, at 4:55 AM, Christofer Dutz <ch...@c-ware.de> wrote:
>
> Hi all,
>
> ok so finding this little detail got me on the right path. I updated index.js to use “source” instead of “sourceIdx” and “target” instead of “targetIdx” and now the console is working identically to the original gradle version.
>
> Chris
>
>
>
> Am 20.09.17, 13:30 schrieb "Christofer Dutz" <ch...@c-ware.de>:
>
> Ok so today I investigated the problem a little more.
>
> Seems to be one of those cool problems you get when operating with a type less language ;-)
>
> There is a difference between the original Sankey.js and the Edgent version. The difference is that the original uses “source” and “target” while the Edgent version uses “sourceIdx” and “targetIdx” so I am getting JavaScript errors in the browser.
> I think I should try and find a solution for this and then see if the charts come back. If that doesn’t help I can still get my hands dirty by digging in the depths of the system.
>
> Chris
>
>
>
> Am 19.09.17, 17:59 schrieb "Susan Cline" <ho...@pacbell.net>:
>
> I did look at Chris’s pull request and don’t see any changes to the file that is formatting the metrics.
>
> I also looked at the java class that is sending the metrics to the console - that code looks unchanged as well, so I am at a loss for what did change.
> Perhaps some of the underlying java classes the servlets or utility classes accessed changed?
>
> Susan
>
>
>> On Sep 18, 2017, at 8:02 AM, Dale LaBossiere <dm...@gmail.com> wrote:
>>
>> Hmm… I’m not familiar with that code but will take a look.
>>
>> Susan, any thoughts, including whether or not this sort of difference could account for the graph not getting rendered but the console page otherwise looking ok? (reminder this is pr309 and you can clone Chris’s fork to get all the changes)
>>
>> — Dale
>>
>>> On Sep 18, 2017, at 8:54 AM, Christofer Dutz <ch...@c-ware.de> wrote:
>>>
>>> Hi all,
>>>
>>> well I did have a more detailed look at the original (Gradle) version and the maven version. When running both examples, I could see two requests every 5 seconds. Both of them are answered by the server. The “jobs” request is answered identically. The difference seems to be in the “metrics” response:
>>>
>>> The working version of the Gradle version produces this:
>>>
>>> {
>>> "jobId": "JOB_0",
>>> "ops": [
>>> {
>>> "opId": "OP_2",
>>> "metrics": [
>>> {
>>> "type": "counter",
>>> "name": "Count",
>>> "value": "219"
>>> }
>>> ]
>>> }
>>> ]
>>> }
>>>
>>> The Maven version however produces this:
>>>
>>> {
>>> "jobId": "JOB_0",
>>> "ops": [
>>> {
>>> "opId": "OP_2",
>>> "metrics": [
>>> {
>>> "type": "long",
>>> "name": "Count",
>>> "value": "436"
>>> }
>>> ]
>>> }
>>> ]
>>> }
>>>
>>> The difference seems to be that the “type” is “counter” in the working version and “long” in the not working version. I tried debugging this, but I couldn’t really understand why this is different.
>>>
>>> Any ideas what could be wrong? I guess in general things should be working, all we have to do is fix some final mini-quirks.
>>>
>>> Chris
>>
>
>
> .
>
>
>
>
.
Re: What's left to do for Maven migration?
Posted by Dale LaBossiere <dm...@gmail.com>.
Removal of gradle stuff has been committed.
— Dale
> On Oct 30, 2017, at 10:53 AM, Dale LaBossiere <dm...@gmail.com> wrote:
>
> Yes, that helps, thanks.
> I’ve got most of the gradle stuff removed in my workspace and verified everything built, etc. I’ll make those other gradle cleanups you mention and commit it.
> Sounds like we can skip the dry-run and just get to “develop” right away (after I commit the gradle removal).
> Looking forward to the video! It will be very useful.
> — Dale
>
>> On Oct 30, 2017, at 10:39 AM, Christofer Dutz <ch...@c-ware.de> wrote:
>>
>> Hi Dale,
>>
>> I guess I could do a „dry-run“-release to check things but I wouldn’t expect any real problems with this. I could make a short demonstration of that. When doing a real release, I think it would be a good idea for me to do that and to create a video in which I explain what has to be done, how and why.
>>
>> Yes, I agree that splitting the examples into a separate repo is still a good thing to do. It makes things a lot simpler, I think. But we should merge back first and then ask Infra to do the split.
>>
>> I would also like to remove all the Gradle stuff as in some of the last commits for example, you added exceptions to several projects to exclude Gradle stuff. I would like to remove both the Gradle as well as the Gradle exclusions ;-)
>>
>> Well usually on “master” you have the code state of the last release. “develop” is where development is done. As soon as a new release is done, master is usually updated to the new release version. That’s why develop usually produces the “SNAPSHOT” and master the “RELEASE” versions.
>>
>> Hope that makes things a little clearer.
>>
>> Chris
>>
>>
>>
>> Am 30.10.17, 15:25 schrieb "Dale LaBossiere" <dm...@gmail.com>:
>>
>>
>>> On Oct 29, 2017, at 6:28 AM, Christofer Dutz <ch...@c-ware.de> wrote:
>>> ...
>>> So, it seems the legal stuff has been sorted out, the errors in the output have been resolved and the problems with periodically failing tests have been resolved. From my point of view, we could start merging things back to origin/develop … what do you think?
>>
>> Any need/value in doing some “pre-merge” release process stuff to verify as much as is possible is in place ready to go after merging? Or will that just unnecessarily slow things down? See related question about “develop” below.
>>
>> This week I plan on working on the getting-started and downloads website pages. I’ll also work on the RELEASE_NOTES.
>> A reminder that the samples are to be split off into a separate repo post-merge - that’s still desired, right? The main motivation was a separate samples source bundle as part of our overall release.
>>
>>> Should we remove the Gradle stuff all together? I think right now the project probably wouldn’t build with the old Gradle as we did change and move around quite some stuff.
>>
>> Yeah, I’m sure it wouldn’t work :-) Removing all of the gradle pieces in a single commit would be great. Is that better left until after the merge? I think I could go either way.
>>
>>> Would be super awesome if we had this finished in about 2 weeks as then I would turn on the distribution of SNAPSHOT versions (ok … as soon as the branch name is “develop” the Jenkinsfile will automatically do that). I would be needing these SNAPSHOTS for the next sprint of my PLC library project.
>>
>> That would be great! FYI, I’m unavailable Nov 8th - 19th.
>>
>> What’s the relationship between this new “develop” branch and today’s “master”? Is the "distribution of develop SNAPSHOTS" just to the ASF nexus snapshots repo? So can creating “develop” and merging to it can be done immediately and then work on the actual release (including updating master) proceed afterwards?
>>
>> Thanks!
>> — Dale
>>
>
Re: What's left to do for Maven migration?
Posted by Dale LaBossiere <dm...@gmail.com>.
Yes, that helps, thanks.
I’ve got most of the gradle stuff removed in my workspace and verified everything built, etc. I’ll make those other gradle cleanups you mention and commit it.
Sounds like we can skip the dry-run and just get to “develop” right away (after I commit the gradle removal).
Looking forward to the video! It will be very useful.
— Dale
> On Oct 30, 2017, at 10:39 AM, Christofer Dutz <ch...@c-ware.de> wrote:
>
> Hi Dale,
>
> I guess I could do a „dry-run“-release to check things but I wouldn’t expect any real problems with this. I could make a short demonstration of that. When doing a real release, I think it would be a good idea for me to do that and to create a video in which I explain what has to be done, how and why.
>
> Yes, I agree that splitting the examples into a separate repo is still a good thing to do. It makes things a lot simpler, I think. But we should merge back first and then ask Infra to do the split.
>
> I would also like to remove all the Gradle stuff as in some of the last commits for example, you added exceptions to several projects to exclude Gradle stuff. I would like to remove both the Gradle as well as the Gradle exclusions ;-)
>
> Well usually on “master” you have the code state of the last release. “develop” is where development is done. As soon as a new release is done, master is usually updated to the new release version. That’s why develop usually produces the “SNAPSHOT” and master the “RELEASE” versions.
>
> Hope that makes things a little clearer.
>
> Chris
>
>
>
> Am 30.10.17, 15:25 schrieb "Dale LaBossiere" <dm...@gmail.com>:
>
>
>> On Oct 29, 2017, at 6:28 AM, Christofer Dutz <ch...@c-ware.de> wrote:
>> ...
>> So, it seems the legal stuff has been sorted out, the errors in the output have been resolved and the problems with periodically failing tests have been resolved. From my point of view, we could start merging things back to origin/develop … what do you think?
>
> Any need/value in doing some “pre-merge” release process stuff to verify as much as is possible is in place ready to go after merging? Or will that just unnecessarily slow things down? See related question about “develop” below.
>
> This week I plan on working on the getting-started and downloads website pages. I’ll also work on the RELEASE_NOTES.
> A reminder that the samples are to be split off into a separate repo post-merge - that’s still desired, right? The main motivation was a separate samples source bundle as part of our overall release.
>
>> Should we remove the Gradle stuff all together? I think right now the project probably wouldn’t build with the old Gradle as we did change and move around quite some stuff.
>
> Yeah, I’m sure it wouldn’t work :-) Removing all of the gradle pieces in a single commit would be great. Is that better left until after the merge? I think I could go either way.
>
>> Would be super awesome if we had this finished in about 2 weeks as then I would turn on the distribution of SNAPSHOT versions (ok … as soon as the branch name is “develop” the Jenkinsfile will automatically do that). I would be needing these SNAPSHOTS for the next sprint of my PLC library project.
>
> That would be great! FYI, I’m unavailable Nov 8th - 19th.
>
> What’s the relationship between this new “develop” branch and today’s “master”? Is the "distribution of develop SNAPSHOTS" just to the ASF nexus snapshots repo? So can creating “develop” and merging to it can be done immediately and then work on the actual release (including updating master) proceed afterwards?
>
> Thanks!
> — Dale
>
Re: What's left to do for Maven migration?
Posted by Christofer Dutz <ch...@c-ware.de>.
Hi Dale,
I guess I could do a „dry-run“-release to check things but I wouldn’t expect any real problems with this. I could make a short demonstration of that. When doing a real release, I think it would be a good idea for me to do that and to create a video in which I explain what has to be done, how and why.
Yes, I agree that splitting the examples into a separate repo is still a good thing to do. It makes things a lot simpler, I think. But we should merge back first and then ask Infra to do the split.
I would also like to remove all the Gradle stuff as in some of the last commits for example, you added exceptions to several projects to exclude Gradle stuff. I would like to remove both the Gradle as well as the Gradle exclusions ;-)
Well usually on “master” you have the code state of the last release. “develop” is where development is done. As soon as a new release is done, master is usually updated to the new release version. That’s why develop usually produces the “SNAPSHOT” and master the “RELEASE” versions.
Hope that makes things a little clearer.
Chris
Am 30.10.17, 15:25 schrieb "Dale LaBossiere" <dm...@gmail.com>:
> On Oct 29, 2017, at 6:28 AM, Christofer Dutz <ch...@c-ware.de> wrote:
> ...
> So, it seems the legal stuff has been sorted out, the errors in the output have been resolved and the problems with periodically failing tests have been resolved. From my point of view, we could start merging things back to origin/develop … what do you think?
Any need/value in doing some “pre-merge” release process stuff to verify as much as is possible is in place ready to go after merging? Or will that just unnecessarily slow things down? See related question about “develop” below.
This week I plan on working on the getting-started and downloads website pages. I’ll also work on the RELEASE_NOTES.
A reminder that the samples are to be split off into a separate repo post-merge - that’s still desired, right? The main motivation was a separate samples source bundle as part of our overall release.
> Should we remove the Gradle stuff all together? I think right now the project probably wouldn’t build with the old Gradle as we did change and move around quite some stuff.
Yeah, I’m sure it wouldn’t work :-) Removing all of the gradle pieces in a single commit would be great. Is that better left until after the merge? I think I could go either way.
> Would be super awesome if we had this finished in about 2 weeks as then I would turn on the distribution of SNAPSHOT versions (ok … as soon as the branch name is “develop” the Jenkinsfile will automatically do that). I would be needing these SNAPSHOTS for the next sprint of my PLC library project.
That would be great! FYI, I’m unavailable Nov 8th - 19th.
What’s the relationship between this new “develop” branch and today’s “master”? Is the "distribution of develop SNAPSHOTS" just to the ASF nexus snapshots repo? So can creating “develop” and merging to it can be done immediately and then work on the actual release (including updating master) proceed afterwards?
Thanks!
— Dale
Re: What's left to do for Maven migration?
Posted by Dale LaBossiere <dm...@gmail.com>.
> On Oct 29, 2017, at 6:28 AM, Christofer Dutz <ch...@c-ware.de> wrote:
> ...
> So, it seems the legal stuff has been sorted out, the errors in the output have been resolved and the problems with periodically failing tests have been resolved. From my point of view, we could start merging things back to origin/develop … what do you think?
Any need/value in doing some “pre-merge” release process stuff to verify as much as is possible is in place ready to go after merging? Or will that just unnecessarily slow things down? See related question about “develop” below.
This week I plan on working on the getting-started and downloads website pages. I’ll also work on the RELEASE_NOTES.
A reminder that the samples are to be split off into a separate repo post-merge - that’s still desired, right? The main motivation was a separate samples source bundle as part of our overall release.
> Should we remove the Gradle stuff all together? I think right now the project probably wouldn’t build with the old Gradle as we did change and move around quite some stuff.
Yeah, I’m sure it wouldn’t work :-) Removing all of the gradle pieces in a single commit would be great. Is that better left until after the merge? I think I could go either way.
> Would be super awesome if we had this finished in about 2 weeks as then I would turn on the distribution of SNAPSHOT versions (ok … as soon as the branch name is “develop” the Jenkinsfile will automatically do that). I would be needing these SNAPSHOTS for the next sprint of my PLC library project.
That would be great! FYI, I’m unavailable Nov 8th - 19th.
What’s the relationship between this new “develop” branch and today’s “master”? Is the "distribution of develop SNAPSHOTS" just to the ASF nexus snapshots repo? So can creating “develop” and merging to it can be done immediately and then work on the actual release (including updating master) proceed afterwards?
Thanks!
— Dale
Re: What's left to do for Maven migration?
Posted by Christofer Dutz <ch...@c-ware.de>.
Hi all,
reviving this older thread :-)
So, it seems the legal stuff has been sorted out, the errors in the output have been resolved and the problems with periodically failing tests have been resolved. From my point of view, we could start merging things back to origin/develop … what do you think?
Should we remove the Gradle stuff all together? I think right now the project probably wouldn’t build with the old Gradle as we did change and move around quite some stuff.
Would be super awesome if we had this finished in about 2 weeks as then I would turn on the distribution of SNAPSHOT versions (ok … as soon as the branch name is “develop” the Jenkinsfile will automatically do that). I would be needing these SNAPSHOTS for the next sprint of my PLC library project.
Chris
Am 20.09.17, 19:32 schrieb "Christofer Dutz" <ch...@c-ware.de>:
Hi Dale,
I’m sure that is the reason for this. I did investigate that problem a wile yesterday and I found out that the MBean the ConsoleMetricsServlet->MetricsUtil (line 105) is using to generate the output returns “long” instead of “counter” … but I have to admit that I have no Idea why.
Will investigate tomorrow ;-)
Chris
Am 20.09.17, 18:33 schrieb "Dale LaBossiere" <dm...@gmail.com>:
> On Sep 20, 2017, at 12:03 PM, Dale LaBossiere <dm...@gmail.com> wrote:
>
> Yay, we have graphs!
>
> In briefly playing with the console I noticed a number of things that I’ll have to investigate to verify they’re not regressions (others chime in if you know them to be present on the master branch):
>
> - The Pause Graph button does pause graph info update (e.g., metrics on hovers), however the metrics charts continue to update.
> - Hover on a Counter or StreamScope oplet doesn’t report streams or tuples info like on “normal” oplets. However that info for them is cleanly visible in the All Oplet Properties table
> - The All Oplet Properties table doesn’t refresh. There’s a Pause refresh button on it that doesn’t yield any observable behavior.
Those behaviors are the same / no regression :-/
But here’s a regression:
When you hover on a stream, in 1.1.0 the bottom of the hover reports a tuple count. On the maven branch the bottom of the hover reports “No value - counter not present”
That’s emitted by index.js/1164/renderGraph based on d.derived being true. Not yet sure how that comes to be. Chris, maybe related to your earlier observation:
The working version of the Gradle version produces this:
{
"jobId": "JOB_0",
"ops": [
{
"opId": "OP_2",
"metrics": [
{
"type": "counter",
"name": "Count",
"value": "219"
}
]
}
]
}
The Maven version however produces this:
{
"jobId": "JOB_0",
"ops": [
{
"opId": "OP_2",
"metrics": [
{
"type": "long",
"name": "Count",
"value": "436"
}
]
}
]
}
>
Re: maven-cvt: console regressions
Posted by Christofer Dutz <ch...@c-ware.de>.
One of my easiest exercises … but merge first, release second and then: let the fun begin ;-)
Chris
Am 25.09.17, 14:21 schrieb "Dale LaBossiere" <dm...@gmail.com>:
It would be fabulous to have some automated testing for the console (post getting a release out :-)
— Dale
> On Sep 25, 2017, at 8:15 AM, Christofer Dutz <ch...@c-ware.de> wrote:
> ...
> But it does show that it might be good to start doing, what I had introduced for the Flex project. As soon as we merge things back, I think it would be a good idea to start run something that utilizes the entire stack and verified via Selenium that the console output is as desired.
Re: maven-cvt: console regressions
Posted by Dale LaBossiere <dm...@gmail.com>.
It would be fabulous to have some automated testing for the console (post getting a release out :-)
— Dale
> On Sep 25, 2017, at 8:15 AM, Christofer Dutz <ch...@c-ware.de> wrote:
> ...
> But it does show that it might be good to start doing, what I had introduced for the Flex project. As soon as we merge things back, I think it would be a good idea to start run something that utilizes the entire stack and verified via Selenium that the console output is as desired.
Re: maven-cvt: console regressions
Posted by Christofer Dutz <ch...@c-ware.de>.
Hi Dale,
Argh! … ok that seemed to be so obviously wrong that my brain didn’t even seem to remember “fixing” that.
Maybe I shouldn’t delegate fixing things to my co-processor ;-)
But it does show that it might be good to start doing, what I had introduced for the Flex project. As soon as we merge things back, I think it would be a good idea to start run something that utilizes the entire stack and verified via Selenium that the console output is as desired.
Chris
Am 25.09.17, 13:55 schrieb "Dale LaBossiere" <dm...@gmail.com>:
The problem was introduced here: https://github.com/apache/incubator-edgent/pull/309/commits/78a3e6fdc935993a5c0445e16e732ae25bbc6b52
obj.opId was set correctly on line 52 (from op.opId). After the change the value (now from met.opId) I believe ended up being null which subsequently messed up other processing. Why the original no-op assignment was there… who knows? :-)
— Dale
> On Sep 21, 2017, at 7:52 AM, Christofer Dutz <ch...@c-ware.de> wrote:
>
> Hi Dale,
>
> could you please sum up what the problem was? I did see you simplifying some of the code, but couldn’t pin-point the individual change that fixed things.
>
> Chris
>
>
>
> Am 20.09.17, 23:56 schrieb "Dale LaBossiere" <dm...@gmail.com>:
>
> I just delivered the fix for the two regressions. See its comment for details.
> I think we can claim the console is operational again!
>
> — Dale
>
>> On Sep 20, 2017, at 5:14 PM, Dale LaBossiere <dm...@gmail.com> wrote:
>>
>>
>>> On Sep 20, 2017, at 1:32 PM, Christofer Dutz <ch...@c-ware.de> wrote:
>>> ...
>>> I’m sure that is the reason for this. I did investigate that problem a wile yesterday and I found out that the MBean the ConsoleMetricsServlet->MetricsUtil (line 105) is using to generate the output returns “long” instead of “counter” … but I have to admit that I have no Idea why.
>>>
>>> Will investigate tomorrow ;-)
>>
>> I found another regression. The hover on a union oplet incorrectly reports the output tuple count - it’s not the sum.
>> It’s demonstrable with the ConsoleWaterDetector sample (suspect caused by the same problem causing the other regression):
>>
>> cd samples
>> mvn package
>> cd console
>> ./run-samples.sh ConsoleWaterDetector
>>
>> I did a review of the cleanup changes that had been made to MetricsUtil.java and found one problem though fixing it didn’t address either of these regressions. I’m delivering more cleanup of it.
>>
>> — Dale
>
>
>
Re: maven-cvt: console regressions
Posted by Dale LaBossiere <dm...@gmail.com>.
The problem was introduced here: https://github.com/apache/incubator-edgent/pull/309/commits/78a3e6fdc935993a5c0445e16e732ae25bbc6b52
obj.opId was set correctly on line 52 (from op.opId). After the change the value (now from met.opId) I believe ended up being null which subsequently messed up other processing. Why the original no-op assignment was there… who knows? :-)
— Dale
> On Sep 21, 2017, at 7:52 AM, Christofer Dutz <ch...@c-ware.de> wrote:
>
> Hi Dale,
>
> could you please sum up what the problem was? I did see you simplifying some of the code, but couldn’t pin-point the individual change that fixed things.
>
> Chris
>
>
>
> Am 20.09.17, 23:56 schrieb "Dale LaBossiere" <dm...@gmail.com>:
>
> I just delivered the fix for the two regressions. See its comment for details.
> I think we can claim the console is operational again!
>
> — Dale
>
>> On Sep 20, 2017, at 5:14 PM, Dale LaBossiere <dm...@gmail.com> wrote:
>>
>>
>>> On Sep 20, 2017, at 1:32 PM, Christofer Dutz <ch...@c-ware.de> wrote:
>>> ...
>>> I’m sure that is the reason for this. I did investigate that problem a wile yesterday and I found out that the MBean the ConsoleMetricsServlet->MetricsUtil (line 105) is using to generate the output returns “long” instead of “counter” … but I have to admit that I have no Idea why.
>>>
>>> Will investigate tomorrow ;-)
>>
>> I found another regression. The hover on a union oplet incorrectly reports the output tuple count - it’s not the sum.
>> It’s demonstrable with the ConsoleWaterDetector sample (suspect caused by the same problem causing the other regression):
>>
>> cd samples
>> mvn package
>> cd console
>> ./run-samples.sh ConsoleWaterDetector
>>
>> I did a review of the cleanup changes that had been made to MetricsUtil.java and found one problem though fixing it didn’t address either of these regressions. I’m delivering more cleanup of it.
>>
>> — Dale
>
>
>
Re: maven-cvt: console regressions
Posted by Christofer Dutz <ch...@c-ware.de>.
Hi Dale,
could you please sum up what the problem was? I did see you simplifying some of the code, but couldn’t pin-point the individual change that fixed things.
Chris
Am 20.09.17, 23:56 schrieb "Dale LaBossiere" <dm...@gmail.com>:
I just delivered the fix for the two regressions. See its comment for details.
I think we can claim the console is operational again!
— Dale
> On Sep 20, 2017, at 5:14 PM, Dale LaBossiere <dm...@gmail.com> wrote:
>
>
>> On Sep 20, 2017, at 1:32 PM, Christofer Dutz <ch...@c-ware.de> wrote:
>> ...
>> I’m sure that is the reason for this. I did investigate that problem a wile yesterday and I found out that the MBean the ConsoleMetricsServlet->MetricsUtil (line 105) is using to generate the output returns “long” instead of “counter” … but I have to admit that I have no Idea why.
>>
>> Will investigate tomorrow ;-)
>
> I found another regression. The hover on a union oplet incorrectly reports the output tuple count - it’s not the sum.
> It’s demonstrable with the ConsoleWaterDetector sample (suspect caused by the same problem causing the other regression):
>
> cd samples
> mvn package
> cd console
> ./run-samples.sh ConsoleWaterDetector
>
> I did a review of the cleanup changes that had been made to MetricsUtil.java and found one problem though fixing it didn’t address either of these regressions. I’m delivering more cleanup of it.
>
> — Dale
Re: maven-cvt: console regressions
Posted by Dale LaBossiere <dm...@gmail.com>.
I just delivered the fix for the two regressions. See its comment for details.
I think we can claim the console is operational again!
— Dale
> On Sep 20, 2017, at 5:14 PM, Dale LaBossiere <dm...@gmail.com> wrote:
>
>
>> On Sep 20, 2017, at 1:32 PM, Christofer Dutz <ch...@c-ware.de> wrote:
>> ...
>> I’m sure that is the reason for this. I did investigate that problem a wile yesterday and I found out that the MBean the ConsoleMetricsServlet->MetricsUtil (line 105) is using to generate the output returns “long” instead of “counter” … but I have to admit that I have no Idea why.
>>
>> Will investigate tomorrow ;-)
>
> I found another regression. The hover on a union oplet incorrectly reports the output tuple count - it’s not the sum.
> It’s demonstrable with the ConsoleWaterDetector sample (suspect caused by the same problem causing the other regression):
>
> cd samples
> mvn package
> cd console
> ./run-samples.sh ConsoleWaterDetector
>
> I did a review of the cleanup changes that had been made to MetricsUtil.java and found one problem though fixing it didn’t address either of these regressions. I’m delivering more cleanup of it.
>
> — Dale
maven-cvt: console regressions
Posted by Dale LaBossiere <dm...@gmail.com>.
> On Sep 20, 2017, at 1:32 PM, Christofer Dutz <ch...@c-ware.de> wrote:
> ...
> I’m sure that is the reason for this. I did investigate that problem a wile yesterday and I found out that the MBean the ConsoleMetricsServlet->MetricsUtil (line 105) is using to generate the output returns “long” instead of “counter” … but I have to admit that I have no Idea why.
>
> Will investigate tomorrow ;-)
I found another regression. The hover on a union oplet incorrectly reports the output tuple count - it’s not the sum.
It’s demonstrable with the ConsoleWaterDetector sample (suspect caused by the same problem causing the other regression):
cd samples
mvn package
cd console
./run-samples.sh ConsoleWaterDetector
I did a review of the cleanup changes that had been made to MetricsUtil.java and found one problem though fixing it didn’t address either of these regressions. I’m delivering more cleanup of it.
— Dale
Re: What's left to do for Maven migration?
Posted by Christofer Dutz <ch...@c-ware.de>.
Hi Dale,
I’m sure that is the reason for this. I did investigate that problem a wile yesterday and I found out that the MBean the ConsoleMetricsServlet->MetricsUtil (line 105) is using to generate the output returns “long” instead of “counter” … but I have to admit that I have no Idea why.
Will investigate tomorrow ;-)
Chris
Am 20.09.17, 18:33 schrieb "Dale LaBossiere" <dm...@gmail.com>:
> On Sep 20, 2017, at 12:03 PM, Dale LaBossiere <dm...@gmail.com> wrote:
>
> Yay, we have graphs!
>
> In briefly playing with the console I noticed a number of things that I’ll have to investigate to verify they’re not regressions (others chime in if you know them to be present on the master branch):
>
> - The Pause Graph button does pause graph info update (e.g., metrics on hovers), however the metrics charts continue to update.
> - Hover on a Counter or StreamScope oplet doesn’t report streams or tuples info like on “normal” oplets. However that info for them is cleanly visible in the All Oplet Properties table
> - The All Oplet Properties table doesn’t refresh. There’s a Pause refresh button on it that doesn’t yield any observable behavior.
Those behaviors are the same / no regression :-/
But here’s a regression:
When you hover on a stream, in 1.1.0 the bottom of the hover reports a tuple count. On the maven branch the bottom of the hover reports “No value - counter not present”
That’s emitted by index.js/1164/renderGraph based on d.derived being true. Not yet sure how that comes to be. Chris, maybe related to your earlier observation:
The working version of the Gradle version produces this:
{
"jobId": "JOB_0",
"ops": [
{
"opId": "OP_2",
"metrics": [
{
"type": "counter",
"name": "Count",
"value": "219"
}
]
}
]
}
The Maven version however produces this:
{
"jobId": "JOB_0",
"ops": [
{
"opId": "OP_2",
"metrics": [
{
"type": "long",
"name": "Count",
"value": "436"
}
]
}
]
}
>
Re: What's left to do for Maven migration?
Posted by Dale LaBossiere <dm...@gmail.com>.
> On Sep 20, 2017, at 12:03 PM, Dale LaBossiere <dm...@gmail.com> wrote:
>
> Yay, we have graphs!
>
> In briefly playing with the console I noticed a number of things that I’ll have to investigate to verify they’re not regressions (others chime in if you know them to be present on the master branch):
>
> - The Pause Graph button does pause graph info update (e.g., metrics on hovers), however the metrics charts continue to update.
> - Hover on a Counter or StreamScope oplet doesn’t report streams or tuples info like on “normal” oplets. However that info for them is cleanly visible in the All Oplet Properties table
> - The All Oplet Properties table doesn’t refresh. There’s a Pause refresh button on it that doesn’t yield any observable behavior.
Those behaviors are the same / no regression :-/
But here’s a regression:
When you hover on a stream, in 1.1.0 the bottom of the hover reports a tuple count. On the maven branch the bottom of the hover reports “No value - counter not present”
That’s emitted by index.js/1164/renderGraph based on d.derived being true. Not yet sure how that comes to be. Chris, maybe related to your earlier observation:
The working version of the Gradle version produces this:
{
"jobId": "JOB_0",
"ops": [
{
"opId": "OP_2",
"metrics": [
{
"type": "counter",
"name": "Count",
"value": "219"
}
]
}
]
}
The Maven version however produces this:
{
"jobId": "JOB_0",
"ops": [
{
"opId": "OP_2",
"metrics": [
{
"type": "long",
"name": "Count",
"value": "436"
}
]
}
]
}
>
Re: What's left to do for Maven migration?
Posted by Dale LaBossiere <dm...@gmail.com>.
Yay, we have graphs!
In briefly playing with the console I noticed a number of things that I’ll have to investigate to verify they’re not regressions (others chime in if you know them to be present on the master branch):
- The Pause Graph button does pause graph info update (e.g., metrics on hovers), however the metrics charts continue to update.
- Hover on a Counter or StreamScope oplet doesn’t report streams or tuples info like on “normal” oplets. However that info for them is cleanly visible in the All Oplet Properties table
- The All Oplet Properties table doesn’t refresh. There’s a Pause refresh button on it that doesn’t yield any observable behavior.
— Dale
> On Sep 20, 2017, at 11:05 AM, Dale LaBossiere <dm...@gmail.com> wrote:
>
> Excellent! I had made some progress starting to track this down but hadn’t gotten as far as you.
> I’ll pull and git it a go.
> — Dale
>
>> On Sep 20, 2017, at 7:55 AM, Christofer Dutz <ch...@c-ware.de> wrote:
>>
>> Hi all,
>>
>> ok so finding this little detail got me on the right path. I updated index.js to use “source” instead of “sourceIdx” and “target” instead of “targetIdx” and now the console is working identically to the original gradle version.
>>
>> Chris
Re: What's left to do for Maven migration?
Posted by Dale LaBossiere <dm...@gmail.com>.
Excellent! I had made some progress starting to track this down but hadn’t gotten as far as you.
I’ll pull and git it a go.
— Dale
> On Sep 20, 2017, at 7:55 AM, Christofer Dutz <ch...@c-ware.de> wrote:
>
> Hi all,
>
> ok so finding this little detail got me on the right path. I updated index.js to use “source” instead of “sourceIdx” and “target” instead of “targetIdx” and now the console is working identically to the original gradle version.
>
> Chris
>
>
>
> Am 20.09.17, 13:30 schrieb "Christofer Dutz" <ch...@c-ware.de>:
>
> Ok so today I investigated the problem a little more.
>
> Seems to be one of those cool problems you get when operating with a type less language ;-)
>
> There is a difference between the original Sankey.js and the Edgent version. The difference is that the original uses “source” and “target” while the Edgent version uses “sourceIdx” and “targetIdx” so I am getting JavaScript errors in the browser.
> I think I should try and find a solution for this and then see if the charts come back. If that doesn’t help I can still get my hands dirty by digging in the depths of the system.
>
> Chris
>
>
>
> Am 19.09.17, 17:59 schrieb "Susan Cline" <ho...@pacbell.net>:
>
> I did look at Chris’s pull request and don’t see any changes to the file that is formatting the metrics.
>
> I also looked at the java class that is sending the metrics to the console - that code looks unchanged as well, so I am at a loss for what did change.
> Perhaps some of the underlying java classes the servlets or utility classes accessed changed?
>
> Susan
>
>
>> On Sep 18, 2017, at 8:02 AM, Dale LaBossiere <dm...@gmail.com> wrote:
>>
>> Hmm… I’m not familiar with that code but will take a look.
>>
>> Susan, any thoughts, including whether or not this sort of difference could account for the graph not getting rendered but the console page otherwise looking ok? (reminder this is pr309 and you can clone Chris’s fork to get all the changes)
>>
>> — Dale
>>
>>> On Sep 18, 2017, at 8:54 AM, Christofer Dutz <ch...@c-ware.de> wrote:
>>>
>>> Hi all,
>>>
>>> well I did have a more detailed look at the original (Gradle) version and the maven version. When running both examples, I could see two requests every 5 seconds. Both of them are answered by the server. The “jobs” request is answered identically. The difference seems to be in the “metrics” response:
>>>
>>> The working version of the Gradle version produces this:
>>>
>>> {
>>> "jobId": "JOB_0",
>>> "ops": [
>>> {
>>> "opId": "OP_2",
>>> "metrics": [
>>> {
>>> "type": "counter",
>>> "name": "Count",
>>> "value": "219"
>>> }
>>> ]
>>> }
>>> ]
>>> }
>>>
>>> The Maven version however produces this:
>>>
>>> {
>>> "jobId": "JOB_0",
>>> "ops": [
>>> {
>>> "opId": "OP_2",
>>> "metrics": [
>>> {
>>> "type": "long",
>>> "name": "Count",
>>> "value": "436"
>>> }
>>> ]
>>> }
>>> ]
>>> }
>>>
>>> The difference seems to be that the “type” is “counter” in the working version and “long” in the not working version. I tried debugging this, but I couldn’t really understand why this is different.
>>>
>>> Any ideas what could be wrong? I guess in general things should be working, all we have to do is fix some final mini-quirks.
>>>
>>> Chris
>>
>
>
> .
>
>
>
>
Re: What's left to do for Maven migration?
Posted by Christofer Dutz <ch...@c-ware.de>.
Hi all,
ok so finding this little detail got me on the right path. I updated index.js to use “source” instead of “sourceIdx” and “target” instead of “targetIdx” and now the console is working identically to the original gradle version.
Chris
Am 20.09.17, 13:30 schrieb "Christofer Dutz" <ch...@c-ware.de>:
Ok so today I investigated the problem a little more.
Seems to be one of those cool problems you get when operating with a type less language ;-)
There is a difference between the original Sankey.js and the Edgent version. The difference is that the original uses “source” and “target” while the Edgent version uses “sourceIdx” and “targetIdx” so I am getting JavaScript errors in the browser.
I think I should try and find a solution for this and then see if the charts come back. If that doesn’t help I can still get my hands dirty by digging in the depths of the system.
Chris
Am 19.09.17, 17:59 schrieb "Susan Cline" <ho...@pacbell.net>:
I did look at Chris’s pull request and don’t see any changes to the file that is formatting the metrics.
I also looked at the java class that is sending the metrics to the console - that code looks unchanged as well, so I am at a loss for what did change.
Perhaps some of the underlying java classes the servlets or utility classes accessed changed?
Susan
> On Sep 18, 2017, at 8:02 AM, Dale LaBossiere <dm...@gmail.com> wrote:
>
> Hmm… I’m not familiar with that code but will take a look.
>
> Susan, any thoughts, including whether or not this sort of difference could account for the graph not getting rendered but the console page otherwise looking ok? (reminder this is pr309 and you can clone Chris’s fork to get all the changes)
>
> — Dale
>
>> On Sep 18, 2017, at 8:54 AM, Christofer Dutz <ch...@c-ware.de> wrote:
>>
>> Hi all,
>>
>> well I did have a more detailed look at the original (Gradle) version and the maven version. When running both examples, I could see two requests every 5 seconds. Both of them are answered by the server. The “jobs” request is answered identically. The difference seems to be in the “metrics” response:
>>
>> The working version of the Gradle version produces this:
>>
>> {
>> "jobId": "JOB_0",
>> "ops": [
>> {
>> "opId": "OP_2",
>> "metrics": [
>> {
>> "type": "counter",
>> "name": "Count",
>> "value": "219"
>> }
>> ]
>> }
>> ]
>> }
>>
>> The Maven version however produces this:
>>
>> {
>> "jobId": "JOB_0",
>> "ops": [
>> {
>> "opId": "OP_2",
>> "metrics": [
>> {
>> "type": "long",
>> "name": "Count",
>> "value": "436"
>> }
>> ]
>> }
>> ]
>> }
>>
>> The difference seems to be that the “type” is “counter” in the working version and “long” in the not working version. I tried debugging this, but I couldn’t really understand why this is different.
>>
>> Any ideas what could be wrong? I guess in general things should be working, all we have to do is fix some final mini-quirks.
>>
>> Chris
>
.
Re: What's left to do for Maven migration?
Posted by Christofer Dutz <ch...@c-ware.de>.
Ok so today I investigated the problem a little more.
Seems to be one of those cool problems you get when operating with a type less language ;-)
There is a difference between the original Sankey.js and the Edgent version. The difference is that the original uses “source” and “target” while the Edgent version uses “sourceIdx” and “targetIdx” so I am getting JavaScript errors in the browser.
I think I should try and find a solution for this and then see if the charts come back. If that doesn’t help I can still get my hands dirty by digging in the depths of the system.
Chris
Am 19.09.17, 17:59 schrieb "Susan Cline" <ho...@pacbell.net>:
I did look at Chris’s pull request and don’t see any changes to the file that is formatting the metrics.
I also looked at the java class that is sending the metrics to the console - that code looks unchanged as well, so I am at a loss for what did change.
Perhaps some of the underlying java classes the servlets or utility classes accessed changed?
Susan
> On Sep 18, 2017, at 8:02 AM, Dale LaBossiere <dm...@gmail.com> wrote:
>
> Hmm… I’m not familiar with that code but will take a look.
>
> Susan, any thoughts, including whether or not this sort of difference could account for the graph not getting rendered but the console page otherwise looking ok? (reminder this is pr309 and you can clone Chris’s fork to get all the changes)
>
> — Dale
>
>> On Sep 18, 2017, at 8:54 AM, Christofer Dutz <ch...@c-ware.de> wrote:
>>
>> Hi all,
>>
>> well I did have a more detailed look at the original (Gradle) version and the maven version. When running both examples, I could see two requests every 5 seconds. Both of them are answered by the server. The “jobs” request is answered identically. The difference seems to be in the “metrics” response:
>>
>> The working version of the Gradle version produces this:
>>
>> {
>> "jobId": "JOB_0",
>> "ops": [
>> {
>> "opId": "OP_2",
>> "metrics": [
>> {
>> "type": "counter",
>> "name": "Count",
>> "value": "219"
>> }
>> ]
>> }
>> ]
>> }
>>
>> The Maven version however produces this:
>>
>> {
>> "jobId": "JOB_0",
>> "ops": [
>> {
>> "opId": "OP_2",
>> "metrics": [
>> {
>> "type": "long",
>> "name": "Count",
>> "value": "436"
>> }
>> ]
>> }
>> ]
>> }
>>
>> The difference seems to be that the “type” is “counter” in the working version and “long” in the not working version. I tried debugging this, but I couldn’t really understand why this is different.
>>
>> Any ideas what could be wrong? I guess in general things should be working, all we have to do is fix some final mini-quirks.
>>
>> Chris
>
.
Re: What's left to do for Maven migration?
Posted by Susan Cline <ho...@pacbell.net>.
I did look at Chris’s pull request and don’t see any changes to the file that is formatting the metrics.
I also looked at the java class that is sending the metrics to the console - that code looks unchanged as well, so I am at a loss for what did change.
Perhaps some of the underlying java classes the servlets or utility classes accessed changed?
Susan
> On Sep 18, 2017, at 8:02 AM, Dale LaBossiere <dm...@gmail.com> wrote:
>
> Hmm… I’m not familiar with that code but will take a look.
>
> Susan, any thoughts, including whether or not this sort of difference could account for the graph not getting rendered but the console page otherwise looking ok? (reminder this is pr309 and you can clone Chris’s fork to get all the changes)
>
> — Dale
>
>> On Sep 18, 2017, at 8:54 AM, Christofer Dutz <ch...@c-ware.de> wrote:
>>
>> Hi all,
>>
>> well I did have a more detailed look at the original (Gradle) version and the maven version. When running both examples, I could see two requests every 5 seconds. Both of them are answered by the server. The “jobs” request is answered identically. The difference seems to be in the “metrics” response:
>>
>> The working version of the Gradle version produces this:
>>
>> {
>> "jobId": "JOB_0",
>> "ops": [
>> {
>> "opId": "OP_2",
>> "metrics": [
>> {
>> "type": "counter",
>> "name": "Count",
>> "value": "219"
>> }
>> ]
>> }
>> ]
>> }
>>
>> The Maven version however produces this:
>>
>> {
>> "jobId": "JOB_0",
>> "ops": [
>> {
>> "opId": "OP_2",
>> "metrics": [
>> {
>> "type": "long",
>> "name": "Count",
>> "value": "436"
>> }
>> ]
>> }
>> ]
>> }
>>
>> The difference seems to be that the “type” is “counter” in the working version and “long” in the not working version. I tried debugging this, but I couldn’t really understand why this is different.
>>
>> Any ideas what could be wrong? I guess in general things should be working, all we have to do is fix some final mini-quirks.
>>
>> Chris
>
.
Re: What's left to do for Maven migration?
Posted by Dale LaBossiere <dm...@gmail.com>.
Hmm… I’m not familiar with that code but will take a look.
Susan, any thoughts, including whether or not this sort of difference could account for the graph not getting rendered but the console page otherwise looking ok? (reminder this is pr309 and you can clone Chris’s fork to get all the changes)
— Dale
> On Sep 18, 2017, at 8:54 AM, Christofer Dutz <ch...@c-ware.de> wrote:
>
> Hi all,
>
> well I did have a more detailed look at the original (Gradle) version and the maven version. When running both examples, I could see two requests every 5 seconds. Both of them are answered by the server. The “jobs” request is answered identically. The difference seems to be in the “metrics” response:
>
> The working version of the Gradle version produces this:
>
> {
> "jobId": "JOB_0",
> "ops": [
> {
> "opId": "OP_2",
> "metrics": [
> {
> "type": "counter",
> "name": "Count",
> "value": "219"
> }
> ]
> }
> ]
> }
>
> The Maven version however produces this:
>
> {
> "jobId": "JOB_0",
> "ops": [
> {
> "opId": "OP_2",
> "metrics": [
> {
> "type": "long",
> "name": "Count",
> "value": "436"
> }
> ]
> }
> ]
> }
>
> The difference seems to be that the “type” is “counter” in the working version and “long” in the not working version. I tried debugging this, but I couldn’t really understand why this is different.
>
> Any ideas what could be wrong? I guess in general things should be working, all we have to do is fix some final mini-quirks.
>
> Chris
Re: What's left to do for Maven migration?
Posted by Christofer Dutz <ch...@c-ware.de>.
Hi all,
well I did have a more detailed look at the original (Gradle) version and the maven version. When running both examples, I could see two requests every 5 seconds. Both of them are answered by the server. The “jobs” request is answered identically. The difference seems to be in the “metrics” response:
The working version of the Gradle version produces this:
{
"jobId": "JOB_0",
"ops": [
{
"opId": "OP_2",
"metrics": [
{
"type": "counter",
"name": "Count",
"value": "219"
}
]
}
]
}
The Maven version however produces this:
{
"jobId": "JOB_0",
"ops": [
{
"opId": "OP_2",
"metrics": [
{
"type": "long",
"name": "Count",
"value": "436"
}
]
}
]
}
The difference seems to be that the “type” is “counter” in the working version and “long” in the not working version. I tried debugging this, but I couldn’t really understand why this is different.
Any ideas what could be wrong? I guess in general things should be working, all we have to do is fix some final mini-quirks.
Chris
Am 18.09.17, 11:02 schrieb "Christofer Dutz" <ch...@c-ware.de>:
Hi Dale,
last weekend I addressed your open points regarding the source releases.
One thing I should mention is that the editor files shouldn’t be a problem as when using the maven-release-plugin the tagged version of the sources are checked out and built. So there shouldn’t be any leftover files. This should only be a problem when manually activating the “apache-release” profile.
I also I filled one of the two TODOs in the DEVELOPMENT.md file.
Added inline comments in the confluence page … will have a look at the samples next.
Chris
Am 30.08.17, 18:44 schrieb "Dale LaBossiere" <dm...@gmail.com>:
Chris,
Simply stated: awesome progress while I’ve been out. Nice work!!!
I’m now starting to review all of the changes to bring myself up to date.
I completely agree with the desire to merge asap… with emphasis on “as possible” / “as practical” :-)
Hopefully I’ll reach your conclusion that now is the time.
— Dale
> On Aug 28, 2017, at 4:58 AM, Christofer Dutz <ch...@c-ware.de> wrote:
>
> Hi All,
>
> Ok so I double checked the confluence Maven vs Gradle page and think I addressed the remaining open issues.
>
> The Site generation now works fine from my point of view.
>
> So, what’s left to do? Do we need any final changes?
>
> I think it would be good to do the merge back soon as I do think that it does make it more difficult for others to contribute and/or makes it more difficult for us to maintain the branch if others started contributing more.
>
> Chris
>