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

Reproducing and Fixing #2892 #2893

Merged
merged 13 commits into from Dec 15, 2023

Conversation

mxbossard
Copy link
Contributor

@mxbossard mxbossard commented Dec 5, 2023

Reproducing and Fixing #2892

Description
Firstly : attempt to reproduce in integration tests.

Submitter Checklist

These are the criteria that every PR should meet, please check them off as you
review them:

  • Includes unit tests
  • Adds integration tests if needed.

See the contribution guide for more details.

Reviewer Notes

  • The code flow looks good.
  • Unit tests and or integration tests added.

Release Notes

Describe any changes here so maintainer can include it in the release notes, or delete this block.

@mxbossard mxbossard changed the title Add an integration test to reproduce #2892 Reproducing and Fixing #2892 Dec 5, 2023
@mxbossard
Copy link
Contributor Author

mxbossard commented Dec 5, 2023

I think I reproduced the bug with a now failing integration test. But I don't understand why the unit tests are failing. Can you help me ?

@JeromeJu
Copy link
Collaborator

JeromeJu commented Dec 5, 2023

I think I reproduced the bug with a now failing integration test. But I don't understand why the unit tests are failing. Can you help me ?

FAILED /home/runner/work/kaniko/kaniko/scripts/../hack/gofmt.sh
RUN /home/runner/work/kaniko/kaniko/scripts/../hack/linter.sh
Installing GolangCI-Lint
golangci/golangci-lint info checking GitHub for tag 'v1.51.1'
golangci/golangci-lint info found version: 1.51.1 for v1.51.1/linux/amd64
golangci/golangci-lint info installed /home/runner/work/kaniko/kaniko/hack/bin/golangci-lint
level=warning msg="[runner] The linter 'golint' is deprecated (since v1.41.0) due to: The repository of the linter has been archived by the owner.  Replaced by revive."
level=warning msg="[runner] The linter 'interfacer' is deprecated (since v1.38.0) due to: The repository of the linter has been archived by the owner. "
level=warning msg="[runner] The linter 'maligned' is deprecated (since v1.38.0) due to: The repository of the linter has been archived by the owner.  Replaced by govet 'fieldalignment'."
level=warning msg="[linters_context] rowserrcheck is disabled because of generics. You can track the evolution of the generics support by following the https://github.com/golangci/golangci-lint/issues/2649."
integration/integration_test.go:650: File is not `goimports`-ed (goimports)
		"-v", cwd + ":/cache",
FAILED /home/runner/work/kaniko/kaniko/scripts/../hack/linter.sh
make: *** [Makefile:67: test] Error 1
Error: Process completed with exit code 2.

Looks like they are just linter issues, shall be fixed with formatting IIUC

@mxbossard
Copy link
Contributor Author

mxbossard commented Dec 5, 2023

@aaron-prindle I fixed the bug, my new integration test is now passing, but I don't understand why the unit tests are failing.

@mxbossard
Copy link
Contributor Author

Ok the bug is reproduced within an integration test and fixed. Do you plan to release a 1.19.1 soon ?

@aaron-prindle aaron-prindle merged commit df488da into GoogleContainerTools:main Dec 15, 2023
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants