Skip to content

feat: fetch channel information from Hydra#1146

Draft
fricklerhandwerk wants to merge 13 commits into
NixOS:mainfrom
fricklerhandwerk:fetch-channels-from-hydra
Draft

feat: fetch channel information from Hydra#1146
fricklerhandwerk wants to merge 13 commits into
NixOS:mainfrom
fricklerhandwerk:fetch-channels-from-hydra

Conversation

@fricklerhandwerk

Copy link
Copy Markdown
Collaborator

Further towards #864

Since the source of truth for latest evaluations and builds is in Hydra,
from now on we're only using the infrastructure team's channel.nix
for information about the release state of channels.

Comment thread src/project/settings.py Outdated
Comment thread src/shared/git.py
Comment thread src/shared/hydra.py
Since the source of truth for latest evaluations and builds is in Hydra,
from now on we're only using the infrastructure team's `channel.nix`
for information about the release state of channels.

This change also reduces the number of evaluations to one per release branch.
We hard-code tracking the small channel variants, since those advance fastest.
@fricklerhandwerk fricklerhandwerk force-pushed the fetch-channels-from-hydra branch from 4c84165 to d52c30e Compare June 29, 2026 10:15
Comment thread src/shared/management/commands/fetch_all_channels.py Outdated
Comment thread src/shared/management/commands/fetch_all_channels.py Outdated
Comment thread src/shared/management/commands/fetch_all_channels.py Outdated
Comment thread src/shared/release_channels.py Outdated
@fricklerhandwerk

Copy link
Copy Markdown
Collaborator Author

Reviewed with @florentc

- Make even more explicit what we're getting from Hydra
- Test parsing actual live samples
- Business logic now separates channel tips from branch tips
@fricklerhandwerk

Copy link
Copy Markdown
Collaborator Author

This took quite a while. Touching the concept just a bit required a ton of rework in detail. But also, doing this diligently revealed how many moving parts there actually are, which we were generously papering over previously.

I was particularly paranoid about testing things, since we'll have fun if something goes wrong in a live deployment. That produced most of the change, because making it both robust and sustainable is not really straightforward.

There are were so many loose ends there, spend days chasing them, and now I just realized the integration test is probably still broken. Though right now I'm stuck figuring out why nix-shell --run format passes but nix-build -A git-hooks wants to reorder imports...

@fricklerhandwerk fricklerhandwerk marked this pull request as draft July 2, 2026 19:44
@fricklerhandwerk fricklerhandwerk force-pushed the fetch-channels-from-hydra branch 2 times, most recently from 4f744ff to 0435fe9 Compare July 2, 2026 21:23
@fricklerhandwerk fricklerhandwerk force-pushed the fetch-channels-from-hydra branch from 0435fe9 to 4f1e07f Compare July 2, 2026 21:24
@fricklerhandwerk fricklerhandwerk force-pushed the fetch-channels-from-hydra branch from c70d439 to a329d01 Compare July 3, 2026 05:51
@fricklerhandwerk fricklerhandwerk marked this pull request as ready for review July 3, 2026 05:53
@fricklerhandwerk fricklerhandwerk marked this pull request as draft July 3, 2026 07:18
@fricklerhandwerk fricklerhandwerk force-pushed the fetch-channels-from-hydra branch from 1b3f101 to 625763b Compare July 8, 2026 11:17
@fricklerhandwerk fricklerhandwerk force-pushed the fetch-channels-from-hydra branch from a2ad711 to d5798e5 Compare July 8, 2026 11:25
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.

2 participants