Skip to content

feat(jirapoll): limit one issue to 250 records and 768 KB per cycle - #9879

Draft
guyoron1 wants to merge 120 commits into
fullsend-ai:mainfrom
guyoron1:feat/jirapoll-issue-record-limits
Draft

guyoron1 wants to merge 120 commits into
fullsend-ai:mainfrom
guyoron1:feat/jirapoll-issue-record-limits

Conversation

@guyoron1

@guyoron1 guyoron1 commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Summary

One issue now contributes at most 250 dispatch records per cycle and, on the GitHub target, 768 KB of the poll job's matrix output. Over a limit the driver keeps the oldest records, drops the rest with a WARNING that names the issue, and still advances the checkpoint. Implements the per-issue limits of ADR 0085 Decision item 3, and adds the size measure the per-cycle limit (AISDLC-882) will reuse.

Draft because it is stacked on #9878 → #9876 → #9855 → #9854 → #9853 → #9852. #9758 has merged, so the base is now main. Its own changes are the commits feat(jirapoll): limit one issue to 250 records…, test(jirapoll): pin that a record over 768 KB…, refactor(jirapoll): keep an issue's records in order… and fix(jirapoll): count the matrix output the way GitHub enforces its limit; everything else in the diff belongs to the PRs below it. Jira: AISDLC-881.

Related Issue

Part of #9751

Changes

  • internal/jirapoll/limits.go (new):
    • recordOutputSize and matrixOutputSize measure records as reusable-poll-jira.yml emits them (jq -c '{include: .}'): compact JSON, two bytes for each byte of UTF-8. GitHub documents the 1 MB limit on a job's outputs as "approximated based on UTF-16 encoding"; two bytes per UTF-8 byte is what github.com enforces, as measured for ci(jira-poll): add a full-size batch check for the GitHub hand-off #9917.
    • capIssueRecords applies maxRecordsPerIssue (250, both targets) and maxMatrixOutputBytes (768 KB, GitHub target only). It ranks the records by the time of the event that produced them, keeps the oldest that fit, and returns the kept ones in the order they were produced. The limits only drop the newest records; they never reorder.
  • internal/jirapoll/poller.go: processIssue records each record's event time and passes the issue's records through capIssueRecords. The checkpoint is not touched, so it advances past what is dropped, as with the 100-event cap, which is unchanged.
  • internal/jirapoll/limits_test.go (new): the measure against a hand-written compact JSON string with two-, three- and four-byte characters and a U+007F; the measure against jq's own output for each kind of character (skipped where jq is not installed); 270 records cut to the oldest 250 on both targets, still in the order they were produced; ten records of about 200 KB cut to the oldest three on GitHub and all kept on GitLab; a single record over 768 KB dropped; records within the limits untouched.
  • docs/guides/user/jira-integration.md: a "Per-issue limits" paragraph under Poll coordination.

Notes for review:

  • Oldest by event time. Events are not produced in time order (an opened event, then comments in listing order, then changelog entries, and an edited comment carries its edit time), so "keeps the oldest" uses the time of the event behind each record. Records are ranked, not moved, so the ones that are kept stay in the order they were produced.
  • The measure is never below what GitHub counts, and exact for text that Go and jq write alike. Go writes <, >, &, U+2028 and U+2029 as six-character escapes where jq writes the character, so such text is counted high and the limit can trip a little early. jq writes U+007F as a six-character escape where Go writes the character, so each one is counted as six. TestMatrixOutputSizeIsNotBelowJq holds the measure against jq 1.7.1.
  • The first version counted two bytes per UTF-16 code unit, which is right for ASCII and two to three times too low for other characters. The full-size check in ci(jira-poll): add a full-size batch check for the GitHub hand-off #9917 found it: GitHub rejected a batch of three-byte characters that the count allowed. The last commit here is the fix; limits for plain ASCII text did not change.
  • A single record above 768 KB is dropped, with the warning, since dispatching it would lose the whole batch.
  • Not marked breaking: no field, flag or default changes. An issue that produced more than 250 records in one cycle now has the newest dropped.
  • 3 December: the "Per-issue limits" paragraph this PR adds to the Jira guide is wrapped at about 80 columns, as docs/contributing/documentation.md asks. The text is unchanged.

