-
-
Notifications
You must be signed in to change notification settings - Fork 14.7k
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
k8sgpt: 0.3.30 -> 0.3.41; move to by-name #348479
Conversation
The |
After doing some troubleshooting and research focused on the build issue, here' what I got. The error I got (it's in the attached log file):
This is related on how Go is resolving Internet host names. I tested several DNS client configurations, with and wothout stub resolver, with and without IPv6, etc, I couldn't figure out a working solution. So I forced Go to use the 8.8.8.8 resolver by adding a This is the code added, it's not included in this PR because this error might just happen on my system. But, if you think it needs to be included, I can add it.
I'm attaching the k8sgpt.log here but basically, now it shows that the
Result of 1 package built:
@developer-guy, @kranurag7, what do you recommend doing? I thought of opening an upstream issue and see if anybody else is having this issue but, when I tested it outside Nix, just using their Makefile, it worked. So a Nix issue might not be relevant to them. Thanks |
I know nix sets ref: https://nixos.org/manual/nixpkgs/stable/#var-go-CGO_ENABLED |
Thanks for checking @kranurag7. I tried with
|
I've also tried removing the |
I'm going to move it to Ready for review, to see if it passes the automatic online build process, since it may just fail on my local system. |
Thanks for working on it. Looks like the checks are passing. One more request, can you please add yourself as maintainer here, at this point, you've really gone deep in order to fix the issue and understand it better than me. |
Hi @kranurag7. I've run several tests on my system, including setting up different stub resolvers and DNS configurations based on the error that I get during the I'll open an issue upstream and ask the developers of k8sgpt. I've looked on their repo but couldn't find a similar issue. I 'd like to have all the facts before adding those variables to the nix file. I'll continue working on this tomorrow, and I'll add myself as maintainer. Thanks. |
I've been testing different solutions. I think that skipping the I'm stuck now with failing new I didn't post the issue upstream because I tested building |
They solved the See build log file: k8sgpt-x86_64-linux.log
|
Thank you for sticking through it @mrgiles I trust you and happy to get the changes in. 🥇 |
@NixOS/nixpkgs-merge-bot merge |
@kranurag7 merge not permitted (#305350): |
looks like I cannot merge this patch, I'm sure nixpkgs maintainer will take another looks and get this changes in. Thanks again for spending your time on this during the weekend. I hope this works smooth now. |
4419c5d
to
f3fcd2c
Compare
Hey @kranurag7, thanks for checking. I tried to fix the merge error myself (based on the error that you got when merging) by moving the package to I hope the Nix Packages maintainer can fix this one. |
@NixOS/nixpkgs-merge-bot merge |
@kranurag7 merge not permitted (#305350): |
Thanks for your work @mrgiles let's leave this to nixpkgs maintainer for merging it. I hope you get a good sleep now. This was quite a lot of debugging for a go package but kudos you made it to the end. :) |
Thank you for your comments @gepbird! They helped me to better understand the process. |
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.
Great, the by-name change looks good!
Again, please recreate your commits according to https://github.com/NixOS/nixpkgs/blob/master/CONTRIBUTING.md#commit-conventions.
What I mean by this you should have for example commits with these messages and delete your previous commits:
- k8sgpt: move to by-name
- k8sgpt: format
- k8sgpt: 0.3.30 -> 0.3.41
- k8sgpt: add maintainer mrgiles
If you're unsure how to do that, you can search for "git rebase" on the internet and learn it. At last resort squash your commits into a single one, you can find the instructions for that on the aforementioned link.
I haven’t reviewed this PR but I just wanted to clarify a little:
This only applies to automatic version bumps by @r-ryantm. Currently a committer’s approval is required for all human‐authored changes, so a PR like this one would not be eligible at this time even if the package was already in |
bc2deea
to
2c3dbe7
Compare
I've renamed the commits as requested. Thanks for reviewing @gepbird |
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.
Your first commit which updates the package also copies the package to by-name
, your second add maintainer commit makes unrelated changes to the package and removes the previous commit's by-name
addition, and the 3rd move to by-name
commit looks good.
Please fix the first two commits, or squash everything to one commit on the last resort.
2c3dbe7
to
b69de56
Compare
Let's see if this works. I've started it from scratch this time. Thanks. |
3820f22
to
abbf712
Compare
Maybe a better approach to preserve the history of changes to the package would be to create 2 separate PRs. |
It's preferred to do all the things for a package in one PR (unless that change gets very big/complex). Updating a package and moving it to Multiple PRs can complicate things for you and the reviewers. For example if you have PR B that depends on PR A, you either put all PR A's commits into PR B, but then you need to change something in PR A, and you need to also update PR B for that. Or if you only open PR B after PR A has been merged, the overall merge time will most likely be longer. |
Commits look at first sight, thanks! I'll review this soon. |
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.
Tested the build and binary on x86_64-linux, changes LGTM!
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.
Thanks for driving this @mrgiles
|
||
vendorHash = "sha256-9H6E1JUbxfcx3Baithu9Jr6MpxfuKE+XWz7HrTCdxA8="; | ||
|
||
# https://nixos.org/manual/nixpkgs/stable/#var-go-CGO_ENABLED |
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.
You don't have to write this
Things done
This commit updates k8sgpt to release 0.3.41
Release: v0.3.41
Note:
On my local system, the command
nixpkgs-review
passed thebuildPhase
but failed thecheckPhase
(trivy
integration test). I wanted to try and see if I can run thenixpkgs-review
command pointing to this PR, which is one of the options available. I will test this first with a draft PR.This is the local build log file: k8sgpt.log.
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.