Quantcast

odd env side effects

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

odd env side effects

Ann Campbell
I'm running a script to iterate through the weeks and days since 15 Jan, check out the code for each date and analyse it using the sonar.projectDate property.

I've just noticed something interesting / odd in the job log. Grepped for it to verify. Here's a concise version:

09:35:41.312 INFO        org.sonar.INFO - Execute PMD 4.3...
09:35:41.454 INFO  p.p.PmdConfiguration - PMD configuration: /home/gcampb2/sonarItrWorkDir/.sonar/pmd.xml
09:36:46.830 INFO        org.sonar.INFO - Execute PMD 4.3 done: 65518 ms
09:58:51.245 INFO        org.sonar.INFO - Execute PMD 4.3...
09:58:51.392 INFO  p.p.PmdConfiguration - PMD configuration: /home/gcampb2/sonarItrWorkDir/sonarItrWorkDir/.sonar/pmd.xml
09:59:56.648 INFO        org.sonar.INFO - Execute PMD 4.3 done: 65403 ms
10:21:49.158 INFO        org.sonar.INFO - Execute PMD 4.3...
10:21:49.318 INFO  p.p.PmdConfiguration - PMD configuration: /home/gcampb2/sonarItrWorkDir/sonarItrWorkDir/sonarItrWorkDir/.sonar/pmd.xml
10:22:55.257 INFO        org.sonar.INFO - Execute PMD 4.3 done: 66098 ms
10:44:53.849 INFO        org.sonar.INFO - Execute PMD 4.3...
10:44:54.019 INFO  p.p.PmdConfiguration - PMD configuration: /home/gcampb2/sonarItrWorkDir/sonarItrWorkDir/sonarItrWorkDir/sonarItrWorkDir/.sonar/pmd.xml

It looks like analysis is concatenating to an env var each time through? It's probably a fair assumption that this is a safe thing to do 99% of the time, but I wonder if I'll experience side effects...? The numbers are quite what I expected to see, but that could be due to any number of things.

3.1RC3 (it's a test machine. I'm lazy.)
Linux version 2.6.32-220.17.1.el6.centos.plus.x86_64


Thx,
Ann

--
G. Ann Campbell
Sr. Systems Engineer, IS Production Systems - Shop Floor Systems
Shaw Industries Inc,
201 S. Hamilton St.
Dalton Ga 30720


**********************************************************
Privileged and/or confidential information may be contained in this message. If you are not the addressee indicated in this message (or are not responsible for delivery of this message to that person) , you may not copy or deliver this message to anyone. In such case, you should destroy this message and notify the sender by reply e-mail.
If you or your employer do not consent to Internet e-mail for messages of this kind, please advise the sender.
Shaw Industries does not provide or endorse any opinions, conclusions or other information in this message that do not relate to the official business of the company  or its subsidiaries.
**********************************************************

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: odd env side effects

Ann Campbell
Left out that I'm using the Sonar Java Runner. I've done very much the same thing with a Maven analysis and not noticed anything out of the ordinary


On Wed, Jun 27, 2012 at 12:14 PM, Ann Campbell <[hidden email]> wrote:
I'm running a script to iterate through the weeks and days since 15 Jan, check out the code for each date and analyse it using the sonar.projectDate property.

I've just noticed something interesting / odd in the job log. Grepped for it to verify. Here's a concise version:

09:35:41.312 INFO        org.sonar.INFO - Execute PMD 4.3...
09:35:41.454 INFO  p.p.PmdConfiguration - PMD configuration: /home/gcampb2/sonarItrWorkDir/.sonar/pmd.xml
09:36:46.830 INFO        org.sonar.INFO - Execute PMD 4.3 done: 65518 ms
09:58:51.245 INFO        org.sonar.INFO - Execute PMD 4.3...
09:58:51.392 INFO  p.p.PmdConfiguration - PMD configuration: /home/gcampb2/sonarItrWorkDir/sonarItrWorkDir/.sonar/pmd.xml
09:59:56.648 INFO        org.sonar.INFO - Execute PMD 4.3 done: 65403 ms
10:21:49.158 INFO        org.sonar.INFO - Execute PMD 4.3...
10:21:49.318 INFO  p.p.PmdConfiguration - PMD configuration: /home/gcampb2/sonarItrWorkDir/sonarItrWorkDir/sonarItrWorkDir/.sonar/pmd.xml
10:22:55.257 INFO        org.sonar.INFO - Execute PMD 4.3 done: 66098 ms
10:44:53.849 INFO        org.sonar.INFO - Execute PMD 4.3...
10:44:54.019 INFO  p.p.PmdConfiguration - PMD configuration: /home/gcampb2/sonarItrWorkDir/sonarItrWorkDir/sonarItrWorkDir/sonarItrWorkDir/.sonar/pmd.xml

It looks like analysis is concatenating to an env var each time through? It's probably a fair assumption that this is a safe thing to do 99% of the time, but I wonder if I'll experience side effects...? The numbers are quite what I expected to see, but that could be due to any number of things.

3.1RC3 (it's a test machine. I'm lazy.)
Linux version 2.6.32-220.17.1.el6.centos.plus.x86_64


Thx,
Ann

--
G. Ann Campbell
Sr. Systems Engineer, IS Production Systems - Shop Floor Systems
Shaw Industries Inc,
201 S. Hamilton St.
Dalton Ga 30720




--
G. Ann Campbell
Sr. Systems Engineer, IS Production Systems - Shop Floor Systems
Shaw Industries Inc,
201 S. Hamilton St.
Dalton Ga 30720


**********************************************************
Privileged and/or confidential information may be contained in this message. If you are not the addressee indicated in this message (or are not responsible for delivery of this message to that person) , you may not copy or deliver this message to anyone. In such case, you should destroy this message and notify the sender by reply e-mail.
If you or your employer do not consent to Internet e-mail for messages of this kind, please advise the sender.
Shaw Industries does not provide or endorse any opinions, conclusions or other information in this message that do not relate to the official business of the company  or its subsidiaries.
**********************************************************

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: odd env side effects

Freddy Mallet
Hi Ann,

Thanks again and again for this valuable feedback ! Indeed according to what you say, you can't run any number of successive sonar analysis with the sonar-runner without deleting the .sonar directory.

This issue directly relates to http://jira.codehaus.org/browse/SONARPLUGINS-1233 which is going to be fixed in version 1.4.

Cheers,
Freddy

-----
Sonar for Continuous Inspection



On Wed, Jun 27, 2012 at 6:22 PM, Ann Campbell <[hidden email]> wrote:
Left out that I'm using the Sonar Java Runner. I've done very much the same thing with a Maven analysis and not noticed anything out of the ordinary


On Wed, Jun 27, 2012 at 12:14 PM, Ann Campbell <[hidden email]> wrote:
I'm running a script to iterate through the weeks and days since 15 Jan, check out the code for each date and analyse it using the sonar.projectDate property.

I've just noticed something interesting / odd in the job log. Grepped for it to verify. Here's a concise version:

09:35:41.312 INFO        org.sonar.INFO - Execute PMD 4.3...
09:35:41.454 INFO  p.p.PmdConfiguration - PMD configuration: /home/gcampb2/sonarItrWorkDir/.sonar/pmd.xml
09:36:46.830 INFO        org.sonar.INFO - Execute PMD 4.3 done: 65518 ms
09:58:51.245 INFO        org.sonar.INFO - Execute PMD 4.3...
09:58:51.392 INFO  p.p.PmdConfiguration - PMD configuration: /home/gcampb2/sonarItrWorkDir/sonarItrWorkDir/.sonar/pmd.xml
09:59:56.648 INFO        org.sonar.INFO - Execute PMD 4.3 done: 65403 ms
10:21:49.158 INFO        org.sonar.INFO - Execute PMD 4.3...
10:21:49.318 INFO  p.p.PmdConfiguration - PMD configuration: /home/gcampb2/sonarItrWorkDir/sonarItrWorkDir/sonarItrWorkDir/.sonar/pmd.xml
10:22:55.257 INFO        org.sonar.INFO - Execute PMD 4.3 done: 66098 ms
10:44:53.849 INFO        org.sonar.INFO - Execute PMD 4.3...
10:44:54.019 INFO  p.p.PmdConfiguration - PMD configuration: /home/gcampb2/sonarItrWorkDir/sonarItrWorkDir/sonarItrWorkDir/sonarItrWorkDir/.sonar/pmd.xml

It looks like analysis is concatenating to an env var each time through? It's probably a fair assumption that this is a safe thing to do 99% of the time, but I wonder if I'll experience side effects...? The numbers are quite what I expected to see, but that could be due to any number of things.

3.1RC3 (it's a test machine. I'm lazy.)
Linux version 2.6.32-220.17.1.el6.centos.plus.x86_64


Thx,
Ann

--
G. Ann Campbell
Sr. Systems Engineer, IS Production Systems - Shop Floor Systems
Shaw Industries Inc,
201 S. Hamilton St.
Dalton Ga 30720




--
G. Ann Campbell
Sr. Systems Engineer, IS Production Systems - Shop Floor Systems
Shaw Industries Inc,
201 S. Hamilton St.
Dalton Ga 30720


**********************************************************
Privileged and/or confidential information may be contained in this message. If you are not the addressee indicated in this message (or are not responsible for delivery of this message to that person) , you may not copy or deliver this message to anyone. In such case, you should destroy this message and notify the sender by reply e-mail.
If you or your employer do not consent to Internet e-mail for messages of this kind, please advise the sender.
Shaw Industries does not provide or endorse any opinions, conclusions or other information in this message that do not relate to the official business of the company  or its subsidiaries.
**********************************************************


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: odd env side effects

Ann Campbell
Good to know! Thanks Freddy! :-)

On Wed, Jun 27, 2012 at 1:19 PM, Freddy Mallet <[hidden email]> wrote:
Hi Ann,

Thanks again and again for this valuable feedback ! Indeed according to what you say, you can't run any number of successive sonar analysis with the sonar-runner without deleting the .sonar directory.

This issue directly relates to http://jira.codehaus.org/browse/SONARPLUGINS-1233 which is going to be fixed in version 1.4.

Cheers,
Freddy

-----
Sonar for Continuous Inspection



On Wed, Jun 27, 2012 at 6:22 PM, Ann Campbell <[hidden email]> wrote:
Left out that I'm using the Sonar Java Runner. I've done very much the same thing with a Maven analysis and not noticed anything out of the ordinary


On Wed, Jun 27, 2012 at 12:14 PM, Ann Campbell <[hidden email]> wrote:
I'm running a script to iterate through the weeks and days since 15 Jan, check out the code for each date and analyse it using the sonar.projectDate property.

I've just noticed something interesting / odd in the job log. Grepped for it to verify. Here's a concise version:

09:35:41.312 INFO        org.sonar.INFO - Execute PMD 4.3...
09:35:41.454 INFO  p.p.PmdConfiguration - PMD configuration: /home/gcampb2/sonarItrWorkDir/.sonar/pmd.xml
09:36:46.830 INFO        org.sonar.INFO - Execute PMD 4.3 done: 65518 ms
09:58:51.245 INFO        org.sonar.INFO - Execute PMD 4.3...
09:58:51.392 INFO  p.p.PmdConfiguration - PMD configuration: /home/gcampb2/sonarItrWorkDir/sonarItrWorkDir/.sonar/pmd.xml
09:59:56.648 INFO        org.sonar.INFO - Execute PMD 4.3 done: 65403 ms
10:21:49.158 INFO        org.sonar.INFO - Execute PMD 4.3...
10:21:49.318 INFO  p.p.PmdConfiguration - PMD configuration: /home/gcampb2/sonarItrWorkDir/sonarItrWorkDir/sonarItrWorkDir/.sonar/pmd.xml
10:22:55.257 INFO        org.sonar.INFO - Execute PMD 4.3 done: 66098 ms
10:44:53.849 INFO        org.sonar.INFO - Execute PMD 4.3...
10:44:54.019 INFO  p.p.PmdConfiguration - PMD configuration: /home/gcampb2/sonarItrWorkDir/sonarItrWorkDir/sonarItrWorkDir/sonarItrWorkDir/.sonar/pmd.xml

