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

don't run docsgen on main branch merges or releases #81

Closed
wants to merge 1 commit into from

Conversation

dustinblack
Copy link
Member

Changes introduced with this PR

Don't run docsgen on main or releases. Eliminates the unnecessary time and resources in the workflow process, and corrects an error condition that can happen in a merge race.


By contributing to this repository, I agree to the contribution guidelines.

@dustinblack dustinblack requested a review from a team May 3, 2024 10:29
Copy link
Contributor

@webbnh webbnh left a comment

Choose a reason for hiding this comment

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

I would be inclined not to make this change: this doesn't actually solve the problem, it just hides it.

The invariant which we should be trying to maintain is that the main branch never needs documentation updates. If we could do that, then there would be no point to running docsgen on the main branch (release branches are a different, somewhat more interesting question). But, just because there shouldn't be any point doesn't mean that we shouldn't run it anyway: it's like any other part of the CI test system -- we want to know when the invariant ends up being violated.

Currently, if the main branch manages, by whatever process, to become out of date, we will find out when docsgen tries to update it. Granted, the indication of this is an ungraceful failure, but that is what we should be addressing, rather than trying to prevent it from detecting the change at all.

@dustinblack
Copy link
Member Author

Closing based on discussion

@dustinblack dustinblack closed this May 6, 2024
@dustinblack dustinblack deleted the no-docsgen-on-main branch June 25, 2024 15:48
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.

4 participants