-
Notifications
You must be signed in to change notification settings - Fork 321
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
UI tests extremely flaky on macOS in GitHub Actions #3057
Comments
Xtend IDE tests are the favorite, but sometimes it happens much before, in Xtext UI tests:
|
See also eclipse/mwe#270 |
I guess yes... for Xtend UI tests I can increase the test retries. For XtextContentAssistTest maybe that won't help, because the project is created only once and I guess once the build has been done it won't be retried: @Before
public void doSetupProject() throws Exception{
if(project == null){
with(doGetSetup());
PluginProjectFactory projectFactory = getInjector().getInstance(PluginProjectFactory.class);
projectFactory.setProjectName(TEST_PROJECT);
projectFactory.addFolders(Collections.singletonList("src"));
projectFactory.addBuilderIds(XtextProjectHelper.BUILDER_ID, JavaCore.BUILDER_ID, "org.eclipse.pde.ManifestBuilder",
"org.eclipse.pde.SchemaBuilder");
projectFactory.addProjectNatures(
XtextProjectHelper.NATURE_ID, JavaCore.NATURE_ID, "org.eclipse.pde.PluginNature");
projectFactory.addRequiredBundles(Lists.newArrayList("org.eclipse.xtext"));
project = projectFactory.createProject(new NullProgressMonitor(), null);
get(SyncUtil.class).waitForBuild(new NullProgressMonitor());
}
} maybe moving the waitForBuild outside the if? On a side note, in my projects things improved a lot concerning flakiness in these situations, if not completely fixed, by stopping creating projects programmatically and by importing existing ad-hoc projects for testing, e.g., https://github.com/LorenzoBettini/edelta/blob/master/edelta.parent/edelta.ui.tests/src/edelta/ui/tests/EdeltaContentAssistTest.java#L57, using https://github.com/LorenzoBettini/edelta/blob/master/edelta.parent/edelta.ui.tests/src/edelta/ui/tests/utils/ProjectImportUtil.java Moreover, I wonder whether project creation in projectFactory happen in a workspace operation in a sort of synchronized way. |
I'm re-opening it: there are still failures on macOS :'( let's see whether increasing the retries makes things better, and then we'll investigate further... |
I'm closing this, since I don't see that anymore |
Some examples:
Maybe there's some missed synchronization with project refresh and building.
Even when the build succeeds, there are lots of flakes.
I can try increase the number of retries.
The text was updated successfully, but these errors were encountered: