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

sonobuoy: 0.19.0 -> 0.20.0 #106928

Merged
merged 2 commits into from Jan 9, 2021
Merged

sonobuoy: 0.19.0 -> 0.20.0 #106928

merged 2 commits into from Jan 9, 2021

Conversation

wilsonehusin
Copy link
Member

Motivation for this change

Update Sonobuoy from 0.19.0 -> 0.20.0 for Kubernetes 1.20

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option sandbox in nix.conf on non-NixOS linux)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@wilsonehusin wilsonehusin changed the title Sonobuoy 0.19.0 -> 0.20.0 sonobuoy: 0.19.0 -> 0.20.0 Dec 14, 2020
@samb96
Copy link
Contributor

samb96 commented Dec 15, 2020

Result of nixpkgs-review pr 106928 1

1 package built:
  • sonobuoy

@samb96
Copy link
Contributor

samb96 commented Dec 15, 2020

@GrahamcOfBorg eval

@wilsonehusin
Copy link
Member Author

/status needs_reviewer

Raising this per suggestion on ready for review thread: https://discourse.nixos.org/t/prs-ready-for-review/3032/428

@wilsonehusin
Copy link
Member Author

/marvin opt-in
/status needs_reviewer

@marvin-mk2
Copy link

marvin-mk2 bot commented Jan 5, 2021

Hi! I'm an experimental bot. My goal is to guide this PR through its stages, hopefully ending with a merge. You can read up on the usage here.

@vikanezrimaya
Copy link
Member

lgtm

/status needs_merger

@Ekleog
Copy link
Member

Ekleog commented Jan 9, 2021

@ofborg build sonobuoy

LGTM, thank you! I've just added to the PR a few comments to make reviewing the next upgrade easier, as I had been surprised by why there was a need for rev despite the version field being present :)

@Ekleog
Copy link
Member

Ekleog commented Jan 9, 2021

Hmm well with us having no darwin builders, I guess triggering an ofborg build before ofborg eval finishes leads to a red cross being indefinitely there. Let's land anyway, thank you for your contributions!

@Ekleog Ekleog merged commit 9ecd845 into NixOS:master Jan 9, 2021
@wilsonehusin
Copy link
Member Author

thanks folks! I'm fairly new to writing Nix and not much functional language experience either, so I'd appreciate any suggestions you have for this to be easier / cleaner!

@Ekleog
Copy link
Member

Ekleog commented Jan 10, 2021

The only idea I'd have to make this cleaner / easier to update would be, to not have to hard-code the rev in -X ${t}/pkg/buildinfo.GitSHA=${rev}.

Which could probably be done by using git rev-parse ${version}, if you still have .git, which you could have once #107322 (review) lands with fetchFromGitHub (you'll need to fall back to fetchgit in the meantime).

That said, it might also make sense to just set the rev there as full-zeros, depending on what it's exactly used for — if it's only used to show it back to the user, then I feel like it's of little importance.

What do you think?

@wilsonehusin
Copy link
Member Author

I can see the argument for full-zeros on the rev, but the product as is today has plenty of updates and I think there are values to keep the rev:

  • minimize myself, as a maintainer, in making mistakes when sending updates to publish
  • accidents in which (hopefully will never happen!) the git tag unexpectedly points to a different rev

More or less to hold myself accountable and provide transparency to users.

Appreciate the pointers! I'll be looking forward to the rev-parse feature to be available on fetchFromGitHub 😄

@wilsonehusin wilsonehusin deleted the sonobuoy-0.20 branch January 11, 2021 01:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants