Skip to content

4554 - skills fixes#5095

Open
marko-kriskovic wants to merge 44 commits into
masterfrom
4554
Open

4554 - skills fixes#5095
marko-kriskovic wants to merge 44 commits into
masterfrom
4554

Conversation

@marko-kriskovic
Copy link
Copy Markdown
Collaborator

Pull Request Template

Use this template to quickly create a well written pull request. Delete all quotes before creating the pull request.

Description

Please include a summary of the changes and which issue has been fixed. Please also include relevant motivation
and context. List any dependencies that are required for this change.

Fixes # (issue)

if no issue exists, please create an issue and ask the maintainers about this first

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • New connector (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions, so we can reproduce.
Please also list any relevant details for your test configuration.

  • Test A
  • Test B

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes

marko-kriskovic and others added 30 commits May 26, 2026 12:17
Fixes three review comments from copilot-pull-request-reviewer on PR #5077:

1. TriggerDefinitionServiceImpl: the previous loop checked records.size()
   only at loop-entry, so a runaway initial response or an addAll of a large
   page could push the accumulator past MAX_POLLING_TRIGGER_RECORDS and
   defeat the heap-safety goal. Extract appendCapped(...) that truncates
   each append to the remaining headroom, and apply it to both the initial
   pollOutput and every subsequent page. Track whether truncation occurred
   and use it (in addition to pollImmediately) as the WARN trigger so silent
   data loss can no longer pass unannounced.

2. TriggerDefinitionServiceTest.testExecutePollingTriggerStopsAfterMaxIterations:
   replace the loose <= 200 bound with <= 101 (the exact production maximum:
   100 in-loop iterations + 1 initial poll) so off-by-one regressions fail.

3. TriggerDefinitionServiceTest.testExecutePollingTriggerStopsAfterMaxRecords:
   replace the loose <= 20_000 bound with <= 10_000 (the actual record cap)
   so a record-cap overshoot can no longer slip past the test.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
@sonarqubecloud
Copy link
Copy Markdown

@ivicac ivicac self-requested a review June 1, 2026 15:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants