-
-
Notifications
You must be signed in to change notification settings - Fork 358
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
NewFinderTests are breaking on the build #16041
Comments
I guess the above is from the log of the build for pull request #16037? The following Dockerfile can be used to reproduce the error with some additional logging: FROM almalinux:9
# The following file is from: https://github.com/pharo-project/pharo-launcher/actions/runs/7669561590
COPY PharoLauncher-linux-37d81461-x64.zip .
RUN yum install -y unzip && yum clean all && rm -rf /var/cache/yum
RUN unzip -p PharoLauncher-linux-37d81461-x64.zip | tar -x
RUN mkdir /root/Pharo
RUN ./pharo-launcher/pharo-launcher image create fromBuild --newImageName test-image 1320
RUN /root/Pharo/vms/120-x64/pharo --headless /root/Pharo/images/test-image/test-image.image eval " \
StFinderTest compile: 'performTest \
Stdio stderr nextPutAll: (''Performing test (test: {1}, process: {2})'' format: { self asString. Processor activeProcess name }); lf. \
^ super performTest'. \
SubscriptOutOfBounds compile: 'signal \
Stdio stderr nextPutAll: (''Signaling SubscriptOutOfBounds (process: {1})'' format: { Processor activeProcess name }); lf. \
^ super signal'. \
Smalltalk snapshot: true andQuit: true"
CMD /root/Pharo/vms/120-x64/pharo /root/Pharo/images/test-image/test-image.image test --junit-xml-output NewTools-Finder-Tests Sample output with the error (after running it repeatedly as the error occurs ‘randomly’):
As far as I understand, the error is due to concurrent accessing of morphs from within the command line handler and Morphic UI processes. I guess the tests should be changed so that either the window is not drawn, or the actions ( |
I think that your analysis is correct |
The superclass of StFinderTest should probably be changed to SpBaseTest which ensures that the tests run within the Morphic UI process, see Spec pull request #1496 and issue #12502. A somewhat related issue is issue #9638, which was fixed in pull request #14853 by similarly deferring to the Morphic UI process. |
Thanks for reporting. I couldn't reproduce it locally, but I've sent a PR pharo-spec/NewTools#669 with your suggestion. |
The text was updated successfully, but these errors were encountered: