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

Patch entity_reference_revisions to break loop when updating event #1624

Merged
merged 1 commit into from
Oct 8, 2024

Conversation

kasperg
Copy link
Contributor

@kasperg kasperg commented Oct 3, 2024

Link to issue

https://reload.atlassian.net/browse/DDFHER-74

Description

We see PHP running out of memory when running a deploy hook, dpl_update_deploy_field_relevant_ticket_manager(), on a specific site, for a specific eventseries.

It turns out this event series has instances where each instance has a paragraph which references other instances within the series. This creates a circular dependency.

To break this we patch drupal/entity_reference_revisions.

drupal/entity_reference_revisions is currently an implicit dependency through drupal/paragraphs. To avoid it moving without our explicit consent and patches thus not applying we add
drupal/entity_reference_revisions as an explicit dependency. We use the same version as is currently used within the project.

Additional comments or questions

I can recreate the problem without this change using a backup from the failing site. With this change the problem no longer occurs.

@kasperg kasperg force-pushed the avoid-memory-errors branch 2 times, most recently from ced5303 to dd4e0d7 Compare October 3, 2024 13:32
We see PHP running out of memory when running a deploy hook,
dpl_update_deploy_field_relevant_ticket_manager(), on a specific site,
for a specific eventseries.

It turns out this event series has instances where each instance has
a paragraph which references other instances within the series.
This creates a circular dependency.

To break this we patch drupal/entity_reference_revisions.

drupal/entity_reference_revisions is currently an implicit dependency
through drupal/paragraphs. To avoid it moving without our explicit
consent and patches thus not applying we add
drupal/entity_reference_revisions as an explicit dependency. We use
the same version as is currently used within the project.
@kasperg kasperg force-pushed the avoid-memory-errors branch from dd4e0d7 to 234c2d4 Compare October 3, 2024 13:34
@github-actions github-actions bot temporarily deployed to pr-1624 October 3, 2024 13:34 Destroyed
@rasben rasben assigned kasperg and unassigned xendk, rasben and kasperbirch1 Oct 3, 2024
@kasperg kasperg merged commit 9192dc6 into develop Oct 8, 2024
23 checks passed
@kasperg kasperg deleted the avoid-memory-errors branch October 8, 2024 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants