Add option to unsign driver before packaging#885
Conversation
Signed-off-by: Kostiantyn Kostiuk <kkostiuk@redhat.com>
Summary of ChangesHello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed! This pull request enhances the driver packaging capabilities by introducing an option to unsign drivers prior to their inclusion in HLKX packages. This is achieved through an update to the Highlights
Changelog
Using Gemini Code AssistThe full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips. Invoking Gemini You can request assistance from Gemini at any point by creating a comment using either
Customization To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a Limitations & Feedback Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here. You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension. Footnotes
|
There was a problem hiding this comment.
Pull request overview
This PR bumps rtoolsHCK to a version that supports removing driver signatures during project packaging, and wires that capability through the CLI into the HLKX package creation flow.
Changes:
- Bump
rtoolsHCKfromv0.6.3tov0.6.4and update Sorbet RBI for the newcreate_project_packageoption. - Add
--package-unsigned-driverCLI flag and a correspondingCliTestOptionsproperty. - Pass
remove_driver_signaturesinto the package creation call and improve logging of packaging results.
Reviewed changes
Copilot reviewed 4 out of 5 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
sorbet/rbi/gems/rtoolsHCK@0.6.4-39309cfbb5c1deeebae34c4019427803418ccd04.rbi |
Updates RBI signature to include remove_driver_signatures: keyword. |
lib/engines/hcktest/tests.rb |
Passes the new option into packaging and adds result logging. |
lib/cli.rb |
Adds package_unsigned_driver option and CLI flag. |
Gemfile.lock |
Locks rtoolsHCK to 0.6.4 git revision. |
Gemfile |
Updates rtoolsHCK git ref to v0.6.4. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Code Review
This pull request adds an option to unsign a driver before packaging it. However, a critical bug exists where a new keyword argument is passed to a method that does not support it, leading to an ArgumentError and application crash when the feature is used. Additionally, the error handling for the package creation process is incomplete, as it attempts to process and upload the package even if creation failed, which could lead to further crashes or incorrect behavior. These issues should be addressed to ensure the stability and reliability of the tool.
ab1e6ce to
3cd6ad9
Compare
|
rerun tests |
1 similar comment
|
rerun tests |
3cd6ad9 to
d0e824a
Compare
Use --package-with-driver=unsigned to remove signature from the driver before including. Signed-off-by: Kostiantyn Kostiuk <kkostiuk@redhat.com>
d0e824a to
4609f07
Compare
No description provided.