Repository navigation
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 keep summaries lean with Findings visible per group, which tucks the rest behind a View link |
PR Summary by QodoDocument oldest-first Jira polling with one poller per repository
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://c94af766-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. |
ReviewFindingsMedium
Next steps:
Previous run<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJyZXF1ZXN0LWNoYW5nZXMiLCJmaW5kaW5ncyI6W3sic2V2ZXJpdHkiOiJtZWRpdW0iLCJjYXRlZ29yeSI6ImVkZ2UtY2FzZSIsImZpbGUiOiJkb2NzL0FEUnMvMDA4NS1zZXJ2ZS1jaGFuZ2VkLWppcmEtaXNzdWVzLW9sZGVzdC1maXJzdC5tZCIsImlkIjoiZl9mODBkNmIxM2QzY2Y1NzBmIiwibGluZSI6MTI2LCJhY3Rpb25hYmxlIjp0cnVlLCJkaW1lbnNpb24iOiJjb3JyZWN0bmVzcyJ9XX0= --> 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 |
| dispatching. Reading one issue is limited to two minutes. An issue that | ||
| takes longer is treated as a failed read is today: the driver warns, | ||
| naming the issue, takes none of its records, leaves its checkpoint where | ||
| it was, and goes on to the next issue. All of an issue's records go out |
There was a problem hiding this comment.
[medium] edge-case
The two-minute per-issue timeout still lets slow issues starve unrelated healthy ones. Under Decision §3 the five-minute cycle budget covers the search and every per-issue read, and a timed-out issue keeps its checkpoint and its place at the front of the ascending-updated order. If two or three of the oldest active issues keep timing out, their reads use up the whole budget every cycle, so issues behind them are never reached, possibly until their requests leave the 24-hour backfill window. Consequences only says "a slow one costs up to two minutes of each cycle" and does not cover several slow issues together. Bounding each failed read does not guarantee progress across cycles.
Suggested fix: Specify a cross-cycle retry/backoff or fair-resumption mechanism (e.g. deprioritize or skip an issue for N cycles after a timeout, or cap the share of the cycle budget spent on previously failed issues), or record this starvation mode explicitly in Consequences as accepted. Require a test with several oldest issues timing out and a healthy later issue that must still be served before its request expires.
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 24-hour backfill window, oldest change first.It is a decision record only. The implementation is a separate change.
Related Issue
None. Related work:
Changes
updated, with no row limit. The random pick and the per-issue lock are removed. Before it reads an issue's comments and history, the driver confirms that it can write to the issue, as the lock write did. A cycle in which every issue fails that check ends in an error, as today.tracker.jira.poll.max_dispatches_per_cycle(default 100, from 1 to 250) replaces both keys of ADR 0160, neither of which shipped.docs/architecture.md: the Jira poll entries reflect the target state.Unchanged: change detection, bot filtering, authorization, the 24-hour window with its clamps, and ADR 0160's activity filter and checkpoint clause.
Defaults that change
These land with the ADR unless a reviewer objects in review:
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/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