pharo icon indicating copy to clipboard operation
pharo copied to clipboard

Fix + Tests for Pharo12 bug for issue #16702

Open bouraqadi opened this issue 1 year ago • 10 comments

Trait class side methods sometimes not installed on user classes

bouraqadi avatar May 31 '24 12:05 bouraqadi

Thanks so much @bouraqadi Do you know if this change should be done also in P13? Thanks again

tesonep avatar Jun 03 '24 07:06 tesonep

Hi Pableo,

The answer is yes. The fix should be applied to P13 too. I just tried on P13. Tests alone fail. With the fix, they turn green.

Thanks, Noury On Jun 3 2024, at 9:49 am, Pablo Tesone @.***> wrote:

Thanks so much @bouraqadi (https://github.com/bouraqadi) Do you know if this change should be done also in P13? Thanks again

— Reply to this email directly, view it on GitHub (https://github.com/pharo-project/pharo/pull/16736#issuecomment-2144506600), or unsubscribe (https://github.com/notifications/unsubscribe-auth/AADKJD7MB4QQ4XLQMNL4TCTZFQNZZAVCNFSM6AAAAABISWWDIOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBUGUYDMNRQGA). You are receiving this because you were mentioned.

bouraqadi avatar Jun 03 '24 13:06 bouraqadi

Great, thanks.

tesonep avatar Jun 03 '24 14:06 tesonep

The failing test are related

tesonep avatar Jun 03 '24 14:06 tesonep

Yes. The one I provide with the fix. And they pass once the fix is installed. On Jun 3 2024, at 4:05 pm, Pablo Tesone @.***> wrote:

The failing test are related — Reply to this email directly, view it on GitHub (https://github.com/pharo-project/pharo/pull/16736#issuecomment-2145292641), or unsubscribe (https://github.com/notifications/unsubscribe-auth/AADKJD3G3T56YHM6ULKSAALZFRZ23AVCNFSM6AAAAABISWWDIOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBVGI4TENRUGE). You are receiving this because you were mentioned.

bouraqadi avatar Jun 03 '24 14:06 bouraqadi

BTW, I did a PR backporting the fix and the tests to Pharo 11. https://github.com/pharo-project/pharo/pull/16737 On Jun 3 2024, at 4:10 pm, Noury Bouraqadi @.***> wrote:

Yes. The one I provide with the fix. And they pass once the fix is installed. On Jun 3 2024, at 4:05 pm, Pablo Tesone @.***> wrote:

The failing test are related — Reply to this email directly, view it on GitHub (https://github.com/pharo-project/pharo/pull/16736#issuecomment-2145292641), or unsubscribe (https://github.com/notifications/unsubscribe-auth/AADKJD3G3T56YHM6ULKSAALZFRZ23AVCNFSM6AAAAABISWWDIOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBVGI4TENRUGE). You are receiving this because you were mentioned.

bouraqadi avatar Jun 03 '24 14:06 bouraqadi

I do not understand why the test are failing. This PR contains both the tests and the fix, or not?

 Fuel.Core.Tests.FLCreateClassSerializationTest.testCreateWithTraitOnClassSide	10 sec	1
 Fuel.Core.Tests.FLCreateTraitSerializationTest.testCreateWithTraitOnClassSide	10 sec	1
 ReleaseTests.ProperlyImplementedSUnitClassesTest.testAndMakeSureSuperTearDownIsCalledAsLastMessageInTearDownMethodsOfTestCases	0.44 sec	1
 Slot.Tests.SlotTraitsTest.testClassWithClassTrait	1.8 sec	1
 Slot.Tests.SlotTraitsTest.testModifyClassTraitComposition	1.7 sec	1
 Slot.Tests.SlotTraitsTest.testRemoveClassTrait	1.6 sec	1
 Slot.Tests.SlotTraitsTest.testTraitUsersAfterClassReshape	1.5 sec	1
 Slot.Tests.SlotTraitsTest.testTraitUsersAfterMetaclassReshape	1.5 sec	1
 Traits.Tests.TraitFileOutTest.testFileOutCategory	10 sec	1
 Traits.Tests.TraitFileOutTest.testFileOutTrait	9.7 sec	1
 Traits.Tests.TraitFileOutTest.testRecompiling	10 sec	1
 Traits.Tests.TraitFileOutTest.testRemovingMethods

MarcusDenker avatar Jun 06 '24 09:06 MarcusDenker

Strange. It should pass for P12. BTW, I did another PR fro P13 https://github.com/pharo-project/pharo/pull/16758

bouraqadi avatar Jun 07 '24 08:06 bouraqadi

This PR is for Pharo12 and the test fail. Traits tests.

MarcusDenker avatar Jun 14 '24 08:06 MarcusDenker

Fixed in PR #16823

bouraqadi avatar Jun 28 '24 11:06 bouraqadi