Testing

  • make lint passes (stage changes first, then run)
  • Tests added/updated for new or modified logic
go test -race -count=1 ./internal/jirapoll/
go test -count=1 -run 'Jira|jira|Poll|poll' ./internal/cli/ ./internal/poll/ ./pkg/behaviourtest/...

All pass. Patch coverage on changed production lines: 64/64.

Checklist

  • PR title follows Conventional Commits (correct type, ! for breaking changes)
  • Commits are signed off (DCO) — human and human-directed agent sessions only
  • I wrote this contribution myself and can explain all changes in it

A lastCheck entity property that is not a timestamp made loadLastCheck
return an error, so processIssue failed the issue on every pick and
never saved a valid value. The activity filter keeps such an issue
active, so when it was the only active candidate every quiet cycle
ended in "all 1 selected issues failed to process".

Treat a value that is not a JSON string holding an RFC 3339 timestamp
as unset, as a future value already is. The issue gets one first-poll
look bounded by the backfill window, which saves a valid lastCheck.
Processing logs a WARNING naming the issue without the stored value,
and the filter's per-cycle line names such candidates. A failed read
is still an error.

Amend ADR 0160 Decision item 1, which said the per-issue error path
reports such a value, and update the Jira guide's security note.

Fixes fullsend-ai#9766

Signed-off-by: guy oron <goron@redhat.com>
Implements ADR 0085 Decision item 1. The managed GitHub workflow and
the managed GitLab schedule run one poll cycle at a time per
repository, so the lock never coordinated anything there.

- The driver neither reads nor writes the lock property and ignores
  locks left by earlier versions. filterLocked becomes filterActive,
  the activity filter alone. attemptLock, releaseLock, readLock,
  isLockStale, LockValue, Options.StaleThreshold and the jitter
  sleep go.
- Before reading an issue's comments and history, processIssue
  writes a writeCheck entity property to confirm the credential can
  write, as the lock write did. An issue that fails yields no records
  and the driver warns and goes on; a cycle in which every selected
  issue fails ends in the existing all-failed error. Idle candidates
  still cost no write.
- The "poll complete" line drops its unlocked count.
- The Jira guide, architecture overview and custom poller example
  describe the one-cycle-per-repository rule; the example gains a
  concurrency group.

BREAKING CHANGE: the jira-poll driver no longer locks issues. A
scheduler other than the managed GitHub workflow or GitLab schedule
must keep two poll cycles for one repository from overlapping, for
example with a GitHub Actions concurrency group; overlapping cycles
dispatch the same requests twice. Lock properties left by earlier
versions are ignored and can be deleted.

Signed-off-by: guy oron <goron@redhat.com>
…one unit

processIssue appended its dispatch records straight to the cycle's
list, and Run sliced them back out by index to pair them with the
issue's checkpoint. processIssue now returns a pendingCheckpoint that
holds both, and Run adds the records and the checkpoint to the cycle
together.

No behaviour changes. The per-cycle and per-issue limits of ADR 0085
Decision item 3 need this: an issue that does not fit in the room left
must be left out whole, records and checkpoint, for the next cycle.

Signed-off-by: guy oron <goron@redhat.com>
Implements the time limits of ADR 0085 Decision item 3.

- Run reads under a context that ends CycleTimeLimit (5m) after the
  cycle starts: the auth preflight, the search, the activity filter and
  the selected issues. Each issue is read under its own IssueTimeLimit
  (2m) context. Dispatching and committing checkpoints keep the caller's
  context, so they get the rest of the job's time.
- An issue over its limit is a failed read: a WARNING names it, none of
  its records are taken and its lastCheck stays, and the next issue is
  read. When the cycle limit is reached the issue being read and those
  not reached wait for the next cycle, and the cycle dispatches and
  commits what it finished and exits normally.
- A cycle that serves none of its selected issues fails: the existing
  "all N selected issues failed to process" error, or a new one when
  the cycle limit ended reading first.
- The Jira guide describes the limits.

Signed-off-by: guy oron <goron@redhat.com>
Implements the checkpoint clause of ADR 0085 Decision item 2. The
activity filter read every candidate's lastCheck property with its own
call; the search now returns it with each row, so the filter makes no
call of its own. Processing still reads lastCheck from the issue.

- jira.LiveClient.SearchIssues takes the names of entity properties to
  return (the search/jql "properties" parameter) and decodes them into
  the new Issue.Properties.
- searchCandidates asks for the target's lastCheck key. hasNewActivity
  parses the row's value with the new parseLastCheck, split out of
  loadLastCheck, and fails open as before: a row without the property,
  or with one that does not parse, is active. filterActive and
  hasNewActivity drop their context argument.
- jiramock's search returns the requested properties an issue has, as
  Jira does.
- The Jira guide and the behaviour-testing guide describe the change.

Signed-off-by: guy oron <goron@redhat.com>
Implements the pool of ADR 0085 Decision item 2, except the
backfill_window_hours setting.

- searchCandidates limits the configured query to the issues whose
  updated value falls within the backfill window, as
  (<query>) AND updated >= "-24h", and reads every row: Options.M and
  its 50-row limit go.
- A query with no ORDER BY is sorted oldest change first
  (ORDER BY updated ASC). A query's own ORDER BY is kept, and
  ORDER BY updated DESC logs a WARNING once per cycle recommending
  oldest change first. The default query no longer carries a sort
  clause.
- jira.SearchIssues returns ErrSearchTruncated with the issues it read
  when results remain after its 200-page cap (10,000 issues); the
  poller logs a WARNING and serves those rows, so a pool larger than
  the cap is not cut short silently.
- The ORDER BY splitter moves from internal/config to the new
  internal/jql package so the poller can use it.
- The Jira guide, the config reference and the custom poller example
  describe the window and the order, and their example queries drop
  the newest-first sort clause.

BREAKING CHANGE: the default tracker.jira.poll.query is now
"statusCategory != Done" with no ORDER BY, the poller reads issues
oldest change first unless the query has its own ORDER BY, and it
searches only issues updated within the last 24 hours, with no 50-row
limit. A query that ends in ORDER BY updated DESC still works and logs
a WARNING every cycle; remove the clause to get the recommended order.

Signed-off-by: guy oron <goron@redhat.com>
Review follow-up for the unparseable lastCheck fix.

- TestRunGarbageLastCheckTreatedAsUnset runs a full cycle for each way
  a stored value can fail: a string that is not a time, JSON that is
  not a string, and bytes that are not JSON. The first only reaches the
  time.Parse branch; the other two reach the json.Unmarshal branch.
- It asserts the saved lastCheck equals the issue's updated value
  instead of only being set.
- TestRunAllSelectedIssuesFailedFailsCycle restores coverage of Run's
  all-failed guard, which the replaced test was the only one to reach.

Signed-off-by: guy oron <goron@redhat.com>
Review follow-up for the lock removal.

- A denied issue keeps its lastCheck unset, so its request is retried;
  the served issue's lastCheck is committed.
- The write-check property holds an RFC 3339 time, and a served issue
  costs two property writes: the check and the lastCheck.
- TestRenderJiraPollCaller asserts the managed poll job's concurrency
  group and cancel-in-progress: false. With no per-issue lock, that
  group is what keeps two cycles from overlapping.
- The two filter tests are renamed from FilterLocked to FilterActive,
  and the mock's counter comment no longer refers to a lock.

Signed-off-by: guy oron <goron@redhat.com>
…heck

Review follow-up for the lock removal.

- Restore docs/architecture.md. main already describes the lock
  removal there (ADR 0085), and the edit here conflicted with it.
- The Jira guide says the write-check property stays on the issue and
  why it is not deleted, and that the poll job's concurrency group
  covers one workflow file, so a repository must not be polled from a
  second workflow. The custom poller example says the same.
- Three code comments no longer mention a Jira lock.

Signed-off-by: guy oron <goron@redhat.com>
…-records-unit

Signed-off-by: guy oron <goron@redhat.com>
…l-time-limits

Signed-off-by: guy oron <goron@redhat.com>
…ed out

Review follow-up for the cycle and per-issue time limits.

- When the caller's context ends, Run returns "poll cycle interrupted"
  with that error. It used to log that the cycle time limit was reached
  and return a time-limit error, because a cancelled read context looks
  the same as an expired one.
- The error for a cycle that the time limit ended with no issue served
  now reads "... reached with none of the N selected issues served
  (M tried)".
- The Jira guide no longer says a cycle can run long while reading
  under sustained Jira errors: retry waits count against the limits.

Signed-off-by: guy oron <goron@redhat.com>
…eckpoint

Signed-off-by: guy oron <goron@redhat.com>

# Conflicts:
#	internal/jirapoll/poller_idle_test.go
Review follow-up for taking lastCheck from the search results.

- The mock's search answered 400 to a body it could not decode. It
  ignored the body before, so it now treats such a body as naming no
  properties.
- The multi-repo section of the Jira guide no longer says each poller
  reads an entity property per candidate; the search returns it.

Signed-off-by: guy oron <goron@redhat.com>
…dow-oldest-first

Signed-off-by: guy oron <goron@redhat.com>
…n outage

Review follow-up for the window search.

The search returns only issues that changed within the backfill
window. An issue whose last change is older than the window is no
longer listed, so:

- it is not checkpointed on first enable, and
- activity on it that fell out of the window during an outage leaves
  no "predates the backfill window" line in the log.

The Jira guide's first-enable bullet, its resume-after-a-gap bullet and
its troubleshooting row said otherwise.

Signed-off-by: guy oron <goron@redhat.com>
Implements the per-issue limits of ADR 0085 Decision item 3.

- One issue contributes at most 250 dispatch records per cycle on both
  targets and, on the GitHub target, 768 KB of the poll job's matrix
  output. Over a limit the driver keeps the oldest records, by the time
  of the event that produced them, drops the rest with a WARNING that
  names the issue, and still advances the checkpoint. Records within
  the limits keep their order.
- matrixOutputSize measures records as the managed workflow emits them,
  compact JSON inside {"include":[...]}, at two bytes per UTF-16 code
  unit, which is how GitHub approximates job output size. Go's escaped
  <, > and & count at their escaped length, so the measure can be above
  what GitHub sees and is never below.
- The cap of 100 events per issue is unchanged.
- The Jira guide describes the limits.

Signed-off-by: guy oron <goron@redhat.com>
@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

Site preview

Preview: https://ad3bc2c4-site.fullsend-ai.workers.dev

Commit: bbac7026cc8b164356668350649ee8360db4dbe8

The per-issue size limit drops a single record that is over the limit,
since dispatching it would lose the whole batch. The limit tests did
not cover that case.

Signed-off-by: guy oron <goron@redhat.com>
…remove-lock

Signed-off-by: guy oron <goron@redhat.com>

# Conflicts:
#	docs/guides/user/jira-integration.md
…-records-unit

Signed-off-by: guy oron <goron@redhat.com>
…l-time-limits

Signed-off-by: guy oron <goron@redhat.com>

# Conflicts:
#	docs/guides/user/jira-integration.md
Review follow-up for the cycle and per-issue time limits. ADR 0085
Decision item 3 says that at the cycle limit the driver stops reading
and exits normally, and that a cycle ends in an error when every issue
it tried failed or timed out. Two cases did not follow it:

- A search that ran into the cycle limit failed the run. It now logs a
  WARNING, reads no issue and exits normally.
- An issue the cycle limit cut off counted as a failure, so a cycle
  that finished no issue always failed. It now waits for the next cycle
  without counting, and the cycle fails only when at least one issue
  failed or took longer than the per-issue limit and none was served.

The Jira guide describes both.

Signed-off-by: guy oron <goron@redhat.com>
…eckpoint

Signed-off-by: guy oron <goron@redhat.com>

# Conflicts:
#	docs/guides/user/jira-integration.md
With the unparseable-lastCheck fix merged in, a stored value that is
not a timestamp is treated as unset instead of returning an error, so
parseLastCheck has no error left to return. Drop the return value and
the branch in hasNewActivity that checked it.

Signed-off-by: guy oron <goron@redhat.com>
…dow-oldest-first

Signed-off-by: guy oron <goron@redhat.com>

# Conflicts:
#	docs/guides/user/jira-integration.md
…ssue-record-limits

Signed-off-by: guy oron <goron@redhat.com>

# Conflicts:
#	docs/guides/user/jira-integration.md
…drop some

capIssueRecords sorted the records by event time when a limit was
exceeded, so the kept records came out oldest first on overflow and in
production order otherwise. It now ranks the records by event time
without moving them, keeps the oldest that fit, and returns the kept
ones in the order they were produced. The limits only ever drop the
newest records; they never reorder.

Signed-off-by: guy oron <goron@redhat.com>
…ssue-record-limits

Signed-off-by: guy oron <goron@redhat.com>
@fullsend-ai-review

fullsend-ai-review Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 11:06 PM UTC · Completed 11:15 PM UTC

Commit: 3d9df68 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $2.07

@fullsend-ai-review

Copy link
Copy Markdown

Risk Assessment: moderate (2/5)

Details

Preserved prior score of 2 (moderate): large diff across 29 files with elevated churn and regression history in the Jira poller module remains balanced by strong test coverage (45%), zero protected paths touched, and an established contributor.

@fullsend-ai-review

fullsend-ai-review Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Review

Findings

Low

  • [injection-vuln] internal/jirapoll/poller.go:222 — The processing warning interpolates issue.Key and err into CI logs without escaping. A Jira error response containing newlines or ::workflow-command:: text would reach the log verbatim. The line exists in base and is only moved by this PR, and the content comes from the configured Jira server.
    Remediation: Render both values as escaped single-line text, or use a shared CI-safe log sanitizer; add a regression test with a newline followed by ::warning::.
  • [backward-incompatible] internal/config/issue_targets.go:103 — DefaultJiraPollQuery loses its ORDER BY updated DESC, and the poller now appends updated >= "-24h" ORDER BY updated ASC. Deployments using the default query see oldest-first dispatch and a 24h window, so the PR body's "no field, flag or default changes" is only partly accurate.
    Remediation: Call out the ordering change in the release notes or PR description.
  • [backward-incompatible] internal/jirapoll/limits.go:18 — The 250-record and 768 KB per-issue caps cannot be disabled or tuned, and an issue that used to emit more records in one cycle now has the newest dropped. This is the PR's purpose but is a behavior change.
    Remediation: Document the caps as a behavior change in the release notes.

Earlier findings

  • docs/guides/user/jira-integration.md:1742, doc-style — resolved: the long lines are now wrapped at about 80 columns in the latest push.

fullsend-ai-review[bot]

This comment was marked as outdated.

@fullsend-ai-review
fullsend-ai-review Bot dismissed their stale review December 2, 2026 23:14

Superseded by updated review

@fullsend-ai-review

Copy link
Copy Markdown

Finding threads left open (3):

  1. Thread: the explanation was posted, but the thread could not be resolved. Reason: FORBIDDEN: Resource not accessible by integration. Next step: resolve it manually.
  2. Thread: the explanation was posted in this older copy of a finding thread, but it could not be resolved. Reason: FORBIDDEN: Resource not accessible by integration. Next step: resolve it manually.
  3. Thread: the explanation was posted in this older copy of a finding thread, but it could not be resolved. Reason: FORBIDDEN: Resource not accessible by integration. Next step: resolve it manually.

Outdated review threads left open (1):

  1. Thread: the review bot could not resolve this outdated thread. Reason: FORBIDDEN: Resource not accessible by integration. Next step: resolve it manually.

@codecov

codecov Bot commented Dec 2, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 98.75000% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
internal/jirapoll/poller.go 97.87% 1 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

…ble-lastcheck

Signed-off-by: guy oron <goron@redhat.com>
…remove-lock

Signed-off-by: guy oron <goron@redhat.com>
…-records-unit

Signed-off-by: guy oron <goron@redhat.com>
Every unparseable row of the filter's decision table had updated one
hour ago, inside the backfill window, where "treated as unset" and
"floored to the window start" give the same answer. The new row has
updated three days ago: unset keeps the issue active, while a floor
would drop it and leave the bad value stored.

Signed-off-by: guy oron <goron@redhat.com>
…remove-lock

Signed-off-by: guy oron <goron@redhat.com>
With the lock gone the driver deletes no entity property, so
DeleteEntityProperty leaves the JiraClient interface and the test mock.
A delete now fails to compile, which replaces the mock's delete counter.

TestRunIgnoresLegacyLock also fails if the legacy lock is read: until
now a filter that read it and skipped the issue on a read error passed.

Signed-off-by: guy oron <goron@redhat.com>
The jira-poll driver keeps no per-issue lock, so on GitLab the poll
job's resource group is what keeps two cycles apart. Nothing failed if
the template lost it.

Signed-off-by: guy oron <goron@redhat.com>
docs/architecture.md called the lock's removal a target state, and the
normalized-entity spec listed an operational lock among the properties
Fullsend keeps on an issue. The driver now writes a write-check
property instead.

Signed-off-by: guy oron <goron@redhat.com>
…-records-unit

Signed-off-by: guy oron <goron@redhat.com>
…l-time-limits

Signed-off-by: guy oron <goron@redhat.com>
…eckpoint

Signed-off-by: guy oron <goron@redhat.com>
…dow-oldest-first

Signed-off-by: guy oron <goron@redhat.com>
…ssue-record-limits

Signed-off-by: guy oron <goron@redhat.com>
@fullsend-ai-review

fullsend-ai-review Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

🤖 Finished Review · ✅ Success · Started 2:24 PM UTC · Completed 2:37 PM UTC

Commit: bbac702 · View workflow run →

Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $2.99

@fullsend-ai-review

Copy link
Copy Markdown

Risk Assessment: moderate (2/5)

Details

Moderate risk: high churn and regression activity across touched poller files in the stacked diff are mitigated by zero protected or security-sensitive paths, healthy test coverage, and an established contributor scope addressing issue #9751 with no risk labels.

@fullsend-ai-review

fullsend-ai-review Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

Review

Findings

Low

  • [injection-vuln] internal/jirapoll/poller.go:222 — The processing warning logs the issue key and the Jira error text unsanitised, so a hostile or compromised Jira response could forge log lines or workflow commands. Narrow exposure, and the statement predates this PR's own changes.
    Remediation: Optional hardening: strip newlines and control characters from Jira-sourced values before logging.
  • [injection-vuln] internal/jirapoll/poller.go — Carried forward: Jira-controlled text is still logged without neutralising newlines or workflow-command sequences in the poller's warning paths. Non-blocking hardening of the same class.
  • [backward-incompatible] internal/config/issue_targets.go:103 — DefaultJiraPollQuery loses its ORDER BY updated DESC, so repos on the default query now get issues oldest change first with no config change. Documented in the ADR and config reference; it comes from a lower PR in the stack.
    Remediation: Mention the default-ordering change in the release notes, and use a ! marker if it is judged breaking.
  • [backward-incompatible] internal/jirapoll/limits.go:18 — The per-issue limits drop an issue's newest records, the checkpoint still advances, and a WARNING is the only signal. The PR body discloses this.
    Remediation: State the behaviour change in the release notes, or report the drop somewhere more visible than a log line.

case errors.As(err, &rle):
return fmt.Errorf("load project roles for %s: %w", rle.project, rle.err)
default:
log.Printf("WARNING: processing %s: %v", issue.Key, err)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[low] injection-vuln

The processing warning log.Printf("WARNING: processing %s: %v", issue.Key, err) writes the issue key and the error to CI logs unsanitised. The error can carry Jira API errorMessages/errors text verbatim, so a hostile or compromised upstream response could forge log lines or GitHub Actions workflow commands. Practical exposure is narrow: the text comes from the authenticated Jira server, and the statement predates this PR's own changes.

Suggested fix: Optional hardening: strip newlines and control characters from the rendered error and key at one point, such as APIError.Error() or the poller's log calls.

const DefaultJiraPollQuery = "statusCategory != Done ORDER BY updated DESC"
// project (see JiraTrackingConfig.PollJQL). It carries no ORDER BY, so the
// poller serves the oldest change first (ADR 0085, Decision item 2).
const DefaultJiraPollQuery = "statusCategory != Done"

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[low] backward-incompatible

The exported constant config.DefaultJiraPollQuery loses its ORDER BY updated DESC, so repos on the default query now get issues oldest change first with no config change. The ADR and config reference document this, and issue #9751 asks for it. The change comes from a lower PR in the stack, but it is part of the reviewed diff.

Suggested fix: Mention the default-ordering change in the release notes or the introducing PR's body, and use a ! marker if it is judged breaking.

// maxRecordsPerIssue is GitHub's 256-job matrix limit less a small
// margin. It applies on both targets, so that there is one rule.
maxRecordsPerIssue = 250
// maxMatrixOutputBytes is three quarters of GitHub's 1 MB limit on a

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

[low] backward-incompatible

The new per-issue limits (250 records on both targets, 768 KB of matrix output on GitHub) drop an issue's newest records for the cycle. The checkpoint still advances, so the dropped records are never retried, and a WARNING is the only signal. The PR body discloses this and does not mark it breaking.

Suggested fix: State the behaviour change in the release notes. Consider not advancing the checkpoint past dropped records, or reporting the drop somewhere more visible than a log line.

@fullsend-ai-review
fullsend-ai-review Bot dismissed their stale review December 3, 2026 14:36

Superseded by updated review

@fullsend-ai-review

Copy link
Copy Markdown

Finding threads left open (5):

  1. Thread: the explanation was posted in this older copy of a finding thread, but it could not be resolved. Reason: FORBIDDEN: Resource not accessible by integration. Next step: resolve it manually.
  2. Thread: the explanation was posted in this older copy of a finding thread, but it could not be resolved. Reason: FORBIDDEN: Resource not accessible by integration. Next step: resolve it manually.
  3. Thread: the explanation was posted in this older copy of a finding thread, but it could not be resolved. Reason: FORBIDDEN: Resource not accessible by integration. Next step: resolve it manually.
  4. Thread: the explanation was posted in this older copy of a finding thread, but it could not be resolved. Reason: FORBIDDEN: Resource not accessible by integration. Next step: resolve it manually.
  5. Thread: the explanation was posted in this older copy of a finding thread, but it could not be resolved. Reason: FORBIDDEN: Resource not accessible by integration. Next step: resolve it manually.

Outdated review threads left open (1):

  1. Thread: the review bot could not resolve this outdated thread. Reason: FORBIDDEN: Resource not accessible by integration. Next step: resolve it manually.

This branch was successfully deployed

1 active deployment
site-preview — bbac7026 Deployed Dec 3, 2026 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

component/docs User-facing documentation go Pull requests that update go code requires-manual-review Review requires human judgment risk/moderate PR risk: moderate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants