Repository navigation
fm-merge-local: pin the reported done head before reading it - #319
Merged
Merged
Conversation
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes for a human
bin/fm-merge-local.sh <id>no longer refuses a local-only landing when the worker already appended itsdone: ready in branch fm/<id>line but nothing had yet runbin/fm-crew-state.sh <id>. Before reading the pinned head, it now records the head from the done line through the samefm_dod_accept_ship_donepin path that crew-state uses. With no valid done line the old refusal ("missing or malformed local done head ... report readiness before approval") is unchanged, as are the head-changed and branch-mismatch refusals.Evidence
flowchart LR subgraph Before A1[done line appended] --> B1[fm-merge-local] --> C1[refused: no pinned head] --> D1[run fm-crew-state by hand] --> E1[merge ok] end subgraph After A2[done line appended] --> B2[fm-merge-local pins head from done line] --> E2[merge ok] endTest transcript (
tests/fm-merge-local.test.sh, new case "a reported done line lands without a prior crew-state observation"):