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

Write compressed configuration [RHELDST-25461] #726

Merged
merged 1 commit into from
Jul 30, 2024

Conversation

rohanpm
Copy link
Member

@rohanpm rohanpm commented Jul 29, 2024

For more info on the motivation, see the corresponding change in
exodus-lambda:
release-engineering/exodus-lambda#586

Regarding the test updates in this commit, the existing fixture used to
mock the DynamoDB query for config was parametrized so that existing
tests would cover both binary and non-binary config cases. However,
since that was previously a global autouse fixture, that would have
caused every test to run twice even if the test did not deal with the
config at all.

To avoid this, fixtures were split into a global autouse boto session
fixture (ensuring all tests still avoid any real AWS calls) and a
non-autouse fixture for the DynamoDB client. The new fixture had to be
explicitly added to certain tests.

Start writing the configuration in compressed binary form.

For more info on the motivation, see the corresponding change in
exodus-lambda:
release-engineering/exodus-lambda#586

Regarding the test updates in this commit, the existing fixture used to
mock the DynamoDB query for config was parametrized so that existing
tests would cover both binary and non-binary config cases. However,
since that was previously a global autouse fixture, that would have
caused every test to run twice even if the test did not deal with the
config at all.

To avoid this, fixtures were split into a global autouse boto session
fixture (ensuring all tests still avoid any real AWS calls) and a
non-autouse fixture for the DynamoDB client. The new fixture had to be
explicitly added to certain tests.
@rohanpm rohanpm marked this pull request as ready for review July 29, 2024 22:59
@rohanpm rohanpm merged commit 4504e23 into release-engineering:master Jul 30, 2024
3 checks passed
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.

3 participants