You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@sling.apache.org by Carsten Ziegeler <cz...@apache.org> on 2015/01/09 12:22:06 UTC

[VOTE] Release Apache Sling i18n 2.3.0

Hi,

we solved two issues
https://issues.apache.org/jira/browse/SLING/fixforversion/12327960

Staging repository:
https://repository.apache.org/content/repositories/orgapachesling-1163/

You can use this UNIX script to download the release and verify the
signatures:
http://svn.apache.org/repos/asf/sling/trunk/check_staged_release.sh

Usage:
sh check_staged_release.sh 1163 /tmp/sling-staging

Please vote to approve this release:

  [ ] +1 Approve the release
  [ ]  0 Don't care
  [ ] -1 Don't release, because ...

This majority vote is open for at least 72 hours.

Regards
Carsten
-- 
Carsten Ziegeler
Adobe Research Switzerland
cziegeler@apache.org

Re: [VOTE] Release Apache Sling i18n 2.3.0

Posted by Oliver Lietz <ap...@oliverlietz.de>.
On Monday 12 January 2015 12:34:02 Carsten Ziegeler wrote:
> Does latest trunk also fail for you?

Yes, fails.

O.

> Carsten
> 
> Am 11.01.15 um 19:31 schrieb Oliver Lietz:
> > On Friday 09 January 2015 12:22:06 Carsten Ziegeler wrote:
> >> Hi,
> >> 
> >> we solved two issues
> >> https://issues.apache.org/jira/browse/SLING/fixforversion/12327960
> > 
> > building from tag fails:
> > 
> > Tests run: 7, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 3.313 sec
> > <<< FAILURE! - in org.apache.sling.i18n.impl.JcrResourceBundleTest
> > test_search_path(org.apache.sling.i18n.impl.JcrResourceBundleTest)  Time
> > elapsed: 0.098 sec  <<< FAILURE! junit.framework.ComparisonFailure:
> > expected:<[OTHER]> but was:<[K�che]>> 
> > 	at junit.framework.Assert.assertEquals(Assert.java:100)
> > 	at junit.framework.Assert.assertEquals(Assert.java:107)
> > 	at junit.framework.TestCase.assertEquals(TestCase.java:269)
> > 	at
> > 	org.apache.sling.i18n.impl.JcrResourceBundleTest.test_search_path(JcrRes
> > 	ourceBundleTest.java:539)> 
> > Running org.apache.sling.i18n.impl.RootResourceBundleTest
> > Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in
> > org.apache.sling.i18n.impl.RootResourceBundleTest
> > 
> > Results :
> > 
> > Failed tests:
> >   JcrResourceBundleTest.test_search_path:539 expected:<[OTHER]> but
> >   was:<[K�che]>> 
> > Tests run: 16, Failures: 1, Errors: 0, Skipped: 0
> > 
> > [INFO]
> > ------------------------------------------------------------------------
> > [INFO] BUILD FAILURE
> > [INFO]
> > ------------------------------------------------------------------------
> > 
> > 2.2.6 is the last version which builds without this failure.
> > 
> > O.



Re: [VOTE] Release Apache Sling i18n 2.3.0

Posted by Carsten Ziegeler <cz...@apache.org>.
Does latest trunk also fail for you?

Carsten

Am 11.01.15 um 19:31 schrieb Oliver Lietz:
> On Friday 09 January 2015 12:22:06 Carsten Ziegeler wrote:
>> Hi,
>>
>> we solved two issues
>> https://issues.apache.org/jira/browse/SLING/fixforversion/12327960
> 
> building from tag fails:
> 
> Tests run: 7, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 3.313 sec <<< FAILURE! - in org.apache.sling.i18n.impl.JcrResourceBundleTest
> test_search_path(org.apache.sling.i18n.impl.JcrResourceBundleTest)  Time elapsed: 0.098 sec  <<< FAILURE!
> junit.framework.ComparisonFailure: expected:<[OTHER]> but was:<[K�che]>
> 	at junit.framework.Assert.assertEquals(Assert.java:100)
> 	at junit.framework.Assert.assertEquals(Assert.java:107)
> 	at junit.framework.TestCase.assertEquals(TestCase.java:269)
> 	at org.apache.sling.i18n.impl.JcrResourceBundleTest.test_search_path(JcrResourceBundleTest.java:539)
> 
> Running org.apache.sling.i18n.impl.RootResourceBundleTest
> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in org.apache.sling.i18n.impl.RootResourceBundleTest
> 
> Results :
> 
> Failed tests: 
>   JcrResourceBundleTest.test_search_path:539 expected:<[OTHER]> but was:<[K�che]>
> 
> Tests run: 16, Failures: 1, Errors: 0, Skipped: 0
> 
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> 
> 2.2.6 is the last version which builds without this failure.
> 
> O.
> 
> 


