You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ivy-commits@incubator.apache.org by "Gilles Scokart (JIRA)" <ji...@apache.org> on 2007/05/02 12:12:15 UTC
[jira] Created: (IVY-493) buildlist broken
buildlist broken
----------------
Key: IVY-493
URL: https://issues.apache.org/jira/browse/IVY-493
Project: Ivy
Issue Type: Bug
Components: Core
Affects Versions: 2.0.0-alpha-1
Reporter: Gilles Scokart
Priority: Blocker
Fix For: 2.0.0-alpha-2
buildlist doesn't sort the modules anymore in 2.0-alpha1 when local ivy files doesn't contains a revision.
I traced back the problem to the ModuleDescriptorSorter that was asuming that the revision is null in such a case, while it is now 'working@hostname'.
I will post the patch soon.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (IVY-493) buildlist broken
Posted by "Xavier Hanin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IVY-493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12494283 ]
Xavier Hanin commented on IVY-493:
----------------------------------
Indeed, this is a very special case, but I agree with you.
And there's now good chance [you won't have to provide the fix as a patch|http://www.nabble.com/-VOTE--add-Gilles-Scokart-as-a-committer-to-Ivy-tf3709461.html] this time :-)
> buildlist broken
> ----------------
>
> Key: IVY-493
> URL: https://issues.apache.org/jira/browse/IVY-493
> Project: Ivy
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.0.0-alpha-1
> Reporter: Gilles Scokart
> Priority: Critical
> Fix For: 2.0.0-alpha-2
>
> Attachments: IVY-493.patch
>
>
> buildlist doesn't sort the modules anymore in 2.0-alpha1 when local ivy files doesn't contains a revision.
> I traced back the problem to the ModuleDescriptorSorter that was asuming that the revision is null in such a case, while it is now 'working@hostname'.
> I will post the patch soon.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (IVY-493) buildlist broken
Posted by "Gilles Scokart (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IVY-493?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gilles Scokart updated IVY-493:
-------------------------------
Attachment: IVY-493.patch
Here is already a patch that fix the regression.
I investigated a little bit further.
In 1.4, the buildlist was not using the revision number of the dependency because the revision of the modules loaded were null when the source ivy.xml doesn't contains a version number. (revision 502534 in ModuleRevisionID).
In 2.0 the version number is taken into account, which is not a problem if the asked version is latest.integration or latest.release but is a problem if it is anything else. (In my case it was ${depX.revision} because I manage the dependency version number from my ant script).
The way I fix it was to not compare version numbers when the version number of the lodaed ivy.xml file is working@hostname.
I also added some debug traces (the traces where not really usefull) and updated the unit-test in order to test different cases that were not tested before (loaded ivy.xml has no revision or a different revision than the asked dependencies and asked revision being latest.integration).
> buildlist broken
> ----------------
>
> Key: IVY-493
> URL: https://issues.apache.org/jira/browse/IVY-493
> Project: Ivy
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.0.0-alpha-1
> Reporter: Gilles Scokart
> Priority: Blocker
> Fix For: 2.0.0-alpha-2
>
> Attachments: IVY-493.patch
>
>
> buildlist doesn't sort the modules anymore in 2.0-alpha1 when local ivy files doesn't contains a revision.
> I traced back the problem to the ModuleDescriptorSorter that was asuming that the revision is null in such a case, while it is now 'working@hostname'.
> I will post the patch soon.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (IVY-493) buildlist broken
Posted by "Gilles Scokart (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IVY-493?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gilles Scokart resolved IVY-493.
--------------------------------
Resolution: Fixed
I fixed the regression, and I also made the update so that a loop of circular dependency are regrouped and apears after any dependency of the elements of the loop. That garantee that we also follow the transitive dependencies even in case of loop.
> buildlist broken
> ----------------
>
> Key: IVY-493
> URL: https://issues.apache.org/jira/browse/IVY-493
> Project: Ivy
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.0.0-alpha-1
> Reporter: Gilles Scokart
> Assignee: Gilles Scokart
> Priority: Critical
> Fix For: 2.0.0-alpha-2
>
> Attachments: IVY-493.patch
>
>
> buildlist doesn't sort the modules anymore in 2.0-alpha1 when local ivy files doesn't contains a revision.
> I traced back the problem to the ModuleDescriptorSorter that was asuming that the revision is null in such a case, while it is now 'working@hostname'.
> I will post the patch soon.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (IVY-493) buildlist broken
Posted by "Gilles Scokart (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IVY-493?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Gilles Scokart updated IVY-493:
-------------------------------
Priority: Critical (was: Blocker)
I reduced the level to critical as it apears only when the dependencies are something else than the latest.integration or the same version number than the revision present in the ivy.xml source.
> buildlist broken
> ----------------
>
> Key: IVY-493
> URL: https://issues.apache.org/jira/browse/IVY-493
> Project: Ivy
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.0.0-alpha-1
> Reporter: Gilles Scokart
> Priority: Critical
> Fix For: 2.0.0-alpha-2
>
> Attachments: IVY-493.patch
>
>
> buildlist doesn't sort the modules anymore in 2.0-alpha1 when local ivy files doesn't contains a revision.
> I traced back the problem to the ModuleDescriptorSorter that was asuming that the revision is null in such a case, while it is now 'working@hostname'.
> I will post the patch soon.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (IVY-493) buildlist broken
Posted by "Xavier Hanin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IVY-493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12493111 ]
Xavier Hanin commented on IVY-493:
----------------------------------
Thanks for your contribution, Gilles!
Some little things about your patch:
- AFAIK, in english there is no space before a column (e.g. "Sort done for : " should better be "Sort done for: ")
- I think your modifications on the test case are a bit too much. Indeed I think we loose some level of testing on the circular dependency tests for instance. Maybe what can be done is keep tests as they were and add one test method (e.g. testSortWithVersionConstraint) to test this issue case.
WDYT?
> buildlist broken
> ----------------
>
> Key: IVY-493
> URL: https://issues.apache.org/jira/browse/IVY-493
> Project: Ivy
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.0.0-alpha-1
> Reporter: Gilles Scokart
> Priority: Critical
> Fix For: 2.0.0-alpha-2
>
> Attachments: IVY-493.patch
>
>
> buildlist doesn't sort the modules anymore in 2.0-alpha1 when local ivy files doesn't contains a revision.
> I traced back the problem to the ModuleDescriptorSorter that was asuming that the revision is null in such a case, while it is now 'working@hostname'.
> I will post the patch soon.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (IVY-493) buildlist broken
Posted by "Gilles Scokart (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IVY-493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12493120 ]
Gilles Scokart commented on IVY-493:
------------------------------------
No problem for the column. It seems that your english is better than you prentend ;-)
For the refactoring of the test, it is excact that the order is not tested anymore. I removed the previous check because it was too brillant (it checked a very precise order, which we are not sure to have). And it is true that it now accept some permutations that are invalid.
The exact test should check that the dependencies present in circular loop start at any place, but follow the right order. I will see how to fix that.
> buildlist broken
> ----------------
>
> Key: IVY-493
> URL: https://issues.apache.org/jira/browse/IVY-493
> Project: Ivy
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.0.0-alpha-1
> Reporter: Gilles Scokart
> Priority: Critical
> Fix For: 2.0.0-alpha-2
>
> Attachments: IVY-493.patch
>
>
> buildlist doesn't sort the modules anymore in 2.0-alpha1 when local ivy files doesn't contains a revision.
> I traced back the problem to the ModuleDescriptorSorter that was asuming that the revision is null in such a case, while it is now 'working@hostname'.
> I will post the patch soon.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (IVY-493) buildlist broken
Posted by "Gilles Scokart (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IVY-493?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12494131 ]
Gilles Scokart commented on IVY-493:
------------------------------------
While working on the test, I also found an unexpected behavior when we have a loop.
When we have an (indirect) dependencies from a module A to a module B, and the path from A to B is not included in a cycle, I expected to have B before A.
This is currently not the case if A is included in a cycle (not including B).
For example (inspired from testCircularDependency2):
M2 depends on M3
M2 depends on M1
M3 depends on M2
M4 depends on M3
can produce the sequence : M3, M1, M2, M4 with some particular initial order
But there is a path M3->M2->M1 not included in any circular loop. So, I think this result is not valid. All ordered sequence should have M1 before M3.
If you want, I can include a fix for that in my patch as well.
WDYT?
> buildlist broken
> ----------------
>
> Key: IVY-493
> URL: https://issues.apache.org/jira/browse/IVY-493
> Project: Ivy
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.0.0-alpha-1
> Reporter: Gilles Scokart
> Priority: Critical
> Fix For: 2.0.0-alpha-2
>
> Attachments: IVY-493.patch
>
>
> buildlist doesn't sort the modules anymore in 2.0-alpha1 when local ivy files doesn't contains a revision.
> I traced back the problem to the ModuleDescriptorSorter that was asuming that the revision is null in such a case, while it is now 'working@hostname'.
> I will post the patch soon.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (IVY-493) buildlist broken
Posted by "Xavier Hanin (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/IVY-493?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Xavier Hanin reassigned IVY-493:
--------------------------------
Assignee: Gilles Scokart
> buildlist broken
> ----------------
>
> Key: IVY-493
> URL: https://issues.apache.org/jira/browse/IVY-493
> Project: Ivy
> Issue Type: Bug
> Components: Core
> Affects Versions: 2.0.0-alpha-1
> Reporter: Gilles Scokart
> Assigned To: Gilles Scokart
> Priority: Critical
> Fix For: 2.0.0-alpha-2
>
> Attachments: IVY-493.patch
>
>
> buildlist doesn't sort the modules anymore in 2.0-alpha1 when local ivy files doesn't contains a revision.
> I traced back the problem to the ModuleDescriptorSorter that was asuming that the revision is null in such a case, while it is now 'working@hostname'.
> I will post the patch soon.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.