Skip to content

Increase mem alloc for license scanning container#4691

Merged
mthalman merged 1 commit intodotnet:mainfrom
mthalman:sb5470-scancode-timeout
Feb 5, 2026
Merged

Increase mem alloc for license scanning container#4691
mthalman merged 1 commit intodotnet:mainfrom
mthalman:sb5470-scancode-timeout

Conversation

@mthalman
Copy link
Copy Markdown
Member

@mthalman mthalman commented Feb 5, 2026

Fixes dotnet/source-build#5470

The root cause is likely aboutcode-org/scancode-toolkit#4709. Increasing the memory allocation in the container fixes the issue.

Copilot AI review requested due to automatic review settings February 5, 2026 17:04
@mthalman mthalman requested review from a team as code owners February 5, 2026 17:04
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR increases the memory allocation for the license scanning container from 6GB to 12GB to address memory-related failures during license scanning operations. The change is motivated by an issue in the scancode-toolkit library that causes out-of-memory errors.

Changes:

  • Memory allocation for license scanning containers increased from 6g to 12g

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
eng/pipelines/vmr-license-scan.yml Updated memory allocation for official license scan pipeline container
eng/pipelines/vmr-license-scan-unofficial.yml Updated memory allocation for unofficial license scan pipeline container

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@mthalman mthalman enabled auto-merge (squash) February 5, 2026 18:25
@mthalman
Copy link
Copy Markdown
Member Author

mthalman commented Feb 5, 2026

/backport to release/10.0.1xx

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Feb 5, 2026

Started backporting to release/10.0.1xx (link to workflow run)

@mthalman
Copy link
Copy Markdown
Member Author

mthalman commented Feb 5, 2026

/backport to release/10.0.2xx

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Feb 5, 2026

Started backporting to release/10.0.2xx (link to workflow run)

@mthalman
Copy link
Copy Markdown
Member Author

mthalman commented Feb 5, 2026

/backport to release/10.0.3xx

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Feb 5, 2026

Started backporting to release/10.0.3xx (link to workflow run)

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Feb 5, 2026

@mthalman backporting to release/10.0.1xx failed, the patch most likely resulted in conflicts. Please backport manually!

git am output
$ git am --3way --empty=keep --ignore-whitespace --keep-non-patch changes.patch

Applying: Increase mem alloc for license scanning container
Using index info to reconstruct a base tree...
M	eng/pipelines/vmr-license-scan-unofficial.yml
M	eng/pipelines/vmr-license-scan.yml
Falling back to patching base and 3-way merge...
Auto-merging eng/pipelines/vmr-license-scan-unofficial.yml
CONFLICT (content): Merge conflict in eng/pipelines/vmr-license-scan-unofficial.yml
Auto-merging eng/pipelines/vmr-license-scan.yml
CONFLICT (content): Merge conflict in eng/pipelines/vmr-license-scan.yml
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config set advice.mergeConflict false"
Patch failed at 0001 Increase mem alloc for license scanning container
Error: The process '/usr/bin/git' failed with exit code 128

Link to workflow output

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Feb 5, 2026

@mthalman backporting to release/10.0.2xx failed, the patch most likely resulted in conflicts. Please backport manually!

git am output
$ git am --3way --empty=keep --ignore-whitespace --keep-non-patch changes.patch

Applying: Increase mem alloc for license scanning container
Using index info to reconstruct a base tree...
M	eng/pipelines/vmr-license-scan-unofficial.yml
M	eng/pipelines/vmr-license-scan.yml
Falling back to patching base and 3-way merge...
Auto-merging eng/pipelines/vmr-license-scan-unofficial.yml
CONFLICT (content): Merge conflict in eng/pipelines/vmr-license-scan-unofficial.yml
Auto-merging eng/pipelines/vmr-license-scan.yml
CONFLICT (content): Merge conflict in eng/pipelines/vmr-license-scan.yml
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config set advice.mergeConflict false"
Patch failed at 0001 Increase mem alloc for license scanning container
Error: The process '/usr/bin/git' failed with exit code 128

Link to workflow output

@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Feb 5, 2026

@mthalman backporting to release/10.0.3xx failed, the patch most likely resulted in conflicts. Please backport manually!

git am output
$ git am --3way --empty=keep --ignore-whitespace --keep-non-patch changes.patch

Applying: Increase mem alloc for license scanning container
Using index info to reconstruct a base tree...
M	eng/pipelines/vmr-license-scan-unofficial.yml
M	eng/pipelines/vmr-license-scan.yml
Falling back to patching base and 3-way merge...
Auto-merging eng/pipelines/vmr-license-scan-unofficial.yml
CONFLICT (content): Merge conflict in eng/pipelines/vmr-license-scan-unofficial.yml
Auto-merging eng/pipelines/vmr-license-scan.yml
CONFLICT (content): Merge conflict in eng/pipelines/vmr-license-scan.yml
error: Failed to merge in the changes.
hint: Use 'git am --show-current-patch=diff' to see the failed patch
hint: When you have resolved this problem, run "git am --continue".
hint: If you prefer to skip this patch, run "git am --skip" instead.
hint: To restore the original branch and stop patching, run "git am --abort".
hint: Disable this message with "git config set advice.mergeConflict false"
Patch failed at 0001 Increase mem alloc for license scanning container
Error: The process '/usr/bin/git' failed with exit code 128

Link to workflow output

@mthalman mthalman merged commit b0ed06e into dotnet:main Feb 5, 2026
17 checks passed
@mthalman mthalman deleted the sb5470-scancode-timeout branch February 5, 2026 19:32
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.

License scanning timing out at 7 hrs for SBRP

4 participants