fix: Test and tweak pkg install#19
Conversation
Review Summary by QodoFix GPG package installation and update version test
WalkthroughsDescription• Replace separate gpg and gpg-agent packages with gnupg • Update GPG version test to match actual output format • Simplify package installation with unified GPG package Diagramflowchart LR
A["Dockerfile packages"] -- "replace gpg + gpg-agent" --> B["gnupg package"]
C["GPG version test"] -- "update expected output" --> D["gpg output format"]
File Changes1. Dockerfile
|
Code Review by Qodo
1. GPG test too permissive
|
There was a problem hiding this comment.
Pull request overview
This PR updates the dev image’s GPG installation to use Debian’s gnupg package and relaxes the corresponding container-structure-test assertion so it remains stable across output formatting differences.
Changes:
- Replace
gpg/gpg-agentAPT installs withgnupgin theDockerfile. - Update the
gpg --versiontest expectation intests/specs.yamlto match a less specific substring.
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| Dockerfile | Switches GPG-related APT packages to gnupg. |
| tests/specs.yaml | Adjusts the gpg --version expected output match to be less strict. |
💡 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 replaces the gpg and gpg-agent packages with gnupg in the Dockerfile and updates the corresponding command test in specs.yaml. Feedback was provided regarding the test update, noting that reducing the expected output string to just "gpg" decreases test specificity and could lead to false positives.
| command: "gpg" | ||
| args: ["--version"] | ||
| expectedOutput: ["gpg (GnuPG)"] | ||
| expectedOutput: ["gpg"] |
There was a problem hiding this comment.
The expected output for the gpg command has been simplified from gpg (GnuPG) to just gpg. This reduces the specificity of the test, as gpg is a very common string and might lead to false positives (e.g., if the command fails but the error message contains the word 'gpg'). It is recommended to keep the more specific string to ensure the correct GnuPG implementation is present and working as expected.
expectedOutput: ["gpg (GnuPG)"]
No description provided.