Repository navigation
fix(orbit): sprint open counts both dates in Orbit's 56-day limit - #353
Merged
Merged
Conversation
…ay limit Orbit runs a sprint for at most 56 days, both dates inclusive (internal/sprints.MaxDays), so it refuses a sprint ending 56 days after its start. sprint open accepted --ends 56 days away. Orbit then refused the start, and the sprint created just before was stranded as a future sprint. --ends may now be at most 55 days away, and the message says why. The fake Orbit never enforced the limit. Its start step now refuses what Orbit refuses (422 sprint_dates_invalid), and TestOrbitSprintOpenLimitCountsBothDates pins the 55/56 boundary. Lesson recorded in .procoder/github/LESSONS.md.
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has insufficient remaining quota. Try requesting a review at a lower effort level.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
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
procoder sprint open --endsin Orbit mode now accepts an end date at most 55 days away. It used to accept 56.Why
Orbit runs a sprint for at most 56 days and counts both the start and the end date (
internal/sprints.MaxDays). A sprint ending 56 days after its start would run 57 days, so Orbit refuses it. procoder accepted that date, created the sprint, and then Orbit refused to start it. The result was a stranded future sprint.How
internal/orbitcmd/sprint.go: refusedays >= 56. The message explains why the limit is 55 days.internal/orbit/orbittest: the fake's start step now refuses what Orbit refuses (422sprint_dates_invalid). It used to enforce no limit at all, which is how this got through.docs/orbit-backend.md: states the limit as 55 days away and explains why..procoder/github/LESSONS.md: one lesson, with its adaptation in the fake.Docs impact:
docs/orbit-backend.mdupdated. No other page states the limit.Testing
TestOrbitSprintOpenLimitCountsBothDates: 56 days away is refused and nothing is written; 55 days away opens. With the old>put back, the test fails with Orbit's own refusal and the stranded sprint.procoder test: all 62 Go packages pass.procoder check: nothing blocking.procoder lessons: 49 lessons, none unlearned.