Skip to content

fix: [DevOps] Fix spec-update failure on repeated runs without spec change - #1176

Open
Jonas-Isr wants to merge 1 commit into
mainfrom
fix-spec-update
Open

Jonas-Isr wants to merge 1 commit into
mainfrom
fix-spec-update

Conversation

@Jonas-Isr

Copy link
Copy Markdown
Member

Context

We got notified that our Java spec update workflow erroneously failed on two different PRs of the orchestration team. Both branches changed the spec, but in very little ways (only explanation text changed).

It turned out that our spec update workflow succeeded on the first pushes (including the spec changes) but failed whenever there was a push to the PR branches that did not change the spec again. What happened is the following:

  1. In the Exit if there are no spec changes step the diff is compared to main, not the feature branch created in the first workflow run. This is intentional (and was changed rather recently, PR here) but results in the workflow finding spec changes even though there were no new spec changes.
  2. In the Push changes step the workflow tries to push to the feature branch spec-update/orchestration/xyz, not main. This is also correct since we do not want to push to main. But at this point there are no changes to push. So the git push fails with the message nothing to commit, working tree clean and the workflow fails.

This PR introduces a check to the Push changes step to check if there are actual changes to push to the feature branch spec-update/orchestration/xyz. If not, the step does not push but finishes successfully.

@Jonas-Isr Jonas-Isr added the please-review Request to review a pull-request label Nov 6, 2026
@Jonas-Isr Jonas-Isr self-assigned this Nov 6, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

please-review Request to review a pull-request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant