Repository navigation
feat(jirapoll): skip Jira poll candidates with no new activity - #9758
Conversation
AddIssue now starts updated equal to created, and AddCommentFromActorAt and AddLabelChangeAt move it forward to the activity time, never back. Entity property calls leave it alone, as Jira does. The Jira poller's idle skip compares updated with its checkpoint, so the mock must serve it the way Jira does. Signed-off-by: Dharit Shah <dhshah@redhat.com>
The lock pass now also reads each unlocked candidate's lastCheck and keeps only the candidates whose search-row updated value is after it, clamped as processIssue clamps it (ADR 0160, Decision item 1). The random pick then runs on those, so a handled issue no longer takes one of the N slots. An unreadable, garbage or unset lastCheck, or an unusable updated value, keeps the issue. The filter reads lastCheck through a new quiet loader and logs one line per cycle naming the clamped candidates. The line is a WARNING, with the "predates the backfill window" phrase, only when an issue's activity after its lastCheck is itself older than the window. readLastCheck and its two WARNING lines are unchanged. The poll complete line reports the active count. Signed-off-by: Dharit Shah <dhshah@redhat.com>
detectChanges now raises maxSeen to the search row's updated value when that is later, before the 10-second safety cap (ADR 0160, Decision item 3). Jira moves updated for changes that leave no comment or changelog entry, or stamps it just after the newest entry; without this such an issue would pass the activity filter every cycle. An updated value that does not parse adds nothing, and the checkpoint still never moves back. Signed-off-by: Dharit Shah <dhshah@redhat.com>
The Jira guide now says the pick runs on candidates with new activity, that lastCheck also advances to the issue's updated value, which log lines carry the backfill-window alert, and what the filter costs. The behaviour-testing guide notes the jiramock updated change. Signed-off-by: Dharit Shah <dhshah@redhat.com>
|
🤖 Finished Review · ✅ Success · Started 7:35 PM UTC · Completed 7:54 PM UTC Commit: Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $3.76 |
Site previewPreview: https://91cd6ca0-site.fullsend-ai.workers.dev Commit: |
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
|
Risk Assessment: moderate (2/5) DetailsModerate risk change modifying existing Jira poller behavior without a feature flag across files with elevated recent churn, balanced by zero protected or security-sensitive paths, substantial test coverage, and a tightly aligned active linked issue. Previous runRisk Assessment: moderate (2/5) DetailsModerate risk change modifying existing Jira poller behavior without a feature flag across files with elevated recent churn, balanced by zero protected or security-sensitive paths, substantial test coverage, and a tightly aligned active linked issue. Previous run (2)Risk Assessment: moderate (2/5) DetailsModerate risk change modifying existing Jira poller behavior without a feature flag across files with elevated recent churn, balanced by zero protected or security-sensitive paths, substantial test coverage, and a tightly aligned active linked issue. Previous run (3)Risk Assessment: moderate (2/5) DetailsModerate risk change modifying existing Jira poller behavior without a feature flag across files with elevated recent churn, balanced by zero protected or security-sensitive paths, high test coverage, and a tightly aligned active linked issue. Previous run (4)Risk Assessment: moderate (2/5) DetailsModerate risk change modifying existing Jira poller behavior without a feature flag across files with elevated recent churn, balanced by zero protected or security-sensitive paths, substantial test coverage, and a tightly aligned active linked issue. Previous run (5)Risk Assessment: moderate (2/5) DetailsModerate risk change modifying existing Jira poller behavior without a feature flag across files with elevated recent churn, balanced by zero protected or security-sensitive paths, substantial test coverage, and a tightly aligned active linked issue. Previous run (6)Risk Assessment: moderate (2/5) DetailsModerate risk change modifying existing Jira poller behavior without a feature flag across files with elevated recent churn, balanced by zero protected or security-sensitive paths, substantial test coverage, and a tightly aligned active linked issue. Previous run (7)Risk Assessment: moderate (2/5) DetailsModerate risk change modifying existing Jira poller behavior without a feature flag across files with elevated recent churn, balanced by zero protected or security-sensitive paths, high test coverage, and a tightly aligned active linked issue. |
ReviewFindingsLow
Previous run<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJhcHByb3ZlIiwiZmluZGluZ3MiOlt7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJiYWNrd2FyZC1pbmNvbXBhdGlibGUiLCJmaWxlIjoicGtnL2JlaGF2aW91cnRlc3QvZHJpdmVycy9qaXJhbW9jay9zZXJ2ZXIuZ28iLCJpZCI6ImZfYmM5YTliZjlkNjZiYTM0MSIsImxpbmUiOjcxLCJhY3Rpb25hYmxlIjpmYWxzZSwiZGltZW5zaW9uIjoiY3Jvc3Mtcm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MGJhYzBlYmY1NjU2Iiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfM2FmNWY2OWRhZmVlNGJiMiIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9LHsiaWQiOiJmXzZlNDcwYmE3NDBmMmY1OTIiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifV19 --> ReviewFindingsLow
Previous run (2)<!-- fullsend:review-diff-hash:390875cf2702cada10ab9c23d3171364dbcbddff3e76b440e179bd0d1ea505cf --> ReviewFindingsLow
Earlier findings
Previous run (3)<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJhcHByb3ZlIiwiZmluZGluZ3MiOlt7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJiYWNrd2FyZC1pbmNvbXBhdGlibGUiLCJmaWxlIjoicGtnL2JlaGF2aW91cnRlc3QvZHJpdmVycy9qaXJhbW9jay9zZXJ2ZXIuZ28iLCJpZCI6ImZfOTJmMmU4YzVkNjQ2ZjBlZiIsImxpbmUiOjUyLCJhY3Rpb25hYmxlIjpmYWxzZSwiZGltZW5zaW9uIjoiY3Jvc3MtcmVwby1jb250cmFjdHMifSx7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJiYWNrd2FyZC1pbmNvbXBhdGlibGUiLCJmaWxlIjoicGtnL2JlaGF2aW91cnRlc3QvZHJpdmVycy9qaXJhbW9jay9zZXJ2ZXIuZ28iLCJpZCI6ImZfYmM5YTliZjlkNjZiYTM0MSIsImxpbmUiOjcxLCJhY3Rpb25hYmxlIjpmYWxzZSwiZGltZW5zaW9uIjoiY3Jvc3MtcmVwby1jb250cmFjdHMifSx7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJlZGdlLWNhc2UiLCJmaWxlIjoicGtnL2JlaGF2aW91cnRlc3QvZHJpdmVycy9qaXJhbW9jay9zZXJ2ZXIuZ28iLC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GltZW5zaW9uIjoiZG9jcy1jdXJyZW5jeSJ9LHsic2V2ZXJpdHkiOiJsb3ciLCJjYXRlZ29yeSI6ImluY29ycmVjdC1kb2MiLCJmaWxlIjoiZG9jcy9hcmNoaXRlY3R1cmUubWQiLCJpZCI6ImZfNmU0NzBiYTc0MGYyZjU5MiIsImxpbmUiOjU1MywiYWN0aW9uYWJsZSI6ZmFsc2UsImRpbWVuc2lvbiI6ImRvY3MtY3VycmVuY3kifV0sImRpc3Bvc2l0aW9ucyI6W3siaWQiOiJmXzNhZjVmNjlkYWZlZTRiYjIiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifSx7ImlkIjoiZl9iYzlhOWJmOWQ2NmJhMzQxIiwic3RhdHVzIjoib3BlbiJ9LHsiaWQiOiJmXzZlNDcwYmE3NDBmMmY1OTIiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifSx7ImlkIjoiZl85MmYyZThjNWQ2NDZmMGVmIiwic3RhdHVzIjoib3BlbiJ9LHsiaWQiOiJmX2U4MjgxOWFhMTgzNGY0ZDAiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifSx7ImlkIjoiZl9kZmQ4MjY0MDdkZDRkZDU2Iiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfYzRmMTA1ZGNiNDdkM2QwMyIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9LHsiaWQiOiJmXzNlN2EwYmFjMGViZjU2NTYiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifV19 --> ReviewFindingsLow
Earlier findings
Previous run (4)<!-- fullsend:review-diff-hash:2fc4f970a911a8a712385cf470996325be614a66dc12fbb6c4135bf510f70e2a --> ReviewFindingsLow
Earlier findings
Previous run (5)<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJhcHByb3ZlIiwiZmluZGlu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JhYzBlYmY1NjU2Iiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfNmU0NzBiYTc0MGYyZjU5MiIsInN0YXR1cyI6Im9wZW4ifSx7ImlkIjoiZl85MmYyZThjNWQ2NDZmMGVmIiwic3RhdHVzIjoib3BlbiJ9LHsiaWQiOiJmX2U4MjgxOWFhMTgzNGY0ZDAiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifSx7ImlkIjoiZl9kZmQ4MjY0MDdkZDRkZDU2Iiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfYzRmMTA1ZGNiNDdkM2QwMyIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9XX0= --> ReviewFindingsLow
Earlier findings
Previous run (6)<!-- fullsend:review-diff-hash:97084e5aefa222fe6d857114b793b2194b2faebe438c94cc238be92082358841 --> ReviewFindingsLow
Previous run (7)<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJhcHByb3ZlIiwiZmluZGluZ3MiOlt7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJpbmNvcnJlY3QtZG9jIiwiZmlsZSI6ImRvY3MvYXJjaGl0ZWN0dXJlLm1kIiwiaWQiOiJmXzNhZjVmNjlkYWZlZTRiYjIiLCJsaW5lIjo1NTgsImFjdGlvbmFibGUiOmZhbHNlLCJkaW1lbnNpb24iOiJkb2NzLWN1cnJlbmN5In0seyJzZXZlcml0eSI6ImxvdyIsImNhdGVnb3J5IjoiYmFja3dhcmQtaW5jb21wYXRpYmxlIiwiZmlsZSI6InBrZy9iZWhhdmlvdXJ0ZXN0L2RyaXZlcnMvamlyYW1vY2svc2VydmVyLmdvIiwiaWQiOiJmX2JjOWE5YmY5ZDY2YmEzNDEiLCJsaW5lIjo3MSwiYWN0aW9uYWJsZSI6ZmFsc2UsImRpbWVuc2lvbiI6ImNyb3Nz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ZpbGUiOiJwa2cvYmVoYXZpb3VydGVzdC9kcml2ZXJzL2ppcmFtb2NrL3NlcnZlcl90ZXN0LmdvIiwiaWQiOiJmX2RmZDgyNjQwN2RkNGRkNTYiLCJsaW5lIjozMTUsImFjdGlvbmFibGUiOnRydWUsImRpbWVuc2lvbiI6InN0eWxlLWNvbnZlbnRpb25zIn0seyJzZXZlcml0eSI6ImxvdyIsImNhdGVnb3J5IjoicGF0dGVybi1pbmNvbnNpc3RlbmN5IiwiZmlsZSI6ImludGVybmFsL2ppcmFwb2xsL3BvbGxlcl9pZGxlX3Rlc3QuZ28iLCJpZCI6ImZfYzRmMTA1ZGNiNDdkM2QwMyIsImxpbmUiOjE5LCJhY3Rpb25hYmxlIjpmYWxzZSwiZGltZW5zaW9uIjoic3R5bGUtY29udmVudGlvbnMifV0sImRpc3Bvc2l0aW9ucyI6W3siaWQiOiJmXzZlNDcwYmE3NDBmMmY1OTIiLCJzdGF0dXMiOiJvcGVuIn0seyJpZCI6ImZfOTJmMmU4YzVkNjQ2ZjBlZiIsInN0YXR1cyI6Im9wZW4ifSx7ImlkIjoiZl9lODI4MTlhYTE4MzRmNGQwIiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfZGZkODI2NDA3ZGQ0ZGQ1NiIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9LHsiaWQiOiJmX2M0ZjEwNWRjYjQ3ZDNkMDMiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifV19 --> ReviewFindingsLow
Previous run (8)<!-- fullsend:review-diff-hash:97084e5aefa222fe6d857114b793b2194b2faebe438c94cc238be92082358841 --> ReviewFindingsLow
Previous run (9)<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJhcHByb3ZlIiwiZmluZGluZ3MiOlt7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJpbmNvcnJlY3QtZG9jIiw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IjoiZl9jNGYxMDVkY2I0N2QzZDAzIiwibGluZSI6MTksImFjdGlvbmFibGUiOmZhbHNlLCJkaW1lbnNpb24iOiJzdHlsZS1jb252ZW50aW9ucyJ9XSwiZGlzcG9zaXRpb25zIjpbeyJpZCI6ImZfNmU0NzBiYTc0MGYyZjU5MiIsInN0YXR1cyI6Im9wZW4ifSx7ImlkIjoiZl85MmYyZThjNWQ2NDZmMGVmIiwic3RhdHVzIjoib3BlbiJ9LHsiaWQiOiJmX2U4MjgxOWFhMTgzNGY0ZDAiLCJzdGF0dXMiOiJyZXNvbHZlZF9ieV9jaGFuZ2UifSx7ImlkIjoiZl9kZmQ4MjY0MDdkZDRkZDU2Iiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfYzRmMTA1ZGNiNDdkM2QwMyIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9XX0= --> ReviewFindingsLow
Previous run (10)<!-- fullsend:review-diff-hash:97084e5aefa222fe6d857114b793b2194b2faebe438c94cc238be92082358841 --> ReviewFindingsLow
Earlier findings
Previous run (11)<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJhcHByb3ZlIiwiZmluZGluZ3MiOlt7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJpbmNvcnJlY3QtZG9jIiwiZmlsZSI6ImRvY3MvYXJjaGl0ZWN0dXJlLm1kIiwiaWQiOiJmXzZlNDcwYmE3NDBmMmY1OTIiLCJsaW5lIjo1NTMsImFjdGlvbmFibGUiOmZhbHNlLCJkaW1lbnNpb24iOiJkb2NzLWN1cnJlbmN5In0seyJzZXZlcml0eSI6ImxvdyIsImNhdGVnb3J5IjoiYmFja3dhcmQtaW5jb21wYXRpYmxlIiwiZmlsZSI6InBrZy9iZWhhdmlvdXJ0ZXN0L2RyaXZlcnMvamlyYW1vY2svc2VydmVyLmdvIiwiaWQiOiJmXzkyZjJlOGM1ZDY0N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9wZW4ifSx7ImlkIjoiZl9lODI4MTlhYTE4MzRmNGQwIiwic3RhdHVzIjoicmVzb2x2ZWRfYnlfY2hhbmdlIn0seyJpZCI6ImZfZGZkODI2NDA3ZGQ0ZGQ1NiIsInN0YXR1cyI6InJlc29sdmVkX2J5X2NoYW5nZSJ9XX0= --> ReviewFindingsLow
Earlier findings
Previous run (12)<!-- fullsend:review-diff-hash:c674a7a525cbe05c21fbd4b2615b8617be2d3b8eea44021700c1c6779f7e3234 --> ReviewFindingsLow
Earlier findings
Previous run (13)<!-- fullsend:review-findings-v2:eyJ2ZXJzaW9uIjoyLCJhY3Rpb24iOiJhcHByb3ZlIiwiZmluZGluZ3MiOlt7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJwYXR0ZXJuLWluY29uc2lzdGVuY3kiLCJmaWxlIjoiaW50ZXJuYWwvamlyYXBvbGwvcG9sbGVyX2lkbGVfdGVzdC5nbyIsImlkIjoiZl9jNGYxMDVkY2I0N2QzZDAzIiwibGluZSI6MTksImFjdGlvbmFibGUiOmZhbHNlLCJkaW1lbnNpb24iOiJzdHlsZS1jb252ZW50aW9ucyJ9LHsic2V2ZXJpdHkiOiJsb3ciLCJjYXRlZ29yeSI6ImluY29ycmVjdC1kb2MiLCJmaWxlIjoiZG9jcy9hcmNoaXRlY3R1cmUubWQiLCJpZCI6ImZfNmU0NzBiYTc0MGYyZjU5MiIsImxpbmUiOjU1MywiYWN0aW9uYWJsZSI6ZmFsc2UsImRpbWVuc2lvbiI6ImRvY3MtY3VycmVuY3kifSx7InNldmVyaXR5IjoibG93IiwiY2F0ZWdvcnkiOiJiYWNrd2FyZC1pbmNvbXBhdGlibGUiLCJmaWxlIjoicGtnL2JlaGF2aW91cnRlc3QvZHJpdmVycy9qaXJhbW9jay9zZXJ2ZXIuZ28iLCJpZCI6ImZfOTJmMmU4YzVkNjQ2ZjBlZiIsImxpbmUiOjUyLCJhY3Rpb25hYmxlIjpmYWxzZSwiZGltZW5zaW9uI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2ppcmFtb2NrL3NlcnZlci5nbyIsImlkIjoiZl9lODI4MTlhYTE4MzRmNGQwIiwibGluZSI6MjMyLCJhY3Rpb25hYmxlIjp0cnVlLCJkaW1lbnNpb24iOiJjb3JyZWN0bmVzcyJ9LHsic2V2ZXJpdHkiOiJsb3ciLCJjYXRlZ29yeSI6InBhdHRlcm4taW5jb25zaXN0ZW5jeSIsImZpbGUiOiJwa2cvYmVoYXZpb3VydGVzdC9kcml2ZXJzL2ppcmFtb2NrL3NlcnZlcl90ZXN0LmdvIiwiaWQiOiJmX2RmZDgyNjQwN2RkNGRkNTYiLCJsaW5lIjozMTUsImFjdGlvbmFibGUiOnRydWUsImRpbWVuc2lvbiI6InN0eWxlLWNvbnZlbnRpb25zIn0seyJzZXZlcml0eSI6ImxvdyIsImNhdGVnb3J5IjoiaW5jb3JyZWN0LWRvYyIsImZpbGUiOiJkb2NzL2FyY2hpdGVjdHVyZS5tZCIsImlkIjoiZl82ZTQ3MGJhNzQwZjJmNTkyIiwibGluZSI6NTUzLCJhY3Rpb25hYmxlIjpmYWxzZSwiZGltZW5zaW9uIjoiZG9jcy1jdXJyZW5jeSJ9LHsic2V2ZXJpdHkiOiJsb3ciLCJjYXRlZ29yeSI6ImJhY2t3YXJkLWluY29tcGF0aWJsZSIsImZpbGUiOiJwa2cvYmVoYXZpb3VydGVzdC9kcml2ZXJzL2ppcmFtb2NrL3NlcnZlci5nbyIsImlkIjoiZl85MmYyZThjNWQ2NDZmMGVmIiwibGluZSI6NTIsImFjdGlvbmFibGUiOmZhbHNlLCJkaW1lbnNpb24iOiJjcm9zcy1yZXBvLWNvbnRyYWN0cyJ9XX0= --> ReviewFindingsLow
Labels: PR changes Go code in the Jira poller and its test mock, plus user-facing guides. Next steps:
|
handleGetIssue looked up the stored issue under the state lock and encoded the shared pointer after unlocking, while the State helpers write its fields (updated, labels, ID) under the lock. A GET that ran beside one of them was a data race under -race. Copy the issue under the lock, as handleSearch already does, and add a test that fails on the old handler. The jiramock tests now parse timestamps with jiraTimeLayout instead of repeating the layout literal. Signed-off-by: Dharit Shah <dhshah@redhat.com>
|
🤖 Finished Review · ✅ Success · Started 8:05 PM UTC · Completed 8:14 PM UTC Commit: Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.90 |
Superseded by updated review
poller_idle_test.go declared its own jiraTS with the same value as jiraTimeLayout in auth_test.go. Drop it and use the existing constant. Signed-off-by: Dharit Shah <dhshah@redhat.com>
|
🤖 Finished Review · ✅ Success · Started 8:29 PM UTC · Completed 8:37 PM UTC Commit: Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $1.83 |
Superseded by updated review
waynesun09
left a comment
There was a problem hiding this comment.
[MEDIUM] internal/jirapoll/poller.go:187 (outside the diff, so it is here and not inline): any issue that keeps failing in processIssue now turns every quiet cycle red, not only one with an unparseable lastCheck.
When processIssue returns an error, the issue's lastCheck stays where it was. hasNewActivity (poller.go:539) therefore keeps the issue active on every cycle. In a quiet project it is often the only active candidate, so processErrors == len(selected) holds and Run returns all 1 selected issues failed to process on every cron tick. Before this PR the issue was one of up to 50 unlocked candidates in a random pick of N, so the run rarely went red.
The unparseable-lastCheck route (read lastCheck, poller.go:648) is already deferred to #9766/#9852, and both of those cover only that route. Other per-issue errors that keep coming back reach the same state and have no tracking issue:
detect changes(poller.go:653), for example a ListComments or ListChangelog error, or a status-resolution error frommapChangelogItemresolve actor roles(poller.go:720-722,%d of %d actor group lookups failed, auth.go:408)
The user guide does not describe this failure mode.
Suggestion: choose one fix and say in the PR which one.
- (a) Widen #9766 from the unparseable-lastCheck case to every per-issue error that keeps coming back. For example, do not count an issue against the all-failed guard if it also failed last cycle, or after K consecutive failures, and keep its per-issue WARNING.
- (b) Add a troubleshooting row to the user guide: an issue that fails on every look now fails every quiet cycle, and the cause is in the per-issue
WARNING: processing <key>line above the error.
Verified: read code at head (poller.go:172-188, 539-560, 620-722); checked #9766 scope via gh issue view at a186278; raised by: Claude, DeepSeek
jflowers
left a comment
There was a problem hiding this comment.
Council Review: feat(jirapoll): skip Jira poll candidates with no new activity
Verdict: APPROVE WITH ADVISORIES (no CRITICAL or HIGH findings; posted as APPROVE).
Summary
Implements ADR 0160 Decision items 1 and 3: the lock-filtering pass now reads each unlocked candidate's lastCheck and keeps only candidates with new activity (one activity filter: log line per cycle, WARNING only past the 1s gap tolerance), and detectChanges raises maxSeen to the search row's updated before the 10-second safety-margin cap. jiramock now tracks updated from activity, which the new 605-line idle-test suite uses to pin the behavior. All 7 dispatched reviewers returned approving verdicts (5 APPROVE, 2 APPROVE WITH ADVISORIES); CI is fully green, including codecov/patch (100% patch coverage) and behaviour-github-emulator.
Dispatch Provenance
| Run | Agent | Verdict |
|---|---|---|
| facfea1c | divisor-adversary | APPROVE |
| 6033c4a0 | divisor-architect | APPROVE |
| 76895260 | divisor-curator | APPROVE |
| 6f2f899f | divisor-fullsend | APPROVE |
| 0bd37408 | divisor-gaze-testing | APPROVE WITH ADVISORIES |
| 1e098f25 | divisor-guard | APPROVE |
| 5c2c626a | divisor-testing | APPROVE WITH ADVISORIES |
(dispatch correlation e03d42d7-f195-4844-914a-4d3ed8da06b8)
Advisories (3, all LOW)
- [LOW · test-quality]
pkg/behaviourtest/drivers/jiramock/server_test.go— theTestGetIssueConcurrentWithActivitywriter goroutine spins without sleep/yield; CPU burn and flake risk under-raceon constrained runners (divisor-gaze-testing). - [LOW · testing-conventions]
pkg/behaviourtest/drivers/jiramock/server_test.go— the new tests extend the file's testify usage, which deviates from the Go pack's stdlib-only assertion rules TC-001/TC-002 (divisor-gaze-testing). - [LOW · regression-protection]
internal/jirapoll/poller_idle_test.go— the 1sgapToleranceboundary is sampled (5ms, 2s) but never pinned exactly; a>→>=change or constant edit would shift the operator-facing miss-activity alert without failing a test (divisor-testing).
Alignment
- ADR 0160 Decision items 1 and 3 are implemented as accepted; item 4 (config keys) is intentionally omitted per ADR 0085. Linked issue #9751: criterion 1 of 4 is covered by this PR (criteria 2–4 are pending amendments outside this change).
- Prior review threads (waynesun09's
discover.goexamples, ralphbean's doc items, bot findings) are addressed at this head; the intentional jiramockupdatedbehaviors are documented in the PR threads.
Local verification
Gates ran at: a186278710610c32d1a51efadf98788e7874ec01 (worktree); config from f0d83c62ebc72455d3f0fec698df7159a04caa71. All detected tools (go test, pre-commit, make check) are covered by the passing CI test check; no local failures. (Project-declared checks could not run due to an environmental worktree-path mismatch in the review tooling — unrelated to this PR.)
This review was generated by /uf.review-pr (AI-assisted).
jflowers
left a comment
There was a problem hiding this comment.
Council Review: feat(jirapoll): skip Jira poll candidates with no new activity
Verdict: APPROVE WITH ADVISORIES (no CRITICAL or HIGH findings; posted as APPROVE). This run supersedes review 6117553110 on the same head with a materially updated advisory set: one new MEDIUM (ADR 0160 wording divergence), two new LOW findings, and two LOW advisories from the earlier run this council did not reproduce.
Summary
Implements ADR 0160 Decision items 1 and 3: the lock-filtering pass reads each unlocked candidate's lastCheck and keeps only candidates with new activity (failing open on unset, unreadable, or garbage values so an editor cannot hide an issue), and detectChanges raises maxSeen to the search row's updated before the 10-second safety-margin cap. jiramock now tracks updated from activity, and the new 605-line idle suite pins the decision table, per-cycle cost, and clamp reporting. All 7 dispatched reviewers returned approving verdicts (4 APPROVE, 3 APPROVE WITH ADVISORIES); CI is fully green on the head, including codecov/patch at 100% patch coverage.
Dispatch Provenance
| Run | Agent | Source | Model | Verdict |
|---|---|---|---|---|
| aa1333e4 | divisor-adversary | advisor | Muse-Spark-Open-816B-A42B-NVFP4 | APPROVE |
| cb4038a2 | divisor-architect | advisor | Muse-Spark-Open-816B-A42B-NVFP4 | APPROVE |
| 0637f303 | divisor-curator | advisor | Muse-Spark-Open-816B-A42B-NVFP4 | APPROVE |
| 44d06eaf | divisor-fullsend | advisor | Muse-Spark-Open-816B-A42B-NVFP4 | APPROVE |
| 1ff64cca | divisor-gaze-testing | advisor | Muse-Spark-Open-816B-A42B-NVFP4 | APPROVE WITH ADVISORIES |
| 20f4e3f0 | divisor-guard | advisor | Muse-Spark-Open-816B-A42B-NVFP4 | APPROVE WITH ADVISORIES |
| 27b5edb3 | divisor-testing | host | zai-org/glm-5-3 | APPROVE WITH ADVISORIES |
(correlation 34618691-eb38-4577-ac11-8a19b3347ae0)
Advisories (5: 1 MEDIUM, 4 LOW)
All five findings are posted inline. The MEDIUM item is the ADR 0160 floored-checkpoint wording divergence the PR body already documents and tracks in #9956; the four LOW items cover test naming, implicit wall-clock budgets in the margin tests, the SetIssueLabels fixture gap in jiramock, and the gapTolerance boundary case.
Alignment
ADR 0160 Decision items 1 and 3 land as accepted, with the documented #9956 divergence on the floored-checkpoint clause. Item 4 (config keys) stays out per ADR 0085, and #9751 criterion 1 of 4 is covered here. Prior threads (waynesun09's changelog examples, ralphbean's doc notes, the bot findings) are addressed at this head; the two intentional jiramock threads remain open for a maintainer.
Local verification
Gates ran at a186278710610c32d1a51efadf98788e7874ec01 (worktree); config from 66d7918847650225eaa7cd00e2a389484014e79c. Detected tools are covered by the passing CI test and lint checks; no local failures. Project-declared checks did not run (the declared-checks tool rejected the worktree root through the repo's symlinked .uf path); all three declared checks are path-scoped outside this diff, so none would have applied.
This review was generated by /uf.review-pr (AI-assisted).
Signed-off-by: Dharit Shah <dhshah@redhat.com>
… loop Closes #9987. - jiramock: TestGetIssueConcurrentWithActivity sleeps 1 ms after each AddComment, as suggested in review. Under -race with GOMAXPROCS=1 a run now takes about 0.02 s instead of 5.6 s. - jirapoll: an idle issue whose updated is exactly 1 s after its stored lastCheck stays out of the alert group, so changing > to >= or lowering gapTolerance now fails TestRunLogsOneClampLinePerCycle. Signed-off-by: Dharit Shah <dhshah@redhat.com>
…est budgets - poller.go: hasNewActivity's comment says a lastCheck clamped to the window's start leaves the issue idle unless updated is inside the window, that ADR 0160's Option B and Consequences say otherwise, and that #9956 tracks the correction. - behaviour-testing.md: SetIssueLabels never moves updated and adds no changelog entry; use AddLabelChange for a label change that should count as activity. - poller_idle_test.go: the two margin tests note how soon after now the poll must run for them to hold. Signed-off-by: Dharit Shah <dhshah@redhat.com>
…activity filter TestRun_NoMatchWarningSkipped's "no events on the selected issue" seeded lastCheck at the issue's updated time. With the activity filter the issue was idle and never selected, so the subtest passed without reaching the case it names. Seed lastCheck a minute earlier, check that the issue was looked at, and reword warnNoMatch's comment to match. Signed-off-by: Dharit Shah <dhshah@redhat.com>
|
🤖 Finished Review · ✅ Success · Started 5:55 PM UTC · Completed 6:05 PM UTC Commit: Runtime: pi · Model: sonnet → claude-sonnet-5-5 · Effort: high · Cost: $2.63 |
|
Risk Assessment: moderate (2/5) DetailsModerate risk change modifying existing Jira poller behavior without a feature flag across files with elevated recent churn, balanced by zero protected or security-sensitive paths, substantial test coverage, and a tightly aligned active linked issue. |
ReviewFindingsLow
|
Superseded by updated review
|
Finding threads left open (9):
|
|
@jflowers every open thread here has a reply, and they all need resolving before this can merge. Could you resolve them where the reply works for you? The review bot's threads have to be resolved by someone other than me, or the bot posts them again (re-review.md#L37-L41). |
Done |
Summary
The Jira poller now drops candidates with nothing new since their
lastCheckbefore the random pick, and a look advanceslastCheckto the issue'supdatedvalue, so a handled issue stops taking one of the N slots. Implements ADR 0160 Decision items 1 and 3.Related Issue
Part of #9751
Changes
internal/jirapoll/poller.go: the lock pass (filterLocked) also reads each unlocked candidate'slastCheckand keeps only candidates with new activity (hasNewActivity); oneactivity filter:line per cycle names the candidates whoselastCheckwas clamped, a WARNING only past a 1 s tolerance (gapTolerance);poll completereports the active count.internal/jirapoll/lock.go:loadLastCheckreads and clampslastCheckwithout logging;readLastCheckwraps it and keeps both WARNING lines as they were.internal/jirapoll/discover.go:detectChangesraisesmaxSeento the search row'supdatedvalue when that is later, before the 10-second cap.pkg/behaviourtest/drivers/jiramock/server.go:AddIssuestartsupdatedatcreated; comments and label changes move it forward; property calls leave it alone.internal/jirapoll/poller_idle_test.go,internal/jirapoll/poller_test.go,pkg/behaviourtest/drivers/jiramock/server_test.go: tests for the filter, the clamp line, theupdatedclause and the mock; per-issue call counters on the test mock.docs/guides/user/jira-integration.md,docs/guides/dev/behaviour-testing.md: the filter, its cost and log lines; a note on thejiramockchange.Notes for review:
max_issues_per_cycleandmax_candidatesconfig keys) is not in this PR: ADR 0085 replaces both keys.lastCheckolder than the backfill window is compared after the clamp to the window start, as Decision item 1 says ("clamped exactly as the driver clamps it"). Option B and the Consequences read as "a floored checkpoint makes the issue active". That reading cannot work: an issue whose storedlastCheckandupdatedare both older than the window finds nothing on a look and can never save a newerlastCheck(processIssuenever moves it back), so it would take a slot every cycle for good. The ADR wording is tracked in ADR 0160: correct item 3's examples and the floored-checkpoint wording #9956.activity filter:line per cycle naming the clamped candidates. The line starts withWARNING:and containspredates the backfill window(the phrase the guide tells operators to grep for after an outage) only when an idle issue'supdatedis more than 1 s after alastCheckthat is older than the window, so activity may have been missed. Such an issue is idle and never picked, so this line is the only trace of that. AlastCheckolder than a day is the normal state of an issue last handled more than a day ago, so otherwise the line is not an alert.gapTolerance) is there because Jira stampsupdateda little after the newest entry, and everylastChecksaved before this PR sits at that entry. Without it, after the upgrade every issue last handled more than a day ago would raise the alert every cycle with nothing missed. The live checks measured that offset at 0 to 10 ms. A change more than 1 s after the oldlastCheckstill raises it, hence "may have been missed": the poller never reads that change, and it may be one that dispatches nothing, such as a worklog or an attachment.lastCheckkeeps its issue active, so an editor cannot hide an issue by writing garbage. If that issue is the only active one, every cycle now fails at the existing "all N selected issues failed to process" guard until the property is fixed; before, idle issues were picked beside it. The guard is unchanged. Tracked in Jira poller: an unparseable lastCheck fails every quiet poll cycle #9766 and fixed by fix(jirapoll): treat an unparseable lastCheck as unset #9852, which is stacked on this PR.poll completegains a count, plus one new line per cycle), which nothing parses.jiramockchange alters what the mock serves (updated), with no API change; noted in the behaviour-testing guide beside the earlierjiramocklabels note.Testing
make lintpasses (stage changes first, then run)All pass. Patch coverage on changed production lines: 100% (67/67 statement lines).
TestJiraWorkItemVerticalLifecyclefails against the old mock and passes with the new one.Live Jira checks on throwaway tickets on a Jira Cloud site, closed afterwards. Items 1-5 ran on 2026-11-20 and all pass; items 6-8 ran on 2026-11-30 and record what Jira did:
PUT,PUT,DELETE:updatedstayed at 20:12:59.682Z all three times.updated20:13:30.401Z → 20:13:37.464Z (the comment's ownupdated20:13:37.454Z).updated20:13:37.464Z → 20:13:51.282Z.updated, and the comment list and changelog already held the entry, at or before that time.updated >= "-24h"accepted (200).updated16:12:12.481Z → 16:12:17.715Z, with a changelog entry at 16:12:17.715Z (WorklogId,timespent).updated16:12:17.715Z → 16:12:28.597Z, with a changelog entry at 16:12:28.597Z (Attachment).updated16:12:36.502Z → 16:12:44.034Z, with a changelog entry at 16:12:44.034Z (Comment).Review bot
f_92f2e8c5d646f0efandf_bc9a9bf9d66ba341are intentional: jiramock now servesupdatedequal tocreatedand moves it forward on activity, asdocs/guides/dev/behaviour-testing.mddescribes. Answers: #9758 (comment) and #9758 (comment).f_e82819aa1834f4d0andf_dfd826407dd4dd56are fixed in f754d22,f_c4f105dcb47d3d03in 2a063c9,f_3e7a0bac0ebf5656in 0ee5575. Their threads are open for a maintainer to resolve.Checklist
!for breaking changes)🤖 Generated with Claude Code