Skip to content

Conversation

rezib
Copy link
Collaborator

@rezib rezib commented Sep 30, 2025

Temporarily switch to basic C locale to format date with english days and months in new RPM spec changelog entries, and avoid RPM library complaining about bogus date in changelog eventually.

Some unit tests are introduced for the changelog action. These tests can be used to raise the bug with a non-english locale.

To avoid RPM library complaining about bad date format due to days or
months in non-english language, temporarily set C locale before
generating the date string aiming to land in Spec changelog.
@rezib rezib requested review from qa-cea and valeriyoann September 30, 2025 14:47
def test_action_changelog_unknown_maintainer(self):
"""changelog with unknown maintainer"""
self.make_pkg()
with self.assertRaises(TypeError):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

question: shouldn't it be a RiftError and have a proper message aswell ? Seems like a common issue, so having its own error message would be nice

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, for sure. However, it's arguably out of scope of this PR. Do you want me to open another PR for this or just add a commit in this one?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Another PR is fine by me

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.

2 participants