It looks like analysis is concatenating to an env var each time through? It's probably a fair assumption that this is a safe thing to do 99% of the time, but I wonder if I'll experience side effects...? The numbers are quite what I expected to see, but that could be due to any number of things.

3.1RC3 (it's a test machine. I'm lazy.)
Linux version 2.6.32-220.17.1.el6.centos.plus.x86_64


Thx,
Ann

--
G. Ann Campbell
Sr. Systems Engineer, IS Production Systems - Shop Floor Systems
Shaw Industries Inc,
201 S. Hamilton St.
Dalton Ga 30720




--
G. Ann Campbell
Sr. Systems Engineer, IS Production Systems - Shop Floor Systems
Shaw Industries Inc,
201 S. Hamilton St.
Dalton Ga 30720


**********************************************************
Privileged and/or confidential information may be contained in this message. If you are not the addressee indicated in this message (or are not responsible for delivery of this message to that person) , you may not copy or deliver this message to anyone. In such case, you should destroy this message and notify the sender by reply e-mail.
If you or your employer do not consent to Internet e-mail for messages of this kind, please advise the sender.
Shaw Industries does not provide or endorse any opinions, conclusions or other information in this message that do not relate to the official business of the company  or its subsidiaries.
**********************************************************





--
G. Ann Campbell
Sr. Systems Engineer, IS Production Systems - Shop Floor Systems
Shaw Industries Inc,
201 S. Hamilton St.
Dalton Ga 30720


**********************************************************
Privileged and/or confidential information may be contained in this message. If you are not the addressee indicated in this message (or are not responsible for delivery of this message to that person) , you may not copy or deliver this message to anyone. In such case, you should destroy this message and notify the sender by reply e-mail.
If you or your employer do not consent to Internet e-mail for messages of this kind, please advise the sender.
Shaw Industries does not provide or endorse any opinions, conclusions or other information in this message that do not relate to the official business of the company  or its subsidiaries.
**********************************************************

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: odd env side effects

Ann Campbell
I think I figured this out. It's actually a PEBKAC issue.

I cd'd into the dir to work & never backed back out. So each time through, when I did: if dir exists {delete dir} mkdir... Well, you see the issue :-[

Stupid machines! Do exactly what you tell them to. 



On Wed, Jun 27, 2012 at 1:22 PM, Ann Campbell <[hidden email]> wrote:
Good to know! Thanks Freddy! :-)


On Wed, Jun 27, 2012 at 1:19 PM, Freddy Mallet <[hidden email]> wrote:
Hi Ann,

Thanks again and again for this valuable feedback ! Indeed according to what you say, you can't run any number of successive sonar analysis with the sonar-runner without deleting the .sonar directory.

This issue directly relates to http://jira.codehaus.org/browse/SONARPLUGINS-1233 which is going to be fixed in version 1.4.

Cheers,
Freddy

-----
Sonar for Continuous Inspection



On Wed, Jun 27, 2012 at 6:22 PM, Ann Campbell <[hidden email]> wrote:
Left out that I'm using the Sonar Java Runner. I've done very much the same thing with a Maven analysis and not noticed anything out of the ordinary


On Wed, Jun 27, 2012 at 12:14 PM, Ann Campbell <[hidden email]> wrote:
I'm running a script to iterate through the weeks and days since 15 Jan, check out the code for each date and analyse it using the sonar.projectDate property.

I've just noticed something interesting / odd in the job log. Grepped for it to verify. Here's a concise version:

09:35:41.312 INFO        org.sonar.INFO - Execute PMD 4.3...
09:35:41.454 INFO  p.p.PmdConfiguration - PMD configuration: /home/gcampb2/sonarItrWorkDir/.sonar/pmd.xml
09:36:46.830 INFO        org.sonar.INFO - Execute PMD 4.3 done: 65518 ms
09:58:51.245 INFO        org.sonar.INFO - Execute PMD 4.3...
09:58:51.392 INFO  p.p.PmdConfiguration - PMD configuration: /home/gcampb2/sonarItrWorkDir/sonarItrWorkDir/.sonar/pmd.xml
09:59:56.648 INFO        org.sonar.INFO - Execute PMD 4.3 done: 65403 ms
10:21:49.158 INFO        org.sonar.INFO - Execute PMD 4.3...
10:21:49.318 INFO  p.p.PmdConfiguration - PMD configuration: /home/gcampb2/sonarItrWorkDir/sonarItrWorkDir/sonarItrWorkDir/.sonar/pmd.xml
10:22:55.257 INFO        org.sonar.INFO - Execute PMD 4.3 done: 66098 ms
10:44:53.849 INFO        org.sonar.INFO - Execute PMD 4.3...
10:44:54.019 INFO  p.p.PmdConfiguration - PMD configuration: /home/gcampb2/sonarItrWorkDir/sonarItrWorkDir/sonarItrWorkDir/sonarItrWorkDir/.sonar/pmd.xml

It looks like analysis is concatenating to an env var each time through? It's probably a fair assumption that this is a safe thing to do 99% of the time, but I wonder if I'll experience side effects...? The numbers are quite what I expected to see, but that could be due to any number of things.

3.1RC3 (it's a test machine. I'm lazy.)
Linux version 2.6.32-220.17.1.el6.centos.plus.x86_64


Thx,
Ann

--
G. Ann Campbell
Sr. Systems Engineer, IS Production Systems - Shop Floor Systems
Shaw Industries Inc,
201 S. Hamilton St.
Dalton Ga 30720




--
G. Ann Campbell
Sr. Systems Engineer, IS Production Systems - Shop Floor Systems
Shaw Industries Inc,
201 S. Hamilton St.
Dalton Ga 30720


**********************************************************
Privileged and/or confidential information may be contained in this message. If you are not the addressee indicated in this message (or are not responsible for delivery of this message to that person) , you may not copy or deliver this message to anyone. In such case, you should destroy this message and notify the sender by reply e-mail.
If you or your employer do not consent to Internet e-mail for messages of this kind, please advise the sender.
Shaw Industries does not provide or endorse any opinions, conclusions or other information in this message that do not relate to the official business of the company  or its subsidiaries.
**********************************************************





--
G. Ann Campbell
Sr. Systems Engineer, IS Production Systems - Shop Floor Systems
Shaw Industries Inc,
201 S. Hamilton St.
Dalton Ga 30720




--
G. Ann Campbell
Sr. Systems Engineer, IS Production Systems - Shop Floor Systems
Shaw Industries Inc,
201 S. Hamilton St.
Dalton Ga 30720


**********************************************************
Privileged and/or confidential information may be contained in this message. If you are not the addressee indicated in this message (or are not responsible for delivery of this message to that person) , you may not copy or deliver this message to anyone. In such case, you should destroy this message and notify the sender by reply e-mail.
If you or your employer do not consent to Internet e-mail for messages of this kind, please advise the sender.
Shaw Industries does not provide or endorse any opinions, conclusions or other information in this message that do not relate to the official business of the company  or its subsidiaries.
**********************************************************

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: odd env side effects

Freddy Mallet
Never mind Ann, in any case we'll fix http://jira.codehaus.org/browse/SONARPLUGINS-1233 in the next version of sonnar-runner :)
-----
Sonar for Continuous Inspection



On Wed, Jun 27, 2012 at 10:32 PM, Ann Campbell <[hidden email]> wrote:
I think I figured this out. It's actually a PEBKAC issue.

I cd'd into the dir to work & never backed back out. So each time through, when I did: if dir exists {delete dir} mkdir... Well, you see the issue :-[

Stupid machines! Do exactly what you tell them to. 




On Wed, Jun 27, 2012 at 1:22 PM, Ann Campbell <[hidden email]> wrote:
Good to know! Thanks Freddy! :-)


On Wed, Jun 27, 2012 at 1:19 PM, Freddy Mallet <[hidden email]> wrote:
Hi Ann,

Thanks again and again for this valuable feedback ! Indeed according to what you say, you can't run any number of successive sonar analysis with the sonar-runner without deleting the .sonar directory.

This issue directly relates to http://jira.codehaus.org/browse/SONARPLUGINS-1233 which is going to be fixed in version 1.4.

Cheers,
Freddy

-----
Sonar for Continuous Inspection



On Wed, Jun 27, 2012 at 6:22 PM, Ann Campbell <[hidden email]> wrote:
Left out that I'm using the Sonar Java Runner. I've done very much the same thing with a Maven analysis and not noticed anything out of the ordinary


On Wed, Jun 27, 2012 at 12:14 PM, Ann Campbell <[hidden email]> wrote:
I'm running a script to iterate through the weeks and days since 15 Jan, check out the code for each date and analyse it using the sonar.projectDate property.

I've just noticed something interesting / odd in the job log. Grepped for it to verify. Here's a concise version:

09:35:41.312 INFO        org.sonar.INFO - Execute PMD 4.3...
09:35:41.454 INFO  p.p.PmdConfiguration - PMD configuration: /home/gcampb2/sonarItrWorkDir/.sonar/pmd.xml
09:36:46.830 INFO        org.sonar.INFO - Execute PMD 4.3 done: 65518 ms
09:58:51.245 INFO        org.sonar.INFO - Execute PMD 4.3...
09:58:51.392 INFO  p.p.PmdConfiguration - PMD configuration: /home/gcampb2/sonarItrWorkDir/sonarItrWorkDir/.sonar/pmd.xml
09:59:56.648 INFO        org.sonar.INFO - Execute PMD 4.3 done: 65403 ms
10:21:49.158 INFO        org.sonar.INFO - Execute PMD 4.3...
10:21:49.318 INFO  p.p.PmdConfiguration - PMD configuration: /home/gcampb2/sonarItrWorkDir/sonarItrWorkDir/sonarItrWorkDir/.sonar/pmd.xml
10:22:55.257 INFO        org.sonar.INFO - Execute PMD 4.3 done: 66098 ms
10:44:53.849 INFO        org.sonar.INFO - Execute PMD 4.3...
10:44:54.019 INFO  p.p.PmdConfiguration - PMD configuration: /home/gcampb2/sonarItrWorkDir/sonarItrWorkDir/sonarItrWorkDir/sonarItrWorkDir/.sonar/pmd.xml

It looks like analysis is concatenating to an env var each time through? It's probably a fair assumption that this is a safe thing to do 99% of the time, but I wonder if I'll experience side effects...? The numbers are quite what I expected to see, but that could be due to any number of things.

3.1RC3 (it's a test machine. I'm lazy.)
Linux version 2.6.32-220.17.1.el6.centos.plus.x86_64


Thx,
Ann

--
G. Ann Campbell
Sr. Systems Engineer, IS Production Systems - Shop Floor Systems
Shaw Industries Inc,
201 S. Hamilton St.
Dalton Ga 30720




--
G. Ann Campbell
Sr. Systems Engineer, IS Production Systems - Shop Floor Systems
Shaw Industries Inc,
201 S. Hamilton St.
Dalton Ga 30720


**********************************************************
Privileged and/or confidential information may be contained in this message. If you are not the addressee indicated in this message (or are not responsible for delivery of this message to that person) , you may not copy or deliver this message to anyone. In such case, you should destroy this message and notify the sender by reply e-mail.
If you or your employer do not consent to Internet e-mail for messages of this kind, please advise the sender.
Shaw Industries does not provide or endorse any opinions, conclusions or other information in this message that do not relate to the official business of the company  or its subsidiaries.
**********************************************************





--
G. Ann Campbell
Sr. Systems Engineer, IS Production Systems - Shop Floor Systems
Shaw Industries Inc,
201 S. Hamilton St.
Dalton Ga 30720




--
G. Ann Campbell
Sr. Systems Engineer, IS Production Systems - Shop Floor Systems
Shaw Industries Inc,
201 S. Hamilton St.
Dalton Ga 30720


**********************************************************
Privileged and/or confidential information may be contained in this message. If you are not the addressee indicated in this message (or are not responsible for delivery of this message to that person) , you may not copy or deliver this message to anyone. In such case, you should destroy this message and notify the sender by reply e-mail.
If you or your employer do not consent to Internet e-mail for messages of this kind, please advise the sender.
Shaw Industries does not provide or endorse any opinions, conclusions or other information in this message that do not relate to the official business of the company  or its subsidiaries.
**********************************************************


Loading...