Skip to content

Fix two flaky test failures caused by test isolation issues#5084

Open
philippthun wants to merge 1 commit intocloudfoundry:mainfrom
sap-contributions:fix-flaky-tests
Open

Fix two flaky test failures caused by test isolation issues#5084
philippthun wants to merge 1 commit intocloudfoundry:mainfrom
sap-contributions:fix-flaky-tests

Conversation

@philippthun
Copy link
Copy Markdown
Member

BeforeEnqueueHook: Guard against duplicate plugin registration when the file is loaded multiple times. Duplicate callbacks caused multiple PollableJobModel records per enqueue instead of one.

ManifestRouteUpdate: Use .present? instead of truthiness check for manifest_route[:options]. ManifestRoute.parse always sets options to {}, which is truthy but semantically empty. This caused spurious RouteUpdate calls that mutated route columns, breaking Sequel object equality in subsequent lookups.

  • I have reviewed the contributing guide

  • I have viewed, signed, and submitted the Contributor License Agreement

  • I have made this pull request to the main branch

  • I have run all the unit tests using bundle exec rake

  • I have run CF Acceptance Tests

BeforeEnqueueHook: Guard against duplicate plugin registration when
the file is loaded multiple times. Duplicate callbacks caused multiple
PollableJobModel records per enqueue instead of one.

ManifestRouteUpdate: Use .present? instead of truthiness check for
manifest_route[:options]. ManifestRoute.parse always sets options to
{}, which is truthy but semantically empty. This caused spurious
RouteUpdate calls that mutated route columns, breaking Sequel object
equality in subsequent lookups.
@philippthun philippthun marked this pull request as ready for review May 4, 2026 14:19
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.

1 participant