Rollback nixpkgs: Difference between revisions
m stable release jobset also has tested job |
m formatting |
||
Line 4: | Line 4: | ||
We go to https://hydra.nixos.org and are presented with the Projects page. | We go to https://hydra.nixos.org and are presented with the Projects page. | ||
[[File:1-hydra-projects.png|center|frameless|663x663px]] | |||
In this example we want to roll back in the nixos-unstable branch we select the nixos Project. | In this example we want to roll back in the nixos-unstable branch we select the nixos Project. | ||
[[File:2-hydria-jobsets.png|center|frameless|653x653px]] | |||
Highlighted are the release-24.05 branch and the trunk-combined branch which will be relevant to most. trunk-combined is hydra jobset that builds nixos-unstable. | Highlighted are the release-24.05 branch and the trunk-combined branch which will be relevant to most. trunk-combined is hydra jobset that builds nixos-unstable. | ||
[[File:3-hdrya-jobset-jobs-tab.png| | [[File:3-hdrya-jobset-jobs-tab.png|center|frameless|637x637px]] | ||
Here is the Hydra page showing the latest evaluations for trunk-combined. Highlighted is the Jobs tab where we will search for the Linux kernel we are looking for. | Here is the Hydra page showing the latest evaluations for trunk-combined. Highlighted is the Jobs tab where we will search for the Linux kernel we are looking for. | ||
[[File:4-hydra-jobs.png| | [[File:4-hydra-jobs.png|827x827px|center|frameless]] | ||
Here we are searching for the job that builds the linux_6_6 kernel and select it. | Here we are searching for the job that builds the linux_6_6 kernel and select it. | ||
[[File:5-hydra-job-packages.png| | [[File:5-hydra-job-packages.png|735x735px|center|frameless]] | ||
We have found the last build that compiled the 6.6.56 kernel and select it. | We have found the last build that compiled the 6.6.56 kernel and select it. | ||
[[File:6-hydra-build-summary.png| | [[File:6-hydra-build-summary.png|651x651px|center|frameless]] | ||
This evaluation of the Linux 6.6.56 kernel is the first time it was built. We can see it is part of 2 other evaluations. We want to see which nixpkgs-unstable evaluations contained this build, so we click on the "2 others". | This evaluation of the Linux 6.6.56 kernel is the first time it was built. We can see it is part of 2 other evaluations. We want to see which nixpkgs-unstable evaluations contained this build, so we click on the "2 others". | ||
[[File:7-hydra-build-evals.png| | [[File:7-hydra-build-evals.png|709x709px|center|frameless]] | ||
Here we have the git commit hashes for nixpkgs that were used to build the 3 nixpkgs-unstable evals that contained the kernel we want. | Here we have the git commit hashes for nixpkgs that were used to build the 3 nixpkgs-unstable evals that contained the kernel we want. | ||
Line 122: | Line 35: | ||
We do not want just any eval that had this kernel build in it. It could have been a failed build. So we want to ensure that the build ran through the "tested" job that is part of the trunk-combined jobset. The tested job runs the various tests that must pass for the NixOS channels to progress. | We do not want just any eval that had this kernel build in it. It could have been a failed build. So we want to ensure that the build ran through the "tested" job that is part of the trunk-combined jobset. The tested job runs the various tests that must pass for the NixOS channels to progress. | ||
[[File:8-hydra-jobset-overview.png| | [[File:8-hydra-jobset-overview.png|734x734px|center|frameless]] | ||
Select the Jobset dropdown. Notice that "trunk-combined" jobset is highligted. We select overview. But we want to open this in another windows tab, so we have access to compare the git commit hashes we have above. | Select the Jobset dropdown. Notice that "trunk-combined" jobset is highligted. We select overview. But we want to open this in another windows tab, so we have access to compare the git commit hashes we have above. | ||
[[File:9-hydra-jobset-jobs-tested.png| | [[File:9-hydra-jobset-jobs-tested.png|753x753px|center|frameless]] | ||
First select the jobs tab to search for jobs. In the search field we are searching for the "tested" job. After pressing enter you see the above image. Select the "tested" job. There is also a "tested' job if you are the stable release. | First select the jobs tab to search for jobs. In the search field we are searching for the "tested" job. After pressing enter you see the above image. Select the "tested" job. There is also a "tested' job if you are the stable release. | ||
[[File:10-hydra-jobset-jobs-tested-last-successful.png| | [[File:10-hydra-jobset-jobs-tested-last-successful.png|698x698px|center|frameless]] | ||
Here we notice we are on the "tested" job of the "trunk-combined" jobset. We compare the git commit hashes of the nixpkgs evals we got from the previous step to find the tested jobs that contain the kernel we want. In this example we see that build 275414986 successfully passed the "tested" job with the green check mark status. | Here we notice we are on the "tested" job of the "trunk-combined" jobset. We compare the git commit hashes of the nixpkgs evals we got from the previous step to find the tested jobs that contain the kernel we want. In this example we see that build 275414986 successfully passed the "tested" job with the green check mark status. | ||
Line 173: | Line 52: | ||
We also see that the first eval that had the 6.6.56 kernel failed to pass. Good thing we took this extra step to verify! | We also see that the first eval that had the 6.6.56 kernel failed to pass. Good thing we took this extra step to verify! | ||
[[File:11-hydra-jobset-jobs-tested-last-success.png| | [[File:11-hydra-jobset-jobs-tested-last-success.png|657x657px|center|frameless]] | ||