Repository navigation
fix: a failing forge is reported alone, with its reason and its fix - #44
Merged
Merged
Conversation
A sync pass sent a section's rows only when every forge had answered, so an expired GitLab token emptied sections of PRs GitHub had just returned. The rows from the forges that answered are now shown, and the status line still marks the one that failed. Only a pass every forge answered is cached or counted as "synced". Proved by live::tests::one_forge_failing_does_not_hide_the_others_prs, which failed before this change. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A 401 became "not signed in", with the forge's reason thrown away, and `pullpen config check` called a token "signed in" because it existed. The forge's reason is now kept (Error::Rejected), the place the token came from decides the fix, and both reach the status line. `config check` asks each forge whose token it is, and separates signed in, rejected and unreachable. Proved by a_rejected_token_keeps_the_forges_reason, the_fix_names_where_the_token_came_from, a_token_the_forge_rejects_fails_the_check_with_its_fix, an_unreachable_forge_is_not_called_signed_in and one_forge_failing_does_not_hide_the_others_prs. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The fix for an expired stored token was the whole first-run walk. With a host, setup asks only that forge's sign-in question and saves only the credentials (ADR-030). It is the command the status line and `pullpen config check` name when a forge rejects a stored token. Proved by renewing_one_host_asks_nothing_else_and_stores_the_new_token and renewing_a_host_that_is_not_configured_says_so. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
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.
An expired GitLab token emptied every section of the GitHub PRs GitHub had just returned,
pullpen config checkcalled that token "signed in", and nothing said why or what to type.What changes
Error::Rejected), and where the token came from decides the fix:pullpen setup <host>for a stored token,gh/glab auth loginfor a borrowed login, the variable name for an environment token.pullpen config checkasks the forge. It reports signed in (as whom), rejected (with reason and fix), or not checked (forge unreachable), instead of only finding that a token exists.pullpen setup <host>signs in to one configured forge again and asks nothing else (ADR-030).Proof
live::tests::one_forge_failing_does_not_hide_the_others_prsa_rejected_token_keeps_the_forges_reasonthe_fix_names_where_the_token_came_froma_token_the_forge_rejects_fails_the_check_with_its_fixan_unreachable_forge_is_not_called_signed_insetup <host>asks nothing else and stores the new tokenrenewing_one_host_asks_nothing_else_and_stores_the_new_tokenrenewing_a_host_that_is_not_configured_says_soThe first test was written before the fix and failed:
make checkafter the last commit:Run against the release binary:
In the TUI with the same bogus token, the status line read
E gitlab.com rejected the token: Invalid token · replace the token in $PULLPEN_GITLAB_TOKEN, GitHub's sections filled, and no cache file was written.Unverified
pullpen setup <host>end to end on a real terminal with a real expired token: covered by its tests only.error_descriptionshape was observed on REST; a bogus token on GraphQL returned "Invalid token".Not in this change
design/tui.jsfirst.docs/north-star.mdanddocs/PLAN.md§10 still say pullpen stores no credentials, stale since ADR-012.🤖 Generated with Claude Code