Skip to content
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

fix docker pull issues #511

Merged
merged 5 commits into from
Jul 12, 2023
Merged

fix docker pull issues #511

merged 5 commits into from
Jul 12, 2023

Conversation

tommyknows
Copy link
Contributor

chore: update shescape

When debugging issues within our Windows CI, I've noticed that
shescape has a couple of bug fixes related to Windows. Although it
turned out that shescape is not the issue here, I'm keeping that
update in just for good measure.

fix: error handling when pulling images with pull library

So far, we've only handled errors when pulling with the Docker CLI. With
the Docker CLI, we've "translated" errors to make them more helpful.

The Windows tests have now started to fail because of a broken Docker
installation, as we then fell back to the snyk-docker-pull library,
which didn't have that error translation.

This commit fixes that, and applies that error handling to both the CLI
errors as well as errors from snyk-docker-pull.

fix: error messages in debugs

Many may [object Object]s in our debug messages which are not helpful.

chore: windows docker tests

As we noticed that the tests failed because of a broken Docker
installation, we've decided to duplicate the job and run one job with a
working, and one with a broken Docker CLI.

This should give us some guarantee that these environments and the
respective pull libraries behave the same.

chore: ensure Docker in CI to work

When debugging issues within our Windows CI, I've noticed that
`shescape` has a couple of bug fixes related to Windows. Although it
turned out that `shescape` is not the issue here, I'm keeping that
update in just for good measure.
So far, we've only handled errors when pulling with the Docker CLI. With
the Docker CLI, we've "translated" errors to make them more helpful.

The Windows tests have now started to fail because of a broken Docker
installation, as we then fell back to the `snyk-docker-pull` library,
which didn't have that error translation.

This commit fixes that, and applies that error handling to both the CLI
errors as well as errors from snyk-docker-pull.
Many may `[object Object]`s in our debug messages which are not helpful.
@tommyknows tommyknows requested a review from a team as a code owner July 12, 2023 11:15
@github-actions
Copy link

github-actions bot commented Jul 12, 2023

Expected release notes (by @tommyknows)

features:
passing manifest and index digest to archive scanning (a1a4c29)

fixes:
error messages in debugs (0f961b1)
error handling when pulling images with pull library (b4de604)
package.json & package-lock.json to reduce vulnerabilities (6d88a07)

others (will not be included in Semantic-Release notes):
ensure Docker in CI to work (132fbd5)
windows docker tests (1b82d7c)
update shescape (39a79ba)

  • I hereby acknowledge these release notes are 🥙 AWESOME 🥙

As we noticed that the tests failed because of a broken Docker
installation, we've decided to duplicate the job and run one job with a
working, and one with a broken Docker CLI.

This should give us some guarantee that these environments and the
respective pull libraries behave the same.
Copy link
Contributor

@minsiyang minsiyang left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀

Copy link
Contributor

@pecodez pecodez left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@tommyknows tommyknows merged commit 884d703 into main Jul 12, 2023
1 of 2 checks passed
@tommyknows tommyknows deleted the fix-docker-pull branch July 12, 2023 12:43
@team-lumos
Copy link
Collaborator

🎉 This PR is included in version 6.5.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants