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

hydra-eval-jobs: fix maintainer resolution #629

Merged
merged 1 commit into from Mar 17, 2019

Conversation

Ma27
Copy link
Member

@Ma27 Ma27 commented Dec 29, 2018

Some time ago the data structure for maintainer descriptions in
nixpkgs changed from a simple attr set with maintainer emails as
values to an attribute set where the maintainer' nick is associated to
an attribute set with email, GitHub handle and full name.

Hydra can either parse a Nix list or fetches shortName from the
associated attribute set (which is used for meta.licenses as each
value in it contains a shortName). This behavior needs to be
replicated for maintainers to retrieve the emails for hydra-notify.

This change is backwards-compatible since queryMetaStrings is still
able to understand lists, so old versions of nixpkgs or packages using
the old maintainer data structure remain usable.

Some time ago the data structure for maintainer descriptions in
`nixpkgs` changed from a simple attr set with maintainer emails as
values to an attribute set where the maintainer' nick is associated to
an attribute set with email, GitHub handle and full name.

Hydra can either parse a Nix list or fetches `shortName` from the
associated attribute set (which is used for `meta.licenses` as each
value in it contains a `shortName`). This behavior needs to be
replicated for maintainers to retrieve the emails for `hydra-notify`.

This change is backwards-compatible since `queryMetaStrings` is still
able to understand lists, so old versions of `nixpkgs` or packages using
the old maintainer data structure remain usable.
@grahamc grahamc merged commit c8fa7ff into NixOS:master Mar 17, 2019
@grahamc
Copy link
Member

grahamc commented Mar 17, 2019

Thanks, verified it works :) https://hydra.nixos.org/build/90818518#tabs-details

@Ma27 Ma27 deleted the fix-maintainer-notifications branch March 17, 2019 21:29
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

2 participants