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

ci: use git status instead of git diff to check for a clean state #16619

Merged
merged 1 commit into from Jun 25, 2021

Conversation

kaworu
Copy link
Member

@kaworu kaworu commented Jun 22, 2021

Before this patch, git diff was used to ensure a clean state with respect to the git repository. While it could catch a modified or removed file, it would not fail when a file was not checked in git (i.e. untracked).

This patch use git status instead of git diff, effectively catching untracked files as well.

Before this patch, git diff was used to ensure a clean state with
respect to the git repository. While it could catch a modified or
removed file, it would not fail when a file was not checked in git
(i.e. untracked).

This patch use git status instead of git diff, effectively catching
untracked files as well.

Signed-off-by: Alexandre Perrin <alex@kaworu.ch>
@kaworu kaworu added area/CI Continuous Integration testing issue or flake release-note/misc This PR makes changes that have no direct user impact. labels Jun 22, 2021
@kaworu kaworu self-assigned this Jun 22, 2021
@kaworu kaworu requested review from a team as code owners June 22, 2021 11:15
@kaworu kaworu requested a review from nebril June 22, 2021 11:15
@kaworu kaworu requested a review from joestringer June 22, 2021 11:15
Copy link
Member

@joestringer joestringer left a comment

Choose a reason for hiding this comment

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

Seems fine enough to me. I don't understand how you can run these workflows outside of a github repo though 🤔

@joestringer joestringer merged commit 76ab456 into cilium:master Jun 25, 2021
@kaworu kaworu deleted the pr/kaworu/ci/fix-git-clean-state branch August 24, 2021 08:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/CI Continuous Integration testing issue or flake release-note/misc This PR makes changes that have no direct user impact.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants