Skip to content

LT Rebase Merge: Deal with failure better, Shell Check fixes #23

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

Open
wants to merge 3 commits into
base: mainline
Choose a base branch
from

Conversation

PlaidCat
Copy link
Collaborator

Due to changes I made to the rules I accidentally blocked our process here and the lt_rebase_merge.sh script failed mid way so I had to hand redo it. It was possible to do this from the shell output but it was less straight forward than I'd have wished and for other users.

Now we're adding the intended actions prior to starting the script so users can copy and paste.
Ideally in the future this will be self healing state machine.

PlaidCat added 2 commits June 25, 2025 15:14
If for whatever reason the execution fails its annoying to figure out
what the remaining commands need to be this prefills them out so if it
fails its easy to pick up upon failure.

Future work: Self Healing
@PlaidCat PlaidCat self-assigned this Jun 25, 2025
@Copilot Copilot AI review requested due to automatic review settings June 25, 2025 19:29
Copilot

This comment was marked as outdated.

bmastbergen
bmastbergen previously approved these changes Jun 25, 2025
Copy link
Collaborator

@bmastbergen bmastbergen left a comment

Choose a reason for hiding this comment

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

Except for the typo pointed out by copilot, LGTM 🥌

thefossguy-ciq
thefossguy-ciq previously approved these changes Jun 26, 2025
Copy link
Contributor

@thefossguy-ciq thefossguy-ciq left a comment

Choose a reason for hiding this comment

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

🚤

@PlaidCat PlaidCat dismissed stale reviews from thefossguy-ciq and bmastbergen via 7940a50 July 9, 2025 19:55
@PlaidCat PlaidCat force-pushed the {jmaple}_lt_rebuild_merge_fixes branch from b1055ff to 7940a50 Compare July 9, 2025 19:55
Copy link

@Copilot 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

Enhances the lt_rebase_merge.sh script by printing all expected git commands before execution and reinforcing variable quoting for safe shell expansion.

  • Prints anticipated git steps upfront for easier manual recovery on failure
  • Wraps all branch and tag variables in quotes to avoid word-splitting
  • Applies ShellCheck-inspired fixes and consistency updates
Comments suppressed due to low confidence (1)

lt_rebase_merge.sh:66

  • [nitpick] Consider rephrasing this header for clarity, e.g. echo "Commands to run if the script fails mid-execution:".
echo "Commands expected to run (This is in the event it fails during the run)"

Includes PR Copilot suggestions, mostly just some minor grammar and
print safety checks not identified by shellcheck.
@PlaidCat PlaidCat force-pushed the {jmaple}_lt_rebuild_merge_fixes branch from 7940a50 to 95b8740 Compare July 9, 2025 20:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants