Skip to content

Conversation

ChinYikMing
Copy link
Collaborator

When rerunning the deploy wasm CI, previously successful jobs may fail due to a reproducible error:
nothing to commit, working tree clean
Error: Process completed with exit code 1.

This occurs because the successful deployment has already committed the changes. To prevent this, the workflow should check whether there are any staged changes before attempting to commit. If there’s nothing to commit, skip the push step. Otherwise, proceed with committing and pushing the new changes.

The error can be observed in this ci.

When rerunning the deploy wasm CI, previously successful jobs may fail
due to a reproducible error:
nothing to commit, working tree clean
Error: Process completed with exit code 1.

This occurs because the successful deployment has already committed the
changes. To prevent this, the workflow should check whether there are
any staged changes before attempting to commit. If there’s nothing to
commit, skip the push step. Otherwise, proceed with committing and
pushing the new changes.
@ChinYikMing ChinYikMing requested a review from jserv July 18, 2025 16:44
Copy link

Bito Automatic Review Skipped - Files Excluded

Bito didn't auto-review this change because all changed files are in the exclusion list for automatic reviews. No action is needed if you didn't intend for the agent to review it. Otherwise, to manually trigger a review, type /review in a comment and save.
You can change the excluded files settings here, or contact your Bito workspace admin at [email protected].

@jserv jserv merged commit a09ca99 into sysprog21:master Jul 18, 2025
8 checks passed
@ChinYikMing ChinYikMing deleted the ci-wasm-commit-on-change branch July 19, 2025 03:08
@jserv jserv added this to the release-2025.2 milestone Oct 1, 2025
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.

2 participants