Skip to content

Fix flaky test on test_cdn_cache_validation - #8294

Merged
dralley merged 1 commit into
pulp:mainfrom
pedro-psb:fix-flaky-cnd-cache-tests
Oct 28, 2026
Merged

dralley merged 1 commit into
pulp:mainfrom
pedro-psb:fix-flaky-cnd-cache-tests

Conversation

@pedro-psb

Copy link
Copy Markdown
Member

aiohttp.FileResponse replaces Pulp's last modified with the last modified timestamp of the file stats. Not only that, but it rounds to the NEXT second, which caused the last modified to be in the future!

This behavior is problematic, so this commits points to a more broad issue about it and applies a workaround to avoid the flaky test.

📜 Checklist

  • Commits are cleanly separated with meaningful messages (simple features and bug fixes should be squashed to one commit)
  • A changelog entry or entries has been added for any significant changes
  • Follows the Pulp policy on AI Usage
  • (For new features) - User documentation and test coverage has been added

See: Pull Request Walkthrough

aiohttp.FileResponse replaces Pulp's last modified with the last modified
timestamp of the file stats. Not only that, but it rounds to the NEXT second,
which caused the last modified to be in the future!

This behavior is problematic, so this commits points to a more broad issue
about it and applies a workaround to avoid the flaky test.
@dralley
dralley merged commit f647966 into pulp:main Oct 28, 2026
25 of 27 checks passed
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