Fix the cronjob script in the remoting Debian package. [chromium/src : main]

0 views
Skip to first unread message

Lambros Lambrou (Gerrit)

unread,
Jan 13, 2026, 9:14:48 PM (7 days ago) Jan 13
to Yuwei Huang, Thomas Anderson, chromium...@chromium.org, chromotin...@chromium.org
Attention needed from Yuwei Huang

Lambros Lambrou voted and added 1 comment

Votes added by Lambros Lambrou

Auto-Submit+1

1 comment

Patchset-level comments
File-level comment, Patchset 1 (Latest):
Lambros Lambrou . resolved

yuweih@: please review
thomasanderson@: FYI, maybe there's an alternative way of fixing this?

Open in Gerrit

Related details

Attention is currently required from:
  • Yuwei Huang
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedReview-Enforcement
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: Icf5717461fa65d3ee587be78540b87f000cbc81e
Gerrit-Change-Number: 7465286
Gerrit-PatchSet: 1
Gerrit-Owner: Lambros Lambrou <lambros...@chromium.org>
Gerrit-Reviewer: Lambros Lambrou <lambros...@chromium.org>
Gerrit-Reviewer: Yuwei Huang <yuw...@chromium.org>
Gerrit-CC: Thomas Anderson <thomasa...@chromium.org>
Gerrit-Attention: Yuwei Huang <yuw...@chromium.org>
Gerrit-Comment-Date: Wed, 14 Jan 2026 02:14:36 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: Yes
satisfied_requirement
unsatisfied_requirement
open
diffy

Yuwei Huang (Gerrit)

unread,
Jan 13, 2026, 9:38:54 PM (7 days ago) Jan 13
to Lambros Lambrou, Thomas Anderson, chromium...@chromium.org, chromotin...@chromium.org
Attention needed from Lambros Lambrou

Yuwei Huang voted

Code-Review+1
Commit-Queue+2
Open in Gerrit

Related details

Attention is currently required from:
  • Lambros Lambrou
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement satisfiedReview-Enforcement
    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: Icf5717461fa65d3ee587be78540b87f000cbc81e
    Gerrit-Change-Number: 7465286
    Gerrit-PatchSet: 1
    Gerrit-Owner: Lambros Lambrou <lambros...@chromium.org>
    Gerrit-Reviewer: Lambros Lambrou <lambros...@chromium.org>
    Gerrit-Reviewer: Yuwei Huang <yuw...@chromium.org>
    Gerrit-CC: Thomas Anderson <thomasa...@chromium.org>
    Gerrit-Attention: Lambros Lambrou <lambros...@chromium.org>
    Gerrit-Comment-Date: Wed, 14 Jan 2026 02:38:39 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    open
    diffy

    Chromium LUCI CQ (Gerrit)

    unread,
    Jan 13, 2026, 9:45:57 PM (7 days ago) Jan 13
    to Lambros Lambrou, Yuwei Huang, Thomas Anderson, chromium...@chromium.org, chromotin...@chromium.org

    Chromium LUCI CQ submitted the change

    Change information

    Commit message:
    Fix the cronjob script in the remoting Debian package.

    The remoting Debian package includes a cronjob script, which is used
    to install an APT repository source and add a Google signing-key to APT.

    This file is generated using the same templates that Chrome uses for
    its Debian packaging. A recent refactoring changed Chrome's
    template-processor to use a Python library, but it left the remoting
    builder using the old Bash-based implementation.

    This CL fixes remoting's processor to work with Chrome's updated
    templates. Care is taken to correctly handle the substitutions
    `@@repoconfigregex` and `@@repoconfig`, because one is a substring
    of the other. This wasn't a problem with the previous template language
    because it used the `@@foo@@` syntax.

    This is a short-term fix intended for merging onto M145 branch. In
    the longer term, remoting should use the same template-processor as
    Chrome.
    Bug: 475586372
    Change-Id: Icf5717461fa65d3ee587be78540b87f000cbc81e
    Auto-Submit: Lambros Lambrou <lambros...@chromium.org>
    Commit-Queue: Yuwei Huang <yuw...@chromium.org>
    Reviewed-by: Yuwei Huang <yuw...@chromium.org>
    Cr-Commit-Position: refs/heads/main@{#1568869}
    Files:
    • M remoting/host/installer/linux/build-deb.sh
    • M remoting/host/installer/linux/debian/repo.cron
    • M remoting/host/installer/linux/installer.include
    Change size: S
    Delta: 3 files changed, 15 insertions(+), 6 deletions(-)
    Branch: refs/heads/main
    Submit Requirements:
    • requirement satisfiedCode-Review: +1 by Yuwei Huang
    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: Icf5717461fa65d3ee587be78540b87f000cbc81e
    Gerrit-Change-Number: 7465286
    Gerrit-PatchSet: 2
    Gerrit-Owner: Lambros Lambrou <lambros...@chromium.org>
    Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
    open
    diffy
    satisfied_requirement

    Thomas Anderson (Gerrit)

    unread,
    Jan 14, 2026, 10:13:15 AM (6 days ago) Jan 14
    to Lambros Lambrou, Chromium LUCI CQ, Yuwei Huang, chromium...@chromium.org, chromotin...@chromium.org

    Thomas Anderson added 1 comment

    Patchset-level comments
    Lambros Lambrou . resolved

    yuweih@: please review
    thomasanderson@: FYI, maybe there's an alternative way of fixing this?

    Thomas Anderson

    IIUC, the issue is caused by common/variables.include missing from //remoting/host/installer/linux.

    The fix is not for //remoting to use chrome/installer/linux/common/variables.include. Instead, it should copy that file (pre-python changes) to //remoting, then it can also continue using the older substitution @@syntax@@.

    Open in Gerrit

    Related details

    Attention set is empty
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement satisfiedReview-Enforcement
    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: Icf5717461fa65d3ee587be78540b87f000cbc81e
    Gerrit-Change-Number: 7465286
    Gerrit-PatchSet: 2
    Gerrit-Owner: Lambros Lambrou <lambros...@chromium.org>
    Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
    Gerrit-Reviewer: Lambros Lambrou <lambros...@chromium.org>
    Gerrit-Reviewer: Yuwei Huang <yuw...@chromium.org>
    Gerrit-CC: Thomas Anderson <thomasa...@chromium.org>
    Gerrit-Comment-Date: Wed, 14 Jan 2026 15:12:57 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Lambros Lambrou <lambros...@chromium.org>
    satisfied_requirement
    open
    diffy

    Lambros Lambrou (Gerrit)

    unread,
    Jan 14, 2026, 1:54:28 PM (6 days ago) Jan 14
    to Chromium LUCI CQ, Yuwei Huang, Thomas Anderson, chromium...@chromium.org, chromotin...@chromium.org

    Lambros Lambrou added 1 comment

    Patchset-level comments
    Lambros Lambrou . resolved

    yuweih@: please review
    thomasanderson@: FYI, maybe there's an alternative way of fixing this?

    Thomas Anderson

    IIUC, the issue is caused by common/variables.include missing from //remoting/host/installer/linux.

    The fix is not for //remoting to use chrome/installer/linux/common/variables.include. Instead, it should copy that file (pre-python changes) to //remoting, then it can also continue using the older substitution @@syntax@@.

    Lambros Lambrou

    Thank you for taking a look! The `common/variables.include` file is 1 line - we could have simply copied it in, as you suggest.

    The main problem is `apt.include`, which generates most of the cronjob script. That pulls in the same file that Chrome uses - there is only 1 file named `apt.include` in the Chromium repository. That file uses the new `@@foo` syntax and lower-case attributes such as `@@architecture`, and it pulls in a couple of other templates, which also use the new syntax.

    So our choices are:
    1. Copy `apt.include` and other templates into remoting, change them all to use the old syntax, and use the old parser.
    2. Update remoting to use Chrome's parser and templates. Try to share as much code as possible between Chrome and remoting package-builds.
    3. Update remoting's old parser for the new syntax, and use Chrome's templates.

    I went with option 3 as it resulted in a very small, mergable CL.

    Option 1 would make remoting's package build more independent from Chrome. We would have full flexibility to make changes independently, but we would not benefit from any bug-fixes and improvements to Chrome's packaging. Eventually, we could replace the Bash-based parser with something else.

    Option 2 seems better because of the code sharing. But it might be a lot more work. I feel that, if it were simple, you would have done this already as part of your refactoring.

    I'm not very familiar with Chrome's Debian packaging, so I don't have a good feel for how much code should be shared between Chrome and remoting.

    Also, there is something weird going on with the 2 `@@include@@` statements in our `repo.cron`. The second one seems to resolve relative to where the first one resolved. That seems like a bug in the old template-parser. To keep this CL small, I didn't try to fix this.

    Open in Gerrit

    Related details

    Attention set is empty
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement satisfiedReview-Enforcement
    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: Icf5717461fa65d3ee587be78540b87f000cbc81e
    Gerrit-Change-Number: 7465286
    Gerrit-PatchSet: 2
    Gerrit-Owner: Lambros Lambrou <lambros...@chromium.org>
    Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
    Gerrit-Reviewer: Lambros Lambrou <lambros...@chromium.org>
    Gerrit-Reviewer: Yuwei Huang <yuw...@chromium.org>
    Gerrit-CC: Thomas Anderson <thomasa...@chromium.org>
    Gerrit-Comment-Date: Wed, 14 Jan 2026 18:54:09 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Lambros Lambrou <lambros...@chromium.org>
    Comment-In-Reply-To: Thomas Anderson <thomasa...@chromium.org>
    satisfied_requirement
    open
    diffy

    Thomas Anderson (Gerrit)

    unread,
    12:14 PM (6 hours ago) 12:14 PM
    to Lambros Lambrou, Chromium LUCI CQ, Yuwei Huang, chromium...@chromium.org, chromotin...@chromium.org

    Thomas Anderson added 1 comment

    Patchset-level comments
    Lambros Lambrou . resolved

    yuweih@: please review
    thomasanderson@: FYI, maybe there's an alternative way of fixing this?

    Thomas Anderson

    IIUC, the issue is caused by common/variables.include missing from //remoting/host/installer/linux.

    The fix is not for //remoting to use chrome/installer/linux/common/variables.include. Instead, it should copy that file (pre-python changes) to //remoting, then it can also continue using the older substitution @@syntax@@.

    Lambros Lambrou

    Thank you for taking a look! The `common/variables.include` file is 1 line - we could have simply copied it in, as you suggest.

    The main problem is `apt.include`, which generates most of the cronjob script. That pulls in the same file that Chrome uses - there is only 1 file named `apt.include` in the Chromium repository. That file uses the new `@@foo` syntax and lower-case attributes such as `@@architecture`, and it pulls in a couple of other templates, which also use the new syntax.

    So our choices are:
    1. Copy `apt.include` and other templates into remoting, change them all to use the old syntax, and use the old parser.
    2. Update remoting to use Chrome's parser and templates. Try to share as much code as possible between Chrome and remoting package-builds.
    3. Update remoting's old parser for the new syntax, and use Chrome's templates.

    I went with option 3 as it resulted in a very small, mergable CL.

    Option 1 would make remoting's package build more independent from Chrome. We would have full flexibility to make changes independently, but we would not benefit from any bug-fixes and improvements to Chrome's packaging. Eventually, we could replace the Bash-based parser with something else.

    Option 2 seems better because of the code sharing. But it might be a lot more work. I feel that, if it were simple, you would have done this already as part of your refactoring.

    I'm not very familiar with Chrome's Debian packaging, so I don't have a good feel for how much code should be shared between Chrome and remoting.

    Also, there is something weird going on with the 2 `@@include@@` statements in our `repo.cron`. The second one seems to resolve relative to where the first one resolved. That seems like a bug in the old template-parser. To keep this CL small, I didn't try to fix this.

    Thomas Anderson

    I see, thank you for explaining. My recommendation is to decouple remoting from Chrome's packaging. So I agree with option 1 to copy the templates.

    Open in Gerrit

    Related details

    Attention set is empty
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement satisfiedCode-Owners
    • requirement satisfiedCode-Review
    • requirement satisfiedReview-Enforcement
    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: Icf5717461fa65d3ee587be78540b87f000cbc81e
    Gerrit-Change-Number: 7465286
    Gerrit-PatchSet: 2
    Gerrit-Owner: Lambros Lambrou <lambros...@chromium.org>
    Gerrit-Reviewer: Chromium LUCI CQ <chromiu...@luci-project-accounts.iam.gserviceaccount.com>
    Gerrit-Reviewer: Lambros Lambrou <lambros...@chromium.org>
    Gerrit-Reviewer: Yuwei Huang <yuw...@chromium.org>
    Gerrit-CC: Thomas Anderson <thomasa...@chromium.org>
    Gerrit-Comment-Date: Tue, 20 Jan 2026 17:13:59 +0000
    satisfied_requirement
    open
    diffy
    Reply all
    Reply to author
    Forward
    0 new messages