Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable Epicea debug mode in tests #13798

Merged

Conversation

jecisc
Copy link
Member

@jecisc jecisc commented May 24, 2023

Epicea has a debug mode to catch errors. This is good for the users to get less noise when there is a bug (and Pharo been a big project, we have bugs for sure). But this is not good for the development of Pharo because we cannot know when an error happens.

The best solution for me would be to enable the debug mode only for released versions. But we don't have thi information currently in the image and this would require to update the bootstrap to add the info in SystemVersion. Here I'm going for the second best thing I could think of: let the errors pass during the tests so that we can at least catch what the tests are unveiling.

I expect this PR to fail because Marcus found some log producing errors. But at least we'll be able to detect them better and fix them before integrating this.

When this will be mergeable, this will mean that no test will fail even with debug mode off. Fixes #13796

Epicea has a debug mode to catch errors. This is good for the users to get less noise when there is a bug (and Pharo been a big project, we have bugs for sure). But this is not good for the development of Pharo because we cannot know when an error happens.

The best solution for me would be to enable the debug mode only for released versions. But we don't have thi information currently in the image and this would require to update the bootstrap to add the info in SystemVersion.
Here I'm going for the second best thing I could think of: let the errors pass during the tests so that we can at least catch what the tests are unveiling. 

I�expect this PR to fail because marcus found some log producing errors. But at least we'll be able to detect them better and fix them before integrating this.
@jecisc jecisc closed this May 24, 2023
@jecisc jecisc reopened this May 24, 2023
@MarcusDenker MarcusDenker reopened this May 25, 2023
@jecisc jecisc added the Status: Need more work The issue is nearly ready. Waiting some last bits. label May 25, 2023
@MarcusDenker MarcusDenker reopened this May 31, 2023
@MarcusDenker MarcusDenker added Status: Tests passed please review! and removed Status: Need more work The issue is nearly ready. Waiting some last bits. labels May 31, 2023
@MarcusDenker
Copy link
Member

We should turn on debug mode in general during development (in addition to have it always in during tests, which is done by this PR)

@MarcusDenker MarcusDenker merged commit d24990b into pharo-project:Pharo12 May 31, 2023
2 of 3 checks passed
@jecisc jecisc deleted the disable-debugging-mode-in-tests branch May 31, 2023 12:14
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.

oldProtocol often nil in ClassDescription>>#notifyRepackage:method:oldProtocol:newProtocol:
2 participants