Skip to content

Conversation

@carolahp
Copy link
Contributor

@carolahp carolahp commented Sep 30, 2025

As @akgrant43 pointed out in Issue #18598, Epicea was not logging method creation entries when duplicating classes, because the announcer was silenced in Behavior>>#recompile:from:.

My solution preserves the silence for method recompilations, but ensures that method compilations always announce their code changes.
As a result, Behavior>>compileAllFrom: now announces its changes. This is correct, since it is only used when copying methods from an existing class into a new one—the exact scenario that was failing in the original issue.

I also added a test to verify that Epicea entries are correctly created when copying methods from an existing class.

…s code changes. Only recompiling does not announce code changes.
@jecisc
Copy link
Member

jecisc commented Sep 30, 2025

About announcements do not hesitate to add a test in MethodAnnouncementsTest or other subclasses of AbstractClassDescriptionAnnouncementTest :)

I fixed multiple bugs in the announcements and I try to keep those classes to ensure there is no regression

…on to prevent announcing methods while installed in UnpackagedPackage
@carolahp
Copy link
Contributor Author

carolahp commented Sep 30, 2025

Thanks @jecisc ,
one of the exrea test (MethodAnnouncementsTest>>#testCompileMethodByDuplicatingAClassAnnounceAddition) made me realize that duplicated methods were still in UnpackagedPackage at the momment their creation is announced.

I modified the builder to set the package before the method added announcement :)

@jecisc
Copy link
Member

jecisc commented Sep 30, 2025

Thank you!
I'm glad this helped you to fix another bug :)

@tesonep
Copy link
Collaborator

tesonep commented Sep 30, 2025

Hi @carolahp, this PR once integrated will be nice to port to P13 and P14.

@carolahp
Copy link
Contributor Author

Hi @carolahp, this PR once integrated will be nice to port to P13 and P14.

Hi @tesonep , sure!

@jecisc
Copy link
Member

jecisc commented Oct 1, 2025

Lot of tests are breaking

@Ducasse
Copy link
Member

Ducasse commented Oct 2, 2025

Strange the build did not finish. I will relaunch it.

@Ducasse
Copy link
Member

Ducasse commented Oct 2, 2025

@demarey I could not restart the build because I lost my ci credential. could you restart it?

@carolahp
Copy link
Contributor Author

carolahp commented Oct 2, 2025

@Ducasse @demarey I have access... I just restarted it

@jecisc
Copy link
Member

jecisc commented Oct 2, 2025

We had to restart Jenkins because it was not responding. It probably stopped the build. Sorry for the inconvenience

@Ducasse Ducasse closed this Oct 13, 2025
@Ducasse Ducasse reopened this Oct 13, 2025
@Ducasse
Copy link
Member

Ducasse commented Oct 13, 2025

Trying to kick the build again. I updated the branch to see.
I'm not sure that it was a good idea. @tesonep I will probably need your help. May I fucked up something.

@carolahp
Copy link
Contributor Author

I decided to close this PR and split it in 2:

  • PR#18706 solves the original issue with Epicea
  • PR#18707 solves the bugs I found later, but it needs more work!

@Ducasse I will close this PR

@carolahp carolahp closed this Oct 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants