Skip to content

Update CI to detect uncommitted changes#772

Merged
dbkegley merged 3 commits intomainfrom
kegs-docs-ci-fix
Feb 11, 2026
Merged

Update CI to detect uncommitted changes#772
dbkegley merged 3 commits intomainfrom
kegs-docs-ci-fix

Conversation

@dbkegley
Copy link
Contributor

@dbkegley dbkegley commented Jan 30, 2026

Our CI workflows currently attempt to generate docs and commit the result directly to the PR branch. This workflow prevents subsequent CI checks from running because GHA cannot trigger itself in PRs.

This change updates our workflows to force developers to generate docs locally and commit the result, avoiding the annoying necessity to create an --alow-empty "trigger ci" commit.

CI will now fail if uncommitted docs changes are detected. These changes are usually either an updated Chart.lock or README.md. They can be updated with just update-lock and just docs respectively.

Example docs failure:

image

@dbkegley dbkegley requested review from a team as code owners January 30, 2026 20:58
@dbkegley dbkegley changed the title Update CI to detect uncommitted docs changes Update CI to detect uncommitted changes Jan 30, 2026
@dbkegley dbkegley requested a review from a team as a code owner January 30, 2026 21:07
Our CI workflows currently attempt to generate docs
and commit the result directly to the PR branch.
This workflow prevents subsequent CI checks from
running because GHA cannot trigger itself in PRs.

This change updates our workflows to force developers
to generate docs locally and commit the result,
avoiding the annoying necessity to create an
`--alow-empty "trigger ci"` commit.

CI will now fail if uncommitted docs changes are
detected. These changes are usually either an
updated `Chart.lock` or `README.md`. They can be
updated with `just update-lock` and `just docs`
resepectively.
@dbkegley dbkegley force-pushed the kegs-docs-ci-fix branch 2 times, most recently from f0bff5d to 987bca3 Compare January 30, 2026 22:16
@dotNomad
Copy link
Contributor

This change updates our workflows to force developers to generate docs locally and commit the result, avoiding the annoying necessity to create an --alow-empty "trigger ci" commit.

If the option is generate something locally and commit, versus trigger CI with an empty commit I think I would prefer the later during the release process. It is quite nice to not rely on anything being setup locally.

@lucasrod16
Copy link
Contributor

This change updates our workflows to force developers to generate docs locally and commit the result, avoiding the annoying necessity to create an --alow-empty "trigger ci" commit.

If the option is generate something locally and commit, versus trigger CI with an empty commit I think I would prefer the later during the release process. It is quite nice to not rely on anything being setup locally.

I agree with @dotNomad. I'm curious if there's a way to configure the docs commit in a way that actually allows CI to run

@dbkegley
Copy link
Contributor Author

This change updates our workflows to force developers to generate docs locally and commit the result, avoiding the annoying necessity to create an --alow-empty "trigger ci" commit.

If the option is generate something locally and commit, versus trigger CI with an empty commit I think I would prefer the later during the release process. It is quite nice to not rely on anything being setup locally.

IMO this makes the product releases easier to automate because it won't require developers to go push an empty commit to unblock CI during the release. There would be no need to run anything locally because we can automate just docs during our release process.

For outside contributors we currently don't allow CI to run at all (#62) which is preventing community engagement. It has also proven challenging in the past for contributors to know how to make simple changes because CI gets stuck and it's not obvious how to unstick it.

#505

Comment on lines +2 to +5
if git status --porcelain=1 2>&1 | grep -E "^.|\bwarning\b" | grep -vE "\.gitignore"; then
echo "Error: uncommitted changes detected."
exit 1
fi
Copy link
Contributor

Choose a reason for hiding this comment

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

It would be helpful to log what the uncommitted changes were

@lucasrod16
Copy link
Contributor

IMO this makes the product releases easier to automate because it won't require developers to go push an empty commit to unblock CI during the release. There would be no need to run anything locally because we can automate just docs during our release process.

Oh I see. I didn't realize that was the intended workflow. That makes sense to me

Copy link
Contributor

@bschwedler bschwedler left a comment

Choose a reason for hiding this comment

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

I like this approach. This moves the responsibility of updating the docs to the PR creation process.

@lucasrod16 lucasrod16 mentioned this pull request Feb 2, 2026
@dbkegley dbkegley merged commit 400de4a into main Feb 11, 2026
7 checks passed
@dbkegley dbkegley deleted the kegs-docs-ci-fix branch February 11, 2026 16:15
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