Skip to content

chromium,chromedriver: 155.0.8059.84 -> 156.0.8078.47 - #576960

Merged
emilylange merged 1 commit into
NixOS:masterfrom
emilylange:chromium
Oct 22, 2026
Merged

emilylange merged 1 commit into
NixOS:masterfrom
emilylange:chromium

Conversation

@emilylange

@emilylange emilylange commented Oct 21, 2026 •

Copy link
Copy Markdown
Member

https://chromereleases.googleblog.com/2026/10/stable-channel-update-for-desktop_02018666648.html

This update includes 353 security fixes.

Things done

@emilylange emilylange added 1.severity: security Issues which raise a security issue, or PRs that fix one backport release-26.05 Backport PR automatically labels Oct 21, 2026
@nixpkgs-ci
nixpkgs-ci Bot requested a review from networkException October 21, 2026 19:26
@nixpkgs-ci nixpkgs-ci Bot added 8.has: package (update) This PR updates a package to a newer version 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. labels Oct 21, 2026
@emilylange
emilylange added this pull request to the merge queue Oct 22, 2026
Merged via the queue into NixOS:master with commit 3a0258c Oct 22, 2026
37 checks passed
@emilylange
emilylange deleted the chromium branch October 22, 2026 11:47
@nixpkgs-ci

nixpkgs-ci Bot commented Oct 22, 2026

Copy link
Copy Markdown
Contributor

Backport failed for release-26.05, because it was unable to cherry-pick the commit(s).

Please cherry-pick the changes locally and resolve any conflicts.

git fetch origin release-26.05
git worktree add -d .worktree/backport-576960-to-release-26.05 origin/release-26.05
cd .worktree/backport-576960-to-release-26.05
git switch --create backport-576960-to-release-26.05
git cherry-pick -x f69104be186364293038584d43bb8d2af6be67aa

@philiptaron

Copy link
Copy Markdown
Contributor

After this landed, I couldn't build chromium-unwrapped-156.0.8078.47 from source because two fetchFromGitiles sources return 404 from chromium.googlesource.com's +archive endpoint:

path rev
src/third_party/clang-format/script 9f796802e5d633c96dbe97e0b6683d5e62594f9f
src/third_party/search_engines_data/resources 5dc9f1afd38a8ac2b26b1972eb4fc1bbd5754e8c

The PR itself is fine. Both revs match upstream's DEPS for 156.0.8078.47, both commits exist, and both reproduce the hashes in info.json exactly.

I think that Gitiles is the problem. It 404s on both +archive and /+/<sha> for these commits, even though 5dc9f1af is the current HEAD of search_engines_data.git. Hydra will probably hit the same thing until gitiles recovers.

If anyone needs to build in the meantime, seeding the store over git produces the identical fixed-output paths, which let me build my system.

seed() { # url rev
  local d; d=$(mktemp -d)
  git -C "$d" init -q
  git -C "$d" fetch -q --depth=1 "$1" "$2"
  mkdir "$d/out"
  git -C "$d" archive FETCH_HEAD | tar -x -C "$d/out"
  nix store add --name source "$d/out"
}
seed https://chromium.googlesource.com/external/github.com/llvm/llvm-project/clang/tools/clang-format.git 9f796802e5d633c96dbe97e0b6683d5e62594f9f
seed https://chromium.googlesource.com/external/search_engines_data.git 5dc9f1afd38a8ac2b26b1972eb4fc1bbd5754e8c

@emilylange

emilylange commented Oct 22, 2026 •

Copy link
Copy Markdown
Member Author

chromium.googlesource.com has been less reliable lately, probably because it struggles to keep up against the flood of abusive crawlers and bots, if I had to guess. Smaller service degradations are usually fixed before h.n.o tries to fetch the tarballs. Major version bumps with many uncached tarballs are at much greater risk. I am sure there are many more such incidents, that I don't know of.

This particular issue you are having is peculiar and has been ongoing since at least yesterday. I am able to reproduce it. You can work around this by passing --header "Cookie: gi=0" to curl though.

Depending on your nix implementation, you can pass the required header via the impure NIX_CURL_FLAGS environment variable to your demon by using systemctl edit --runtime like so:

# /run/systemd/system/[email protected]/override.conf
[Service]
Environment="NIX_CURL_FLAGS=--header=Cookie:gi=0"

Let's just hope this will be resolved as usual before h.n.o hits it.

@emilylange

Copy link
Copy Markdown
Member Author

Also, if I may ask: What makes you build chromium from source and especially this early? nixos-unstable-small has not advanced yet, let alone nixos-unstable.

@philiptaron

Copy link
Copy Markdown
Contributor

Also, if I may ask: What makes you build chromium from source and especially this early? nixos-unstable-small has not advanced yet, let alone nixos-unstable.

I've run on master for about four years now, and I just... build from source. 🙂 I do a lot of staging builds, and I have a big enough machine that I can make it heat my office without worry.

@emilylange

Copy link
Copy Markdown
Member Author

I decided to file an issue at https://issues.chromium.org/issues/576745302 as this continues to be a problem

@vcunat

vcunat commented Oct 23, 2026

Copy link
Copy Markdown
Member

@emilylange

Copy link
Copy Markdown
Member Author

I did not expect this service degradation to last that long. What's your prefered way to go about this @vcunat?

I could commit a hotfix that redirects these two affected tarballs to fetchgit instead.

We could also just sit this out and wait for upstream to respond.

Or you could work around this out of tree, which would spare us some churn and evals, by temporarily setting the above mentioned NIX_CURL_FLAGS on one of the builder.

@vcunat

vcunat commented Oct 23, 2026

Copy link
Copy Markdown
Member

We'll try these flags in the infra temporarily.

@emilylange

Copy link
Copy Markdown
Member Author

fyi I have the following diff ready if you change your mind or NIX_CURL_FLAGS doesn't work for some reason:

diff --git a/pkgs/applications/networking/browsers/chromium/common.nix b/pkgs/applications/networking/browsers/chromium/common.nix
index 235d2ec696f9..91434a90281e 100644
--- a/pkgs/applications/networking/browsers/chromium/common.nix
+++ b/pkgs/applications/networking/browsers/chromium/common.nix
@@ -7,6 +7,7 @@
   fetchFromGitHub,
   fetchFromGitiles,
   fetchNpmDeps,
+  fetchgit,
   fetchzip,
   rustPlatform,
   buildGoModule,
@@ -361,10 +362,32 @@ let
   rustcVersion = buildPackages.rustc.version;
   llvmVersion = buildPackages.rustc.llvmPackages.llvm.version;
 
+  # Use fetchgit where fetchFromGitiles is currently causing issues:
+  # See https://issues.chromium.org/issues/576745302
+  # and https://github.com/NixOS/nixpkgs/pull/576960
+  # We use rev as identifier because it is unique and for some
+  # reason other revs of the same repository work just fine.
+  fetcher =
+    args:
+    if
+      lib.elem args.rev [
+        "9f796802e5d633c96dbe97e0b6683d5e62594f9f"
+        "5dc9f1afd38a8ac2b26b1972eb4fc1bbd5754e8c"
+      ]
+    then
+      fetchgit args
+    else
+      fetchFromGitiles args;
+
   chromiumDeps = lib.mapAttrs (
     path: args:
-    fetchFromGitiles (
-      removeAttrs args [ "recompress" ]
+    fetcher (
+      {
+        # force fetchgit to default to the same name as fetchFromGitiles
+        # so the store path stays the same with either fetcher
+        name = "source";
+      }
+      // removeAttrs args [ "recompress" ]
       // lib.optionalAttrs args.recompress or false {
         name = "source.tar.zstd";
         downloadToTemp = false;

@vcunat

vcunat commented Oct 23, 2026

Copy link
Copy Markdown
Member

It does work. NixOS/infra#1278

@emilylange

Copy link
Copy Markdown
Member Author

Thanks for implementing the hotfix. I believe it can be reverted again now that the two affected tarballs are on cache.nixos.org. Note that this does technically also effect electron_45, but there is 1) no init PR for to that version yet and 2) it will just use the same store path that is now on cache.nixos.org.

I'll continue to keep an eye on the upstream issue I filled for any updates.

@trofi

trofi commented Oct 24, 2026

Copy link
Copy Markdown
Contributor

I am building the system with config.fetchedSourceNameDefault = "full" (which intentionally refetches sources to catch stale links) and I'm seeing the same 404. #576960 (comment) does fix the fetch for me.

Do you know if +archive is explicitly documented to work for unauthenticated users?

@teutat3s teutat3s mentioned this pull request Oct 31, 2026
3 of 13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1.severity: security Issues which raise a security issue, or PRs that fix one 8.has: package (update) This PR updates a package to a newer version 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-linux: 11-100 This PR causes between 11 and 100 packages to rebuild on Linux. 11.by: package-maintainer This PR was created by a maintainer of all the package it changes. backport release-26.05 Backport PR automatically

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants