Skip to content

Investigate why hashrelease build is dirty#12172

Open
nelljerram wants to merge 1 commit intoprojectcalico:masterfrom
nelljerram:hr-status
Open

Investigate why hashrelease build is dirty#12172
nelljerram wants to merge 1 commit intoprojectcalico:masterfrom
nelljerram:hr-status

Conversation

@nelljerram
Copy link
Member

Release note:

TBD

@nelljerram nelljerram requested a review from a team as a code owner March 18, 2026 08:56
Copilot AI review requested due to automatic review settings March 18, 2026 08:56
@marvin-tigera marvin-tigera added this to the Calico v3.32.0 milestone Mar 18, 2026
@marvin-tigera marvin-tigera added release-note-required Change has user-facing impact (no matter how small) docs-pr-required Change is not yet documented labels Mar 18, 2026
@nelljerram nelljerram added release-note-not-required Change has no user-facing impact and removed release-note-required Change has user-facing impact (no matter how small) labels Mar 18, 2026
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds visibility into repository state during Calico release publishing by introducing a GitStatus helper and logging git status output as part of publish preflight validation.

Changes:

  • Add utils.GitStatus(dir) wrapper around git status.
  • Log git status output during CalicoManager.publishPrereqs() before checking for a dirty repo.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
release/pkg/manager/calico/manager.go Logs git status during publish prerequisites validation.
release/internal/utils/git.go Introduces GitStatus() helper that runs git status.

Comment on lines +906 to 908
status, _ := utils.GitStatus(r.repoRoot)
logrus.Infof("Git status:\n%v", status)
if dirty, err := utils.GitIsDirty(r.repoRoot); dirty || err != nil {

// GitStatus returns the current git status of the repository.
func GitStatus(dir string) (string, error) {
return command.GitInDir(dir, "status")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

docs-pr-required Change is not yet documented release-note-not-required Change has no user-facing impact

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants