Skip to content

check-meta: Add isHydraChannel#193310

Merged
sternenseemann merged 1 commit intoNixOS:masterfrom
aszlig:meta-is-hydra-channel
Sep 28, 2022
Merged

check-meta: Add isHydraChannel#193310
sternenseemann merged 1 commit intoNixOS:masterfrom
aszlig:meta-is-hydra-channel

Conversation

@aszlig
Copy link
Member

@aszlig aszlig commented Sep 28, 2022

This is needed in order to mark a certain derivation containing a Nix expression tarball to Hydra so that it is recognised as a channel.

When I first got an evaluation error due to using this meta attribute, I was under the impression that nobody outside of Vuizvui1 is using this feature and that we don't have any occurrence of isHydraChannel in Nixpkgs.

However, when working around2 the issue I assumed that it's not something that should be included in Nixpkgs because we're not using it there.

It turned out that my assumption was wrong and we do use the attribute in Nixpkgs, namely via releaseTools.channel, which is similar to what we're doing in Vuizvui.

Since we already include a bunch of undocumented attributes in metaTypes, it only makes sense to add isHydraChannel as well since it's actually documented in the Hydra documentation3.

Footnotes

  1. https://github.com/openlab-aux/vuizvui

  2. https://github.com/openlab-aux/vuizvui/commit/e0685e81b3fdc43a272f0

  3. https://github.com/NixOS/hydra/blob/53335323ae79ca1a42643f58e520b376898ce641/doc/manual/src/jobs.md#meta-fields

@github-actions github-actions bot added the 6.topic: stdenv Standard environment label Sep 28, 2022
This is needed in order to mark a certain derivation containing a Nix
expression tarball to Hydra so that it is recognised as a channel.

When I first got an evaluation error due to using this meta attribute, I
was under the impression that nobody outside of Vuizvui[1] is using this
feature and that we don't have any occurrence of isHydraChannel in
Nixpkgs.

However, when working around[2] the issue I assumed that it's not
something that should be included in Nixpkgs because we're not using it
there.

It turned out that my assumption was wrong and we *do* use the attribute
in Nixpkgs, namely via releaseTools.channel, which is similar to what
we're doing in Vuizvui.

Since we already include a bunch of undocumented attributes in
metaTypes, it only makes sense to add isHydraChannel as well since it's
actually documented in the Hydra documentation[3].

[1]: https://github.com/openlab-aux/vuizvui
[2]: openlab-aux/vuizvui@e0685e81b3fdc43a272f0
[3]: https://github.com/NixOS/hydra/blob/53335323ae79ca1a42643f58e520b376898ce641/doc/manual/src/jobs.md#meta-fields

Signed-off-by: aszlig <aszlig@nix.build>
@aszlig aszlig force-pushed the meta-is-hydra-channel branch from 4652213 to 612c140 Compare September 28, 2022 10:30
@ofborg ofborg bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Sep 28, 2022
@sternenseemann sternenseemann merged commit 8f98a6d into NixOS:master Sep 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: stdenv Standard environment 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants