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

Fix towncrier CI always failing #347

Merged
merged 2 commits into from
Aug 2, 2024
Merged

Fix towncrier CI always failing #347

merged 2 commits into from
Aug 2, 2024

Conversation

ItsDrike
Copy link
Member

@ItsDrike ItsDrike commented Aug 2, 2024

After an automatic update of the towncrier dependency in #345, the CI started to fail in 2 places:

  • The sphinx documentation build

    The sphinxcontrib-towncrier extension isn't compatible with this latest version and fails due to a change in the towncrier internal API code, which this extension uses. See: Incompatible with Towncrier 24.7 sphinx-contrib/sphinxcontrib-towncrier#92. At the moment, the only way to fix this is to revert towncrier to an older version.

  • The PR changelog fragment check

    It seems that the new towncrier version no longer automatically ignores the template file. Since we place this file in the fragments directory, towncrier check always fails with an error that this file isn't correctly named. The automatic update succeeded because these updates are exempt from changelog fragment presence check, so it got into main unnoticed.

    This PR fixes that by adding the template file to ignored files. (Even though the towncrier dependency will be reverted, the ignore can remain, as it at least prevents it from breaking once we do update)

@ItsDrike ItsDrike added t: bug Something isn't working a: documentation Related to project's documentation (comments, docstrings, docs) p: 0 - critical This needs to be addressed ASAP labels Aug 2, 2024
@ItsDrike ItsDrike changed the title Fix towncrier check always failing Fix towncrier CI always failing Aug 2, 2024
@ItsDrike ItsDrike merged commit 476a2b6 into main Aug 2, 2024
11 of 12 checks passed
@ItsDrike ItsDrike deleted the fix-towncrier branch August 2, 2024 11:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a: documentation Related to project's documentation (comments, docstrings, docs) p: 0 - critical This needs to be addressed ASAP t: bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant