[cleanup] Move rebuild for test script parts [devtools/devtools-frontend : main]

0 views
Skip to first unread message

Nikolay Vitkov (Gerrit)

unread,
Nov 3, 2025, 12:50:40 PM (2 days ago) Nov 3
to Devtools-frontend LUCI CQ, devtools-rev...@chromium.org

Nikolay Vitkov added 1 comment

File test/run.ts
Line 24, Patchset 3 (Latest): desc: 'Deprecated. Do not use see warning bellow. Moved to `scripts/run_on_target.mjs`',
Nikolay Vitkov . unresolved

Temporary allowed so the builders don't fail. Will remove once we update the builder scripts.

Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • 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: devtools/devtools-frontend
Gerrit-Branch: main
Gerrit-Change-Id: I7295ebaa5e53b80011387c4717e2eca6d10f6d8c
Gerrit-Change-Number: 7107198
Gerrit-PatchSet: 3
Gerrit-Owner: Nikolay Vitkov <nvi...@chromium.org>
Gerrit-Reviewer: Nikolay Vitkov <nvi...@chromium.org>
Gerrit-CC: Devtools-frontend LUCI CQ <devtools-fro...@luci-project-accounts.iam.gserviceaccount.com>
Gerrit-Comment-Date: Mon, 03 Nov 2025 17:50:36 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
unsatisfied_requirement
open
diffy

Nikolay Vitkov (Gerrit)

unread,
Nov 3, 2025, 12:51:28 PM (2 days ago) Nov 3
to Eric Leese, Philip Pfaffe, Devtools-frontend LUCI CQ, devtools-rev...@chromium.org
Attention needed from Eric Leese and Philip Pfaffe

Nikolay Vitkov added 1 comment

Patchset-level comments
File-level comment, Patchset 3 (Latest):
Nikolay Vitkov . resolved

PTAL - this reuses the logic for rebuilding from `npm run build` and removes it from the `npm run test` command.

Open in Gerrit

Related details

Attention is currently required from:
  • Eric Leese
  • Philip Pfaffe
Submit Requirements:
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • 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: devtools/devtools-frontend
Gerrit-Branch: main
Gerrit-Change-Id: I7295ebaa5e53b80011387c4717e2eca6d10f6d8c
Gerrit-Change-Number: 7107198
Gerrit-PatchSet: 3
Gerrit-Owner: Nikolay Vitkov <nvi...@chromium.org>
Gerrit-Reviewer: Eric Leese <le...@chromium.org>
Gerrit-Reviewer: Nikolay Vitkov <nvi...@chromium.org>
Gerrit-Reviewer: Philip Pfaffe <pfa...@chromium.org>
Gerrit-CC: Devtools-frontend LUCI CQ <devtools-fro...@luci-project-accounts.iam.gserviceaccount.com>
Gerrit-Attention: Philip Pfaffe <pfa...@chromium.org>
Gerrit-Attention: Eric Leese <le...@chromium.org>
Gerrit-Comment-Date: Mon, 03 Nov 2025 17:51:24 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
unsatisfied_requirement
open
diffy

Philip Pfaffe (Gerrit)

unread,
Nov 3, 2025, 1:15:38 PM (2 days ago) Nov 3
to Nikolay Vitkov, Eric Leese, Devtools-frontend LUCI CQ, devtools-rev...@chromium.org
Attention needed from Eric Leese and Nikolay Vitkov

Philip Pfaffe added 5 comments

File scripts/run_on_target.mjs
Line 33, Patchset 4 (Parent):let sourceRoot = path.dirname(path.dirname(path.resolve(argv['$0'])));
Philip Pfaffe . unresolved

IIRC this was on purpose. `import.meta.dirname` is the physical directory of the file, which may not be the one we want in certain symlinked setups. `$0` holds where ths script was actually launched from.

Line 89, Patchset 4 (Latest): const spinner = ora('Rebuilding...').start();
Philip Pfaffe . unresolved

How does logging work with this? Can we see the build output with this?

Line 90, Patchset 4 (Latest): await build(target);
Philip Pfaffe . unresolved

Does this work in a chromium checkout?

Line 91, Patchset 4 (Parent): [scriptPath, ...unparse(argv)],
Philip Pfaffe . unresolved

I don't think that does the right thing?

File test/run.ts
Line 302, Patchset 4 (Parent): 'chrome',
Philip Pfaffe . unresolved

We lost these, haven't we?

Open in Gerrit

Related details

Attention is currently required from:
  • Eric Leese
  • Nikolay Vitkov
Submit Requirements:
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • 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: devtools/devtools-frontend
Gerrit-Branch: main
Gerrit-Change-Id: I7295ebaa5e53b80011387c4717e2eca6d10f6d8c
Gerrit-Change-Number: 7107198
Gerrit-PatchSet: 4
Gerrit-Owner: Nikolay Vitkov <nvi...@chromium.org>
Gerrit-Reviewer: Eric Leese <le...@chromium.org>
Gerrit-Reviewer: Nikolay Vitkov <nvi...@chromium.org>
Gerrit-Reviewer: Philip Pfaffe <pfa...@chromium.org>
Gerrit-CC: Devtools-frontend LUCI CQ <devtools-fro...@luci-project-accounts.iam.gserviceaccount.com>
Gerrit-Attention: Eric Leese <le...@chromium.org>
Gerrit-Attention: Nikolay Vitkov <nvi...@chromium.org>
Gerrit-Comment-Date: Mon, 03 Nov 2025 18:15:33 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
unsatisfied_requirement
open
diffy

Nikolay Vitkov (Gerrit)

unread,
Nov 3, 2025, 1:55:44 PM (2 days ago) Nov 3
to Eric Leese, Philip Pfaffe, Devtools-frontend LUCI CQ, devtools-rev...@chromium.org
Attention needed from Eric Leese and Philip Pfaffe

Nikolay Vitkov added 4 comments

File scripts/run_on_target.mjs
Line 89, Patchset 4 (Latest): const spinner = ora('Rebuilding...').start();
Philip Pfaffe . resolved

How does logging work with this? Can we see the build output with this?

Nikolay Vitkov

I think we only see if anything fails else noting is piped to STDOUT.
Give that this is the current behavior of `npm start` `npm run build`, I think we should not block on this.
If we want that we should expose it on the `devtools_build` via a flag or ENV, but in a separate discussion.

Line 90, Patchset 4 (Latest): await build(target);
Philip Pfaffe . resolved

Does this work in a chromium checkout?

Nikolay Vitkov

As stated this is the same as running `npm run build`, which Eric says works with a Chromium checkout.

Line 91, Patchset 4 (Parent): [scriptPath, ...unparse(argv)],
Philip Pfaffe . resolved

I don't think that does the right thing?

Nikolay Vitkov

Refer to the `.parserConfiguration` - https://github.com/yargs/yargs-parser?tab=readme-ov-file#unknown-options-as-args

TLDR we consume what we expect and pass everything down to the next script.

File test/run.ts
Philip Pfaffe . unresolved

We lost these, haven't we?

Nikolay Vitkov

Maybe. Eric does `npm run build` build this targets correctly, or do we need to fix that part first?

Open in Gerrit

Related details

Attention is currently required from:
  • Eric Leese
  • Philip Pfaffe
Submit Requirements:
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • 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: devtools/devtools-frontend
Gerrit-Branch: main
Gerrit-Change-Id: I7295ebaa5e53b80011387c4717e2eca6d10f6d8c
Gerrit-Change-Number: 7107198
Gerrit-PatchSet: 4
Gerrit-Owner: Nikolay Vitkov <nvi...@chromium.org>
Gerrit-Reviewer: Eric Leese <le...@chromium.org>
Gerrit-Reviewer: Nikolay Vitkov <nvi...@chromium.org>
Gerrit-Reviewer: Philip Pfaffe <pfa...@chromium.org>
Gerrit-CC: Devtools-frontend LUCI CQ <devtools-fro...@luci-project-accounts.iam.gserviceaccount.com>
Gerrit-Attention: Philip Pfaffe <pfa...@chromium.org>
Gerrit-Attention: Eric Leese <le...@chromium.org>
Gerrit-Comment-Date: Mon, 03 Nov 2025 18:55:40 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Philip Pfaffe <pfa...@chromium.org>
unsatisfied_requirement
open
diffy

Philip Pfaffe (Gerrit)

unread,
Nov 3, 2025, 2:10:16 PM (2 days ago) Nov 3
to Nikolay Vitkov, Eric Leese, Devtools-frontend LUCI CQ, devtools-rev...@chromium.org
Attention needed from Eric Leese and Nikolay Vitkov

Philip Pfaffe added 2 comments

File scripts/run_on_target.mjs
Line 89, Patchset 4 (Latest): const spinner = ora('Rebuilding...').start();
Philip Pfaffe . resolved

How does logging work with this? Can we see the build output with this?

Nikolay Vitkov

I think we only see if anything fails else noting is piped to STDOUT.
Give that this is the current behavior of `npm start` `npm run build`, I think we should not block on this.
If we want that we should expose it on the `devtools_build` via a flag or ENV, but in a separate discussion.

Philip Pfaffe

Can't say I love this tbh, but fair enough.

Line 91, Patchset 4 (Parent): [scriptPath, ...unparse(argv)],
Philip Pfaffe . resolved

I don't think that does the right thing?

Nikolay Vitkov

Refer to the `.parserConfiguration` - https://github.com/yargs/yargs-parser?tab=readme-ov-file#unknown-options-as-args

TLDR we consume what we expect and pass everything down to the next script.

Philip Pfaffe

Yes, nonetheless I believe I did this intentionally, but I can't remember why. Did some quick testing and it appears to work in the relvant cases, so this LGTM.

Open in Gerrit

Related details

Attention is currently required from:
  • Eric Leese
  • Nikolay Vitkov
Submit Requirements:
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • 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: devtools/devtools-frontend
Gerrit-Branch: main
Gerrit-Change-Id: I7295ebaa5e53b80011387c4717e2eca6d10f6d8c
Gerrit-Change-Number: 7107198
Gerrit-PatchSet: 4
Gerrit-Owner: Nikolay Vitkov <nvi...@chromium.org>
Gerrit-Reviewer: Eric Leese <le...@chromium.org>
Gerrit-Reviewer: Nikolay Vitkov <nvi...@chromium.org>
Gerrit-Reviewer: Philip Pfaffe <pfa...@chromium.org>
Gerrit-CC: Devtools-frontend LUCI CQ <devtools-fro...@luci-project-accounts.iam.gserviceaccount.com>
Gerrit-Attention: Eric Leese <le...@chromium.org>
Gerrit-Attention: Nikolay Vitkov <nvi...@chromium.org>
Gerrit-Comment-Date: Mon, 03 Nov 2025 19:10:11 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Philip Pfaffe <pfa...@chromium.org>
Comment-In-Reply-To: Nikolay Vitkov <nvi...@chromium.org>
unsatisfied_requirement
open
diffy

Eric Leese (Gerrit)

unread,
Nov 4, 2025, 4:11:37 AM (2 days ago) Nov 4
to Nikolay Vitkov, Philip Pfaffe, Devtools-frontend LUCI CQ, devtools-rev...@chromium.org
Attention needed from Nikolay Vitkov

Eric Leese added 1 comment

File test/run.ts
Philip Pfaffe . unresolved

We lost these, haven't we?

Nikolay Vitkov

Maybe. Eric does `npm run build` build this targets correctly, or do we need to fix that part first?

Eric Leese

It doesn't build chrome, and I'm not sure we'd want it to. Not sure about the other targets; it looks like it just build devtools_all_files, which I recently discovered does not include the server and so isn't sufficient to run e2e tests. This isn't necessary in the npm start case, but running tests in a full checkout depends on building chrome.

Open in Gerrit

Related details

Attention is currently required from:
  • Nikolay Vitkov
Submit Requirements:
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • 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: devtools/devtools-frontend
Gerrit-Branch: main
Gerrit-Change-Id: I7295ebaa5e53b80011387c4717e2eca6d10f6d8c
Gerrit-Change-Number: 7107198
Gerrit-PatchSet: 4
Gerrit-Owner: Nikolay Vitkov <nvi...@chromium.org>
Gerrit-Reviewer: Eric Leese <le...@chromium.org>
Gerrit-Reviewer: Nikolay Vitkov <nvi...@chromium.org>
Gerrit-Reviewer: Philip Pfaffe <pfa...@chromium.org>
Gerrit-CC: Devtools-frontend LUCI CQ <devtools-fro...@luci-project-accounts.iam.gserviceaccount.com>
Gerrit-Attention: Nikolay Vitkov <nvi...@chromium.org>
Gerrit-Comment-Date: Tue, 04 Nov 2025 09:11:33 +0000
unsatisfied_requirement
open
diffy
Reply all
Reply to author
Forward
0 new messages