Repository navigation
Release 2026-11-06 (1.4.11) - #71
Merged
Merged
Conversation
…esults Evaluation results downloaded from an S3 directory are now required to resolve inside the local results cache; keys that would resolve outside it raise ValueError before any file is written. A partially populated cache is removed on download failure. Bump version to 1.4.11.
amazeAmazing
approved these changes
Nov 6, 2026
ericgaoyh
approved these changes
Nov 6, 2026
Contributor
Author
|
Closed and re-opened to run the CodeQL scan, which was blocking merge. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
EvaluationResult._download_eval_results()now checks S3 object keys when it downloads evaluation results from an S3 directory (eval_output_pathnot ending in.tar.gz). Each key's destination is resolved and must stay inside the local results cache. A key that would resolve outside the cache, including through a symlink, raisesValueErrorbefore anything is written. This affectsSMTJEvaluationResult,SMHPEvaluationResult, andBedrockEvaluationResult.get()/show()call can't reuse it.Testing
pip install -e .succeeds.python -m pytest: 3163 passed, 36 subtests passed, 0 failures. Includes the newTestDownloadEvalResultsPathTraversaltests.python -m buildandtwine check dist/*pass foramzn_nova_forge-1.4.11.Release notes: amzn-nova-forge 1.4.11
Security
ValueErrorand nothing is written. Previously, a crafted object key in the evaluation output prefix could cause files to be written outside the cache directory when callingget(),show(), orupload_tensorboard_results(). All users should upgrade to 1.4.11.Bug Fixes