New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Modification duplicate removal can fail for large source control histories. #10052
Comments
Thanks for the well articulated report! Haven't tried it, and may have misunderstood the error location, but I wonder if there is a workaround where you trigger with options a specific revision way back in history with less than 32k commits and then progressively trigger a couple of subsequent builds. It's possible you can't even get past that step though as might rely on the same code in trigger-with-options to validate the revisions. In which case I wonder if there is a way to edit the git material to achieve something similar (maybe not). 🤔 |
I wonder if setting up that material for shallow cloning helps. |
My recollection is that shallow cloning only applies on agents, and the server always does full |
This issue has been automatically marked as stale because it has not had activity in the last 90 days. |
Issue Type
Summary
When attempting a material update that has greater than 32767 modifications, the deduplication check here Seems to attempt to pass all of them into the query, causing a driver error:
Caused by: java.io.IOException: Tried to send an out-of-range integer as a 2-byte value: 82273
leading to
Environment
21.2.0 (12498-16e1ac6956cd5177a99dc3fe33503661881c354f)
15.0.2
Linux 5.8.0-1041-aws
Steps to Reproduce
git remote add moodle https://github.com/moodle/moodle.git
to add a project as a remote that has a large master historygit merge -X theirs --allow-unrelated-histories moodle/master
to merge the remote project into your repo and branchExpected Results
Pipeline should correctly parse all the commits, and show the latest revision as the latest commit in the remote repo merged.
Actual Results
Global error
Possible Fix
Chunk the deduplication check query so that it cant exceed the driver parameter integer limit.
The text was updated successfully, but these errors were encountered: