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

Make test fails due to keeping github.com autogenerated folder in root #1713

Merged
merged 1 commit into from
Dec 6, 2021

Conversation

dmvolod
Copy link
Contributor

@dmvolod dmvolod commented Dec 2, 2021

fixes #1707

Also codegeneration scripts a bit refactored. Added make codegen target. Now Run unit tests in GitHub actions utilizing make test target.

@FxKu FxKu added this to the 1.8 milestone Dec 2, 2021
@@ -1,3 +1,4 @@
//go:build !ignore_autogenerated
Copy link
Member

Choose a reason for hiding this comment

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

I think, this line can be removed. When I run make codegen in this branch, I don't get this line.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@FxKu seem to this line depends of the golang version utilizing. Before adding this line, CI job has failed without it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Also saw these changes in several PRs

Copy link
Member

Choose a reason for hiding this comment

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

Which CI job? Do have links to "other PRs"?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Copy link
Member

Choose a reason for hiding this comment

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

I see, hmm:

diffing hack/../pkg against freshly generated codegen
diff -Naupr hack/../pkg/apis/acid.zalan.do/v1/zz_generated.deepcopy.go hack/../_tmp/pkg/apis/acid.zalan.do/v1/zz_generated.deepcopy.go
--- hack/../pkg/apis/acid.zalan.do/v1/zz_generated.deepcopy.go	2021-12-02 07:21:30.048366700 +0000
+++ hack/../_tmp/pkg/apis/acid.zalan.do/v1/zz_generated.deepcopy.go	2021-12-02 07:24:23.029626056 +0000
@@ -1,3 +1,4 @@
+//go:build !ignore_autogenerated
 // +build !ignore_autogenerated
 
 /*
hack/../pkg is out of date. Please run 'make codegen'
make: *** [Makefile:103: test] Error 1
Error: Process completed with exit code 2.

Copy link
Member

@FxKu FxKu Dec 3, 2021

Choose a reason for hiding this comment

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

on my machine it's the opposite. When I add this line verify-codegen fails. Maybe should update to Go 1.17 (using 1.16.0 currently).

EDIT: Upgraded to 1.17.4 locally. Now, it's the same for me like for you.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, indeed, but confusing a bit with CI is utilizing golang version 1.16.9

Copy link
Member

Choose a reason for hiding this comment

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

Can you bring back the generated code line we talked about? Then this PR can be merged.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, sure. Done.

@FxKu
Copy link
Member

FxKu commented Dec 3, 2021

Awesome @dmvolod ! Thanks a lot 😃

@FxKu
Copy link
Member

FxKu commented Dec 3, 2021

👍

1 similar comment
@Jan-M
Copy link
Member

Jan-M commented Dec 6, 2021

👍

@FxKu FxKu merged commit 8959618 into zalando:master Dec 6, 2021
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.

Make test fails due to keeping github.com autogenerated folder in root
3 participants