Skip to content
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

Change max_port_file_count to warn rather than failing to calculate an ABI hash. #1104

Merged
merged 3 commits into from
Jul 7, 2023

Conversation

BillyONeal
Copy link
Member

@ras0219-msft
Copy link
Contributor

The reason for this max file count was to avoid appearing to "hang" if users accidentally cloned source repos into the port directory. We will recurse into .git directories and attempt to hash tens or hundreds of thousands of files.

Would it be more appropriate to raise this limit to 1,000 instead of removing it entirely?

@BillyONeal
Copy link
Member Author

to avoid appearing to "hang"

I think we should address this with a warning rather than just refusing to calculate the correct cache information. I'll restore the limit but make it trigger a warning rather than refusing to generate a cache entry.

@BillyONeal BillyONeal changed the title Repeal max_port_file_count. Change max_port_file_count to warn rather than failing to calculate an ABI hash. Jun 22, 2023
@BillyONeal BillyONeal merged commit 156f858 into microsoft:main Jul 7, 2023
5 checks passed
HashPortManyFiles,
(msg::package_name, msg::count),
"",
"The {package_name} contains a {count} files. Hashing these contents may take a long time when determining the ABI "
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"The {package_name} contains a {count} files. Hashing these contents may take a long time when determining the ABI "
"The {package_name} contains {count} files. Hashing these contents may take a long time when determining the ABI "

(msg::package_name, msg::count),
"",
"The {package_name} contains a {count} files. Hashing these contents may take a long time when determining the ABI "
"hash for binary caching. You should probably consider reducing the number of files. Common causes of this are "
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"hash for binary caching. You should probably consider reducing the number of files. Common causes of this are "
"hash for binary caching. Consider reducing the number of files. Common causes of this are "

"",
"The {package_name} contains a {count} files. Hashing these contents may take a long time when determining the ABI "
"hash for binary caching. You should probably consider reducing the number of files. Common causes of this are "
"accidentally checking out source or build trees into a port's directory.")
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
"accidentally checking out source or build trees into a port's directory.")
"accidentally checking out source or build files into a port's directory.")

@BillyONeal BillyONeal deleted the repeal_max_port_file_count branch July 7, 2023 21:54
BillyONeal added a commit to BillyONeal/vcpkg-tool that referenced this pull request Jul 7, 2023
BillyONeal added a commit that referenced this pull request Jul 7, 2023
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.

VCPKG rebuilds packages each time and won't generate a "vcpkg_abi_info.txt"
3 participants