Repository navigation
docs(adr): add ADR 0085, serve every changed Jira issue - #9815
Conversation
Partially supersede ADR 0160 and ADR 0063 for the jira-poll driver: one poller per repository reads every issue that changed within the driver's 24-hour backfill window, oldest change first, with no row limit, no random pick and no per-issue lock. A cycle stops at tracker.jira.poll.max_dispatches_per_cycle records (default 100, at most 250), at 768 KB of serialized batch on the GitHub target, or after five minutes. Add Status notes to ADR 0160 and ADR 0063 and update the Jira poll entries in docs/architecture.md. Decision record only; the implementation follows separately. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Bill Murdock <bmurdock@redhat.com>
Code Review by Qodo🐞 Bugs (0) 📘 Rule violations (0) 📎 Requirement gaps (0)
Great, no issues found!Qodo reviewed your code and found no material issues that require reviewTip of the day💡 Did you know, you can show, collapse, or hide each part of a finding: code, evidence, and all |
PR Summary by QodoDocument a starvation-resistant Jira polling strategy in ADR 0085
AI Description
Merge Risk
|
|
🤖 Finished Review · ✅ Success · Started 7:36 PM UTC · Completed 7:43 PM UTC Commit: Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.94 |
Site previewPreview: https://0290e8ad-site.fullsend-ai.workers.dev Commit: |
|
Risk Assessment: moderate (2/5) DetailsDocumentation-only PR introducing ADR 0085 with no code or CI changes, elevated to moderate risk by high recent churn and multi-author contention on docs/architecture.md. Previous runRisk Assessment: moderate (2/5) DetailsDocumentation-only PR introducing ADR 0085 with no code or CI changes, elevated to moderate risk by high recent churn and multi-author contention on docs/architecture.md. Previous run (2)Risk Assessment: moderate (2/5) DetailsDocumentation-only PR introducing ADR 0085 with no code or CI changes, elevated to moderate risk by high recent churn and multi-author contention on docs/architecture.md. Previous run (3)Risk Assessment: moderate (2/5) DetailsDocumentation-only PR introducing ADR 0085 with no code or CI changes, elevated to moderate risk by high recent churn and multi-author contention on docs/architecture.md. |
|
Looks good to me Earlier findings
Previous run<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJhc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p0cnVlLCJkaW1lbnNpb24iOiJjb3JyZWN0bmVzcyJ9XX0= --> ReviewFindingsMedium
Labels: PR adds an ADR and updates architecture documentation. Next steps:
|
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
Add a two-minute limit on reading one issue. An issue that takes longer is treated as a failed read is today: the driver warns, takes none of its records, leaves its checkpoint where it was, and goes on to the next issue. This keeps one slow issue at the front of the line from holding back the issues behind it. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Bill Murdock <bmurdock@redhat.com>
|
🤖 Finished Review · ✅ Success · Started 9:43 PM UTC · Completed 9:53 PM UTC Commit: Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.84 |
Oldest change first becomes the default order, used when the configured query has no sort clause. A query that carries its own sort clause keeps it, as today. The default query drops its newest-first clause, and a query that sorts newest change first draws one warning per cycle. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Bill Murdock <bmurdock@redhat.com>
The window becomes tracker.jira.poll.backfill_window_hours: default 24, at least 1, no upper limit. Consequences name what a long window costs and commit the guide and the config reference to say how to choose it. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Bill Murdock <bmurdock@redhat.com>
Oldest change first is now the default order and no longer always the order, so the title and file name drop it. The notes in ADR 0063, ADR 0160 and architecture.md follow the new wording and file name. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Bill Murdock <bmurdock@redhat.com>
Two or three issues that each hit the two-minute read limit can use up a whole cycle. Consequences now says so and that this ADR adds no way to set a slow issue aside. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Bill Murdock <bmurdock@redhat.com>
A cycle in which every issue tried failed or timed out ends in an error, as today, so a poller blocked by slow issues shows as a failed run. Consequences name the third cost of a long window, the upgrade order for the two new keys, and the search client's row cap as something the implementation must not hit silently. The first Consequences bullet and the aim sentence follow the configurable order and window. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Bill Murdock <bmurdock@redhat.com>
|
🤖 Finished Review · ✅ Success · Started 4:32 PM UTC · Completed 4:40 PM UTC Commit: Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.09 |
An issue past 250 records or 768 KB keeps its oldest records and drops the rest. Decision item 3 now says why: the limit bounds the runs that a rewound checkpoint or a bulk change can start, as today's event cap does. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com> Signed-off-by: Bill Murdock <bmurdock@redhat.com>
|
🤖 Finished Review · Commit: Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.10 Automated review did not complete for this commit. Check the latest review status before merging. If no review is queued or running, comment |
|
Code review by qodo was updated up to the latest commit 75de060 |
|
🤖 Finished Review · ✅ Success · Started 6:38 PM UTC · Completed 6:44 PM UTC Commit: Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $0.97 |
Superseded by updated review
Summary
This is the short amendment to ADR 0160 that I said I would write when I closed #9505. It adds ADR 0085, which stops the
jira-polldriver from losing requests to its row limit and its random pick: one poller per repository reads every issue that changed within the driver's backfill window, oldest change first by default.It is a decision record only. The implementation is a separate change.
Changed since the first review
The first review approved an earlier text. Since then:
tracker.jira.poll.backfill_window_hours(default 24, no upper limit). The earlier text kept it fixed at 24 hours.Related Issue
None. Related work:
Changes
tracker.jira.poll.max_dispatches_per_cycle(default 100, from 1 to 250) replaces both keys of ADR 0160, neither of which shipped.tracker.jira.poll.backfill_window_hours(default 24, at least 1, no upper limit) sets the length of the backfill window.docs/architecture.md: the Jira poll entries reflect the target state.Unchanged: change detection, bot filtering, authorization, the window's clamps, and ADR 0160's activity filter and checkpoint clause.
Defaults that change
These land with the ADR unless a reviewer objects in review:
ORDER BY updated DESC, as the documented examples do today) draws one warning per cycle.What it does not fix
Evidence for the claims about current behaviour
Checked at
5f6c718f8361.internal/jirapoll/poller.goL89-L90 (default), L414 (SearchIssues(ctx, jql, p.opts.M))internal/jirapoll/poller.goL92-L93, L146, L152, L458internal/config/issue_targets.goL102, L222-L241docs/reference/config-reference.mdL84, L477;docs/guides/user/jira-integration.mdL1011internal/jirapoll/poller.goL98-L99;internal/jirapoll/lock.goL231-L232max_issues_per_cycleormax_candidatesin any Go or YAML fileinternal/scaffold/fullsend-repo/templates/jira-poll-per-repo.yamlL23, L30-L32, L38internal/scaffold/fullsend-repo-gitlab/.gitlab/ci/fullsend-poll.ymlL15 (resource_group)internal/jirapoll/lock.goL28-L34.github/workflows/reusable-poll-jira.ymlL58, L116-L132;.github/workflows/reusable-dispatch.ymlL2912-L2914internal/jirapoll/poller.goL198-L205, L278internal/jirapoll/poller.goL284-L303;.github/workflows/reusable-poll-jira.ymlL101-L116internal/jirapoll/poller.goL468-L470internal/jirapoll/poller.goL494;internal/jirapoll/lock.goL186-L189internal/forge/jira/client.goL556-L561docs/guides/user/jira-integration.mdL1445internal/jirapoll/poller.goL48, L552-L555internal/jirapoll/poller.goL207-L240Jira behaviour the design relies on
Nothing in the repository exercises these, so I checked them against a live Jira Cloud site on 2026-11-23 with a test account.
POST /rest/api/3/search/jqlwith"properties": ["<checkpoint key>"]returned the value, and it matched a direct property read on three issuesupdatedupdatedtime, andupdateddid not moveupdatedupdatedmoved both timesupdated >= -24h,"-24h",-1440m,-1dand an absolute time all returned the same rowsupdatedorder is not returned twice#9758 records the same results for the second, third and fourth rows from its own checks.
The search read about 210 rows per second at 50 rows per page.
One thing I did not expect: on that site an automation changes a field without advancing
updated. Anything that comparesupdatedwith the checkpoint, including ADR 0160's activity filter, does not see a change made that way until something else changes the issue. In one day of that site's history the only field changed that way was one that an automation maintains; every label, status and assignee change advancedupdated.Testing
make lintpasses (pre-commit runon the staged change)Checklist
!for breaking changes)🤖 Generated with Claude Code