Roll serde: 1.0.219 => 1.0.225 in //third_party/rust. [chromium/src : main]

0 views
Skip to first unread message

Łukasz Anforowicz (Gerrit)

unread,
Sep 18, 2025, 3:31:04 PM (8 days ago) Sep 18
to Daniel Cheng, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, net-r...@chromium.org, chrome-rust-exper...@google.com
Attention needed from Daniel Cheng

Łukasz Anforowicz added 1 comment

Patchset-level comments
File-level comment, Patchset 8 (Latest):
Łukasz Anforowicz . resolved

@dcheng, can you PTAL? Assigning directly to you because this needs a review from `build/rust/OWNERS`:

* There are some changes in `build.rs`.  The changes look okay (i.e. hermetic), but they require:
* Setting `CARGO_PKG_VERSION_PATCH` environment variable in `cargo_crate.gni`
* Tweaking `gnrt_config.toml` to indicate `build_script_outputs`
* Because of splitting `serde` into `serde_core` + `serde`, we also needed some additional manual tweaks:
* We can now say `allow_unsafe = false` for `serde`
* And we also need to update `components/cronet/android/dependencies.txt`
Open in Gerrit

Related details

Attention is currently required from:
  • Daniel Cheng
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: I9a46de5588e9fb67c8376a5843c895b4d49a9e08
Gerrit-Change-Number: 6966592
Gerrit-PatchSet: 8
Gerrit-Owner: Łukasz Anforowicz <luk...@chromium.org>
Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
Gerrit-Reviewer: Łukasz Anforowicz <luk...@chromium.org>
Gerrit-Attention: Daniel Cheng <dch...@chromium.org>
Gerrit-Comment-Date: Thu, 18 Sep 2025 19:30:54 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
satisfied_requirement
unsatisfied_requirement
open
diffy

Daniel Cheng (Gerrit)

unread,
Sep 18, 2025, 8:29:40 PM (7 days ago) Sep 18
to Łukasz Anforowicz, Daniel Cheng, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, net-r...@chromium.org, chrome-rust-exper...@google.com
Attention needed from Łukasz Anforowicz

Daniel Cheng voted and added 1 comment

Votes added by Daniel Cheng

Code-Review+1

1 comment

Patchset-level comments
Daniel Cheng . resolved

LGTM

Open in Gerrit

Related details

Attention is currently required from:
  • Łukasz Anforowicz
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement satisfiedCode-Review
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I9a46de5588e9fb67c8376a5843c895b4d49a9e08
    Gerrit-Change-Number: 6966592
    Gerrit-PatchSet: 8
    Gerrit-Owner: Łukasz Anforowicz <luk...@chromium.org>
    Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
    Gerrit-Reviewer: Łukasz Anforowicz <luk...@chromium.org>
    Gerrit-Attention: Łukasz Anforowicz <luk...@chromium.org>
    Gerrit-Comment-Date: Fri, 19 Sep 2025 00:29:30 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Łukasz Anforowicz (Gerrit)

    unread,
    Sep 19, 2025, 8:14:08 PM (6 days ago) Sep 19
    to Mohannad Farrag, Daniel Cheng, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, net-r...@chromium.org, chrome-rust-exper...@google.com
    Attention needed from Mohannad Farrag

    Łukasz Anforowicz voted and added 1 comment

    Votes added by Łukasz Anforowicz

    Auto-Submit+1

    1 comment

    Patchset-level comments
    Łukasz Anforowicz . resolved

    +@aymanm for `//components/cronet/android/dependencies.txt` - PTAL?

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Mohannad Farrag
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement satisfiedCode-Review
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I9a46de5588e9fb67c8376a5843c895b4d49a9e08
    Gerrit-Change-Number: 6966592
    Gerrit-PatchSet: 8
    Gerrit-Owner: Łukasz Anforowicz <luk...@chromium.org>
    Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
    Gerrit-Reviewer: Mohannad Farrag <aym...@google.com>
    Gerrit-Reviewer: Łukasz Anforowicz <luk...@chromium.org>
    Gerrit-Attention: Mohannad Farrag <aym...@google.com>
    Gerrit-Comment-Date: Sat, 20 Sep 2025 00:13:57 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Daniel Cheng (Gerrit)

    unread,
    Sep 19, 2025, 8:58:00 PM (6 days ago) Sep 19
    to Łukasz Anforowicz, Daniel Cheng, Mohannad Farrag, AyeAye, Chromium LUCI CQ, chromium...@chromium.org, net-r...@chromium.org, chrome-rust-exper...@google.com
    Attention needed from Mohannad Farrag and Łukasz Anforowicz

    Daniel Cheng voted Owners-Override+1

    Owners-Override+1
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Mohannad Farrag
    • Łukasz Anforowicz
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I9a46de5588e9fb67c8376a5843c895b4d49a9e08
    Gerrit-Change-Number: 6966592
    Gerrit-PatchSet: 8
    Gerrit-Owner: Łukasz Anforowicz <luk...@chromium.org>
    Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
    Gerrit-Reviewer: Mohannad Farrag <aym...@google.com>
    Gerrit-Reviewer: Łukasz Anforowicz <luk...@chromium.org>
    Gerrit-Attention: Łukasz Anforowicz <luk...@chromium.org>
    Gerrit-Attention: Mohannad Farrag <aym...@google.com>
    Gerrit-Comment-Date: Sat, 20 Sep 2025 00:57:50 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    open
    diffy

    Chromium LUCI CQ (Gerrit)

    unread,
    Sep 22, 2025, 2:13:05 PM (4 days ago) Sep 22
    to Łukasz Anforowicz, Daniel Cheng, Mohannad Farrag, AyeAye, chromium...@chromium.org, net-r...@chromium.org, chrome-rust-exper...@google.com

    Chromium LUCI CQ submitted the change

    Change information

    Commit message:
    Roll serde: 1.0.219 => 1.0.225 in //third_party/rust.

    This CL has been created semi-automatically. The expected review
    process and other details can be found at
    //tools/crates/create_update_cl.md

    Updated crates:

    * serde: 1.0.219 => 1.0.225; https://docs.rs/crate/serde/1.0.225
    * serde_derive: 1.0.219 => 1.0.225;
    https://docs.rs/crate/serde_derive/1.0.225

    New crates:

    * serde...@1.0.225; https://docs.rs/crate/serde_core/1.0.225
    Bug: None
    Change-Id: I9a46de5588e9fb67c8376a5843c895b4d49a9e08
    Cq-Include-Trybots: chromium/try:android-rust-arm32-rel
    Cq-Include-Trybots: chromium/try:android-rust-arm64-dbg
    Cq-Include-Trybots: chromium/try:android-rust-arm64-rel
    Cq-Include-Trybots: chromium/try:linux-rust-x64-dbg
    Cq-Include-Trybots: chromium/try:linux-rust-x64-rel
    Cq-Include-Trybots: chromium/try:win-rust-x64-dbg
    Cq-Include-Trybots: chromium/try:win-rust-x64-rel
    Disable-Rts: True
    Reviewed-by: Daniel Cheng <dch...@chromium.org>
    Auto-Submit: Łukasz Anforowicz <luk...@chromium.org>
    Owners-Override: Daniel Cheng <dch...@chromium.org>
    Commit-Queue: Łukasz Anforowicz <luk...@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1518821}
    Files:
    • M build/rust/cargo_crate.gni
    • M components/cronet/android/dependencies.txt
    • M third_party/rust/chromium_crates_io/Cargo.lock
    • M third_party/rust/chromium_crates_io/gnrt_config.toml
    • M third_party/rust/chromium_crates_io/supply-chain/config.toml
    • M third_party/rust/chromium_crates_io/vendor/serde-v1/.cargo_vcs_info.json
    • M third_party/rust/chromium_crates_io/vendor/serde-v1/Cargo.lock
    • M third_party/rust/chromium_crates_io/vendor/serde-v1/Cargo.toml
    • M third_party/rust/chromium_crates_io/vendor/serde-v1/Cargo.toml.orig
    • M third_party/rust/chromium_crates_io/vendor/serde-v1/README.md
    • M third_party/rust/chromium_crates_io/vendor/serde-v1/build.rs
    • M third_party/rust/chromium_crates_io/vendor/serde-v1/crates-io.md
    • M third_party/rust/chromium_crates_io/vendor/serde-v1/src/integer128.rs
    • M third_party/rust/chromium_crates_io/vendor/serde-v1/src/lib.rs
    • M third_party/rust/chromium_crates_io/vendor/serde-v1/src/private/de.rs
    • M third_party/rust/chromium_crates_io/vendor/serde-v1/src/private/mod.rs
    • M third_party/rust/chromium_crates_io/vendor/serde-v1/src/private/ser.rs
    • A third_party/rust/chromium_crates_io/vendor/serde_core-v1/.cargo-checksum.json
    • A third_party/rust/chromium_crates_io/vendor/serde_core-v1/.cargo_vcs_info.json
    • A third_party/rust/chromium_crates_io/vendor/serde_core-v1/Cargo.lock
    • A third_party/rust/chromium_crates_io/vendor/serde_core-v1/Cargo.toml
    • A third_party/rust/chromium_crates_io/vendor/serde_core-v1/Cargo.toml.orig
    • A third_party/rust/chromium_crates_io/vendor/serde_core-v1/LICENSE-APACHE
    • A third_party/rust/chromium_crates_io/vendor/serde_core-v1/LICENSE-MIT
    • A third_party/rust/chromium_crates_io/vendor/serde_core-v1/README.md
    • A third_party/rust/chromium_crates_io/vendor/serde_core-v1/build.rs
    • R third_party/rust/chromium_crates_io/vendor/serde_core-v1/src/de/ignored_any.rs
    • R third_party/rust/chromium_crates_io/vendor/serde_core-v1/src/de/impls.rs
    • R third_party/rust/chromium_crates_io/vendor/serde_core-v1/src/de/mod.rs
    • R third_party/rust/chromium_crates_io/vendor/serde_core-v1/src/de/value.rs
    • R third_party/rust/chromium_crates_io/vendor/serde_core-v1/src/format.rs
    • A third_party/rust/chromium_crates_io/vendor/serde_core-v1/src/lib.rs
    • R third_party/rust/chromium_crates_io/vendor/serde_core-v1/src/macros.rs
    • A third_party/rust/chromium_crates_io/vendor/serde_core-v1/src/private/content.rs
    • R third_party/rust/chromium_crates_io/vendor/serde_core-v1/src/private/doc.rs
    • A third_party/rust/chromium_crates_io/vendor/serde_core-v1/src/private/mod.rs
    • R third_party/rust/chromium_crates_io/vendor/serde_core-v1/src/private/seed.rs
    • R third_party/rust/chromium_crates_io/vendor/serde_core-v1/src/private/size_hint.rs
    • A third_party/rust/chromium_crates_io/vendor/serde_core-v1/src/private/string.rs
    • R third_party/rust/chromium_crates_io/vendor/serde_core-v1/src/ser/fmt.rs
    • R third_party/rust/chromium_crates_io/vendor/serde_core-v1/src/ser/impls.rs
    • R third_party/rust/chromium_crates_io/vendor/serde_core-v1/src/ser/impossible.rs
    • R third_party/rust/chromium_crates_io/vendor/serde_core-v1/src/ser/mod.rs
    • R third_party/rust/chromium_crates_io/vendor/serde_core-v1/src/std_error.rs
    • M third_party/rust/chromium_crates_io/vendor/serde_derive-v1/.cargo_vcs_info.json
    • M third_party/rust/chromium_crates_io/vendor/serde_derive-v1/Cargo.lock
    • M third_party/rust/chromium_crates_io/vendor/serde_derive-v1/Cargo.toml
    • M third_party/rust/chromium_crates_io/vendor/serde_derive-v1/Cargo.toml.orig
    • M third_party/rust/chromium_crates_io/vendor/serde_derive-v1/README.md
    • M third_party/rust/chromium_crates_io/vendor/serde_derive-v1/crates-io.md
    • M third_party/rust/chromium_crates_io/vendor/serde_derive-v1/src/de.rs
    • A third_party/rust/chromium_crates_io/vendor/serde_derive-v1/src/deprecated.rs
    • M third_party/rust/chromium_crates_io/vendor/serde_derive-v1/src/dummy.rs
    • M third_party/rust/chromium_crates_io/vendor/serde_derive-v1/src/internals/ast.rs
    • M third_party/rust/chromium_crates_io/vendor/serde_derive-v1/src/internals/attr.rs
    • M third_party/rust/chromium_crates_io/vendor/serde_derive-v1/src/lib.rs
    • M third_party/rust/chromium_crates_io/vendor/serde_derive-v1/src/pretend.rs
    • M third_party/rust/chromium_crates_io/vendor/serde_derive-v1/src/ser.rs
    • M third_party/rust/serde/v1/BUILD.gn
    • M third_party/rust/serde/v1/README.chromium
    • A third_party/rust/serde_core/v1/BUILD.gn
    • A third_party/rust/serde_core/v1/README.chromium
    • M third_party/rust/serde_derive/v1/BUILD.gn
    • M third_party/rust/serde_derive/v1/README.chromium
    Change size: XL
    Delta: 64 files changed, 2759 insertions(+), 997 deletions(-)
    Branch: refs/heads/main
    Submit Requirements:
    • requirement satisfiedCode-Review: +1 by Daniel Cheng
    Open in Gerrit
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: merged
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I9a46de5588e9fb67c8376a5843c895b4d49a9e08
    Gerrit-Change-Number: 6966592
    Gerrit-PatchSet: 9
    Gerrit-Owner: Łukasz Anforowicz <luk...@chromium.org>
    Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
    Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
    Gerrit-Reviewer: Mohannad Farrag <aym...@google.com>
    Gerrit-Reviewer: Łukasz Anforowicz <luk...@chromium.org>
    open
    diffy
    satisfied_requirement

    Mohannad Farrag (Gerrit)

    unread,
    Sep 24, 2025, 6:41:34 AM (2 days ago) Sep 24
    to Chromium LUCI CQ, Łukasz Anforowicz, Daniel Cheng, AyeAye, chromium...@chromium.org, net-r...@chromium.org, chrome-rust-exper...@google.com
    Attention needed from Łukasz Anforowicz

    Mohannad Farrag added 1 comment

    Patchset-level comments
    File-level comment, Patchset 8:
    Łukasz Anforowicz . unresolved

    +@aymanm for `//components/cronet/android/dependencies.txt` - PTAL?

    Mohannad Farrag

    Is it possible to revert this CL? The new version of `serde` has introduced some complications to our Android pipeline because of this line:

    ```
    include!(concat!(env!("OUT_DIR"), "/private.rs"));
    ```

    `/private.rs` is generated via the build_script. We currently support the usual case of `build_scripts` where it generates a bunch of `--cfg` and `--features` that are passed to the build system afterwards. However, passing a rust file that is generated from build scripts is something that we have never encountered before and has broken our pipeline. It's also important to mention that this version has not propagated to AOSP yet, so the rust folk in AOSP might not have faced this problem yet too. We expected that this will happen at some point (go/rust-assumptions-for-gn2bp) but I guess now is the time.

    So if possible, would it be okay to revert this in the meantime while I work on adding support for this just to unblock our imports?

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Łukasz Anforowicz
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I9a46de5588e9fb67c8376a5843c895b4d49a9e08
    Gerrit-Change-Number: 6966592
    Gerrit-PatchSet: 9
    Gerrit-Owner: Łukasz Anforowicz <luk...@chromium.org>
    Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
    Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
    Gerrit-Reviewer: Mohannad Farrag <aym...@google.com>
    Gerrit-Reviewer: Łukasz Anforowicz <luk...@chromium.org>
    Gerrit-Attention: Łukasz Anforowicz <luk...@chromium.org>
    Gerrit-Comment-Date: Wed, 24 Sep 2025 10:41:21 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Łukasz Anforowicz <luk...@chromium.org>
    satisfied_requirement
    open
    diffy

    Matthew Riley (Gerrit)

    unread,
    Sep 24, 2025, 2:31:20 PM (2 days ago) Sep 24
    to Chromium LUCI CQ, Łukasz Anforowicz, Daniel Cheng, Mohannad Farrag, AyeAye, chromium...@chromium.org, net-r...@chromium.org, chrome-rust-exper...@google.com
    Attention needed from Łukasz Anforowicz

    Matthew Riley added 1 comment

    Patchset-level comments
    Łukasz Anforowicz . unresolved

    +@aymanm for `//components/cronet/android/dependencies.txt` - PTAL?

    Mohannad Farrag

    Is it possible to revert this CL? The new version of `serde` has introduced some complications to our Android pipeline because of this line:

    ```
    include!(concat!(env!("OUT_DIR"), "/private.rs"));
    ```

    `/private.rs` is generated via the build_script. We currently support the usual case of `build_scripts` where it generates a bunch of `--cfg` and `--features` that are passed to the build system afterwards. However, passing a rust file that is generated from build scripts is something that we have never encountered before and has broken our pipeline. It's also important to mention that this version has not propagated to AOSP yet, so the rust folk in AOSP might not have faced this problem yet too. We expected that this will happen at some point (go/rust-assumptions-for-gn2bp) but I guess now is the time.

    So if possible, would it be okay to revert this in the meantime while I work on adding support for this just to unblock our imports?

    Matthew Riley

    Hi Mohannad, how large a change do you think it will be to accommodate this? i.e. if we revert, for how long are you asking us to hold the roll?

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Łukasz Anforowicz
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I9a46de5588e9fb67c8376a5843c895b4d49a9e08
    Gerrit-Change-Number: 6966592
    Gerrit-PatchSet: 9
    Gerrit-Owner: Łukasz Anforowicz <luk...@chromium.org>
    Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
    Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
    Gerrit-Reviewer: Mohannad Farrag <aym...@google.com>
    Gerrit-Reviewer: Łukasz Anforowicz <luk...@chromium.org>
    Gerrit-CC: Matthew Riley <mat...@google.com>
    Gerrit-Attention: Łukasz Anforowicz <luk...@chromium.org>
    Gerrit-Comment-Date: Wed, 24 Sep 2025 18:31:10 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Łukasz Anforowicz <luk...@chromium.org>
    Comment-In-Reply-To: Mohannad Farrag <aym...@google.com>
    satisfied_requirement
    open
    diffy

    Łukasz Anforowicz (Gerrit)

    unread,
    Sep 24, 2025, 3:17:00 PM (2 days ago) Sep 24
    to Chromium LUCI CQ, Matthew Riley, Daniel Cheng, Mohannad Farrag, AyeAye, chromium...@chromium.org, net-r...@chromium.org, chrome-rust-exper...@google.com

    Łukasz Anforowicz added 1 comment

    Patchset-level comments
    Łukasz Anforowicz . unresolved

    +@aymanm for `//components/cronet/android/dependencies.txt` - PTAL?

    Mohannad Farrag

    Is it possible to revert this CL? The new version of `serde` has introduced some complications to our Android pipeline because of this line:

    ```
    include!(concat!(env!("OUT_DIR"), "/private.rs"));
    ```

    `/private.rs` is generated via the build_script. We currently support the usual case of `build_scripts` where it generates a bunch of `--cfg` and `--features` that are passed to the build system afterwards. However, passing a rust file that is generated from build scripts is something that we have never encountered before and has broken our pipeline. It's also important to mention that this version has not propagated to AOSP yet, so the rust folk in AOSP might not have faced this problem yet too. We expected that this will happen at some point (go/rust-assumptions-for-gn2bp) but I guess now is the time.

    So if possible, would it be okay to revert this in the meantime while I work on adding support for this just to unblock our imports?

    Łukasz Anforowicz

    We have another weekly crate update in progress, so to avoid mid-air collisions I'll wait until those CLs land (in a day or two) and then I can try reverting.

    Open in Gerrit

    Related details

    Attention set is empty
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I9a46de5588e9fb67c8376a5843c895b4d49a9e08
    Gerrit-Change-Number: 6966592
    Gerrit-PatchSet: 9
    Gerrit-Owner: Łukasz Anforowicz <luk...@chromium.org>
    Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
    Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
    Gerrit-Reviewer: Mohannad Farrag <aym...@google.com>
    Gerrit-Reviewer: Łukasz Anforowicz <luk...@chromium.org>
    Gerrit-CC: Matthew Riley <mat...@google.com>
    Gerrit-Comment-Date: Wed, 24 Sep 2025 19:16:51 +0000
    satisfied_requirement
    open
    diffy

    Łukasz Anforowicz (Gerrit)

    unread,
    Sep 24, 2025, 8:01:21 PM (2 days ago) Sep 24
    to Chromium LUCI CQ, Matthew Riley, Daniel Cheng, Mohannad Farrag, AyeAye, chromium...@chromium.org, net-r...@chromium.org, chrome-rust-exper...@google.com

    Łukasz Anforowicz added 1 comment

    Patchset-level comments
    Łukasz Anforowicz . unresolved

    +@aymanm for `//components/cronet/android/dependencies.txt` - PTAL?

    Mohannad Farrag

    Is it possible to revert this CL? The new version of `serde` has introduced some complications to our Android pipeline because of this line:

    ```
    include!(concat!(env!("OUT_DIR"), "/private.rs"));
    ```

    `/private.rs` is generated via the build_script. We currently support the usual case of `build_scripts` where it generates a bunch of `--cfg` and `--features` that are passed to the build system afterwards. However, passing a rust file that is generated from build scripts is something that we have never encountered before and has broken our pipeline. It's also important to mention that this version has not propagated to AOSP yet, so the rust folk in AOSP might not have faced this problem yet too. We expected that this will happen at some point (go/rust-assumptions-for-gn2bp) but I guess now is the time.

    So if possible, would it be okay to revert this in the meantime while I work on adding support for this just to unblock our imports?

    Łukasz Anforowicz

    We have another weekly crate update in progress, so to avoid mid-air collisions I'll wait until those CLs land (in a day or two) and then I can try reverting.

    Łukasz Anforowicz

    FWIW I was able to revert locally, but I haven't uploaded yet, because I am waiting for https://crrev.com/c/6977866 to land and get out of the way first (it hasn't landed yet because the tree seems to be having some trouble today and got closed multiple times because of MSAN issues).

    Open in Gerrit

    Related details

    Attention set is empty
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I9a46de5588e9fb67c8376a5843c895b4d49a9e08
    Gerrit-Change-Number: 6966592
    Gerrit-PatchSet: 9
    Gerrit-Owner: Łukasz Anforowicz <luk...@chromium.org>
    Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
    Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
    Gerrit-Reviewer: Mohannad Farrag <aym...@google.com>
    Gerrit-Reviewer: Łukasz Anforowicz <luk...@chromium.org>
    Gerrit-CC: Matthew Riley <mat...@google.com>
    Gerrit-Comment-Date: Thu, 25 Sep 2025 00:01:07 +0000
    satisfied_requirement
    open
    diffy

    Mohannad Farrag (Gerrit)

    unread,
    Sep 25, 2025, 4:17:41 AM (yesterday) Sep 25
    to Chromium LUCI CQ, Łukasz Anforowicz, Matthew Riley, Daniel Cheng, AyeAye, chromium...@chromium.org, net-r...@chromium.org, chrome-rust-exper...@google.com
    Attention needed from Łukasz Anforowicz

    Mohannad Farrag added 1 comment

    Patchset-level comments
    Łukasz Anforowicz . unresolved

    +@aymanm for `//components/cronet/android/dependencies.txt` - PTAL?

    Mohannad Farrag

    Is it possible to revert this CL? The new version of `serde` has introduced some complications to our Android pipeline because of this line:

    ```
    include!(concat!(env!("OUT_DIR"), "/private.rs"));
    ```

    `/private.rs` is generated via the build_script. We currently support the usual case of `build_scripts` where it generates a bunch of `--cfg` and `--features` that are passed to the build system afterwards. However, passing a rust file that is generated from build scripts is something that we have never encountered before and has broken our pipeline. It's also important to mention that this version has not propagated to AOSP yet, so the rust folk in AOSP might not have faced this problem yet too. We expected that this will happen at some point (go/rust-assumptions-for-gn2bp) but I guess now is the time.

    So if possible, would it be okay to revert this in the meantime while I work on adding support for this just to unblock our imports?

    Łukasz Anforowicz

    We have another weekly crate update in progress, so to avoid mid-air collisions I'll wait until those CLs land (in a day or two) and then I can try reverting.

    Łukasz Anforowicz

    FWIW I was able to revert locally, but I haven't uploaded yet, because I am waiting for https://crrev.com/c/6977866 to land and get out of the way first (it hasn't landed yet because the tree seems to be having some trouble today and got closed multiple times because of MSAN issues).

    Mohannad Farrag

    I expect this to take around a week. I've already managed to get our pipeline to be green with local changes. I'd still need to clean-up my local changes, upload them for review and confirm that everything goes as expected. So a week is a maximum that I'll ask of you. If possible

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Łukasz Anforowicz
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I9a46de5588e9fb67c8376a5843c895b4d49a9e08
    Gerrit-Change-Number: 6966592
    Gerrit-PatchSet: 9
    Gerrit-Owner: Łukasz Anforowicz <luk...@chromium.org>
    Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
    Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
    Gerrit-Reviewer: Mohannad Farrag <aym...@google.com>
    Gerrit-Reviewer: Łukasz Anforowicz <luk...@chromium.org>
    Gerrit-CC: Matthew Riley <mat...@google.com>
    Gerrit-Attention: Łukasz Anforowicz <luk...@chromium.org>
    Gerrit-Comment-Date: Thu, 25 Sep 2025 08:17:26 +0000
    satisfied_requirement
    open
    diffy

    Mohannad Farrag (Gerrit)

    unread,
    Sep 25, 2025, 4:57:03 AM (yesterday) Sep 25
    to Chromium LUCI CQ, Łukasz Anforowicz, Matthew Riley, Daniel Cheng, AyeAye, chromium...@chromium.org, net-r...@chromium.org, chrome-rust-exper...@google.com
    Attention needed from Łukasz Anforowicz

    Mohannad Farrag added 1 comment

    Patchset-level comments
    Łukasz Anforowicz . unresolved

    +@aymanm for `//components/cronet/android/dependencies.txt` - PTAL?

    Mohannad Farrag

    Is it possible to revert this CL? The new version of `serde` has introduced some complications to our Android pipeline because of this line:

    ```
    include!(concat!(env!("OUT_DIR"), "/private.rs"));
    ```

    `/private.rs` is generated via the build_script. We currently support the usual case of `build_scripts` where it generates a bunch of `--cfg` and `--features` that are passed to the build system afterwards. However, passing a rust file that is generated from build scripts is something that we have never encountered before and has broken our pipeline. It's also important to mention that this version has not propagated to AOSP yet, so the rust folk in AOSP might not have faced this problem yet too. We expected that this will happen at some point (go/rust-assumptions-for-gn2bp) but I guess now is the time.

    So if possible, would it be okay to revert this in the meantime while I work on adding support for this just to unblock our imports?

    Łukasz Anforowicz

    We have another weekly crate update in progress, so to avoid mid-air collisions I'll wait until those CLs land (in a day or two) and then I can try reverting.

    Łukasz Anforowicz

    FWIW I was able to revert locally, but I haven't uploaded yet, because I am waiting for https://crrev.com/c/6977866 to land and get out of the way first (it hasn't landed yet because the tree seems to be having some trouble today and got closed multiple times because of MSAN issues).

    Mohannad Farrag

    I expect this to take around a week. I've already managed to get our pipeline to be green with local changes. I'd still need to clean-up my local changes, upload them for review and confirm that everything goes as expected. So a week is a maximum that I'll ask of you. If possible

    Mohannad Farrag

    If it's too much of a hassle, then we can just fix-forward.

    Gerrit-Comment-Date: Thu, 25 Sep 2025 08:56:50 +0000
    satisfied_requirement
    open
    diffy

    Łukasz Anforowicz (Gerrit)

    unread,
    Sep 25, 2025, 12:28:37 PM (18 hours ago) Sep 25
    to Chromium LUCI CQ, Matthew Riley, Daniel Cheng, Mohannad Farrag, AyeAye, chromium...@chromium.org, net-r...@chromium.org, chrome-rust-exper...@google.com

    Łukasz Anforowicz added 1 comment

    Patchset-level comments
    Łukasz Anforowicz . unresolved

    +@aymanm for `//components/cronet/android/dependencies.txt` - PTAL?

    Mohannad Farrag

    Is it possible to revert this CL? The new version of `serde` has introduced some complications to our Android pipeline because of this line:

    ```
    include!(concat!(env!("OUT_DIR"), "/private.rs"));
    ```

    `/private.rs` is generated via the build_script. We currently support the usual case of `build_scripts` where it generates a bunch of `--cfg` and `--features` that are passed to the build system afterwards. However, passing a rust file that is generated from build scripts is something that we have never encountered before and has broken our pipeline. It's also important to mention that this version has not propagated to AOSP yet, so the rust folk in AOSP might not have faced this problem yet too. We expected that this will happen at some point (go/rust-assumptions-for-gn2bp) but I guess now is the time.

    So if possible, would it be okay to revert this in the meantime while I work on adding support for this just to unblock our imports?

    Łukasz Anforowicz

    We have another weekly crate update in progress, so to avoid mid-air collisions I'll wait until those CLs land (in a day or two) and then I can try reverting.

    Łukasz Anforowicz

    FWIW I was able to revert locally, but I haven't uploaded yet, because I am waiting for https://crrev.com/c/6977866 to land and get out of the way first (it hasn't landed yet because the tree seems to be having some trouble today and got closed multiple times because of MSAN issues).

    Mohannad Farrag

    I expect this to take around a week. I've already managed to get our pipeline to be green with local changes. I'd still need to clean-up my local changes, upload them for review and confirm that everything goes as expected. So a week is a maximum that I'll ask of you. If possible

    Mohannad Farrag

    If it's too much of a hassle, then we can just fix-forward.

    Łukasz Anforowicz

    Yeah, sorry, but the revert indeed does seem like quite a bit of trouble. I tried to actually run `gn gen` after the revert and it failed - this seems to be caused by the following transitive dependency on the rolled package (i.e. the revert is difficult and would necessitate cascading/follow-up reverts/changes [at least also reverting the roll of `serde_json`):

    ```
    $ tools/crates/run_gnrt.py vendor
    Finished `release` profile [optimized] target(s) in 0.19s
    Running `out/gnrt/target/release/gnrt vendor`
    Vendoring crates from third_party/rust/chromium_crates_io
    Error: running cargo metadata
    Caused by:
    0: `cargo metadata` execution failed
    1: `cargo metadata` exited with an error: error: failed to select a version for `serde`.
    ... required by package `serde_json v1.0.145`
    ... which satisfies dependency `serde_json = "^1.0.138"` (locked to 1.0.145) of package `llguidance v1.2.0`
    ... which satisfies dependency `llguidance = "^1.0.0"` (locked to 1.2.0) of package `chromium v0.1.0 (/usr/local/google/home/lukasza/src/chromium2/src/third_party/rust/chromium_crates_io)`
    versions that meet the requirements `^1.0.220` are: 1.0.226, 1.0.225, 1.0.224, 1.0.223, 1.0.222, 1.0.221, 1.0.220
           all possible versions conflict with previously selected packages.
             previously selected package `serde v1.0.219`
    ... which satisfies dependency `serde = "^1.0.219"` (locked to 1.0.219) of package `chromium v0.1.0 (/usr/local/google/home/lukasza/src/chromium2/src/third_party/rust/chromium_crates_io)`
           failed to select a version for `serde` which could resolve this conflict
    ```
    Open in Gerrit

    Related details

    Attention set is empty
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: I9a46de5588e9fb67c8376a5843c895b4d49a9e08
    Gerrit-Change-Number: 6966592
    Gerrit-PatchSet: 9
    Gerrit-Owner: Łukasz Anforowicz <luk...@chromium.org>
    Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
    Gerrit-Reviewer: Daniel Cheng <dch...@chromium.org>
    Gerrit-Reviewer: Mohannad Farrag <aym...@google.com>
    Gerrit-Reviewer: Łukasz Anforowicz <luk...@chromium.org>
    Gerrit-CC: Matthew Riley <mat...@google.com>
    Gerrit-Comment-Date: Thu, 25 Sep 2025 16:28:25 +0000
    satisfied_requirement
    open
    diffy
    Reply all
    Reply to author
    Forward
    0 new messages