Skip to content

Prevent Request.current_id test state leakage#4808

Merged
Samze merged 1 commit intomainfrom
request_current_id_test_leak
Jan 27, 2026
Merged

Prevent Request.current_id test state leakage#4808
Samze merged 1 commit intomainfrom
request_current_id_test_leak

Conversation

@Samze
Copy link
Copy Markdown
Contributor

@Samze Samze commented Jan 26, 2026

Ensure Request.current_id is reset. This stops flakes like:

  1) VCAP::CloudController::Jobs SpaceApplyManifestActionJob serialization equals dumped job yaml

...

       -"request_id" => nil,

       +"request_id" => "522960b781af4039b8b91a20ff6c0394::b62be6c2-0f2c-4199-94d3-41a69e00f67d",

Where other tests may set request_id, e.g. https://github.com/cloudfoundry/cloud_controller_ng/blob/main/spec/diego/client_spec.rb#L13-L23

Thanks for contributing to cloud_controller_ng. To speed up the process of reviewing your pull request please provide us with:

  • A short explanation of the proposed change:

  • An explanation of the use cases your change solves

  • Links to any other associated PRs

  • 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

@Samze Samze marked this pull request as ready for review January 26, 2026 22:47
@Samze Samze merged commit e48e3a7 into main Jan 27, 2026
16 of 17 checks passed
ari-wg-gitbot added a commit to cloudfoundry/capi-release that referenced this pull request Jan 27, 2026
Changes in cloud_controller_ng:

- Prevent Request.current_id test state leakage
    PR: cloudfoundry/cloud_controller_ng#4808
    Author: Sam Gunaratne <385176+Samze@users.noreply.github.com>
@moleske moleske deleted the request_current_id_test_leak branch January 27, 2026 18:21
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.

2 participants