[pr-tests] xtask: test the policy's file size limit itself #72
Loading…
Reference in a new issue
No description provided.
Delete branch "iboom72/policy-size-limit"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What it changes
rejects_game_like_fileschecked the size limit with 600 KiB ofaon one line. Since the limit became 1 MiB (MAX_FILE_SIZE), that file is under it. It is still refused, but only as a long hex/base64 run, so the size check itself went untested.The new test,
rejects_only_files_over_the_size_limit, uses short lines so that no other rule applies. A file of exactlyMAX_FILE_SIZEbytes is accepted, and one byte more is refused for its size alone. It follows the constant, so it stays right if the limit changes again.How it was tested
a4422096cargo test -p xtask policy: 8 passed, including the new test andrepository_passes_policy.xtasktests, not the full workspace gates.Checklist
main.docs/asset-policy.md.Checked for overlap