-
Notifications
You must be signed in to change notification settings - Fork 604
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
Upgrade binary test fixtures management #2444
Merged
Merged
Conversation
This file contains 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
Signed-off-by: Christopher Phillips <[email protected]>
Signed-off-by: Christopher Phillips <[email protected]>
Signed-off-by: Alex Goodman <[email protected]>
wagoodman
reviewed
Dec 18, 2023
wagoodman
reviewed
Dec 18, 2023
Signed-off-by: Christopher Phillips <[email protected]>
Signed-off-by: Christopher Phillips <[email protected]>
Signed-off-by: Christopher Phillips <[email protected]>
Signed-off-by: Christopher Phillips <[email protected]>
Signed-off-by: Christopher Phillips <[email protected]>
Signed-off-by: Christopher Phillips <[email protected]>
Signed-off-by: Christopher Phillips <[email protected]>
Signed-off-by: Christopher Phillips <[email protected]>
Signed-off-by: Christopher Phillips <[email protected]>
Signed-off-by: Christopher Phillips <[email protected]>
33fcff0
to
fd26fc1
Compare
Signed-off-by: Christopher Phillips <[email protected]>
Signed-off-by: Christopher Phillips <[email protected]>
Signed-off-by: Christopher Phillips <[email protected]>
Signed-off-by: Alex Goodman <[email protected]>
Signed-off-by: Alex Goodman <[email protected]>
Signed-off-by: Alex Goodman <[email protected]>
Signed-off-by: Alex Goodman <[email protected]>
…pets Signed-off-by: Alex Goodman <[email protected]>
Signed-off-by: Alex Goodman <[email protected]>
Signed-off-by: Alex Goodman <[email protected]>
…pets Signed-off-by: Alex Goodman <[email protected]>
Signed-off-by: Alex Goodman <[email protected]>
kzantow
approved these changes
Jan 5, 2024
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎉
Signed-off-by: Alex Goodman <[email protected]>
7feff62
to
1860b35
Compare
Signed-off-by: Alex Goodman <[email protected]>
Signed-off-by: Alex Goodman <[email protected]>
Signed-off-by: Alex Goodman <[email protected]>
Signed-off-by: Alex Goodman <[email protected]>
…pets Signed-off-by: Alex Goodman <[email protected]>
GijsCalis
pushed a commit
to GijsCalis/syft
that referenced
this pull request
Feb 19, 2024
* test: strip fixtures of any execution permissions Signed-off-by: Christopher Phillips <[email protected]> * chore: add lint check for large files Signed-off-by: Christopher Phillips <[email protected]> * add helper script to capture binary snippets Signed-off-by: Alex Goodman <[email protected]> * chore: update scripts and add new dir output for snippets Signed-off-by: Christopher Phillips <[email protected]> * test: update erlang test to new generated format Signed-off-by: Christopher Phillips <[email protected]> * test: update memcached to new generator pattern Signed-off-by: Christopher Phillips <[email protected]> * test: update openjdk to named version Signed-off-by: Christopher Phillips <[email protected]> * test: move openjdk lts to versioned folder Signed-off-by: Christopher Phillips <[email protected]> * test: rename unversioned java to versioned folders Signed-off-by: Christopher Phillips <[email protected]> * test: migrate bash fixture to new snippet workflow Signed-off-by: Christopher Phillips <[email protected]> * test: update script to size 600 bytes Signed-off-by: Christopher Phillips <[email protected]> * test: update go classifier to new snippet workflow Signed-off-by: Christopher Phillips <[email protected]> * test: move haproxy new new snippet Signed-off-by: Christopher Phillips <[email protected]> * test: add flatter haproxy example Signed-off-by: Christopher Phillips <[email protected]> * test: update tests to new pattern Signed-off-by: Christopher Phillips <[email protected]> * test: final version of snippet script Signed-off-by: Christopher Phillips <[email protected]> * [wip] download bin helpers Signed-off-by: Alex Goodman <[email protected]> * add manager for binary cataloger test fixtures Signed-off-by: Alex Goodman <[email protected]> * add remaining binary cataloger patterns and snippets Signed-off-by: Alex Goodman <[email protected]> * adjust gitignore to be more permissive to snippets Signed-off-by: Alex Goodman <[email protected]> * add rust darwin snippets Signed-off-by: Alex Goodman <[email protected]> * skip tests that are missing full binaries Signed-off-by: Alex Goodman <[email protected]> * address PR feedback Signed-off-by: Alex Goodman <[email protected]> * add tests for binary test fixture manager Signed-off-by: Alex Goodman <[email protected]> * highlight rows that do not have binaries or snippets Signed-off-by: Alex Goodman <[email protected]> * bump fixture limit to 1K (found exceptions when adding snippets) Signed-off-by: Alex Goodman <[email protected]> * add redis and postgres snippets Signed-off-by: Alex Goodman <[email protected]> * improve formating of fixture listing Signed-off-by: Alex Goodman <[email protected]> --------- Signed-off-by: Christopher Phillips <[email protected]> Signed-off-by: Alex Goodman <[email protected]> Co-authored-by: Alex Goodman <[email protected]>
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.
Changes include:
The new test fixture helper can:
manager add-snippet
andcapture-snippet.sh
-- see the README in thetest-fixtures
directory for more info)SnippetOrBinary
to help select from available test fixtures (can be forced to only use full binaries). Responds to a new-must-use-full-binaries
test flag (see the README added in thetest-fixtures
directory). Since there are cases where we have snippets but not the original binary, when using-must-use-full-binares
these cases are skipped.For listing what fixtures exist and what coverage there is between full binaries and snippets:
To download fixtures:
... or all available binaries:
The
add-snippet
command helps select from managed binaries how to create snippetsDeferred work