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

Postpone build container creation to build start. Fixes possible Ecli… #433

Merged
merged 1 commit into from
Jun 26, 2023

Conversation

ewaterlander
Copy link
Contributor

@ewaterlander ewaterlander commented Jun 23, 2023

…pse freeze.

The creation of the build container for Core Build projects is postponed to the start of the build process.

StandardBuildConfiguration getBuildContainer and setBuildContainer have been cleaned up.

CBuildConfiguration creation is started via
CBuildConfigurationManager.getBuildConfiguration(IBuildConfiguration) which holds a lock on the HashMap 'configs'. Creation of StandardBuildConfiguration triggered, via applyProperties and getBuildContainer(), a Folder.create which loops back to CBuildConfigurationManager.getBuildConfiguration(). For detailed traces see #424

Fixes #424

@ewaterlander ewaterlander force-pushed the buildcontainer branch 2 times, most recently from afc45d7 to c8c41dd Compare June 26, 2023 11:30
@ewaterlander
Copy link
Contributor Author

I don't see a relation with the failure and my change.

@jonahgraham
Copy link
Member

Sorry - the build failure is not related to you. Something in our dependencies changed in the last few days. I will look at this soon.

…pse freeze.

The creation of the build container for Core Build projects is
postponed to the start of the build process.

StandardBuildConfiguration getBuildContainer and setBuildContainer
have been cleaned up.

CBuildConfiguration creation is started via
CBuildConfigurationManager.getBuildConfiguration(IBuildConfiguration)
which holds a lock on the HashMap 'configs'. Creation of
StandardBuildConfiguration triggered, via applyProperties and
getBuildContainer(), a Folder.create which loops back to
CBuildConfigurationManager.getBuildConfiguration().
For detailed traces see eclipse-cdt#424

Fixes issue eclipse-cdt#424
Copy link
Member

@jonahgraham jonahgraham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have rebased on main to pick up snakeyaml fix submitted in #436

Once the build succeeds I can merge this.

if (!(container instanceof IProject) && !container.exists()) {
IContainer parent = container.getParent();
if (!(parent instanceof IProject) && !parent.exists()) {
createBuildContainer(parent, monitor);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks like it also handles the case of more than 2 layers of containers. Thanks

@jonahgraham jonahgraham merged commit 8a8b94b into eclipse-cdt:main Jun 26, 2023
@jonahgraham
Copy link
Member

Thanks @ewaterlander

PS I changed the commit text and description from Fixes issue #424 to Fixes #424 as that causes the linking between issues to work as expected and will make #424 close automatically when I merged this.

@jonahgraham jonahgraham added this to the 11.3.0 milestone Jun 26, 2023
@ewaterlander
Copy link
Contributor Author

PS I changed the commit text and description from Fixes issue #424 to Fixes #424 as that causes the linking between issues to work as expected and will make #424 close automatically when I merged this.

Thanks Jonah.

@jonahgraham jonahgraham added the noteworthy Pull requests and fixed issues that should be highlighted to users label Sep 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
noteworthy Pull requests and fixed issues that should be highlighted to users
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Possible deadlock and Eclipse freeze with first Core Build project in fresh Workspace.
2 participants