-- 
Carsten Ziegeler
Adobe Research Switzerland
cziegeler@apache.org

Re: [VOTE] Release Apache Sling i18n 2.3.0

Posted by Carsten Ziegeler <cz...@apache.org>.
Am 12.01.15 um 16:12 schrieb Bertrand Delacretaz:
> On Mon, Jan 12, 2015 at 4:09 PM, Carsten Ziegeler <cz...@apache.org> wrote:
>> ...I think the test is wrong, the impl shouldn't be required to use an
>> ordered set (unless I'm overlooking something)....
> 
> I haven't looked at all the details but it seemed like the ordering is
> used to give precedence to messages under /apps over those under
> /libs. The wrong ordering caused the test to fail.
> 
So how do you know that apps is in the set before libs? What if have
resource resolver configured with /zoo which comes before /apps in the
search path?

Right now a search is done over the whole repository and the result is
put into a set, so if we need a different ordering, than we need to sort
the result accordingly.

Carsten
-- 
Carsten Ziegeler
Adobe Research Switzerland
cziegeler@apache.org

Re: [VOTE] Release Apache Sling i18n 2.3.0

Posted by Bertrand Delacretaz <bd...@apache.org>.
On Mon, Jan 12, 2015 at 4:09 PM, Carsten Ziegeler <cz...@apache.org> wrote:
> ...I think the test is wrong, the impl shouldn't be required to use an
> ordered set (unless I'm overlooking something)....

I haven't looked at all the details but it seemed like the ordering is
used to give precedence to messages under /apps over those under
/libs. The wrong ordering caused the test to fail.

-Bertrand

Re: [VOTE] Release Apache Sling i18n 2.3.0

Posted by Carsten Ziegeler <cz...@apache.org>.
Am 12.01.15 um 16:03 schrieb Bertrand Delacretaz:
> On Mon, Jan 12, 2015 at 3:34 PM, Robert Munteanu <ro...@apache.org> wrote:
>> ...Without looking at the test, I think it's relying on the ordering
>> maintained by a HashSet, which has changed with Java 8, and is of
>> course nothing to rely on...
> 
> It's something like that but in the actual code, not in the test -
> looking at it under SLING-4299
> 

I think the test is wrong, the impl shouldn't be required to use an
ordered set (unless I'm overlooking something).

Carsten

-- 
Carsten Ziegeler
Adobe Research Switzerland
cziegeler@apache.org

Re: [VOTE] Release Apache Sling i18n 2.3.0

Posted by Bertrand Delacretaz <bd...@apache.org>.
On Mon, Jan 12, 2015 at 3:34 PM, Robert Munteanu <ro...@apache.org> wrote:
> ...Without looking at the test, I think it's relying on the ordering
> maintained by a HashSet, which has changed with Java 8, and is of
> course nothing to rely on...

It's something like that but in the actual code, not in the test -
looking at it under SLING-4299

-Bertrand

Re: [VOTE] Release Apache Sling i18n 2.3.0

Posted by Robert Munteanu <ro...@apache.org>.
On Mon, Jan 12, 2015 at 4:32 PM, Bertrand Delacretaz
<bd...@apache.org> wrote:
> On Sun, Jan 11, 2015 at 7:31 PM, Oliver Lietz <ap...@oliverlietz.de> wrote:
>> ...Failed tests:
>>   JcrResourceBundleTest.test_search_path:539 expected:<[OTHER]> but was:<[K�che]>
>
> I get the same failure with Java 8, but with Java 7 the test passes.

Without looking at the test, I think it's relying on the ordering
maintained by a HashSet, which has changed with Java 8, and is of
course nothing to rely on . I fixed a couple of such issues for the
sling-trunk-1.8 build.

Robert

Re: [VOTE] Release Apache Sling i18n 2.3.0

Posted by Bertrand Delacretaz <bd...@apache.org>.
On Sun, Jan 11, 2015 at 7:31 PM, Oliver Lietz <ap...@oliverlietz.de> wrote:
> ...Failed tests:
>   JcrResourceBundleTest.test_search_path:539 expected:<[OTHER]> but was:<[K�che]>

I get the same failure with Java 8, but with Java 7 the test passes.

-Bertrand

Re: [VOTE] Release Apache Sling i18n 2.3.0

Posted by Oliver Lietz <ap...@oliverlietz.de>.
On Friday 09 January 2015 12:22:06 Carsten Ziegeler wrote:
> Hi,
> 
> we solved two issues
> https://issues.apache.org/jira/browse/SLING/fixforversion/12327960

building from tag fails:

Tests run: 7, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 3.313 sec <<< FAILURE! - in org.apache.sling.i18n.impl.JcrResourceBundleTest
test_search_path(org.apache.sling.i18n.impl.JcrResourceBundleTest)  Time elapsed: 0.098 sec  <<< FAILURE!
junit.framework.ComparisonFailure: expected:<[OTHER]> but was:<[K�che]>
	at junit.framework.Assert.assertEquals(Assert.java:100)
	at junit.framework.Assert.assertEquals(Assert.java:107)
	at junit.framework.TestCase.assertEquals(TestCase.java:269)
	at org.apache.sling.i18n.impl.JcrResourceBundleTest.test_search_path(JcrResourceBundleTest.java:539)

Running org.apache.sling.i18n.impl.RootResourceBundleTest
Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0 sec - in org.apache.sling.i18n.impl.RootResourceBundleTest

Results :

Failed tests: 
  JcrResourceBundleTest.test_search_path:539 expected:<[OTHER]> but was:<[K�che]>

Tests run: 16, Failures: 1, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------

2.2.6 is the last version which builds without this failure.

O.


[VOTE] Release Apache Sling i18n 2.3.0

Posted by Bertrand Delacretaz <bd...@apache.org>.
Hi,

On Monday, January 12, 2015, Carsten Ziegeler <cziegeler@apache.org
<javascript:_e(%7B%7D,'cvml','cziegeler@apache.org');>> wrote:

> ...I fixed the sorting problem and reverted back to a plain set in rev
1651168
> Would be great if everyone could give this a try before I cut a new
release...

Works for me, thanks!
All tests pass with Java 1.6, 1.7 and 1.8
>
>
-Bertrand

Re: [VOTE CANCELLED] Release Apache Sling i18n 2.3.0

Posted by Carsten Ziegeler <cz...@apache.org>.
Am 12.01.15 um 17:41 schrieb Carsten Ziegeler:
> I'll cancel the vote due to the mentioned ordering problem.
> 
> However, as noted, I think the current fix is not the right solution
> 

I traced the problem back to the refactoring we did for 2.2.8, so
actually this bug is in there since some time.

I fixed the sorting problem and reverted back to a plain set in rev 1651168

Would be great if everyone could give this a try before I cut a new release.

Thanks
Carsten
-- 
Carsten Ziegeler
Adobe Research Switzerland
cziegeler@apache.org

[VOTE CANCELLED] Release Apache Sling i18n 2.3.0

Posted by Carsten Ziegeler <cz...@apache.org>.
I'll cancel the vote due to the mentioned ordering problem.

However, as noted, I think the current fix is not the right solution

Carsten


-- 
Carsten Ziegeler
Adobe Research Switzerland
cziegeler@apache.org

Re: [VOTE] Release Apache Sling i18n 2.3.0

Posted by Bertrand Delacretaz <bd...@apache.org>.
On Mon, Jan 12, 2015 at 4:13 PM, Carsten Ziegeler <cz...@apache.org> wrote:
> ...Is is really a code bug, I fail to see why?...

I haven't spent ages analyzing but nothing looks wrong in the test,
and the JcrResourceBundle did not give the correct precedence to /libs
over /apps before my revision 1651110 changes.

-Bertrand

Re: [VOTE] Release Apache Sling i18n 2.3.0

Posted by Carsten Ziegeler <cz...@apache.org>.
Am 12.01.15 um 16:07 schrieb Bertrand Delacretaz:
> Hi,
> 
> On Fri, Jan 9, 2015 at 12:22 PM, Carsten Ziegeler <cz...@apache.org> wrote:
>> ...we solved two issues
>> https://issues.apache.org/jira/browse/SLING/fixforversion/12327960
> 
> The version there says 2.2.12 but the subject line of this message
> says 2.3.0, something's not right.
>

I fixed the version info in Jira, it's 2.3.0


> I have now fixed the bug reported by Oliver, SLING-4299, which is an
> actual code bug under Java 8 - it's probably better to cut a new
> release?


Is is really a code bug, I fail to see why?

Carsten
> 
> -Bertrand
> 


-- 
Carsten Ziegeler
Adobe Research Switzerland
cziegeler@apache.org

Re: [VOTE] Release Apache Sling i18n 2.3.0

Posted by Bertrand Delacretaz <bd...@apache.org>.
Hi,

On Fri, Jan 9, 2015 at 12:22 PM, Carsten Ziegeler <cz...@apache.org> wrote:
> ...we solved two issues
> https://issues.apache.org/jira/browse/SLING/fixforversion/12327960

The version there says 2.2.12 but the subject line of this message
says 2.3.0, something's not right.

I have now fixed the bug reported by Oliver, SLING-4299, which is an
actual code bug under Java 8 - it's probably better to cut a new
release?

-Bertrand

Re: [VOTE] Release Apache Sling i18n 2.3.0

Posted by Antonio Sanso <as...@adobe.com>.
+1
(verified gpg/md5/sha1)

regards

antonio

On Jan 9, 2015, at 12:22 PM, Carsten Ziegeler <cz...@apache.org> wrote:

> Hi,
> 
> we solved two issues
> https://issues.apache.org/jira/browse/SLING/fixforversion/12327960
> 
> Staging repository:
> https://repository.apache.org/content/repositories/orgapachesling-1163/
> 
> You can use this UNIX script to download the release and verify the
> signatures:
> http://svn.apache.org/repos/asf/sling/trunk/check_staged_release.sh
> 
> Usage:
> sh check_staged_release.sh 1163 /tmp/sling-staging
> 
> Please vote to approve this release:
> 
>  [ ] +1 Approve the release
>  [ ]  0 Don't care
>  [ ] -1 Don't release, because ...
> 
> This majority vote is open for at least 72 hours.
> 
> Regards
> Carsten
> -- 
> Carsten Ziegeler
> Adobe Research Switzerland
> cziegeler@apache.org


Re: [VOTE] Release Apache Sling i18n 2.3.0

Posted by Carsten Ziegeler <cz...@apache.org>.
+1

Carsten

Am 09.01.15 um 12:22 schrieb Carsten Ziegeler:
> Hi,
> 
> we solved two issues
> https://issues.apache.org/jira/browse/SLING/fixforversion/12327960
> 
> Staging repository:
> https://repository.apache.org/content/repositories/orgapachesling-1163/
> 
> You can use this UNIX script to download the release and verify the
> signatures:
> http://svn.apache.org/repos/asf/sling/trunk/check_staged_release.sh
> 
> Usage:
> sh check_staged_release.sh 1163 /tmp/sling-staging
> 
> Please vote to approve this release:
> 
>   [ ] +1 Approve the release
>   [ ]  0 Don't care
>   [ ] -1 Don't release, because ...
> 
> This majority vote is open for at least 72 hours.
> 
> Regards
> Carsten
> 


-- 
Carsten Ziegeler
Adobe Research Switzerland
cziegeler@apache.org