-
Notifications
You must be signed in to change notification settings - Fork 561
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
feat: upgrade snyk-iac-test to v0.51.3 #5127
Conversation
0b22fbd
to
6954e8d
Compare
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.
Questions:
- Have you manually tested this e2e with a CLI build, where
snyk iac test
is driving the updated binary, and confirmed there are no regressions? - Looking at the source changes, this new version appears to use a value derived from an environment variable SNYK_IAC_TEST_API_REST_URL when constructing a
platform.SnykPlatformClient
. Is that set by the CLI, or is there potential for regression here?
Hi @cmars! Yes, this has been tested. There seem to be a lot of changes, but all of them are internal and the only change that will be reflected in here will be a log line. The cli/src/lib/iac/test/v2/scan/index.ts Lines 64 to 87 in 74c864e
How I've tested this:
And I've also tested: without IaC+ (the flow that is not using this executable), without --report, without the debug params etc -> everything seems right. |
6954e8d
to
58ed65a
Compare
@cmars the last upgrade I've added only contains a small fix in the engine we use in snyk-iac-test (0.51.1 -> 0.51.2) |
58ed65a
to
c148e2b
Compare
@cmars I've added a new minor upgrade -> contains a fix in the engine we use in snyk-iac-test (0.51.2 -> 0.51.3) |
c148e2b
to
083b68f
Compare
083b68f
to
deb63ef
Compare
Hi @andreeaneata The original PR template asks for links to tests that verify the changes. They can be in the CLI repo or in the related repo. |
In addition, looking at the commit message and PR title, for our users and us, it is difficult to understand what they really get out of this. Please take a look at this on how to write these user facing messages. |
Hi @PeterSchafer! We have some tests in this repo that run as unit tests and also as acceptance tests that verify regressions:
They run as part of the PR check and those passed (I also run them on my local). After this PR will be merged we also have some E2E environment tests that will verify regressions for changes we add here: https://github.com/snyk/environment-testing/tree/main/test/cli/tests/iac I understand your concerns and we will do better in the future with the PR descriptions. |
@PeterSchafer Our colleagues released fixes for our policies + new rules and this PR is holding that get to our customers since the latest rules bundle is downloaded automatically based on the needed policy-engine version that is hidden by the snyk-iac-test upgrade. Can we sync somehow to understand what more is needed to move this forward? 🙏 LE: I've updated the PR description CC: @uogbonna @wayne-snyk to not get yet to the support tickets since this was not released yet - PE version before this - v0.30.5 |
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.
LGTM. Thanks for the background & context on this change, and sorry for the delay in getting back to you!.
deb63ef
to
f431491
Compare
Upgrade snyk-iac-test to v0.51.3. Changes: - Print scan URL to debug output after uploading report. - Fix panic on invalid arm input - Minor fixes in Policy-Engine
f431491
to
0b781a9
Compare
Pull Request Submission
Please check the boxes once done.
The pull request must:
feat:
orfix:
, others might be used in rare occasions as well, if there is no need to document the changes in the release notes. The changes or fixes should be described in detail in the commit message for the changelog & release notes.Pull Request Approval
Once a pull request has been reviewed and all necessary revisions have been made, it is approved for merging into
the main codebase. The merging of the code PR is performed by the code owners, the merging of the documentation PR
by our content writers.
What does this PR do?
Upgrade snyk-iac-test to v0.51.3. Changes in the snyk-iac-test -> upgrades for policy-engine to version that have the following fixes:
Risk: LOW
The main change is related to showing an addition log line for when using IaC custom debug. The upgrade of this exec is hit only for when using IaC+ (docs) that is a product that is in Open Beta.
Where should the reviewer start?
snyk-iac-test changes: https://github.com/snyk/snyk-iac-test/compare/v0.50.4...v0.51.3
policy-engine changes: snyk/policy-engine@v0.30.5...v0.30.9
These are not adding any changes of the output we get in the CLI from snyk-iac-test.
How should this be manually tested?
See this: #5127 (comment)
Any background context you want to provide?
About automated tests: #5127 (comment)
What are the relevant tickets?
IA-156
Screenshots
Additional questions