[jira] [Updated] (STRATOS-1531) Auto commit not working in PCA

2015-09-02 Thread Akila (JIRA)
[ https://issues.apache.org/jira/browse/STRATOS-1531?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Akila updated STRATOS-1531: --- Fix Version/s: 4.1.2 > Auto commit not working in

[jira] [Resolved] (STRATOS-1531) Auto commit not working in PCA

2015-08-28 Thread Akila (JIRA)
bbfa6c5bb47ed2c644fe3be5d381682b7a683d5f > Auto commit not working in PCA > -- > > Key: STRATOS-1531 > URL: https://issues.apache.org/jira/browse/STRATOS-1531 > Project: Stratos > Issue Type: Bug

Re: Auto Commit not working in PCA

2015-08-28 Thread Pubudu Gunatilaka
Hi Chamila, I would rather like to have a common code base for git other than having OS dependent git plugins as it increases the code that we should maintain. At the current implementation there can be edge cases that we haven't come across. Will try to figure out those scenarios and try to find

Re: Auto Commit not working in PCA

2015-08-27 Thread Chamila De Alwis
Hi Pubudu, Great work on fixing this issue. At the time of implementing most of Git related functionalities in the PCA one of the main concerns was to use a Python Git library which doesn't depend on the platform dependent Git binary. The only candidate with proper requirements fulfilled was the D

Re: Auto Commit not working in PCA

2015-08-27 Thread Isuru Haththotuwa
Great work Pubudu and Akila! On Thu, Aug 27, 2015 at 2:10 PM, Akila Ravihansa Perera wrote: > Hi Pubudu, > > Thanks for the update and sending the PR. I've already fixed this on > stratos-4.1.x branch. It took me a while to push it because I was working > on writing an integration test to cover

Re: Auto Commit not working in PCA

2015-08-27 Thread Akila Ravihansa Perera
Hi Pubudu, Thanks for the update and sending the PR. I've already fixed this on stratos-4.1.x branch. It took me a while to push it because I was working on writing an integration test to cover this scenario. While writing the integration test I noticed that PCA is throwing many exceptions. Some

Re: Auto Commit not working in PCA

2015-08-27 Thread Pubudu Gunatilaka
Hi Devs, Above mentioned error can be seen at the agent log when PCA tries to commit files to the git. In the current implementation we keep track of the modified files as well as untracked files. But we don't use those files. Error occurred when trying to get the file list using the split command

[jira] [Created] (STRATOS-1531) Auto commit not working in PCA

2015-08-26 Thread Pubudu Chinthaka Gunatilaka (JIRA)
Pubudu Chinthaka Gunatilaka created STRATOS-1531: Summary: Auto commit not working in PCA Key: STRATOS-1531 URL: https://issues.apache.org/jira/browse/STRATOS-1531 Project: Stratos

Re: Auto Commit not working in PCA

2015-08-25 Thread Imesh Gunaratne
We need more information on this, the complete agent log, the folder path given, was the above folder empty at the beginning, why its detecting un-staged files, etc. IMO we might not need to check un-staged files rather we could stage everything, commit and push. On Tue, Aug 25, 2015 at 9:57 PM,

Re: Auto Commit not working in PCA

2015-08-25 Thread Gayan Gunarathne
Seems like issue is occur when we retrieving the untrcked_files based on the git unstaged files.Shall we check the "git status" output when this error occurred? Based on the git status output we can check the following line untracked_files = output.split("Untracked files:")[1].split("\n\n")[1]. sp

Re: Auto Commit not working in PCA

2015-08-25 Thread Akila Ravihansa Perera
Hi, Looks like this is a blocker for 4.1.2 release, if the issue is actually in the PCA. @Chamila: Would you be able to help with troubleshooting? Thanks. On Tue, Aug 25, 2015 at 8:24 PM, Chamila De Alwis wrote: > Hi Pubudu, > > It looks like "git status" command returns an unusual output for

Re: Auto Commit not working in PCA

2015-08-25 Thread Chamila De Alwis
Hi Pubudu, It looks like "git status" command returns an unusual output for the particular repository. Could you check if the same command is running without an issue standalone? (On a mobile) Regards, Chamila de Alwis Committer and PMC Member - Apache Stratos Software Engineer - WSO2 http://code

Auto Commit not working in PCA

2015-08-25 Thread Pubudu Gunatilaka
Hi Devs, I am getting following error when agent tries to commit files to the given git repo. [2015-08-25 12:48:23,240] DEBUG {agentgithandler.py:execute_task} - Running commit job Exception in thread Thread-46: Traceback (most recent call last): File "/usr/lib/python2.7/threading.py", line 552