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

Downloadable artifacts: make PDF and ePub opt-in by default #10115

Merged
merged 1 commit into from
Mar 7, 2023

Conversation

humitos
Copy link
Member

@humitos humitos commented Mar 6, 2023

Newly created projects will have PDF and ePub disabled by default. This matches the default value of formats in the YAML file v2.

Building PDF and ePub is not a trivial task and many projects start failing because of this or, if succeeding, they are just building pretty low quality PDF and ePub files --which is a waste of resources.

This commit disables this by default for new projects, keeping the old projects working as they are currently.

Closes #8359

Newly created projects will have PDF and ePub disabled by default. This matches
the default value of `formats` in the YAML file v2.

Building PDF and ePub is not a trivial task and many projects start failing
because of this or, if succeeding, they are just building pretty low quality PDF
and ePub files --which is a waste of resources.

This commit disables this by default for new projects, keeping the old projects
working as they are currently.
@humitos humitos requested a review from a team as a code owner March 6, 2023 20:14
@humitos humitos requested a review from benjaoming March 6, 2023 20:14
@humitos humitos requested a review from ericholscher March 6, 2023 20:17
Copy link
Member

@ericholscher ericholscher left a comment

Choose a reason for hiding this comment

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

I'm 👍 on this. We definitely want folks opting into this if they want it. I wish there was an easy way to turn it off for projects that don't care, but stopping it defaulting on is step 1 :)

I'm a little surprised tests didn't break with this change, which shows that our build infra definitely is our least tested area, I think 🤔

@humitos
Copy link
Member Author

humitos commented Mar 7, 2023

our build infra definitely is our least tested area, I think thinking

Yeah. Testing build workflow is hard. I've done lot of it when migrating our code to Celery handlers. However, it's super fragile and hard to follow/read due to the amount of mocks we are using 😞

@humitos humitos merged commit 6cd1440 into main Mar 7, 2023
@humitos humitos deleted the humitos/pdf-epub-opt-in branch March 7, 2023 08:57
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.

Make PDF and EPUB opt-in, rather than opt-out?
2 participants