MetPX / MetPX/sr3_tools

`sr3_pull` overwrites any local changes on the nodes

Open
#10 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Shell
Stars
0
Forks
0
PR merge metrics
No merged PRs in 30d

Description

sr3_pull currently does a git reset --hard HEAD before pulling the config and plugins repos. This was intentional, I wanted to overwrite local changes that had been made and forgotten about, and I wanted to ensure the configs were identical across all cluster nodes and reflected the remote repo.

But when multiple people are working on stuff, sometimes the local changes need to stay around for a while.

Options:

  • do a git stash --include-untracked before pulling. This would let someone come back and recover their changes. Problem: need a way to get rid of old stashes that aren't needed.
  • warn the user that the local repos are not clean and abort. Provide a --force or similar option to force overwrite local changes.
  • other options?

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the sr3_pull entry point and inspect where it runs git reset --hard before pulling the config and plugins repositories. Review the proposed stash, abort-and-warn, and force options with maintainers, since the issue does not choose a behavior. Done means the agreed handling preserves or intentionally discards local changes without surprising users, validated on nodes with dirty repositories.

Written by the indexing model from the issue text.

Assessment

Tech stack
shell
Domain
cli, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.